flatten: redo signormalization to work around fanout issue
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user