mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-30 16:03:17 +00:00
Added copy-constructor-like module->addCell(name, other) method
This commit is contained in:
parent
2bec47a404
commit
4755e14e7b
4 changed files with 17 additions and 20 deletions
|
@ -162,10 +162,7 @@ struct SubmodWorker
|
|||
}
|
||||
|
||||
for (RTLIL::Cell *cell : submod.cells) {
|
||||
RTLIL::Cell *new_cell = new_mod->addCell(cell->name, cell->type);
|
||||
new_cell->connections = cell->connections;
|
||||
new_cell->parameters = cell->parameters;
|
||||
new_cell->attributes = cell->attributes;
|
||||
RTLIL::Cell *new_cell = new_mod->addCell(cell->name, cell);
|
||||
for (auto &conn : new_cell->connections)
|
||||
for (auto &bit : conn.second)
|
||||
if (bit.wire != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue