mirror of
https://github.com/zachjs/sv2v.git
synced 2026-08-30 09:28:12 +02:00
- use iverilog's -gstrict-expr-width throughout test suite - add warnings for excess bits or padding zeroes in number literals - add new --oversized-numbers parameter to retain support for unsized numbers wider than 32 bits - localized use of oversized numbers to new truncate test suite which verifies the behavior of both modes, and compares against the known behavior of iverilog
11 lines
243 B
Systemverilog
11 lines
243 B
Systemverilog
module top;
|
|
initial begin
|
|
$display(signed'(1'b1));
|
|
$display(unsigned'(1'sb1));
|
|
$display(signed'(1));
|
|
$display(unsigned'(1));
|
|
$display(signed'(-1));
|
|
$display(unsigned'(-1));
|
|
end
|
|
endmodule
|