Skip to content

Commit

Permalink
fix(vfalu): fix bug of allFFlagsEn when lastUop is reduction unorder …
Browse files Browse the repository at this point in the history
…sum (#4244)
  • Loading branch information
xiaofeibao-xjtu authored Feb 6, 2025
1 parent 977ac3b commit f5217f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/xiangshan/backend/fu/wrapper/VFALU.scala
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ class VFAlu(cfg: FuConfig)(implicit p: Parameters) extends VecPipedFuncUnit(cfg)
dontTouch(allFFlagsEn)
dontTouch(fflagsRedMask)
}
allFFlagsEn := Mux(outIsResuction, Cat(Fill(4*numVecModule - 1, firstNeedFFlags || outIsVfRedUnSum) & fflagsRedMask(4*numVecModule - 1, 1),
allFFlagsEn := Mux(outIsResuction, Cat(Fill(4*numVecModule - 1, firstNeedFFlags || outIsVfRedUnSum && !outVecCtrl.lastUop) & fflagsRedMask(4*numVecModule - 1, 1),
lastNeedFFlags || firstNeedFFlags || outIsVfRedOrdered || outIsVfRedUnSum), fflagsEn & vlMaskEn).asTypeOf(allFFlagsEn)

val allFFlags = fflagsData.asTypeOf(Vec( 4*numVecModule,UInt(5.W)))
Expand Down

0 comments on commit f5217f4

Please sign in to comment.