diff --git a/techlibs/coolrunner2/coolrunner2_sop.cpp b/techlibs/coolrunner2/coolrunner2_sop.cc similarity index 100% rename from techlibs/coolrunner2/coolrunner2_sop.cpp rename to techlibs/coolrunner2/coolrunner2_sop.cc diff --git a/techlibs/coolrunner2/synth_coolrunner2.cpp b/techlibs/coolrunner2/synth_coolrunner2.cc similarity index 98% rename from techlibs/coolrunner2/synth_coolrunner2.cpp rename to techlibs/coolrunner2/synth_coolrunner2.cc index 791bcffbe..ae4b84335 100644 --- a/techlibs/coolrunner2/synth_coolrunner2.cpp +++ b/techlibs/coolrunner2/synth_coolrunner2.cc @@ -129,7 +129,7 @@ struct SynthCoolrunner2Pass : public ScriptPass run(stringf("hierarchy -check %s", help_mode ? "-top " : top_opt.c_str())); } - if (flatten && check_label("flatten", "(unless -noflatten)")) + if (check_label("flatten", "(unless -noflatten)") && flatten) { run("proc"); run("flatten");