- 2078 Bhadra · 12 marks
Two-input sequential circuit using T
Short answer
A 2-bit counter with T flip-flops uses XY to select the counting mode. The excitation equations are T1 = Q0 X' Y' + Q0' Y + Q1 Q0' X + Q1' Q0 Y' + XY and T0 = Q1 Q0 + Q1 XY + Q1' Q0' Y' + Q1' X' + X' Y'.
Design a sequential circuit with T flip-flop and two inputs X and Y. If X=1 and Y=0 the circuit goes through 00 to 01 to 11 to 10. When X=Y=1, the circuit goes through the transition from 00 to 10 to 01 to 11. When X = 0 and Y=1, the circuit goes through 00 to 11 to 10 to 00. When X = Y = 0, the circuit 00 to 01 to 10 to 11 and repeats.
The circuit has 2 flip-flops (, = MSB), two control inputs X, Y, no separate output (the outputs are the states). It is a counter whose counting sequence is chosen by XY. Flip-flops: T.
Assumptions: each sequence returns to 00 after its last state (XY = 10: 10 → 00; XY = 11: 11 → 00; XY = 00: 11 → 00). For XY = 01 the state 01 is not in the given sequence, so it is taken to go to 00 (keeps the circuit from locking).
State diagram
Arc label = XY
00 -10-> 01 -10-> 11 -10-> 10 -10-> 00
00 -11-> 10 -11-> 01 -11-> 11 -11-> 00
00 -01-> 11 -01-> 10 -01-> 00
01 -01-> 00 (assumed)
00 -00-> 01 -00-> 10 -00-> 11 -00-> 00
State table (next state)
| Present | XY=00 | XY=01 | XY=10 | XY=11 |
|---|---|---|---|---|
| 00 | 01 | 11 | 01 | 10 |
| 01 | 10 | 00 | 11 | 11 |
| 10 | 11 | 00 | 00 | 01 |
| 11 | 00 | 10 | 10 | 00 |
Excitation table of T flip-flop
| Q | Q+ | T |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
T = 1 whenever the flip-flop must change ().
Transition and excitation table
| Q1 Q0 | X Y | Q1+ Q0+ | T1 | T0 |
|---|---|---|---|---|
| 0 0 | 0 0 | 0 1 | 0 | 1 |
| 0 0 | 0 1 | 1 1 | 1 | 1 |
| 0 0 | 1 0 | 0 1 | 0 | 1 |
| 0 0 | 1 1 | 1 0 | 1 | 0 |
| 0 1 | 0 0 | 1 0 | 1 | 1 |
| 0 1 | 0 1 | 0 0 | 0 | 1 |
| 0 1 | 1 0 | 1 1 | 1 | 0 |
| 0 1 | 1 1 | 1 1 | 1 | 0 |
| 1 0 | 0 0 | 1 1 | 0 | 1 |
| 1 0 | 0 1 | 0 0 | 1 | 0 |
| 1 0 | 1 0 | 0 0 | 1 | 0 |
| 1 0 | 1 1 | 0 1 | 1 | 1 |
| 1 1 | 0 0 | 0 0 | 1 | 1 |
| 1 1 | 0 1 | 1 0 | 0 | 1 |
| 1 1 | 1 0 | 1 0 | 0 | 1 |
| 1 1 | 1 1 | 0 0 | 1 | 1 |
K-maps and simplified equations
T1 XY=00 XY=01 XY=11 XY=10
Q1Q0=00 0 1 1 0
Q1Q0=01 1 0 1 1
Q1Q0=11 1 0 1 0
Q1Q0=10 0 1 1 1
T0 XY=00 XY=01 XY=11 XY=10
Q1Q0=00 1 1 0 1
Q1Q0=01 1 1 0 0
Q1Q0=11 1 1 1 1
Q1Q0=10 1 0 1 0
Logic diagram
+---------------+ T1 +------+
X ------>| T-input |------>| FF1 |--+-- Q1
Y ------>| logic | T0 +------+ |
+---->| (equations) |------>| FF0 |--+-- Q0
| +---------------+ +------+ |
| CLK to both FFs |
+------------ Q1, Q0 fed back ----------+
Gates needed:
- : a 3-input AND for ; a 2-input AND for ; a 3-input AND for ; a 3-input AND for ; a 2-input AND for , combined in a 5-input OR gate.
- : a 2-input AND for ; a 3-input AND for ; a 3-input AND for ; a 2-input AND for ; a 2-input AND for , combined in a 5-input OR gate.
Check: with XY = 10 from 00 the equations give 00 → 01 → 11 → 10 → 00; with XY = 11, 00 → 10 → 01 → 11 → 00, as required.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Edge triggered JK flip-flop circuit · Digital Logic, chapter 6
- Master-slave JK flip-flop · Digital Logic, chapter 6
- K-map Σ(0,1,4,8,10,11,12)+d, realize circuit · Digital Logic, chapter 3 · asked 2×
- Positive edge JK flip-flop and its drawbacks · Digital Logic, chapter 6
- Edge triggered SR flip-flop · Digital Logic, chapter 6 · asked 3×
- SR drawback; edge triggered JK flip-flop · Digital Logic, chapter 6 · asked 3×
- Combinational vs sequential; JK flip-flop · Basic Electronics Engineering, chapter 6
- VHDL entity declaration; T flip-flops circuit · Embedded System, chapter 9
- SR flip-flop operation · Basic Electronics Engineering, chapter 6 · asked 6×
- Types of flip-flops; JK flip-flop · Basic Electronics Engineering, chapter 6 · asked 2×