aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/techmap.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-09-30 16:33:40 -0700
committerEddie Hung <eddie@fpgeh.com>2019-09-30 16:33:40 -0700
commite529872b0170ba269db2d00c96108c86b260e864 (patch)
treef11a17dbd61b5f5519c7b693c800870e58556bcf /passes/techmap/techmap.cc
parent5e9ae90cbba4e9c2abfe5d6a1b90c2256aae1615 (diff)
downloadyosys-e529872b0170ba269db2d00c96108c86b260e864.tar.gz
yosys-e529872b0170ba269db2d00c96108c86b260e864.tar.bz2
yosys-e529872b0170ba269db2d00c96108c86b260e864.zip
Remove need for $currQ port connection
Diffstat (limited to 'passes/techmap/techmap.cc')
-rw-r--r--passes/techmap/techmap.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/passes/techmap/techmap.cc b/passes/techmap/techmap.cc
index 08a1af2d5..c2dc9b959 100644
--- a/passes/techmap/techmap.cc
+++ b/passes/techmap/techmap.cc
@@ -256,6 +256,14 @@ struct TechmapWorker
if (w->attributes.count(ID(src)))
w->add_strpool_attribute(ID(src), extra_src_attrs);
}
+
+
+ if (it.second->name.begins_with("\\_TECHMAP_REPLACE_")) {
+ IdString replace_name = stringf("%s%s", orig_cell_name.c_str(), it.second->name.c_str() + strlen("\\_TECHMAP_REPLACE_"));
+ Wire *replace_w = module->addWire(replace_name, it.second);
+ module->connect(replace_w, w);
+ }
+
design->select(module, w);
}