State machine design techniques for Verilog and VHDL. State machine design techniques for Verilog and VHDL.