Skip to content

Commit 34da31d

Browse files
committed
SVA: add test with non-constant SVA cycle delays
Replicates third example in #931.
1 parent f6c38d9 commit 34da31d

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
CORE
2+
cycle_delay1.sv
3+
4+
^C string exception : failed to convert sva_cycle_delay offsets$
5+
^EXIT=2$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
9+
--
10+
The error message could be better.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module main(input clk, input [31:0] from);
2+
3+
reg [31:0] x;
4+
5+
always_ff @(posedge clk)
6+
x++;
7+
8+
// The cycle delay must be elaboration-time constant
9+
initial assert property (##[from:2] x!=10);
10+
11+
endmodule

0 commit comments

Comments
 (0)