mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	share: fix infinite loop in find_terminal_bits on $mux loop
This commit is contained in:
		
							parent
							
								
									f445479374
								
							
						
					
					
						commit
						01d2bfcf00
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -87,7 +87,7 @@ struct ShareWorker
 | 
			
		|||
			queue_bits.clear();
 | 
			
		||||
 | 
			
		||||
			for (auto &pbit : portbits) {
 | 
			
		||||
				if (pbit.cell->type == ID($mux) || pbit.cell->type == ID($pmux)) {
 | 
			
		||||
				if ((pbit.cell->type == ID($mux) || pbit.cell->type == ID($pmux)) && visited_cells.count(pbit.cell) == 0) {
 | 
			
		||||
					pool<RTLIL::SigBit> bits = modwalker.sigmap(pbit.cell->getPort(ID::S)).to_sigbit_pool();
 | 
			
		||||
					terminal_bits.insert(bits.begin(), bits.end());
 | 
			
		||||
					queue_bits.insert(bits.begin(), bits.end());
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue