Skip to content
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

KNOWNBUG tests for checkers #928

Merged
merged 1 commit into from
Jan 15, 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/checker/checker5.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
KNOWNBUG
checker5.sv
--bound 20
^\[main\.c\.assert\.1\] always myChecker\.data != 10: REFUTED$
^EXIT=10$
^SIGNAL=0$
--
--
Support for checkers inside modules is missing.
9 changes: 9 additions & 0 deletions regression/verilog/checker/checker5.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module main(input clk);
checker myChecker(input logic [31:0] data);
assert property (data != 10);
endchecker

reg [31:0] counter = 0;
always_ff @(posedge clk) counter++;
myChecker c(counter);
endmodule
9 changes: 9 additions & 0 deletions regression/verilog/checker/checker6.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
KNOWNBUG
checker6.sv
--bound 20
^\[main\.c\.assert\.1\] always myChecker\.data != 10: REFUTED$
^EXIT=10$
^SIGNAL=0$
--
--
Support for checkers inside packages is missing.
11 changes: 11 additions & 0 deletions regression/verilog/checker/checker6.sv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package my_package;
checker myChecker(input logic [31:0] data);
assert property (data != 10);
endchecker
endpackage

module main(input clk);
reg [31:0] counter = 0;
always_ff @(posedge clk) counter++;
my_package::myChecker c(counter);
endmodule
Loading