Skip to content
Official PYQ · 2003

GATE CS 2003 Q44 — Sequential Circuits

Explain with AI

A 1-input\text{1-input}, 2-output\text{2-output} synchronous sequential circuit behaves as follows:

Let zk,nkz_k, n_k denote the number of 0’s0’s and 1’s1’s respectively in initial kk bits of the input

(zk+nk=k)(z_k+n_k=k). The circuit outputs 0000 until one of the following conditions holds.

  • zk−nk=2z_k-n_k=2. In this case, the output at the k-th and all subsequent clock ticks is 1010.
  • nk−zk=2n_k-z_k=2. In this case, the output at the k-th and all subsequent clock ticks is 0101.

What is the minimum number of states required in the state transition graph of the above circuit?

Choose one option
View worked solution

Answer: A

Let dk=zk−nkd_k = z_k - n_k represent the difference between the number of 00s and 11s after receiving kk bits of input. Initially, at k=0k=0, we have d0=0d_0 = 0.

At any step, receiving a 00 increases dkd_k by 11, and receiving a 11 decreases dkd_k by 11. The circuit tracks this difference until it reaches +2+2 or −2-2. We can define the states based on the value of dkd_k:

  • State S0S_0 (dk=0d_k = 0): The initial state. Output is 0000.
  • State S1S_1 (dk=+1d_k = +1): Output is 0000.
  • State S2S_2 (dk=−1d_k = -1): Output is 0000.
  • State S3S_3 (dk=+2d_k = +2): An absorbing state. Once reached, the output becomes 1010 and remains 1010 forever.
  • State S4S_4 (dk=−2d_k = -2): An absorbing state. Once reached, the output becomes 0101 and remains 0101 forever.

None of these 55 states can be merged because:

  • S3S_3 and S4S_4 have different outputs (1010 vs 0101).
  • S0,S1,S_0, S_1, and S2S_2 have different transitions. For example, on input 00, S1S_1 transitions to S3S_3 (output 1010), whereas S0S_0 transitions to S1S_1 (output 0000).

Thus, the minimum number of states required is 55.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Sequential Circuits questions