A clocked sequential circuit using D flip-flops must repeatedly follow the…

2022

A clocked sequential circuit using D flip-flops must repeatedly follow the binary-state sequence 00 → 01 → 10 → 11 → 00 when the external input x = 1 and hold its current state when x = 0. Which statement about the circuit is correct?

Answer: D. The input of the rightmost flip-flop, which stores the least significant state bit, depends on the external input x.ConceptFor a D flip-flop, the input D is the bit’s next-state value at the active clock edge. An n-bit state register can encode 2n states. In a controlled…

  1. A.

    It requires 3 flip-flops.

  2. B.

    It has one external output.

  3. C.

    The input of the leftmost flip-flop, which stores the most significant state bit, does not depend on the external input x.

  4. D.

    The input of the rightmost flip-flop, which stores the least significant state bit, depends on the external input x.

Attempted by 290 students.

Show answer & explanation

Correct answer: D

Concept

For a D flip-flop, the input D is the bit’s next-state value at the active clock edge. An n-bit state register can encode 2n states. In a controlled binary up-counter, the least significant bit toggles whenever counting is enabled, while the next bit toggles only when counting is enabled and the current least significant bit is 1.

Application

Let Q_1 be the most significant bit and Q_0 the least significant bit. The required next states are:

x

Current state Q_1Q_0

Next state D_1D_0

0

00

00

0

01

01

0

10

10

0

11

11

1

00

01

1

01

10

1

10

11

1

11

00

  1. There are four states, so the minimum register size is ⌈log2 4⌉ = 2 flip-flops.

  2. When x = 0, both bits hold their values. When x = 1, Q_0 toggles on every clock. Therefore D_0 = Q_0 XOR x.

  3. The bit Q_1 toggles only when counting is enabled and Q_0 = 1. Therefore D_1 = Q_1 XOR (x AND Q_0).

  4. The specification defines the state bits and the control input x; it does not define a separate external output function.

Cross-check and contrast

  • Three flip-flops provide eight encodings, although the sequence contains four states.

  • One external output is not implied because no output function is specified.

  • The MSB input expression includes x through x AND Q_0.

  • The LSB input expression includes x directly through Q_0 XOR x.

Therefore, the correct statement is: the input of the rightmost flip-flop, which stores the least significant state bit, depends on the external input x.

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…