IAE Academy

GATE 2018 EE Q.36: solution and answer

GATE 2018 · EEQ.36 · 2 marks · MCQ

Which one of the following statements is true about the digital circuit shown in the figure

GATE 2018 EE question 36: Three D flip-flops sit side by side.Tap to open full size
Figure from the GATE 2018 EE paper. It is part of the question.
Figure description

Three D flip-flops sit side by side. The figure does not name them; this solution calls them FF1, FF2 and FF3 from left to right. Each has a D input, a clock input C and one output Q. The clocks are edge-triggered (triangle symbol, no inversion bubble), so they trigger on the positive edge. All three clock inputs C are tied to one input, f_IN. Q of FF1 drives D of FF2, Q of FF2 drives D of FF3, and Q of FF3 is the circuit output f_OUT. A 2-input NAND gate sits above the flip-flops, drawn facing left with its bubble on the output. One input comes from Q3 (the f_OUT line) and the other from Q2 (the line from Q2 to D3). The NAND output goes back to D of FF1. So D1 = NAND(Q2, Q3), D2 = Q1 and D3 = Q2.

  1. (A)

    It can be used for dividing the input frequency by 3.

  2. (B)

    It can be used for dividing the input frequency by 5.

  3. (C)

    It can be used for dividing the input frequency by 7.

  4. (D)

    It cannot be reliably used as a frequency divider due to disjoint internal cycles.

Answer and solution

ANSWER

(B) It can be used for dividing the input frequency by 5.

Official answer: BSource: Official answer key, GATE 2018 EE (IIT Guwahati)

  1. Read the circuit as a 3-bit shift register with NAND feedback. A prime () means complement. The inputs are , and . A D flip-flop's next state equals its D input, so , and .

  2. Start from . Here , so . The next state is .

  3. At , , so the next state is . At , , so and the next state is .

  4. At , , so the next state is . At , , so the next state is , which is where we started. The main cycle is and it has 5 states.

  5. Option (D) is about lock-out, so check the three unused states. , which joins the cycle. , because makes . , which joins the cycle. None of them forms a separate loop, so there are no disjoint cycles and the counter starts itself from any power-up state.

  6. The output is . Around the cycle it reads and repeats every 5 clock pulses. So , with a duty cycle of .

  7. The circuit is a self-starting mod-5 counter, so it divides the input frequency by 5. The answer is (B).

KEY IDEA

A shift register with feedback is a counter. Its division ratio is the length of the state cycle, which you find by stepping through the next-state equations , , . Here the cycle has 5 states. To rule out lock-out, check where every unused state goes. All three unused states here lead into the main cycle, so the counter starts itself and divides by 5.

WATCH OUT FOR

Seeing three flip-flops and assuming divide-by-3 (a ring counter) or divide-by-7/8. Another trap is picking (D) without tracing the unused states. , and all feed into the 5-state cycle, so there is no disjoint loop. A third slip is reading the NAND inputs as and instead of and .

From the GATE 2018 EE paper. Every question of this paper · Download the full paper · All 30 Sequential questions, with notes

More Sequential questions