Files
sv2v/test/core/sign_cast.v
Zachary Snow 306d71334b refactor sizing and truncation of integer literals
- 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
2021-08-09 22:10:29 -06:00

11 lines
243 B
Verilog

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