1
0
mirror of synced 2026-04-04 22:06:48 +00:00

flatten: redo signormalization to work around fanout issue

This commit is contained in:
Emil J. Tywoniak
2026-03-17 18:04:41 +01:00
parent 4c8b7818f4
commit 55189bc65c
2 changed files with 10 additions and 0 deletions

View File

@@ -379,6 +379,9 @@ struct RenamePass : public Pass {
break;
}
// TODO disable signorm due to rename I think?
design->sigNormalize(false);
if (flag_src)
{
extra_args(args, argidx, design);

View File

@@ -410,6 +410,8 @@ struct FlattenPass : public Pass {
}
extra_args(args, argidx, design);
bool was_signormed = design->flagSigNormalized;
RTLIL::Module *top = nullptr;
if (design->full_selection())
for (auto module : design->modules())
@@ -449,6 +451,11 @@ struct FlattenPass : public Pass {
design->remove(module);
}
if (was_signormed) {
// TODO inconvenient workaround for fanout out of sync
design->sigNormalize(false);
design->sigNormalize(true);
}
log_pop();
}
} FlattenPass;