to know what a state machine is...
refer any basic digital electronics book..
or their is a web site that might help you https://www.google.com
and if you want to learn how to code a state machine in verilog...
refer to any basic book on verilog..such as sameer palnitkar's primer
regards..