aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/coolrunner2/synth_coolrunner2.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-01-04 11:37:25 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2019-01-04 11:37:25 +0100
commit3b17c9018acd9d8bee12e653745fb2f00105bd58 (patch)
tree947a690b409a3fdcf582951a96a7d04ea537bba4 /techlibs/coolrunner2/synth_coolrunner2.cc
parentd98fe8ce1fbcd5480181ed22d43b850863191033 (diff)
downloadyosys-3b17c9018acd9d8bee12e653745fb2f00105bd58.tar.gz
yosys-3b17c9018acd9d8bee12e653745fb2f00105bd58.tar.bz2
yosys-3b17c9018acd9d8bee12e653745fb2f00105bd58.zip
Unify usage of noflatten among architectures
Diffstat (limited to 'techlibs/coolrunner2/synth_coolrunner2.cc')
-rw-r--r--techlibs/coolrunner2/synth_coolrunner2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/techlibs/coolrunner2/synth_coolrunner2.cc b/techlibs/coolrunner2/synth_coolrunner2.cc
index 810380d4a..21bbcaef4 100644
--- a/techlibs/coolrunner2/synth_coolrunner2.cc
+++ b/techlibs/coolrunner2/synth_coolrunner2.cc
@@ -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");