mirror of
https://github.com/YosysHQ/yosys
synced 2026-04-15 08:44:11 +00:00
signorm: remove $input cells when leaving
This commit is contained in:
parent
3257b8ae1e
commit
bbf5b3c738
1 changed files with 7 additions and 0 deletions
|
|
@ -326,6 +326,13 @@ void RTLIL::Design::sigNormalize(bool enable)
|
|||
wire->driverCell_ = nullptr;
|
||||
wire->driverPort_ = IdString();
|
||||
}
|
||||
|
||||
// TODO inefficient?
|
||||
std::vector<Cell*> cells_snapshot = module->cells();
|
||||
for (auto cell : cells_snapshot) {
|
||||
if (cell->type == ID($input_port))
|
||||
module->remove(cell);
|
||||
}
|
||||
}
|
||||
|
||||
flagSigNormalized = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue