Fsm-based Digital Design Using Verilog Hdl