Skip to content

Commit

Permalink
[rtl] fix old check in vrf.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Nov 20, 2024
1 parent 1b59b4f commit 99184aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t1/src/vrf/VRF.scala
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,11 @@ class VRF(val parameter: VRFParam) extends Module with SerializableModule[VRFPar
val recordFFO: UInt = ffo(freeRecord)
val recordEnq: UInt = Wire(UInt((parameter.chainingSize + 1).W))
val olderCheck = chainingRecord
.map(re => !re.valid || instIndexL(re.bits.instIndex, instructionWriteReport.bits.instIndex))
.map(re =>
!re.valid ||
(instIndexL(re.bits.instIndex, instructionWriteReport.bits.instIndex) &&
((re.bits.instIndex >> 1).asUInt =/= (instructionWriteReport.bits.instIndex >> 1).asUInt))
)
.reduce(_ && _)
// handle VRF hazard
// @todo @Clo91eaf VRF ready signal for performance.
Expand Down

0 comments on commit 99184aa

Please sign in to comment.