mirror of https://github.com/YosysHQ/yosys.git
fixed a bug in subcircuit library with cells that have connections to itself
This commit is contained in:
parent
38469e7686
commit
d229324420
|
@ -1064,7 +1064,10 @@ class SubCircuit::SolverWorker
|
|||
assert(haystack.adjMatrix.at(j).count(haystackNeighbour) > 0);
|
||||
int haystackEdgeType = haystack.adjMatrix.at(j).at(haystackNeighbour);
|
||||
|
||||
for (const auto &otherCandidate : portmapCandidates[needleNeighbour]) {
|
||||
std::set<std::map<std::string, std::string>> &candidates =
|
||||
i == needleNeighbour ? thisCandidates : portmapCandidates[needleNeighbour];
|
||||
|
||||
for (const auto &otherCandidate : candidates) {
|
||||
if (diCache.compare(needleEdgeType, haystackEdgeType, testCandidate, otherCandidate))
|
||||
goto found_match;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue