mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 00:55:32 +00:00
parent
06a344efcb
commit
846c79b312
2 changed files with 50 additions and 3 deletions
23
tests/various/hierarchy_param.ys
Normal file
23
tests/various/hierarchy_param.ys
Normal file
|
@ -0,0 +1,23 @@
|
|||
read_verilog <<EOT
|
||||
|
||||
module bb (...);
|
||||
parameter A = "abc";
|
||||
parameter B = 1;
|
||||
parameter C = 2;
|
||||
input a;
|
||||
output b;
|
||||
endmodule
|
||||
|
||||
module top (...);
|
||||
input a;
|
||||
output b;
|
||||
bb #("def", 3) my_bb (a, b);
|
||||
endmodule
|
||||
|
||||
EOT
|
||||
|
||||
hierarchy -top top
|
||||
dump
|
||||
|
||||
select -assert-count 1 t:bb r:A=def %i
|
||||
select -assert-count 1 t:bb r:B=3 %i
|
Loading…
Add table
Add a link
Reference in a new issue