3
0
Fork 0
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:
Clifford Wolf 2014-07-26 00:38:44 +02:00
parent 2bec47a404
commit 4755e14e7b
4 changed files with 17 additions and 20 deletions

View file

@ -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) {