-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
1 deletion.
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
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 m_assert(input logic x); | ||
always_comb assert(x); | ||
endmodule | ||
|
||
module m_assume(input logic x); | ||
always_comb assume(x); | ||
endmodule | ||
|
||
module m_cover(input logic x); | ||
always_comb cover(x); | ||
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,7 @@ | ||
read_slang formal_stmts.sv | ||
|
||
select -assert-count 3 t:$check | ||
dump m_assert | ||
select -assert-count 1 m_assert/t:$check r:FLAVOR=assert %i | ||
select -assert-count 1 m_assume/t:$check r:FLAVOR=assume %i | ||
select -assert-count 1 m_cover/t:$check r:FLAVOR=cover %i |