Skip to content

Commit

Permalink
[rtl] fix mask update.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Dec 26, 2024
1 parent 93fcb10 commit 0dab960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t1/src/Lane.scala
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ class Lane(val parameter: LaneParameter) extends Module with SerializableModule[
maskSelectSew := Mux1H(maskControlReqSelect, maskControlVec.map(_.sew))
maskControlDataDeq := slotMaskRequestVec.zipWithIndex.map { case (req, index) =>
val slotIndex = slotControl(index).laneRequest.instructionIndex
val hitMaskControl = VecInit(maskControlVec.map(_.index === slotIndex)).asUInt
val hitMaskControl = VecInit(maskControlVec.map(c => c.index === slotIndex && c.controlValid)).asUInt
val dataValid = Mux1H(hitMaskControl, maskControlVec.map(_.dataValid))
val data = Mux1H(hitMaskControl, maskControlVec.map(_.maskData))
val group = Mux1H(hitMaskControl, maskControlVec.map(_.group))
Expand Down

0 comments on commit 0dab960

Please sign in to comment.