From 3f62a64056e316c8e78994b25e0dd23ebc4975f4 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Mon, 20 Dec 2021 23:45:55 -0600 Subject: [PATCH] Identified bug in the IFU which selects PCNextF when InvalidateICacheM is true. If the ID is invalid PCNextF should NOT be PCE. --- wally-pipelined/src/ifu/ifu.sv | 1 + 1 file changed, 1 insertion(+) diff --git a/wally-pipelined/src/ifu/ifu.sv b/wally-pipelined/src/ifu/ifu.sv index a6b63f24..896359bd 100644 --- a/wally-pipelined/src/ifu/ifu.sv +++ b/wally-pipelined/src/ifu/ifu.sv @@ -187,6 +187,7 @@ module ifu ( .s(BPPredWrongE), .y(PCNext1F)); + // *** December 20, 2021 BUG Ross Thompson, If instructions in ID and IF are already invalid we don't pick PCE on icache invalidate. mux2 #(`XLEN) pcmux2(.d0(PCNext1F), .d1(PCE), .s(InvalidateICacheM),