Skip to content

Commit

Permalink
[rtl] add last report for empty instruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Dec 23, 2024
1 parent 671eb79 commit 0ed15ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t1/src/Lane.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1183,12 +1183,16 @@ class Lane(val parameter: LaneParameter) extends Module with SerializableModule[

instructionFinishInSlot := (~instructionValid).asUInt & instructionValidNext

val emptyInstValid: Bool = RegNext(laneRequest.bits.issueInst && !vrf.instructionWriteReport.valid, false.B)
val emptyInstCount: UInt = RegNext(indexToOH(laneRequest.bits.instructionIndex, parameter.chainingSize))
val emptyReport: UInt = maskAnd(emptyInstValid, emptyInstCount).asUInt

// clear record by instructionFinished
vrf.instructionLastReport := instructionFinishInSlot
vrf.lsuLastReport := lsuLastReport
vrf.loadDataInLSUWriteQueue := loadDataInLSUWriteQueue
vrf.dataInLane := instructionValid
instructionFinished := vrf.vrfSlotRelease
instructionFinished := vrf.vrfSlotRelease | emptyReport
writeReadyForLsu := vrf.writeReadyForLsu
vrfReadyToStore := vrf.vrfReadyToStore
tokenManager.crossWriteReports.zipWithIndex.foreach { case (rpt, rptIndex) =>
Expand Down

0 comments on commit 0ed15ef

Please sign in to comment.