signorm: remove $input cells when leaving

This commit is contained in:
Emil J. Tywoniak
2026-09-17 14:13:57 +02:00
parent 5938e03e5d
commit 6dd987ee3c
+7
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;