mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Drive $[ABCD] explicitly
This commit is contained in:
		
							parent
							
								
									3012e9eebc
								
							
						
					
					
						commit
						50b68777d3
					
				
					 1 changed files with 21 additions and 15 deletions
				
			
		|  | @ -373,13 +373,20 @@ module DSP48E1 ( | ||||||
|         wire [47:0] $C; |         wire [47:0] $C; | ||||||
|         wire [24:0] $D; |         wire [24:0] $D; | ||||||
| 
 | 
 | ||||||
|         if (PREG != 0) |         if (PREG == 0) begin | ||||||
|             assign P = $P, PCOUT = $PCOUT; |             if (MREG == 0 && AREG == 0) assign $A = A; | ||||||
|         else begin |             else assign $A = 30'bx; | ||||||
|             if (AREG == 0) assign $A = A; |             if (MREG == 0 && BREG == 0) assign $B = B; | ||||||
|             if (BREG == 0) assign $B = B; |             else  assign $B = 18'bx; | ||||||
|  |             if (MREG == 0 && DREG == 0) assign $D = D; | ||||||
|  |             else assign $D = 25'bx; | ||||||
|  | 
 | ||||||
|             if (CREG == 0) assign $C = C; |             if (CREG == 0) assign $C = C; | ||||||
|             if (DREG == 0) assign $D = D; |             else assign $C = 48'bx; | ||||||
|  |         end | ||||||
|  |         else begin | ||||||
|  |             assign $A = 30'bx, $B = 18'bx, $C = 48'bx, $D = 25'bx; | ||||||
|  |         end | ||||||
| 
 | 
 | ||||||
|         if (USE_MULT == "MULTIPLY" && USE_DPORT == "FALSE") |         if (USE_MULT == "MULTIPLY" && USE_DPORT == "FALSE") | ||||||
|             $__ABC9_DSP48E1_MULT dsp_comb(.$A($A), .$B($B), .$C($C), .$D($D), .$P($P), .$PCIN(PCIN), .$PCOUT($PCOUT), .P(P), .PCOUT(PCOUT)); |             $__ABC9_DSP48E1_MULT dsp_comb(.$A($A), .$B($B), .$C($C), .$D($D), .$P($P), .$PCIN(PCIN), .$PCOUT($PCOUT), .P(P), .PCOUT(PCOUT)); | ||||||
|  | @ -389,6 +396,5 @@ module DSP48E1 ( | ||||||
|             $__ABC9_DSP48E1 dsp_comb(.$A($A), .$B($B), .$C($C), .$D($D), .$P($P), .$PCIN(PCIN), .$PCOUT($PCOUT), .P(P), .PCOUT(PCOUT)); |             $__ABC9_DSP48E1 dsp_comb(.$A($A), .$B($B), .$C($C), .$D($D), .$P($P), .$PCIN(PCIN), .$PCOUT($PCOUT), .P(P), .PCOUT(PCOUT)); | ||||||
|         else |         else | ||||||
|             $error("Invalid DSP48E1 configuration"); |             $error("Invalid DSP48E1 configuration"); | ||||||
|         end |  | ||||||
|     endgenerate |     endgenerate | ||||||
| endmodule | endmodule | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue