mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	lut2mux: handle 1-bit INIT constant in $lut cells.
This pass already handles INIT constants shorter than 2^width, but that was not done for the recursion base case.
This commit is contained in:
		
							parent
							
								
									88217d0157
								
							
						
					
					
						commit
						d1f2cb01dc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -32,7 +32,7 @@ int lut2mux(Cell *cell)
 | 
			
		|||
 | 
			
		||||
	if (GetSize(sig_a) == 1)
 | 
			
		||||
	{
 | 
			
		||||
		cell->module->addMuxGate(NEW_ID, lut[0], lut[1], sig_a, sig_y);
 | 
			
		||||
		cell->module->addMuxGate(NEW_ID, lut.extract(0)[0], lut.extract(1)[0], sig_a, sig_y);
 | 
			
		||||
	}
 | 
			
		||||
	else
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue