mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Only swap if B_WIDTH > A_WIDTH
This commit is contained in:
		
							parent
							
								
									1793e6018a
								
							
						
					
					
						commit
						91fcf034bc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -33,7 +33,7 @@ module \$mul (A, B, Y);
 | 
				
			||||||
	output [Y_WIDTH-1:0] Y;
 | 
						output [Y_WIDTH-1:0] Y;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	generate
 | 
						generate
 | 
				
			||||||
		if (A_WIDTH < B_WIDTH)
 | 
							if (B_WIDTH < A_WIDTH)
 | 
				
			||||||
			\$__mul_gen #(
 | 
								\$__mul_gen #(
 | 
				
			||||||
				.A_SIGNED(A_SIGNED),
 | 
									.A_SIGNED(A_SIGNED),
 | 
				
			||||||
				.B_SIGNED(B_SIGNED),
 | 
									.B_SIGNED(B_SIGNED),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue