aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/coolrunner2/synth_coolrunner2.cc
diff options
context:
space:
mode:
authorJim Lawson <ucbjrl@berkeley.edu>2019-02-11 12:43:46 -0800
committerJim Lawson <ucbjrl@berkeley.edu>2019-02-11 12:43:46 -0800
commit311396860b7380e5dc68e66c17d5083d1953fe3f (patch)
treec5146a20e59acc342dfe414e1b35fdfe419b9e81 /techlibs/coolrunner2/synth_coolrunner2.cc
parent76696e80041dc5b8f4ba986f4f83d6e7b6854e96 (diff)
parente112d2fbf5a31f00ef19e6d05f28fecc1e9c56b9 (diff)
downloadyosys-311396860b7380e5dc68e66c17d5083d1953fe3f.tar.gz
yosys-311396860b7380e5dc68e66c17d5083d1953fe3f.tar.bz2
yosys-311396860b7380e5dc68e66c17d5083d1953fe3f.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'techlibs/coolrunner2/synth_coolrunner2.cc')
-rw-r--r--techlibs/coolrunner2/synth_coolrunner2.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/techlibs/coolrunner2/synth_coolrunner2.cc b/techlibs/coolrunner2/synth_coolrunner2.cc
index a5dac3566..21bbcaef4 100644
--- a/techlibs/coolrunner2/synth_coolrunner2.cc
+++ b/techlibs/coolrunner2/synth_coolrunner2.cc
@@ -111,7 +111,7 @@ struct SynthCoolrunner2Pass : public ScriptPass
extra_args(args, argidx, design);
if (!design->full_selection())
- log_cmd_error("This comannd only operates on fully selected designs!\n");
+ log_cmd_error("This command only operates on fully selected designs!\n");
log_header(design, "Executing SYNTH_COOLRUNNER2 pass.\n");
log_push();
@@ -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");