mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Format macc.v
This commit is contained in:
		
							parent
							
								
									29d446d758
								
							
						
					
					
						commit
						65fa8adf6c
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -13,13 +13,13 @@ reg [(A_WIDTH + B_WIDTH - 1):0] reg_tmp_c;
 | 
			
		|||
assign c = reg_tmp_c;
 | 
			
		||||
always @(posedge clk)
 | 
			
		||||
begin
 | 
			
		||||
if(set)
 | 
			
		||||
begin
 | 
			
		||||
reg_tmp_c <= 0;
 | 
			
		||||
end
 | 
			
		||||
else
 | 
			
		||||
begin
 | 
			
		||||
reg_tmp_c <= a * b + c;
 | 
			
		||||
end
 | 
			
		||||
    if(set)
 | 
			
		||||
    begin
 | 
			
		||||
        reg_tmp_c <= 0;
 | 
			
		||||
    end
 | 
			
		||||
    else
 | 
			
		||||
    begin
 | 
			
		||||
        reg_tmp_c <= a * b + c;
 | 
			
		||||
    end
 | 
			
		||||
end
 | 
			
		||||
endmodule
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue