mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	flowmap: don't break if that creates a k+2 (and larger) LUT either.
Fixes #1405.
This commit is contained in:
		
							parent
							
								
									1d148491c5
								
							
						
					
					
						commit
						eef32195bd
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -1050,7 +1050,7 @@ struct FlowmapWorker
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				auto cut_inputs = cut_lut_at_gate(lut, lut_gate);
 | 
									auto cut_inputs = cut_lut_at_gate(lut, lut_gate);
 | 
				
			||||||
				pool<RTLIL::SigBit> gate_inputs = cut_inputs.first, other_inputs = cut_inputs.second;
 | 
									pool<RTLIL::SigBit> gate_inputs = cut_inputs.first, other_inputs = cut_inputs.second;
 | 
				
			||||||
				if (gate_inputs.empty() && (int)other_inputs.size() == order)
 | 
									if (gate_inputs.empty() && (int)other_inputs.size() >= order)
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					if (debug_relax)
 | 
										if (debug_relax)
 | 
				
			||||||
						log("      Breaking would result in a (k+1)-LUT.\n");
 | 
											log("      Breaking would result in a (k+1)-LUT.\n");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue