From c96021e5f2c64885f4b134df1747a89f8012c86c Mon Sep 17 00:00:00 2001 From: jon Date: Thu, 11 Jun 2020 09:45:38 +0100 Subject: [PATCH] Just fall through to default when the upper bits are not as expected to avoid lockup, though it may lockup anyway. We should respond with a bus error or something instead. --- src_Core/Core/CoreW.bsv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src_Core/Core/CoreW.bsv b/src_Core/Core/CoreW.bsv index 5e024e4..7806f18 100644 --- a/src_Core/Core/CoreW.bsv +++ b/src_Core/Core/CoreW.bsv @@ -363,8 +363,8 @@ module mkCoreW #(Reset dm_power_on_reset) res[plic_slave_num] = True; else res[default_slave_num] = True; - Bit #(24) topBits = truncateLSB(addr); //XXX TODO Tag controller masks to 40 bits - if (topBits != 0) res = replicate(False); + //Bit #(24) topBits = truncateLSB(addr); //XXX TODO Tag controller masks to 40 bits + //if (topBits != 0) res = replicate(False); return res; endfunction