synth_ice40: split `map_gates` off `fine`.
authorwhitequark <whitequark@whitequark.org>
Thu, 6 Dec 2018 12:02:42 +0000 (12:02 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 6 Dec 2018 12:04:39 +0000 (12:04 +0000)
techlibs/ice40/synth_ice40.cc

index 931a190e7c81ad7e8632eea45c52427f0b8369c1..37b924dfd39c71497b06a9dbf60e65ab4353231f 100644 (file)
@@ -240,6 +240,10 @@ struct SynthIce40Pass : public ScriptPass
                        run("opt -fast -mux_undef -undriven -fine");
                        run("memory_map");
                        run("opt -undriven -fine");
+               }
+
+               if (check_label("map_gates"))
+               {
                        if (nocarry)
                                run("techmap");
                        else