Revert "scc command to ignore blackboxes"
authorEddie Hung <eddie@fpgeh.com>
Mon, 6 Jan 2020 20:29:13 +0000 (12:29 -0800)
committerEddie Hung <eddie@fpgeh.com>
Mon, 6 Jan 2020 20:29:13 +0000 (12:29 -0800)
This reverts commit 32695e5032fcaa932a67f63946ae5e2a1edc8d65.

passes/cmds/scc.cc

index dd26f82586052082c6565d4b2cd4a6fb5ddab3d9..99f4fbae8799ff5c19c1b99d94154ab35c95d260 100644 (file)
@@ -301,10 +301,10 @@ struct SccPass : public Pass {
                RTLIL::Selection newSelection(false);
                int scc_counter = 0;
 
-               for (auto mod : design->modules())
-                       if (!mod->get_blackbox_attribute() && design->selected(mod))
+               for (auto &mod_it : design->modules_)
+                       if (design->selected(mod_it.second))
                        {
-                               SccWorker worker(design, mod, nofeedbackMode, allCellTypes, maxDepth);
+                               SccWorker worker(design, mod_it.second, nofeedbackMode, allCellTypes, maxDepth);
 
                                if (!setAttr.empty())
                                {