-
Notifications
You must be signed in to change notification settings - Fork 897
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix hierarchy -generate mode handling of cells
- Loading branch information
1 parent
1c09862
commit b87327d
Showing
2 changed files
with
20 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,19 @@ | ||
read_verilog -icells <<EOF | ||
module top(input [2:0] a, input [2:0] b, output [2:0] y); | ||
|
||
sub sub_i (.a(a[0]), .b(b[0]), .y(y[0])); | ||
|
||
unknown_sub sub_ii (.a(a[1]), .b(b[1]), .y(y[1])); | ||
|
||
$__dunder_sub sub_iii (.a(a[2]), .b(b[2]), .y(y[2])); | ||
|
||
endmodule | ||
|
||
module sub(input a, input b, output y); | ||
assign y = a ^ b; | ||
endmodule | ||
EOF | ||
hierarchy -generate unknown_sub i:a i:b o:y | ||
hierarchy -generate $__dunder_sub i:a i:b o:y | ||
hierarchy -top top -check | ||
check -assert |