Hardware interview practice
Distinguish Mealy and Moore Output Behavior
A synchronous controller must raise `detect` for a recognized input pattern. One implementation derives `detect` from the registered state only; another derives it from registered state and the current input bit. Which statement correctly compares the two implementations?
Choose one
Answer choices
- A. The state-only output is Moore style; the state-plus-current-input output is Mealy style, which can respond without waiting for another state update but needs care to prevent input-driven output glitches.
- B. A Moore machine is always faster and uses fewer states than the equivalent Mealy machine.
- C. The state-only output is Mealy style, while the state-plus-input output is Moore style.
- D. Both are Moore style because both controllers contain a registered state; output equations do not affect the classification.
