aboutsummaryrefslogtreecommitdiffstats
path: root/tests/techmap/techmap_replace.ys
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2019-10-18 10:52:50 +0200
committerGitHub <noreply@github.com>2019-10-18 10:52:50 +0200
commit0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc (patch)
tree24f6a3cd2c4fa19a41d90cd57b0908b668efeb21 /tests/techmap/techmap_replace.ys
parent0d60902fd97bba4f231f8f600434b8a69562ffff (diff)
parente0a67fce12647b4db7125d33264847c0a3781105 (diff)
downloadyosys-0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc.tar.gz
yosys-0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc.tar.bz2
yosys-0b0b0cc0d9e432f14218bb9ed643af3d06ab43dc.zip
Merge branch 'master' into eddie/pr1352
Diffstat (limited to 'tests/techmap/techmap_replace.ys')
-rw-r--r--tests/techmap/techmap_replace.ys18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/techmap/techmap_replace.ys b/tests/techmap/techmap_replace.ys
new file mode 100644
index 000000000..c2f42d50b
--- /dev/null
+++ b/tests/techmap/techmap_replace.ys
@@ -0,0 +1,18 @@
+read_verilog <<EOT
+module sub(input i, output o, input j);
+foobar _TECHMAP_REPLACE_(i, o, j);
+wire _TECHMAP_REPLACE_.asdf = i ;
+barfoo _TECHMAP_REPLACE_.blah (i, o, j);
+endmodule
+EOT
+design -stash techmap
+
+read_verilog <<EOT
+module top(input i, output o);
+sub s0(i, o);
+endmodule
+EOT
+
+techmap -map %techmap
+select -assert-any w:s0.asdf
+select -assert-any c:s0.blah