Skip to content

Commit f3e8ac5

Browse files
committed
KNOWNBUG test for empty SVA sequences
1 parent fc8e6a9 commit f3e8ac5

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
KNOWNBUG
2+
empty_sequence1.sv
3+
--bound 5
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
--
7+
^warning: ignoring
8+
--
9+
Repetition with zero is not implemented.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module main(input clk);
2+
3+
reg [7:0] x = 0;
4+
5+
always @(posedge clk)
6+
x<=x+1;
7+
8+
// The empty sequence does not match
9+
initial p0: assert property (1[*0]);
10+
11+
// But can be concatenated
12+
initial p1: assert property (1[*0] ##1 x == 0);
13+
14+
endmodule

0 commit comments

Comments
 (0)