Advanced Digital Logic Design Using Verilog State Machines And Synthesis For Fpgas