Difference Between Mealy And Moore Machine

November 2022 · 4 minute read

What Is Mealy Machine?

In the theory of computation, a Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs.

Mealy machine can be described by a 6 tuple (Q, δ, Ʃ, O, X, q0 ) where:

What You Need To Know About Mealy Machine

What Is Moore Machine?

In the theory of computation, a Moore machine is a finite-state machine whose output values are determined only by its current state. A Moore machine can be described as by a 6 tuple (Q, δ, Ʃ, O, X, q0 ) where:

What You Need To Know About Moore Machine

Difference Between Mealy And Moore Machine  In Tabular Form

BASIS OF COMPARISONMEALY MACHINEMOORE MACHINE
DescriptionMealy machine changes its output based on its current input and present state.  Output of Moore machine only depends on its current state and not on the current input.  
StatesMealy machine will have same or fewer states than Moore machine.  It has more states than Mealy machine.  
OutputOutput is placed on transition.  Output is placed on transition.  
Value Of Output FunctionThe value of the output function is a function of the transitions and the changes, when the input logic on the present state is done.  The value of the output function is a function of the current state and the changes at the clock edges, whenever state changes occur.  
Reaction To InputsMealy machines react faster to inputs. They generally react in the same clock cycle.  More logic is required to decode the output resulting in more circuit delays. They generally react one clock cycle later.
Output And StateAsynchronous output generation through the state changes synchronous to the clock.  Both output and state change synchronous to the clock edge.  
States RequirementGenerally requires fewer states for synthesis.  Generally requires more states for synthesis.  
Hardware RequirementRequires less hardware to design.  More hardware is required to design.  
CounterA counter is not a Mealy machine.  A counter is a Moore machine.  
DesignNot necessarily easy to design.  Easy to design.  
Previous article10 Difference Between Reflection And Refraction Of LightNext articleDifference Between BJT And FET

ncG1vNJzZmiumauupbXFn5yrnZ6YsrR6wqikaJyZm7OmvsSnmp5lkprBuLHEp2SmnZGhxm6tzZ1kpqefp7JuucCcn6KmlWQ%3D