Skip to content

Commit 6ca9415

Browse files
authored
Merge pull request #1285 from diffblue/extend-shl4
Extend shl4 test
2 parents bd1a8cc + bea31b9 commit 6ca9415

File tree

1 file changed

+7
-1
lines changed
  • regression/verilog/expressions

1 file changed

+7
-1
lines changed
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
module main;
22

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);
37
assert final (4'b1111 << 1 === 5'b11110);
4-
assert final (1 << 6 === 64);
8+
9+
assert final (1'b1 << 6 === 64);
10+
assert final (1'b1 << 6 === 1'b0);
511

612
endmodule

0 commit comments

Comments
 (0)