Skip to content

Commit

Permalink
[rtl] fix t1rocket redmin.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li authored and Avimitin committed Nov 11, 2024
1 parent eac86ef commit 0e74cac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions t1/src/mask/MaskUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ class MaskUnit(parameter: T1Parameter) extends Module {

val dLog = log2Ceil(parameter.datapathWidth/8)
// How many datapaths does LSB contain?
val lsbDSize = (vlLSB >> dLog).asUInt + changeUIntSize(vlLSB, dLog).orR
// 0 -UIntToOH> 00001 -( >> 1)> 00000
(UIntToOH(lsbDSize) >> 1).asUInt | Fill(parameter.laneNumber, vlMSB)
val lsbDSize = (vlLSB >> dLog).asUInt - !changeUIntSize(vlLSB, dLog).orR
scanRightOr(UIntToOH(lsbDSize))| Fill(parameter.laneNumber, vlMSB)
}
)

Expand Down

0 comments on commit 0e74cac

Please sign in to comment.