diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2020-07-05 18:50:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-05 18:50:25 +0200 |
commit | b5f3b70cfeed9421e6d0daa3a1ef968b2b670bc2 (patch) | |
tree | 84279022039b5fdb534607c31d96230afe444f2f /techlibs/ice40/synth_ice40.cc | |
parent | 372521ca56c2ca27bb562098aa65b4e457959e77 (diff) | |
parent | 1fc8c3a0d1b2e78c7c12123674732d516a0f5a9b (diff) | |
download | yosys-b5f3b70cfeed9421e6d0daa3a1ef968b2b670bc2.tar.gz yosys-b5f3b70cfeed9421e6d0daa3a1ef968b2b670bc2.tar.bz2 yosys-b5f3b70cfeed9421e6d0daa3a1ef968b2b670bc2.zip |
Merge pull request #2236 from YosysHQ/mwk/dfflegalize-ice40
ice40: Use dfflegalize.
Diffstat (limited to 'techlibs/ice40/synth_ice40.cc')
-rw-r--r-- | techlibs/ice40/synth_ice40.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/techlibs/ice40/synth_ice40.cc b/techlibs/ice40/synth_ice40.cc index 6464368eb..4ddb6ca70 100644 --- a/techlibs/ice40/synth_ice40.cc +++ b/techlibs/ice40/synth_ice40.cc @@ -358,15 +358,14 @@ struct SynthIce40Pass : public ScriptPass run("dff2dffe -direct-match $_DFF_*"); if (min_ce_use >= 0) { run("opt_merge"); - run(stringf("dff2dffe -unmap-mince %d", min_ce_use)); - run("simplemap t:$dff"); } - if ((abc9 && dff) || help_mode) - run("zinit -all w:* t:$_DFF_?_ t:$_DFFE_??_ t:$_SDFF*", "(only if -abc9 and -dff"); + if (nodffe) + run(stringf("dfflegalize -cell $_DFF_?_ 0 -cell $_DFF_?P?_ 0 -cell $_SDFF_?P?_ 0 -cell $_DLATCH_?_ x")); + else + run(stringf("dfflegalize -cell $_DFF_?_ 0 -cell $_DFFE_?P_ 0 -cell $_DFF_?P?_ 0 -cell $_DFFE_?P?P_ 0 -cell $_SDFF_?P?_ 0 -cell $_SDFFCE_?P?P_ 0 -cell $_DLATCH_?_ x -mince %d", min_ce_use)); run("techmap -map +/ice40/ff_map.v"); run("opt_expr -mux_undef"); run("simplemap"); - run("ice40_ffinit"); run("ice40_ffssr"); run("ice40_opt -full"); } |