mirror of https://github.com/YosysHQ/yosys.git
scc to use design->selected_modules() which avoids black/white-boxes
This commit is contained in:
parent
4f13ab823f
commit
b70e87137d
|
@ -301,10 +301,9 @@ struct SccPass : public Pass {
|
||||||
RTLIL::Selection newSelection(false);
|
RTLIL::Selection newSelection(false);
|
||||||
int scc_counter = 0;
|
int scc_counter = 0;
|
||||||
|
|
||||||
for (auto &mod_it : design->modules_)
|
for (auto mod : design->selected_modules())
|
||||||
if (design->selected(mod_it.second))
|
|
||||||
{
|
{
|
||||||
SccWorker worker(design, mod_it.second, nofeedbackMode, allCellTypes, maxDepth);
|
SccWorker worker(design, mod, nofeedbackMode, allCellTypes, maxDepth);
|
||||||
|
|
||||||
if (!setAttr.empty())
|
if (!setAttr.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue