GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 2.5

Meaning of the Mealy-machine output

Digital Logic · Finite-State Machine Design · Full GATE CSE 2002 paper

GATE 2002, Q2.5 2 marks · MCQ
Report issue

Finite-State Machine Design

Question 2.5, GATE 2002: A finite-state machine starts in A. Transition labels are input/output, with a one-bit input and two-bit output. The diagram gives A --0/00--> A, A --1/01--> B, B --0/01--> A, B --1/10--> C, C --0/01--> A, and C --1/10--> C. What does it do?
(A) Output the sum of the current and preceding input bits.
(B) Output 01 whenever the input sequence contains 11.
(C) Output 00 whenever the input sequence contains 10.
(D) None of these.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step 1: Verify all possible current/previous bit pairs.

Step 2: Previous0/current 0 produces 00; previous 0/current 1 produces 01; previous 1/current 0 produces 01; previous 1/current 1 produces 10. State A is the previous-zero class and B,C the previous-one class. On input 110, the output is 01,10,01, so claims of 01 for the final 11 pair or 00 for 10 are contradicted directly.

Conclusion: State A represents previous input 0 (also the initial assumed bit); states B and C both represent previous input 1. From A, input 0 outputs 00 and input 1 outputs 01. From B or C, input 0 outputs 01 and input 1 outputs 10. These are the two-bit encodings of previous bit plus current bit, A. The extra distinction between B and C does not change this behavior.

Original paper, page 4