Format macc.v

This commit is contained in:
Eddie Hung 2019-09-19 11:02:14 -07:00
parent 29d446d758
commit 65fa8adf6c
1 changed files with 8 additions and 8 deletions

View File

@ -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