1 //-----------------------------------------------------
2 // Design Name : up_down_counter
3 // File Name : up_down_counter.v
4 // Function : Up down counter
5 // Coder : Deepak Kumar Tala
6 //-----------------------------------------------------
7 module up_down_counter (
8 out , // Output of the counter
9 up_down , // up_down control for counter
13 //----------Output Ports--------------
15 //------------Input Ports--------------
16 input up_down, clk, reset;
17 //------------Internal Variables--------
19 //-------------Code Starts Here-------
21 if (reset) begin // active high reset
23 end else if (up_down) begin