mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
Remove need for $currQ port connection
This commit is contained in:
parent
5e9ae90cbb
commit
e529872b01
4 changed files with 129 additions and 114 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue