-
Notifications
You must be signed in to change notification settings - Fork 883
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add include_bw_box parameter to selected_modules and selected_whole_m…
…odules (default is false). Set that parameter to true in cutpoint and attrmap. Add test
- Loading branch information
1 parent
72f77dd
commit b3e7447
Showing
6 changed files
with
25 additions
and
9 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
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
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,7 @@ | ||
(* blackbox *) | ||
module add #(parameter N=3) (input [N-1:0] a, b, output [N-1:0] q); | ||
endmodule | ||
|
||
module top(input [7:0] a, b, output [7:0] q); | ||
add #(.N(8)) add_i(.a(a), .b(b), .q(q)); | ||
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 @@ | ||
read_verilog cutpoint_blackbox.v | ||
check | ||
select -assert-mod-count 1 =A:blackbox | ||
select -assert-count 0 =t:$anyseq | ||
cutpoint =A:blackbox | ||
attrmap -modattr -remove blackbox | ||
check | ||
select -assert-mod-count 0 =A:blackbox | ||
select -assert-count 1 =t:$anyseq |