Comparison between Moore state machine and mealy state machine

Source: Internet
Author: User

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.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.