diff options
Diffstat (limited to 'techlibs/machxo2/synth_machxo2.cc')
-rw-r--r-- | techlibs/machxo2/synth_machxo2.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/techlibs/machxo2/synth_machxo2.cc b/techlibs/machxo2/synth_machxo2.cc index 3008527e0..fb4d7b9d0 100644 --- a/techlibs/machxo2/synth_machxo2.cc +++ b/techlibs/machxo2/synth_machxo2.cc @@ -233,7 +233,15 @@ struct SynthMachXO2Pass : public ScriptPass if (check_label("map_ffs")) { - run("dfflegalize -cell $_DFF_P_ 0"); + run("opt_clean"); + std::string dfflegalize_args = " -cell $_DFF_?_ 01 -cell $_DFF_?P?_ r -cell $_SDFF_?P?_ r"; + run("dfflegalize" + dfflegalize_args); + run("techmap -D NO_LUT -map +/machxo2/cells_map.v"); + run("opt_expr -undriven -mux_undef"); + run("simplemap"); + run("ecp5_gsr"); + run("attrmvcp -copy -attr syn_useioff"); + run("opt_clean"); } if (check_label("map_luts")) |