diff --git a/try_smg/counter.v b/try_smg/counter.v index dd57199..4a04b76 100644 --- a/try_smg/counter.v +++ b/try_smg/counter.v @@ -1,15 +1,14 @@ -module counter -( - input clk, enable, rst_n, - output reg [8-1:0] count -); - -always @ (posedge clk or negedge rst_n) -begin - if (!rst_n) - count <= 0; - else if (enable == 1'b1) - count <= count + 1; -end - +module counter +( + input clk, enable, rst_n, + output reg [8-1:0] count +); + +always @ (posedge clk or negedge rst_n) +begin + if (!rst_n) + count <= 0; + else if (enable == 1'b1) + count <= count + 1; +end endmodule \ No newline at end of file