Stall on D$ lockups less conservatively
This commit is contained in:
parent
a3061047e3
commit
765b90f6a4
@ -483,10 +483,13 @@ class Rocket(implicit p: Parameters) extends CoreModule()(p) {
|
|||||||
id_csr_en && !io.fpu.fcsr_rdy || checkHazards(fp_hazard_targets, fp_sboard.read _)
|
id_csr_en && !io.fpu.fcsr_rdy || checkHazards(fp_hazard_targets, fp_sboard.read _)
|
||||||
} else Bool(false)
|
} else Bool(false)
|
||||||
|
|
||||||
|
val dcache_blocked = Reg(Bool())
|
||||||
|
dcache_blocked := !io.dmem.req.ready && (io.dmem.req.valid || dcache_blocked)
|
||||||
|
|
||||||
val ctrl_stalld =
|
val ctrl_stalld =
|
||||||
id_ex_hazard || id_mem_hazard || id_wb_hazard || id_sboard_hazard ||
|
id_ex_hazard || id_mem_hazard || id_wb_hazard || id_sboard_hazard ||
|
||||||
id_ctrl.fp && id_stall_fpu ||
|
id_ctrl.fp && id_stall_fpu ||
|
||||||
id_ctrl.mem && Reg(next = !io.dmem.req.ready) ||
|
id_ctrl.mem && dcache_blocked || // reduce activity during D$ misses
|
||||||
Bool(usingRoCC) && wb_reg_rocc_pending && id_ctrl.rocc && !io.rocc.cmd.ready ||
|
Bool(usingRoCC) && wb_reg_rocc_pending && id_ctrl.rocc && !io.rocc.cmd.ready ||
|
||||||
id_do_fence ||
|
id_do_fence ||
|
||||||
csr.io.csr_stall
|
csr.io.csr_stall
|
||||||
|
Loading…
Reference in New Issue
Block a user