Skip to content

Commit

Permalink
[rtl] pipe writeCount.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Dec 26, 2024
1 parent 69ad66f commit 93fcb10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t1/src/T1.scala
Original file line number Diff line number Diff line change
Expand Up @@ -800,10 +800,10 @@ class T1(val parameter: T1Parameter)

lane.loadDataInLSUWriteQueue := lsu.dataInWriteQueue(index)
// 2 + 3 = 5
val rowWith: Int = log2Ceil(parameter.datapathWidth / 8) + log2Ceil(parameter.laneNumber)
lane.writeCount :=
(requestReg.bits.writeByte >> rowWith).asUInt +
(requestReg.bits.writeByte(rowWith - 1, 0) > ((parameter.datapathWidth / 8) * index).U)
val rowWith: Int = log2Ceil(parameter.datapathWidth / 8) + log2Ceil(parameter.laneNumber)
val writeCounter: UInt = (requestReg.bits.writeByte >> rowWith).asUInt +
(requestReg.bits.writeByte(rowWith - 1, 0) > ((parameter.datapathWidth / 8) * index).U)
lane.writeCount := Pipe(true.B, writeCounter, parameter.laneRequestShifterSize(index)).bits

// token manager
tokenManager.instructionFinish(index) := instructionFinishedPipe
Expand Down

0 comments on commit 93fcb10

Please sign in to comment.