From: Eddie Hung Date: Fri, 26 Apr 2019 21:31:59 +0000 (-0700) Subject: Cleanup ice40 X-Git-Tag: yosys-0.9~142^2~10^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ea6d7920f14dc07b97adf48b166216d2be171d3;p=yosys.git Cleanup ice40 --- diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc index 8899bfcc4..5de33110a 100644 --- a/techlibs/ice40/synth_ice40.cc +++ b/techlibs/ice40/synth_ice40.cc @@ -225,11 +225,13 @@ struct SynthIce40Pass : public ScriptPass run("proc"); } - if (flatten && check_label("flatten", "(unless -noflatten)")) + if (check_label("flatten", "(unless -noflatten)")) { - run("flatten"); - run("tribuf -logic"); - run("deminout"); + if (flatten) { + run("flatten"); + run("tribuf -logic"); + run("deminout"); + } } if (check_label("coarse"))