scc command to ignore blackboxes

This commit is contained in:
Eddie Hung 2020-01-02 16:06:39 -08:00
parent 7fe268fcdb
commit 32695e5032
1 changed files with 3 additions and 3 deletions

View File

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