-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SVA: add test with non-constant SVA cycle delays
Replicates third example in #931.
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CORE | ||
cycle_delay1.sv | ||
|
||
^C string exception : failed to convert sva_cycle_delay offsets$ | ||
^EXIT=2$ | ||
^SIGNAL=0$ | ||
-- | ||
^warning: ignoring | ||
-- | ||
The error message could be better. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module main(input clk, input [31:0] from); | ||
|
||
reg [31:0] x; | ||
|
||
always_ff @(posedge clk) | ||
x++; | ||
|
||
// The cycle delay must be elaboration-time constant | ||
initial assert property (##[from:2] x!=10); | ||
|
||
endmodule |