Q146FreeSystemVerilog
Choose Mealy timing for an immediate match
Interview prompt
Question
A bit-stream detector stores whether the previous sampled bit was one. At each accepting edge, the receiver samples combinational match and the known, stable bit_in before the history register updates. It must recognize a second consecutive one at that edge. Which output style directly implements the stated timing? The combinational value need not remain unchanged after the history update.
Choose one
Answer choices
- A. A combinational output equal only to bit_in, with no state term.
- B. A Moore output asserted one cycle after entering a separate matched state.
- C. A Mealy output equal to previous_was_one && bit_in.
- D. A Moore output that depends only on the no-previous-one state.
