We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd1a8cc + bea31b9 commit 6ca9415Copy full SHA for 6ca9415
regression/verilog/expressions/shl4.sv
@@ -1,6 +1,12 @@
1
module main;
2
3
+ // The arguments of === are adjusted to the maximum of the
4
+ // self-determined widths of the lhs and rhs.
5
+ // Hence, 4'b1111 << 1 is equal both to 4'b1110 and 5'b11110.
6
+ assert final (4'b1111 << 1 === 4'b1110);
7
assert final (4'b1111 << 1 === 5'b11110);
- assert final (1 << 6 === 64);
8
+
9
+ assert final (1'b1 << 6 === 64);
10
+ assert final (1'b1 << 6 === 1'b0);
11
12
endmodule
0 commit comments