abc9: add flow3mfs script
authorLofty <dan.ravensloft@gmail.com>
Thu, 10 Feb 2022 18:28:35 +0000 (18:28 +0000)
committerLofty <dan.ravensloft@gmail.com>
Thu, 10 Feb 2022 18:28:35 +0000 (18:28 +0000)
passes/techmap/abc9.cc

index 1f00fc3e7f114315af8888937ba42572b84a5e85..fe0802d70888f0bde417473b20d7342e8a049571 100644 (file)
@@ -74,12 +74,18 @@ struct Abc9Pass : public ScriptPass
                        /* Comm3 */ "&synch2 -K 6 -C 500; &if -m "/*"-E 5"*/" {C} {W} {D} {R} -v; &mfs "/*"-W 4 -M 500 -C 7000"*/"; &save;"\
                        /* Comm2 */ "&dch -C 500; &if -m {C} {W} {D} {R} -v; &mfs "/*"-W 4 -M 500 -C 7000"*/"; &save; "\
                        "&load";
-               // Based on ABC's &flow3
+               // Based on ABC's &flow3 -m
                RTLIL::constpad["abc9.script.flow3"] = "+&scorr; &sweep;" \
                        "&if {C} {W} {D}; &save; &st; &syn2; &if {C} {W} {D} {R} -v; &save; &load;"\
                        "&st; &if {C} -g -K 6; &dch -f; &if {C} {W} {D} {R} -v; &save; &load;"\
                        "&st; &if {C} -g -K 6; &synch2; &if {C} {W} {D} {R} -v; &save; &load;"\
                        "&mfs";
+               // As above, but with &mfs calls as in the original &flow3
+               RTLIL::constpad["abc9.script.flow3mfs"] = "+&scorr; &sweep;" \
+                       "&if {C} {W} {D}; &save; &st; &syn2; &if {C} {W} {D} {R} -v; &save; &load;"\
+                       "&st; &if {C} -g -K 6; &dch -f; &if {C} {W} {D} {R} -v; &mfs; &save; &load;"\
+                       "&st; &if {C} -g -K 6; &synch2; &if {C} {W} {D} {R} -v; &mfs; &save; &load;"\
+                       "&mfs";
        }
        void help() override
        {