1 //-----------------------------------------------------
2 // Design Name : clk_div
3 // File Name : clk_div.v
4 // Function : Divide by two counter
5 // Coder : Deepak Kumar Tala
6 //-----------------------------------------------------
8 module clk_div (clk_in, enable,reset, clk_out);
9 // --------------Port Declaration-----------------------
14 //--------------Port data type declaration-------------
17 //--------------Internal Registers----------------------
19 //--------------Code Starts Here-----------------------
20 always @ (posedge clk_in)
23 end else if (enable) begin