mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-25 13:47:02 +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
|
@ -190,8 +190,7 @@ struct OptMuxtreeWorker
|
|||
continue;
|
||||
|
||||
if (live_ports.size() == 0) {
|
||||
module->cells.erase(mi.cell->name);
|
||||
delete mi.cell;
|
||||
module->remove(mi.cell);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -207,8 +206,7 @@ struct OptMuxtreeWorker
|
|||
{
|
||||
RTLIL::SigSpec sig_in = sig_ports.extract(live_ports[0]*sig_a.size(), sig_a.size());
|
||||
module->connections.push_back(RTLIL::SigSig(sig_y, sig_in));
|
||||
module->cells.erase(mi.cell->name);
|
||||
delete mi.cell;
|
||||
module->remove(mi.cell);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue