diff options
author | N. Engelhardt <nak@yosyshq.com> | 2022-08-11 12:06:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 12:06:04 +0200 |
commit | 63fca0dbc2a189595b8bc18ac49bfa2950c02913 (patch) | |
tree | 283a3f45712560a05fec5c25462a205103282cd5 /tests | |
parent | 91010449ff2a66f89c2a8f9718ae320d3e899c41 (diff) | |
parent | a48dcd1d40a845cfb8b18cbe986faf0b780880be (diff) | |
download | yosys-63fca0dbc2a189595b8bc18ac49bfa2950c02913.tar.gz yosys-63fca0dbc2a189595b8bc18ac49bfa2950c02913.tar.bz2 yosys-63fca0dbc2a189595b8bc18ac49bfa2950c02913.zip |
Merge pull request #3277 from YosysHQ/lofty/rename-scramble_name
Diffstat (limited to 'tests')
-rw-r--r-- | tests/various/rename_scramble_name.ys | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/various/rename_scramble_name.ys b/tests/various/rename_scramble_name.ys new file mode 100644 index 000000000..9a36d0922 --- /dev/null +++ b/tests/various/rename_scramble_name.ys @@ -0,0 +1,31 @@ +read_verilog <<EOF +module top(); + wire a, b, c; +endmodule +EOF + +proc +hierarchy -top top +rename -seed 2 -scramble-name w:* +select -assert-none w:a w:b w:c +select -assert-count 3 w:$_*_ +select -assert-none w:$_*_ %% %n +design -reset + +read_verilog <<EOF +module foo(input a, b, output c); + assign c = a + b; +endmodule + +module top(); + wire a, b, c; + foo bar(.a(a), .b(b), .c(c)); +endmodule +EOF + +proc +hierarchy -top top +rename -seed 2 -scramble-name c:bar +select -assert-none c:bar +select -assert-count 1 c:$_*_ +select -assert-none c:$_*_ w:* foo/c:$add$<<EOF:2$1 %% %n |