diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2023-04-04 10:56:17 +0200 |
---|---|---|
committer | myrtle <gatecat@ds0.me> | 2023-04-06 09:10:14 +0200 |
commit | 9e9fae19662b87c773f435849ea6f2591e9e8900 (patch) | |
tree | e82f28fafa42a367df151c30f19ad6387e4664d9 /techlibs/machxo2/synth_machxo2.cc | |
parent | d5a405d3b4c6ab364ec5c9372502a94b84e2fcb1 (diff) | |
download | yosys-9e9fae19662b87c773f435849ea6f2591e9e8900.tar.gz yosys-9e9fae19662b87c773f435849ea6f2591e9e8900.tar.bz2 yosys-9e9fae19662b87c773f435849ea6f2591e9e8900.zip |
Add more DFF types
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")) |