1
0
mirror of synced 2026-05-22 21:40:08 +00:00

signorm: remove $input cells when leaving

This commit is contained in:
Emil J. Tywoniak
2026-03-17 16:37:00 +01:00
parent 5c5df513d1
commit b42136aa8c

View File

@@ -327,6 +327,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;