Skip to content

Commit

Permalink
[rtl] fix reduce.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinjun-li committed Nov 12, 2024
1 parent b1eaac3 commit ae33cd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t1/src/mask/MaskReduce.scala
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ class MaskReduce(parameter: T1Parameter) extends Module {
cutUInt(reqReg.source2, parameter.datapathWidth)
)
val sourceValidCalculate: UInt =
reqReg.fpSourceValid.map(fv => Mux(floatType, fv & reqReg.sourceValid, fv)).getOrElse(reqReg.sourceValid)
reqReg.fpSourceValid.map(fv =>
Mux(floatType, fv & reqReg.sourceValid, reqReg.sourceValid)
).getOrElse(reqReg.sourceValid)
sourceValid := Mux1H(
UIntToOH(crossFoldCount),
sourceValidCalculate.asBools
Expand Down

0 comments on commit ae33cd9

Please sign in to comment.