Skip to content

Commit

Permalink
[rtl] fix release for reorder counter.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Dec 30, 2024
1 parent de4f851 commit 9ea63f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t1/src/mask/MaskUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ class MaskUnit(val parameter: T1Parameter)
val tokenSize = log2Ceil(reorderQueueSize + 1)
val counter = RegInit(0.U(tokenSize.W))
val counterWillUpdate = RegInit(0.U(tokenSize.W))
val release = reorderQueueVec(i).deq.fire
val release = reorderQueueVec(i).deq.fire && readType
val allocate = Mux(readIssueStageEnq, accessCountEnq(i), 0.U)
val counterUpdate = counter + allocate - release
when(release || readIssueStageEnq) {
Expand Down

0 comments on commit 9ea63f2

Please sign in to comment.