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…
- A.
It requires 3 flip-flops.
- B.
It has one external output.
- C.
The input of the leftmost flip-flop, which stores the most significant state bit, does not depend on the external input x.
- D.
The input of the rightmost flip-flop, which stores the least significant state bit, depends on the external input x.
Attempted by 296 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 | Next state |
|---|---|---|
0 | 00 | 00 |
0 | 01 | 01 |
0 | 10 | 10 |
0 | 11 | 11 |
1 | 00 | 01 |
1 | 01 | 10 |
1 | 10 | 11 |
1 | 11 | 00 |
There are four states, so the minimum register size is ⌈log2 4⌉ = 2 flip-flops.
When
x = 0, both bits hold their values. Whenx = 1,Q_0toggles on every clock. ThereforeD_0 = Q_0 XOR x.The bit
Q_1toggles only when counting is enabled andQ_0 = 1. ThereforeD_1 = Q_1 XOR (x AND Q_0).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
xthroughx AND Q_0.The LSB input expression includes
xdirectly throughQ_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.