3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

hierarchy: Convert positional parameters to named.

Fixes #1821.
This commit is contained in:
Marcelina Kościelnicka 2020-04-16 17:38:55 +02:00
parent 06a344efcb
commit 846c79b312
2 changed files with 50 additions and 3 deletions

View 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