Finite State Machines: Differences between Mealy and Moore Machines?

AI Thread Summary
Mealy and Moore machines are two types of finite state machines with distinct characteristics. A Moore machine's output is determined solely by its current state, while a Mealy machine's output depends on both its current state and input. This allows Mealy machines to react to inputs more quickly, making them suitable for scenarios requiring rapid response, such as fault detection. However, Mealy machines can be more complex to implement and test due to potential issues with input timing and signal integrity. Understanding these differences is crucial for selecting the appropriate machine for specific applications.
Schfra
Messages
47
Reaction score
0
There are two types of finite state machines (at least that I know about), mealy and Moore.

What are the practical differences between them. I understand that mealy machines take the input into account for the output logic, but are the two machines used for different purposes? Or can the same thing be designed with either machine?

Can somebody clarify what the significance is if there being two different types of finite state machines, one that takes the input into account for output logic and one that does not?
 
Last edited by a moderator:
Engineering news on Phys.org
A Moore FSM has output which depend only on its current state. A Mealy FSM has output which are dependent on current state and the inputs. What this usually means in practice is a Moore FSM can only update its output on clock boundaries while a Mealy can change its output at any time.

For a contrived example: Say you wanted to run a very slow clock to save power but you also wanted to react to a fault quickly. In this case a Mealy FSM may be a good choice. The disadvantage of the Mealy FSM is they can be harder to implement and test. In the example given, one would have to take extra care to handle the cases where the fault signal was a runt pulse or toggled at a rate faster than the clock. Those are just two very common ones. There could be even more issues depending on the exact implementation details.
 
Last edited:
  • Like
Likes Schfra
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top