Skip to content

Commit

Permalink
[rtl] fix change execute index.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Nov 22, 2024
1 parent 2401b73 commit d782ff3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t1/src/mask/MaskUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,7 @@ class MaskUnit(parameter: T1Parameter) extends Module {
val readIssueStageEnq: Bool =
(allDataValid || slideAddressGen.indexDeq.valid) &&
(readTypeRequestDeq || !readIssueStageValid) && instVlValid && readType
val changeExecuteIndex: Bool = Mux(readType, readIssueStageEnq, otherTypeRequestDeq && executeReady)
slideAddressGen.indexDeq.ready := readTypeRequestDeq || !readIssueStageValid
when(anyReadFire) {
readIssueStageState.groupReadState := readStateUpdate
Expand All @@ -724,7 +725,7 @@ class MaskUnit(parameter: T1Parameter) extends Module {
}

val executeIndexGrowth: UInt = (1.U << dataSplitSew).asUInt
when(requestStageDeq && anyDataValid) {
when(changeExecuteIndex && anyDataValid) {
executeIndex := executeIndex + executeIndexGrowth
}
when(readIssueStageEnq) {
Expand Down

0 comments on commit d782ff3

Please sign in to comment.