Skip to content

Commit 7aaad19

Browse files
committed
KNOWNBUG test for SystemVerilog wildcard equality
1 parent 4f83074 commit 7aaad19

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
wildcard_equality1.sv
3+
--bound 0
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
Missing SystemVerilog wildcard equality implementation.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module main;
2+
3+
// wildcard equality operator
4+
// 1800-2017 11.4.6
5+
property01: assert final ((10==?10)===1);
6+
property02: assert final ((10==?20)===0);
7+
property03: assert final ((10!=?20)===1);
8+
property04: assert final ((10==?20)===0);
9+
property05: assert final ((2'b00==?2'b0x)===1);
10+
property06: assert final ((2'b10==?2'b0x)===0);
11+
property07: assert final ((2'b00!=?2'b0x)===0);
12+
property08: assert final ((2'b10!=?2'b0x)===1);
13+
property09: assert final ((1'sb1==?2'b11)===0); // zero extension
14+
property10: assert final ((1'sb1==?2'sb11)===1); // sign extension
15+
16+
endmodule

0 commit comments

Comments
 (0)