mirror of https://github.com/YosysHQ/yosys.git
Bugfix in "scc" command
This commit is contained in:
parent
2874914bcb
commit
914aa8a5d3
|
@ -163,16 +163,8 @@ struct SccWorker
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto cell : workQueue)
|
for (auto cell : workQueue)
|
||||||
cellToNextCell[cell] = sigToNextCells.find(cellToNextSig[cell]);
|
|
||||||
|
|
||||||
labelCounter = 0;
|
|
||||||
cellLabels.clear();
|
|
||||||
|
|
||||||
while (workQueue.size() > 0)
|
|
||||||
{
|
{
|
||||||
RTLIL::Cell *cell = *workQueue.begin();
|
cellToNextCell[cell] = sigToNextCells.find(cellToNextSig[cell]);
|
||||||
log_assert(cellStack.size() == 0);
|
|
||||||
cellDepth.clear();
|
|
||||||
|
|
||||||
if (!nofeedbackMode && cellToNextCell[cell].count(cell)) {
|
if (!nofeedbackMode && cellToNextCell[cell].count(cell)) {
|
||||||
log("Found an SCC:");
|
log("Found an SCC:");
|
||||||
|
@ -183,6 +175,16 @@ struct SccWorker
|
||||||
sccList.push_back(scc);
|
sccList.push_back(scc);
|
||||||
log("\n");
|
log("\n");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
labelCounter = 0;
|
||||||
|
cellLabels.clear();
|
||||||
|
|
||||||
|
while (!workQueue.empty())
|
||||||
|
{
|
||||||
|
RTLIL::Cell *cell = *workQueue.begin();
|
||||||
|
log_assert(cellStack.size() == 0);
|
||||||
|
cellDepth.clear();
|
||||||
|
|
||||||
run(cell, 0, maxDepth);
|
run(cell, 0, maxDepth);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue