Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vfalu: fix the result do not affect when masked for vfredosum.vs/vfwredosum.vs instruction #101

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/main/scala/yunsuan/vector/VectorFloatAdder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ private[vector] class FloatAdderF32WidenF16MixedPipeline(val is_print:Boolean =
)
val result_fsum_ore_masked = Mux(
io.maskForReduction(0) === 0.U,
0.U(floatWidth.W),
io.fp_b
io.fp_b,
0.U(floatWidth.W)
)
val outInf = Mux(
res_is_f32,
Expand Down Expand Up @@ -1790,8 +1790,8 @@ private[vector] class FloatAdderF64WidenPipeline(val is_print:Boolean = false,va
)
val result_fsum_ore_masked = Mux(
io.maskForReduction(0) === 0.U,
0.U(floatWidth.W),
io.fp_b
io.fp_b,
0.U(floatWidth.W)
)
val outInf = Cat(is_fmax_re, Fill(exponentWidth, 1.U), 0.U((significandWidth-1).W))
val re_masked_one_out = Mux(
Expand Down Expand Up @@ -2445,8 +2445,8 @@ private[vector] class FloatAdderF16Pipeline(val is_print:Boolean = false,val has
)
val result_fsum_ore_masked = Mux(
io.maskForReduction(0) === 0.U,
0.U(floatWidth.W),
io.fp_b
io.fp_b,
0.U(floatWidth.W)
)
val outInf = Cat(is_fmax_re, Fill(exponentWidth, 1.U), 0.U((significandWidth-1).W))
val re_masked_one_out = Mux(
Expand Down
Loading