mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Fix for A_WIDTH == 2 but B_WIDTH==3
This commit is contained in:
		
							parent
							
								
									1fa2c36fbd
								
							
						
					
					
						commit
						26e461f47d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -179,7 +179,7 @@ module \$shiftx (A, B, Y);
 | 
			
		|||
        assign A_i[i] = A[i*2];
 | 
			
		||||
      \$shiftx  #(.A_SIGNED(A_SIGNED), .B_SIGNED(B_SIGNED), .A_WIDTH((A_WIDTH+1'd1)/2'd2), .B_WIDTH(B_WIDTH-1'd1), .Y_WIDTH(Y_WIDTH)) _TECHMAP_REPLACE_ (.A(A_i), .B(B[B_WIDTH-1:1]), .Y(Y));
 | 
			
		||||
    end
 | 
			
		||||
    else if (B_WIDTH < 3) begin
 | 
			
		||||
    else if (B_WIDTH < 3 || A_WIDTH == 2**2) begin
 | 
			
		||||
      wire _TECHMAP_FAIL_ = 1;
 | 
			
		||||
    end
 | 
			
		||||
    else if (B_WIDTH == 3) begin
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue