Skip to content

Commit da2e021

Browse files
KrystalDelusionRavenslofty
authored andcommitted
abc9.cc: Use -r for &dch
Avoids "ABC: The command has to terminate. Boxes are not in a topological order." error during `&if`.
1 parent 637665c commit da2e021

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

passes/techmap/abc9.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ struct Abc9Pass : public ScriptPass
3838
Abc9Pass() : ScriptPass("abc9", "use ABC9 for technology mapping") { }
3939
void on_register() override
4040
{
41-
RTLIL::constpad["abc9.script.default"] = "+&scorr; &sweep; &dc2; &dch -f; &ps; &if {C} {W} {D} {R} -v; &mfs";
42-
RTLIL::constpad["abc9.script.default.area"] = "+&scorr; &sweep; &dc2; &dch -f; &ps; &if {C} {W} {D} {R} -a -v; &mfs";
41+
RTLIL::constpad["abc9.script.default"] = "+&scorr; &sweep; &dc2; &dch -f -r; &ps; &if {C} {W} {D} {R} -v; &mfs";
42+
RTLIL::constpad["abc9.script.default.area"] = "+&scorr; &sweep; &dc2; &dch -f -r; &ps; &if {C} {W} {D} {R} -a -v; &mfs";
4343
RTLIL::constpad["abc9.script.default.fast"] = "+&if {C} {W} {D} {R} -v";
4444
// Based on ABC's &flow
4545
RTLIL::constpad["abc9.script.flow"] = "+&scorr; &sweep;" \

0 commit comments

Comments
 (0)