forked from Github_Repos/cvw
Fixed bug on icache spill. if the cpu stalled on the completion it was possible to use the wrong address for the sram read. Also miss spill hit always selected the wrong address.
This commit is contained in:
parent
6acf6257e4
commit
ffe792bcfc
4
wally-pipelined/src/cache/icachefsm.sv
vendored
4
wally-pipelined/src/cache/icachefsm.sv
vendored
@ -294,8 +294,8 @@ module icachefsm
|
||||
ICacheStallF = 1'b0;
|
||||
LRUWriteEn = 1'b1;
|
||||
if(StallF) begin
|
||||
NextState = STATE_CPU_BUSY;
|
||||
SelAdr = 2'b01;
|
||||
NextState = STATE_CPU_BUSY_SPILL;
|
||||
SelAdr = 2'b10;
|
||||
end else begin
|
||||
NextState = STATE_READY;
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user