Skip to content

Commit eb6ff33

Browse files
fpu_wrap: Add missing default assignment for fpu_exception fields (#3292)
This PR proposes a fix for the issue #3256 by adding missing default assignments to the tval2, tinst, and gva fields of fpu_exception_o signal. These fields were left undriven, which led to X propagation during simulation. --------- Co-authored-by: JeanRochCoulon <jean-roch.coulon@thalesgroup.com>
1 parent d8e16be commit eb6ff33

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/fpu_wrap.sv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,9 @@ module fpu_wrap
562562
assign fpu_exception_o.cause = {59'h0, fpu_status};
563563
assign fpu_exception_o.valid = 1'b0;
564564
assign fpu_exception_o.tval = '0;
565+
assign fpu_exception_o.tval2 = '0;
566+
assign fpu_exception_o.tinst = '0;
567+
assign fpu_exception_o.gva = '0;
565568

566569
// Downstream write port is dedicated to FPU and always ready
567570
assign fpu_out_ready = 1'b1;

0 commit comments

Comments
 (0)