mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	fixed a bug in subcircuit library with cells that have connections to itself
This commit is contained in:
		
							parent
							
								
									38469e7686
								
							
						
					
					
						commit
						d229324420
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue