diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-05-03 15:05:57 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-05-03 15:05:57 -0700 |
commit | d9c4644e88b916d1eadfd401abf297c0995b6462 (patch) | |
tree | c6355f3671d0399814f5e9257e7f5decdf906b7f /techlibs/ice40 | |
parent | 67005633e246e47683b11e13f08afb788bc9de02 (diff) | |
parent | c2e29ab809c5eb3ac89d50868d0e88d831c33d52 (diff) | |
download | yosys-d9c4644e88b916d1eadfd401abf297c0995b6462.tar.gz yosys-d9c4644e88b916d1eadfd401abf297c0995b6462.tar.bz2 yosys-d9c4644e88b916d1eadfd401abf297c0995b6462.zip |
Merge remote-tracking branch 'origin/master' into clifford/specify
Diffstat (limited to 'techlibs/ice40')
-rw-r--r-- | techlibs/ice40/synth_ice40.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc index 8899bfcc4..bb96d66d1 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")) @@ -239,6 +241,8 @@ struct SynthIce40Pass : public ScriptPass run("check"); run("opt"); run("wreduce"); + run("peepopt"); + run("opt_clean"); run("share"); run("techmap -map +/cmp2lut.v -D LUT_WIDTH=4"); run("opt_expr"); |