diff options
author | Lofty <dan.ravensloft@gmail.com> | 2022-03-28 15:51:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 15:51:04 +0100 |
commit | c1057cb3e0a3b6ed85ae1b15865c51a96c30d4f9 (patch) | |
tree | 744da78cf804eef4f9b9b2bfa00a1fd851820532 | |
parent | 421192f1cb932465d8aaa61832efdd5488e2325a (diff) | |
parent | 5ac32ea68c0122d21c0bc837263372f25911ea46 (diff) | |
download | yosys-c1057cb3e0a3b6ed85ae1b15865c51a96c30d4f9.tar.gz yosys-c1057cb3e0a3b6ed85ae1b15865c51a96c30d4f9.tar.bz2 yosys-c1057cb3e0a3b6ed85ae1b15865c51a96c30d4f9.zip |
Merge pull request #3194 from Ravenslofty/abc9-flow3mfs
abc9: add flow3mfs script
-rw-r--r-- | passes/techmap/abc9.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/passes/techmap/abc9.cc b/passes/techmap/abc9.cc index 1f00fc3e7..fe0802d70 100644 --- a/passes/techmap/abc9.cc +++ b/passes/techmap/abc9.cc @@ -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 { |