mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Move signal declarations to before first use
Signed-off-by: Jeff Goeders <jeff.goeders@gmail.com>
This commit is contained in:
		
							parent
							
								
									1b7ed719a5
								
							
						
					
					
						commit
						8be56960a2
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -2335,6 +2335,8 @@ parameter integer PREG = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// The multiplier.
 | 
					// The multiplier.
 | 
				
			||||||
wire signed [35:0] P_MULT;
 | 
					wire signed [35:0] P_MULT;
 | 
				
			||||||
 | 
					wire signed [17:0] A_MULT;
 | 
				
			||||||
 | 
					wire signed [17:0] B_MULT;
 | 
				
			||||||
assign P_MULT = A_MULT * B_MULT;
 | 
					assign P_MULT = A_MULT * B_MULT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// The cascade output.
 | 
					// The cascade output.
 | 
				
			||||||
| 
						 | 
					@ -2373,8 +2375,6 @@ always @(posedge CLK) begin
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// The register enables.
 | 
					// The register enables.
 | 
				
			||||||
wire signed [17:0] A_MULT;
 | 
					 | 
				
			||||||
wire signed [17:0] B_MULT;
 | 
					 | 
				
			||||||
assign A_MULT = (AREG == 1) ? A_REG : A;
 | 
					assign A_MULT = (AREG == 1) ? A_REG : A;
 | 
				
			||||||
assign B_MULT = (BREG == 1) ? B_REG : B_MUX;
 | 
					assign B_MULT = (BREG == 1) ? B_REG : B_MUX;
 | 
				
			||||||
assign P = (PREG == 1) ? P_REG : P_MULT;
 | 
					assign P = (PREG == 1) ? P_REG : P_MULT;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue