A finite state machine (FSM), also known as finite state automation, is a computational model that can be implemented in hardware or software to model and simulate sequential logic. This computing model is based on a hypothetical machine with one or more states. Only one single state of this machine