diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-04-26 14:31:59 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-04-26 14:31:59 -0700 |
commit | 1ea6d7920f14dc07b97adf48b166216d2be171d3 (patch) | |
tree | 382d461e5ccb80a39b47e8d6a6d6c1254259c207 /techlibs | |
parent | 408161ea3af78c747b9d45cd6482f2e4d9170085 (diff) | |
download | yosys-1ea6d7920f14dc07b97adf48b166216d2be171d3.tar.gz yosys-1ea6d7920f14dc07b97adf48b166216d2be171d3.tar.bz2 yosys-1ea6d7920f14dc07b97adf48b166216d2be171d3.zip |
Cleanup ice40
Diffstat (limited to 'techlibs')
-rw-r--r-- | techlibs/ice40/synth_ice40.cc | 10 |
1 files changed, 6 insertions, 4 deletions
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")) |