Skip to content

Commit 8e5bdcf

Browse files
authored
Merge pull request #1344 from diffblue/cover_sequence5
SystemVerilog: KNOWNBUG test for cover disable iff
2 parents 8fe2c5e + ba351c4 commit 8e5bdcf

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
cover_sequence5.sv
3+
--bound 10
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
This gives the wrong answer.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
module main(input clk);
2+
3+
// count up
4+
int x = 0;
5+
6+
always_ff @(posedge clk)
7+
x++;
8+
9+
// never passes, owing to disable iff
10+
p0: cover sequence (disable iff (1) 1);
11+
12+
// passes when reaching x=10
13+
p1: cover sequence (disable iff (x<10) 1);
14+
15+
endmodule

0 commit comments

Comments
 (0)