diff --git a/t1/src/mask/MaskReduce.scala b/t1/src/mask/MaskReduce.scala index 3ee23746c..288a190f5 100644 --- a/t1/src/mask/MaskReduce.scala +++ b/t1/src/mask/MaskReduce.scala @@ -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