diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-04-30 18:07:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 18:07:19 +0200 |
commit | 5bc4de077aa95862d77dff5ce0d4b5e4a5eda9ba (patch) | |
tree | 6a926310738ae81a1b98f74066e79f423310b33b /techlibs/ice40 | |
parent | 58e991a0eb36f0a5a23170e6818338efa7445a44 (diff) | |
parent | d9d50b0b0c4da21c9bf2b0f1499297368b808491 (diff) | |
download | yosys-5bc4de077aa95862d77dff5ce0d4b5e4a5eda9ba.tar.gz yosys-5bc4de077aa95862d77dff5ce0d4b5e4a5eda9ba.tar.bz2 yosys-5bc4de077aa95862d77dff5ce0d4b5e4a5eda9ba.zip |
Merge pull request #962 from YosysHQ/eddie/refactor_synth_xilinx
Refactor synth_xilinx to auto-generate doc
Diffstat (limited to 'techlibs/ice40')
-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")) |