Main differences between mealy and Moore state machines
There are three types of state machines:
Moore state machine: the next State is determined only by the current state, that isSub-State = f (current situation, input), output = f (current situation );
Mealy state machine: the next state is related not only to the current state, but also to the current input value, that isSub-State = f (current situation, input), output = f (current situation, input );
Hybrid state machine.
The difference between the Moore and mealy state machines is that the output signal of the Moore state machine is directly decoded by the State Register, the mealy state machine is encoded as an output signal based on the current input signal and the current state to be converted into a secondary State. (From: http://hi.baidu.com/qdhdw/blog/item/454cb98f0865c2e7f01f36a9.html)
The output of the mooer state machine is only related to the current state, that is, the current state of the number determines the output, but is irrelevant to the input at this time. The input only determines the state change of the state machine, it does not affect the final output of the circuit (Note: The output here is not the output of the state machine, but the meaning of the current state, for example, the state machine that detects the 110 sequence, when the state machine jumps to sta_got110, the circuit will have an output signal. If it is "find", "find" will be a high level, and "find" will be a low level for other States. "Find" is the output of our final circuit. The value of "find" is related to the current status of the caster, but not to the output ). In a book, each State of the Moore state machine specifies that its output is independent of the input of the circuit.
The output of the mealy state machine is not only related to the current state, but also to the current output (likewise, do not mistakenly think that the output of the state machine can only be the state of the state machine ), that is, the current input and the current status jointly determine the current input.
The statuses of the mooer and mealy state machines are the same. The current statuses and inputs jointly determine what the next state is.