3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-29 07:27:58 +00:00

Unify usage of noflatten among architectures

This commit is contained in:
Miodrag Milanovic 2019-01-04 11:37:25 +01:00
parent d98fe8ce1f
commit 3b17c9018a
4 changed files with 16 additions and 8 deletions

View file

@ -129,7 +129,7 @@ struct SynthCoolrunner2Pass : public ScriptPass
run(stringf("hierarchy -check %s", help_mode ? "-top <top>" : top_opt.c_str()));
}
if (check_label("flatten", "(unless -noflatten)") && flatten)
if (flatten && check_label("flatten", "(unless -noflatten)"))
{
run("proc");
run("flatten");