diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2020-04-16 17:38:55 +0200 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2020-04-21 19:09:00 +0200 |
commit | 846c79b312b648b36b5f3b9d563c6c5e252a5411 (patch) | |
tree | d65ca6956b3c59af3b060a2cb59d8967a900b03d /tests | |
parent | 06a344efcb4a8c56f230715481ce07e715a7a4b3 (diff) | |
download | yosys-846c79b312b648b36b5f3b9d563c6c5e252a5411.tar.gz yosys-846c79b312b648b36b5f3b9d563c6c5e252a5411.tar.bz2 yosys-846c79b312b648b36b5f3b9d563c6c5e252a5411.zip |
hierarchy: Convert positional parameters to named.
Fixes #1821.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/various/hierarchy_param.ys | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/various/hierarchy_param.ys b/tests/various/hierarchy_param.ys new file mode 100644 index 000000000..d703bb713 --- /dev/null +++ b/tests/various/hierarchy_param.ys @@ -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 |