mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-03 21:09:12 +00:00 
			
		
		
		
	Fixed $macc simlib model for zero-config
This commit is contained in:
		
							parent
							
								
									b86410b2ab
								
							
						
					
					
						commit
						6644e27cd4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -820,7 +820,7 @@ function integer my_clog2;
 | 
			
		|||
	end
 | 
			
		||||
endfunction
 | 
			
		||||
 | 
			
		||||
localparam integer num_bits = CONFIG[3:0];
 | 
			
		||||
localparam integer num_bits = CONFIG[3:0] > 0 ? CONFIG[3:0] : 1;
 | 
			
		||||
localparam integer num_ports = (CONFIG_WIDTH-4) / (2 + 2*num_bits);
 | 
			
		||||
localparam integer num_abits = my_clog2(A_WIDTH) > 0 ? my_clog2(A_WIDTH) : 1;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue