GateAI
Combinational and Sequential Circuits

GATE CSE 2025 Set 1 · Q60

NAT2 marksMedium

Time

Consider the given sequential circuit designed using D-Flip-flops. The circuit is initialized with some value (initial state). The number of distinct states the circuit will go through before returning back to the initial state is ________ . (Answer in integer)

GATE CSE 2025 Set 1 Q60 diagram

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 8 (±1) (±1)

Combinational and Sequential Circuits

The given circuit is a 4-bit Johnson counter (also known as a twisted ring counter or Moebius counter), where:

  • D0=Q3‾D_0 = \overline{Q_3}

  • D1=Q0D_1 = Q_0

  • D2=Q1D_2 = Q_1

  • D3=Q2D_3 = Q_2

For an nn-bit Johnson counter, the main cycle consists of 2n2n distinct states. Here, n=4n = 4, so the cycle length is:

2×4=82 \times 4 = 8

For example, starting with the initial state (Q0,Q1,Q2,Q3)=0000(Q_0, Q_1, Q_2, Q_3) = 0000:

  1. 00000000 (initial state)

  2. 10001000

  3. 11001100

  4. 11101110

  5. 11111111

  6. 01110111

  7. 00110011

  8. 00010001

  9. 00000000 (returns to initial state)

Depending on the interpretation of the phrase *"distinct states the circuit will go through before returning back to the initial state"*:

  • If counting the intermediate distinct states visited after the start and strictly before the return state: 7 states.

  • If counting all distinct states visited in the cycle (including the initial state): 8 states.

Hence, both 7 and 8 are accepted according to the official key.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Combinational and Sequential Circuits previous year question is Q60 of the GATE CSE 2025 Set 1 paper. Find more GATE CSE PYQs on Combinational and Sequential Circuits in Digital Logic, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Combinational and Sequential Circuits PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Combinational and Sequential Circuits in GATE CSE

Combinational and Sequential Circuits has 32 GATE CSE PYQs across 22 papers from 2011 to 2026. 4 of them are 2-mark NAT questions like this one, and GATE CSE 2025 Set 1 has 2.

How GATE tests Combinational and Sequential Circuits

More from GATE CSE 2025 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2025 Set 1 · Q60 · NAT

Consider the given sequential circuit designed using D-Flip-flops. The circuit is initialized with some value (initial state). The number of distinct states the circuit will go through before returning back to the initial state is … (Answer in integer)

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.