Files
iverilog/ivtest/ivltests/signed12.v
T
Stephen Williams cea237b407 Add ivtest to the iverilog source tree
By adding ivtest to the iverilog source tree, it is easier to keep
the regression test synchronized with the source that is being tested.
This should be especially helpful for PRs that add a new feature, and
have a matching ivtest PR with the regression test for that feature.
2022-01-15 10:18:50 -08:00

11 lines
207 B
Verilog

module top;
// Does this have to be signed?
wire signed [7:0] out;
// Either of these will not expand correctly.
// assign out = 'sh1f;
assign out = 5'sh1f;
initial #1 $displayb(out);
endmodule