From: Eddie Hung Date: Mon, 6 Jan 2020 20:29:13 +0000 (-0800) Subject: Revert "scc command to ignore blackboxes" X-Git-Tag: working-ls180~849^2~61 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f13ab823fcfc52c91013eb45f0c3886ed8bcc40;p=yosys.git Revert "scc command to ignore blackboxes" This reverts commit 32695e5032fcaa932a67f63946ae5e2a1edc8d65. --- diff --git a/passes/cmds/scc.cc b/passes/cmds/scc.cc index dd26f8258..99f4fbae8 100644 --- a/passes/cmds/scc.cc +++ b/passes/cmds/scc.cc @@ -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()) {