mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	ice40_dsp: fix const handling
This commit is contained in:
		
							parent
							
								
									98d4355b82
								
							
						
					
					
						commit
						2b3a148fc4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -32,8 +32,8 @@ code sigA sigB sigH
 | 
			
		|||
		++i;
 | 
			
		||||
		return sig.extract(0, i);
 | 
			
		||||
	};
 | 
			
		||||
	sigA = unextend(port(mul, \A));
 | 
			
		||||
	sigB = unextend(port(mul, \B));
 | 
			
		||||
	sigA = port(mul, \A).is_fully_const() ? port(mul, \A) : unextend(port(mul, \A));
 | 
			
		||||
	sigB = port(mul, \B).is_fully_const() ? port(mul, \B) : unextend(port(mul, \B));
 | 
			
		||||
 | 
			
		||||
	SigSpec O;
 | 
			
		||||
	if (mul->type == $mul)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue