Skip to content

Commit b118086

Browse files
committed
Verilog: KNOWNBUG test for $past when using the BDD engine
1 parent b16270c commit b118086

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+
past2.sv
3+
--bdd
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
The AIG translation is yet to support $past.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module main(input clk);
2+
3+
reg [31:0] counter = 0;
4+
5+
always @(posedge clk)
6+
if(counter < 10)
7+
counter++;
8+
9+
p0: assert property (counter == 0 |-> $past(counter, 1) == 0);
10+
// p1: assert property (counter != 0 && counter != 10 |-> $past(counter, 1) == counter - 1);
11+
12+
endmodule

0 commit comments

Comments
 (0)