Skip to content

Commit

Permalink
Avoid structural hazard-induced nacks on external fpu reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryz123 committed Mar 30, 2024
1 parent 80ff66a commit 8ff7929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/tile/FPU.scala
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,8 @@ class FPU(cfg: FPUParams)(implicit p: Parameters) extends FPUModule()(p) {
io.cp_resp.bits.data := wdata
io.cp_resp.valid := true.B
}
io.cp_req.ready := !ex_reg_valid
// Avoid structural hazards and nacking of external requests
io.cp_req.ready := !ex_reg_valid && !mem_reg_valid && !wb_reg_valid

val wb_toint_valid = wb_reg_valid && wb_ctrl.toint
val wb_toint_exc = RegEnable(fpiu.io.out.bits.exc, mem_ctrl.toint)
Expand Down

0 comments on commit 8ff7929

Please sign in to comment.