projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29d446d
)
Format macc.v
author
Eddie Hung
<eddie@fpgeh.com>
Thu, 19 Sep 2019 18:02:14 +0000
(11:02 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Thu, 19 Sep 2019 18:02:14 +0000
(11:02 -0700)
tests/ice40/macc.v
patch
|
blob
|
history
diff --git
a/tests/ice40/macc.v
b/tests/ice40/macc.v
index 6c3676c8314064a5c351a43e26f2beb4f569ab9d..757c36a664963c824b4f3e774bdc76c789dafee5 100644
(file)
--- a/
tests/ice40/macc.v
+++ b/
tests/ice40/macc.v
@@
-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