Skip to content

Commit 4ed83c8

Browse files
authored
Merge pull request #655 from diffblue/signed2
Verilog: KNOWNBUG test for signed base 2 literal
2 parents 2b63ce4 + c7c1fae commit 4ed83c8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
signed2.sv
3+
--bound 0
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
The signed base 2 literal should be sign-extended.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module main;
2+
3+
p0: assert final ('sb1 == -1);
4+
p1: assert final ('sb11 == -1);
5+
p2: assert final (4'sb111 == 7);
6+
7+
endmodule

0 commit comments

Comments
 (0)