HDL & Verification
What characterizes a Mealy state machine?
- AOutputs depend only on the state and do not change until the next clock
- BOutputs depend on both current state and inputs, so input changes appear at the output within the same cycle
- CIt is combinational logic with no state
Show answer and explanation
Answer: B. Outputs depend on both current state and inputs, so input changes appear at the output within the same cycle
In a Mealy machine the output logic looks at inputs as well as the current state, so outputs change with inputs without waiting for a clock, reacting one cycle sooner. It may also need fewer states. But a combinational path runs from inputs to outputs, so input glitches can appear at outputs and timing paths get longer. Outputs are sometimes re-registered through flip-flops.
- A. That describes a Moore machine.
- B. Correct. It reacts faster but passes input glitches to outputs more easily.
- C. It is sequential logic with state.