-
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.
Merge pull request #928 from diffblue/checker5
KNOWNBUG tests for checkers
- Loading branch information
Showing
4 changed files
with
38 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,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. |
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,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 |
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,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. |
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 @@ | ||
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 |