Skip to content
Official PYQ · 2001

GATE CS 2001 Q2.12 — Sequential Circuits

Explain with AI

Consider the circuit given below with initial state Q0=1,Q1=Q2=0Q_0=1, Q_1=Q_2=0. The state of the circuit is given by the value 4Q2+2Q1+Q04Q_2+2Q_1+Q_0

Which one of the following is correct state sequence of the circuit?

Choose one option
View worked solution

Answer: B

The given circuit is a 3-bit Linear Feedback Shift Register (LFSR). By analyzing the connections of the flip-flops, we can determine the next-state equations for each flip-flop:

  • Q2+=Q1Q_2^+ = Q_1 (value of Q1Q_1 is shifted into Q2Q_2)
  • Q1+=Q0Q_1^+ = Q_0 (value of Q0Q_0 is shifted into Q1Q_1)
  • Q0+=Q2⊕Q1Q_0^+ = Q_2 \oplus Q_1 (feedback is the XOR of Q2Q_2 and Q1Q_1)

The state of the circuit is represented in decimal as 4Q2+2Q1+Q04Q_2 + 2Q_1 + Q_0, which corresponds to the binary representation (Q2Q1Q0)2(Q_2 Q_1 Q_0)_2.

Starting with the initial state Q2Q1Q0=0012Q_2 Q_1 Q_0 = 001_2 (Decimal 11):

  1. State 1 (0012001_2):
    • Q2+=0Q_2^+ = 0, Q1+=1Q_1^+ = 1, Q0+=0⊕0=0Q_0^+ = 0 \oplus 0 = 0
    • Next State: 0102=2010_2 = 2
  2. State 2 (0102010_2):
    • Q2+=1Q_2^+ = 1, Q1+=0Q_1^+ = 0, Q0+=0⊕1=1Q_0^+ = 0 \oplus 1 = 1
    • Next State: 1012=5101_2 = 5
  3. State 5 (1012101_2):
    • Q2+=0Q_2^+ = 0, Q1+=1Q_1^+ = 1, Q0+=1⊕0=1Q_0^+ = 1 \oplus 0 = 1
    • Next State: 0112=3011_2 = 3
  4. State 3 (0112011_2):
    • Q2+=1Q_2^+ = 1, Q1+=1Q_1^+ = 1, Q0+=0⊕1=1Q_0^+ = 0 \oplus 1 = 1
    • Next State: 1112=7111_2 = 7
  5. State 7 (1112111_2):
    • Q2+=1Q_2^+ = 1, Q1+=1Q_1^+ = 1, Q0+=1⊕1=0Q_0^+ = 1 \oplus 1 = 0
    • Next State: 1102=6110_2 = 6
  6. State 6 (1102110_2):
    • Q2+=1Q_2^+ = 1, Q1+=0Q_1^+ = 0, Q0+=1⊕1=0Q_0^+ = 1 \oplus 1 = 0
    • Next State: 1002=4100_2 = 4
  7. State 4 (1002100_2):
    • Q2+=0Q_2^+ = 0, Q1+=0Q_1^+ = 0, Q0+=1⊕0=1Q_0^+ = 1 \oplus 0 = 1
    • Next State: 0012=1001_2 = 1 (cycles back)

Thus, the correct state sequence is 1,2,5,3,7,6,41, 2, 5, 3, 7, 6, 4.

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

Published
Report a correction
Keep exploringMore Sequential Circuits questions