File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
regression/verilog/expressions Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ KNOWNBUG
2+ integer_literals3.sv
3+
4+ ^EXIT=0$
5+ ^SIGNAL=0$
6+ --
7+ ^warning: ignoring
8+ --
9+ The context-dependent extension is not implemented.
Original file line number Diff line number Diff line change 1+ module main ;
2+
3+ // 1800-2017 5.7.1
4+
5+ // "Unsized unsigned literal constants where the high-order bit is unknown
6+ // (X or x) or three-state (Z or z) shall be extended to the size of the
7+ // expression containing the literal constant."
8+ initial assert (('hx0 | 64'h0 ) === 64'hxxxx_xxx0 );
9+
10+ initial assert ((1 ? '0 : 16'h0 ) === 16'h0000 );
11+ initial assert ((1 ? '1 : 16'h0 ) === 16'hffff );
12+ initial assert ((1 ? 'x : 16'h0 ) === 16'hxxxx );
13+ initial assert ((1 ? 'z : 16'h0 ) === 16'hzzzz );
14+
15+ // "All bits of the unsized value shall be set to the value of the specified
16+ // bit."
17+ initial assert ($bits (1 ? '0 : 16'h0 ) === 16 );
18+ initial assert ($bits (1 ? '1 : 16'h0 ) === 16 );
19+ initial assert ($bits (1 ? 'x : 16'h0 ) === 16 );
20+ initial assert ($bits (1 ? 'z : 16'h0 ) === 16 );
21+
22+ endmodule
You can’t perform that action at this time.
0 commit comments