ICACHE_NUM_WAYS=4 fixed

This commit is contained in:
waleed-lm 2021-01-07 12:42:31 +05:00
parent 168b93d001
commit b2c3d309ea
8 changed files with 86 additions and 17 deletions

View File

@ -711,10 +711,10 @@ class ifu_mem_ctl extends Module with lib with RequireAsyncReset {
io.ic.rd_hit(2) -> Cat(1.U, way_status(1), 0.U),
io.ic.rd_hit(3) -> Cat(0.U, way_status(1), 0.U)))
way_status_rep_new := Mux1H(Seq(io.ic.rd_hit(0) -> Cat(way_status_mb_ff(2), 3.U),
io.ic.rd_hit(1) -> Cat(way_status_mb_ff(2), 1.U(2.W)),
io.ic.rd_hit(2) -> Cat(1.U, way_status_mb_ff(1), 0.U),
io.ic.rd_hit(3) -> Cat(0.U, way_status_mb_ff(1), 0.U)))
way_status_rep_new := Mux1H(Seq(replace_way_mb_any(0) -> Cat(way_status_mb_ff(2), 3.U),
replace_way_mb_any(1) -> Cat(way_status_mb_ff(2), 1.U(2.W)),
replace_way_mb_any(2) -> Cat(1.U, way_status_mb_ff(1), 0.U),
replace_way_mb_any(3) -> Cat(0.U, way_status_mb_ff(1), 0.U)))
}
else {
replace_way_mb_any(0) := (!way_status_mb_ff & tagv_mb_ff(0) & tagv_mb_ff(1)) | !tagv_mb_ff(0)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
-1974124775
1551616397