abc9: update to =_$abc9_flops pattern which includes whiteboxes
authorEddie Hung <eddie@fpgeh.com>
Thu, 23 Apr 2020 00:37:07 +0000 (17:37 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 14 May 2020 17:33:57 +0000 (10:33 -0700)
passes/techmap/abc9.cc

index 60a88f72941e43e80e7a95308ee567876271a175..06097a6f722939a9b457e11fac5697f683e6fbe2 100644 (file)
@@ -323,8 +323,8 @@ struct Abc9Pass : public ScriptPass
                                                active_design->selected_active_module.clear();
                                        }
                                        run("abc9_ops -prep_dff_unmap", "                                                  (only if -dff)");
-                                       run("design -copy-to $abc9 *_$abc9_flop", "                                        (only if -dff)"); // copy submod out
-                                       run("delete *_$abc9_flop", "                                                       (only if -dff)");
+                                       run("design -copy-to $abc9 =*_$abc9_flop", "                                       (only if -dff)"); // copy submod out
+                                       run("delete =*_$abc9_flop", "                                                      (only if -dff)");
                                }
                        }
                        run("design -stash $abc9_map");
@@ -333,7 +333,7 @@ struct Abc9Pass : public ScriptPass
                        if (help_mode)
                                run("techmap -wb -max_iter 1 -map %$abc9_map -map +/abc9_map.v [-D DFF]", "(option if -dff)");
                        else
-                               run(stringf("techmap -wb -max_iter 1 -map %$abc9_map -map +/abc9_map.v %s", dff_mode ? "-D DFF" : ""));
+                               run(stringf("techmap -wb -max_iter 1 -map %%$abc9_map -map +/abc9_map.v %s", dff_mode ? "-D DFF" : ""));
                        run("design -delete $abc9_map");
                }