Skip to content

Commit

Permalink
[rtl] fix pop count.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Nov 15, 2024
1 parent ec1f32e commit 76530e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t1/src/mask/MaskReduce.scala
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class MaskReduce(parameter: T1Parameter) extends Module {
val widen: Bool = reqReg.uop === "b001".U || reqReg.uop(2, 1) === "b11".U
// eew1HReg(0) || (eew1HReg(1) && !widen)
val needFold: Bool = false.B
val writeEEW: UInt = reqReg.eew + widen
val writeEEW: UInt = Mux(pop, 2.U, reqReg.eew + widen)
val writeEEW1H: UInt = UIntToOH(writeEEW)(2, 0)
val writeMask: UInt = Fill(2, writeEEW1H(2)) ## !writeEEW1H(0) ## true.B

Expand Down

0 comments on commit 76530e0

Please sign in to comment.