Skip to content

Commit

Permalink
timing(vldMgu): fix timing of wbReg's gate enable
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofeibao-xjtu committed Dec 16, 2024
1 parent 4ada4be commit 03567da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class VldMergeUnit(val params: ExeUnitParams)(implicit p: Parameters) extends XS
val vdAfterMerge = Wire(UInt(VLEN.W))

val wbFire = !io.writeback.bits.robIdx.needFlush(io.flush) && io.writeback.fire
wbReg.bits := Mux(wbFire, io.writeback.bits, wbReg.bits)
wbReg.bits := Mux(io.writeback.fire, io.writeback.bits, wbReg.bits)
wbReg.valid := wbFire
mgu.io.in.vd := wbReg.bits.data(0)
// oldVd is contained in data and is already masked with new data
Expand Down

0 comments on commit 03567da

Please sign in to comment.