mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-13 01:16:16 +00:00
Use only module->addCell() and module->remove() to create and delete cells
This commit is contained in:
parent
5826670009
commit
2bec47a404
35 changed files with 259 additions and 582 deletions
|
@ -81,8 +81,7 @@ static void replace_cell(RTLIL::Module *module, RTLIL::Cell *cell, std::string i
|
|||
module->name.c_str(), log_signal(Y), log_signal(out_val));
|
||||
// ILANG_BACKEND::dump_cell(stderr, "--> ", cell);
|
||||
module->connections.push_back(RTLIL::SigSig(Y, out_val));
|
||||
module->cells.erase(cell->name);
|
||||
delete cell;
|
||||
module->remove(cell);
|
||||
OPT_DID_SOMETHING = true;
|
||||
did_something = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue