mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-20 21:03:40 +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;
|
assign c = reg_tmp_c;
|
||||||
always @(posedge clk)
|
always @(posedge clk)
|
||||||
begin
|
begin
|
||||||
if(set)
|
if(set)
|
||||||
begin
|
begin
|
||||||
reg_tmp_c <= 0;
|
reg_tmp_c <= 0;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
reg_tmp_c <= a * b + c;
|
reg_tmp_c <= a * b + c;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
endmodule
|
endmodule
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue