Skip to content

Commit

Permalink
[rtl] Handle the boundary for mask source.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li authored and Avimitin committed Jan 25, 2024
1 parent 833b364 commit 9ae8790
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t1/src/Lane.scala
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,8 @@ class Lane(val parameter: LaneParameter) extends Module with SerializableModule[
val maskeDataGroup = (vlHead ## vlBody) - !dataPathMisaligned
val lastLaneIndexForMaskLogic: UInt = maskeDataGroup(parameter.laneNumberBits - 1, 0)
val isLastLaneForMaskLogic: Bool = lastLaneIndexForMaskLogic === laneIndex
val lastGroupCountForMaskLogic: UInt = (maskeDataGroup >> parameter.laneNumberBits).asUInt
val lastGroupCountForMaskLogic: UInt = (maskeDataGroup >> parameter.laneNumberBits).asUInt -
((vlBody.orR || dataPathMisaligned) && (laneIndex > lastLaneIndexForMaskLogic))
val misalignedForOther: Bool = Mux1H(
requestVSew1H(1, 0),
Seq(
Expand Down

0 comments on commit 9ae8790

Please sign in to comment.