Format macc.v
authorEddie Hung <eddie@fpgeh.com>
Thu, 19 Sep 2019 18:02:14 +0000 (11:02 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 19 Sep 2019 18:02:14 +0000 (11:02 -0700)
tests/ice40/macc.v

index 6c3676c8314064a5c351a43e26f2beb4f569ab9d..757c36a664963c824b4f3e774bdc76c789dafee5 100644 (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