Skip to content

Commit 79a004f

Browse files
committed
Verilog: KNOWNBUG test for power operator
1 parent f25aad5 commit 79a004f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
power1.sv
3+
--bound 0
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
Lowering for power on three-valued logic is missing.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module main;
2+
3+
property01: assert final (2**0==1);
4+
property02: assert final (2**1==2);
5+
property03: assert final ((-2)**1==-2);
6+
property04: assert final (2**2==4);
7+
property05: assert final (2**-1==0);
8+
property06: assert final ($bits(3'd2**2)==3);
9+
property07: assert final (2**'bx===32'bx);
10+
property08: assert final ('bx**2===32'bx);
11+
12+
endmodule

0 commit comments

Comments
 (0)