Skip to content

Commit 2311fd7

Browse files
committed
build fixes
1 parent 4217a93 commit 2311fd7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hw/rtl/fpu/VX_fma_unit.sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ module VX_fma_unit import VX_gpu_pkg::*, VX_fpu_pkg::*; #(
473473
wire [MAN_BITS:0] abs_rounded = round_up ? man_inc : rnd_man;
474474

475475
// Round carry: mantissa overflowed (e.g. all-1s + 1 → 0)
476-
wire round_carry = abs_rounded[MAN_BITS] & ~rnd_man[MAN_BITS];
476+
wire round_carry = round_up & (&rnd_man);
477477

478478
wire [MAN_BITS-1:0] final_man = round_carry ? abs_rounded[MAN_BITS:1] : abs_rounded[MAN_BITS-1:0];
479479

0 commit comments

Comments
 (0)