Files
sv2v/test/truncate/template.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

6 lines
126 B
Verilog

module top;
localparam X = NUM;
localparam [63:0] Y = X;
initial $display("%0d %b %b", $bits(X), X, Y);
endmodule