Skip to content

KNOWNBUG test for empty SVA sequences #1075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions regression/verilog/SVA/empty_sequence1.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
KNOWNBUG
empty_sequence1.sv
--bound 5
^EXIT=10$
^SIGNAL=0$
--
^warning: ignoring
--
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a note as to what the problem here is?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Repetition with zero is not implemented.
14 changes: 14 additions & 0 deletions regression/verilog/SVA/empty_sequence1.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module main(input clk);

reg [7:0] x = 0;

always @(posedge clk)
x<=x+1;

// The empty sequence does not match
initial p0: assert property (1[*0]);

// But can be concatenated
initial p1: assert property (1[*0] ##1 x == 0);

endmodule
Loading