mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +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
|
@ -226,10 +226,8 @@ struct FsmExpand
|
|||
merge_cell_into_fsm(c);
|
||||
}
|
||||
|
||||
for (auto c : merged_set) {
|
||||
module->cells.erase(c->name);
|
||||
delete c;
|
||||
}
|
||||
for (auto c : merged_set)
|
||||
module->remove(c);
|
||||
|
||||
if (merged_set.size() > 0 && !already_optimized)
|
||||
FsmData::optimize_fsm(fsm_cell, module);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue