# Issue #4402: read_verilog doesn't respect signed keyword # # write_verilog was not emitting the signed keyword for port declarations. # Uses the original reproduction module from the issue (var2/var3 given # initial values of 0, which were uninitialized/assumed-zero in the report). # # Pre-synthesis simulation: wire0=1'b1 (signed -1), -1<=0 true -> y=0 # Post-synthesis (unfixed): wire0 loses signed, 1<=0 false -> y=1 (BUG) # Post-synthesis (fixed): wire0 retains signed, -1<=0 true -> y=0 ! mkdir -p temp read_verilog <