Digital clock implementation (verilog version)