Common data questions

Common Data for Questions 50 and 51:

Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration.

Synchronous counter circuit with three D flip-flops P, Q, R, NOR gate generating D of Q from P and R, and AND gate generating D of R from Q and R-bar

Shared with question 50.

Question

If all the flip-flops were reset to 0 at power on, what is the total number of distinct outputs (states) represented by PQRPQR generated by the counter?

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2011 answer key

Solution

Trace the state transition sequence starting from reset state 000 until a state repeats.

  1. Next-state equations: P+=RP^+ = R, Q+=P+R‾Q^+ = \overline{P + R}, R+=Q⋅R‾R^+ = Q \cdot \overline{R}.
  1. Step 0 (initial reset): PQR=000PQR = 000
  • P+=0P^+ = 0
  • Q+=0+0‾=1Q^+ = \overline{0 + 0} = 1
  • R+=0⋅1=0R^+ = 0 \cdot 1 = 0
    Next state is 010010.
  1. Step 1: PQR=010PQR = 010
  • P+=0P^+ = 0
  • Q+=0+0‾=1Q^+ = \overline{0 + 0} = 1
  • R+=1⋅1=1R^+ = 1 \cdot 1 = 1
    Next state is 011011.
  1. Step 2: PQR=011PQR = 011
  • P+=1P^+ = 1
  • Q+=0+1‾=0Q^+ = \overline{0 + 1} = 0
  • R+=1⋅0=0R^+ = 1 \cdot 0 = 0
    Next state is 100100.
  1. Step 3: PQR=100PQR = 100
  • P+=0P^+ = 0
  • Q+=1+0‾=0Q^+ = \overline{1 + 0} = 0
  • R+=0⋅1=0R^+ = 0 \cdot 1 = 0
    Next state is 000000 (cycle repeats).
  1. The sequence of states visited is 000→010→011→100→000000 \to 010 \to 011 \to 100 \to 000. There are exactly 4 distinct states in the cycle.
Final answer

B

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2011 Computer Science and Information Technology (CS)
Question
51 of 65, printed as CS Q.51
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.