Skip to content

Commit 11d1dc0

Browse files
committed
Verilog: extend shl4 test
This adds a nested case to the test for the expression evaluation context.
1 parent edcbc8d commit 11d1dc0

File tree

1 file changed

+3
-0
lines changed
  • regression/verilog/expressions

1 file changed

+3
-0
lines changed

regression/verilog/expressions/shl4.sv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ module main;
99
assert final (1'b1 << 6 === 64);
1010
assert final (1'b1 << 6 === 1'b0);
1111

12+
// The shift will have 16 bits!
13+
initial assert(8'b0 + (1'sb1 << 15) === 16'b1000_0000_0000_0000);
14+
1215
endmodule

0 commit comments

Comments
 (0)