-- Moore State Machine with explicit state encoding -- dowload from: www.fpga.com.cn & www.pld.com.cn