From 4ae15bf5e461d2f758b0e53b607accd0d4878209 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Tue, 21 Dec 2021 15:16:00 -0600 Subject: [PATCH] Fixed bug where the wrong address is read into the icache memory. --- wally-pipelined/src/cache/icachefsm.sv | 1 + 1 file changed, 1 insertion(+) diff --git a/wally-pipelined/src/cache/icachefsm.sv b/wally-pipelined/src/cache/icachefsm.sv index aa49a55e8..1d579cd12 100644 --- a/wally-pipelined/src/cache/icachefsm.sv +++ b/wally-pipelined/src/cache/icachefsm.sv @@ -163,6 +163,7 @@ module icachefsm NextState = STATE_HIT_SPILL; end else if (~hit & ~spill) begin CntReset = 1'b1; + SelAdr = 2'b01; /// *********( NextState = STATE_MISS_FETCH_WDV; end else if (~hit & spill) begin CntReset = 1'b1;