- Asked 7/22
- 2082 Baisakh · 10 marks
Sequence detector 1110 using T flip-flops
Short answer
Four states: A(00), B(01), C(10), D(11). T flip-flop inputs: T1 = Q1 X' + Q1' Q0 X, T0 = Q0 X' + Q0' X + Q1' X, output Z = Q1 Q0 X'.
Design a sequential machine that has a single input 'X' and single output 'Z'. The machine is required to give high output when it detects the serial sequence of 1110 message. Use T-flip-flops only.
A Mealy machine is used (output depends on present state and input), so fewer states are needed. Overlapping sequences are allowed: after a detection the machine keeps the useful tail of the input. One input X and one output Z; Z = 1 in the clock period in which the last bit of 1110 arrives. Flip-flops: T.
States (what has been received so far):
- A: reset / last bit 0
- B: "1" received
- C: "11" received
- D: "111" received (stays in D on more 1s)
State diagram (Mealy)
Arc label = input/output
A --1/0--> B --1/0--> C --1/0--> D --0/1--> A
A --0/0--> A (self loop)
B --0/0--> A
C --0/0--> A
D --1/0--> D (self loop)
State table
| Present state | Next, X=0 | Next, X=1 | Z (X=0) | Z (X=1) |
|---|---|---|---|---|
| A | A | B | 0 | 0 |
| B | A | C | 0 | 0 |
| C | A | D | 0 | 0 |
| D | A | D | 1 | 0 |
State assignment
A = 00, B = 01, C = 10, D = 11 (flip-flop outputs ).
Excitation table of T flip-flop
| Q | Q+ | T |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Transition and excitation table
| Q1 Q0 | X | Q1+ Q0+ | T1 | T0 | Z |
|---|---|---|---|---|---|
| 0 0 | 0 | 0 0 | 0 | 0 | 0 |
| 0 0 | 1 | 0 1 | 0 | 1 | 0 |
| 0 1 | 0 | 0 0 | 0 | 1 | 0 |
| 0 1 | 1 | 1 0 | 1 | 1 | 0 |
| 1 0 | 0 | 0 0 | 1 | 0 | 0 |
| 1 0 | 1 | 1 1 | 0 | 1 | 0 |
| 1 1 | 0 | 0 0 | 1 | 1 | 1 |
| 1 1 | 1 | 1 1 | 0 | 0 | 0 |
K-maps and simplified equations
T1 X=0 X=1
Q1Q0=00 0 0
Q1Q0=01 0 1
Q1Q0=11 1 0
Q1Q0=10 1 0
T0 X=0 X=1
Q1Q0=00 0 1
Q1Q0=01 1 1
Q1Q0=11 1 0
Q1Q0=10 0 1
Z X=0 X=1
Q1Q0=00 0 0
Q1Q0=01 0 0
Q1Q0=11 1 0
Q1Q0=10 0 0
Logic diagram
+-------------+ +----------+
X ------>| next-state |---->| FF1, FF0 |--+--> Q1, Q0
+----->| logic | | (CLK) | |
| +-------------+ +----------+ |
+-------------------<--------------------+
| +-------------+
+----->| output |----> Z
X ------>| logic |
+-------------+
Gates needed (two T flip-flops with a common clock; complements are taken from the outputs or NOT gates):
- : a 2-input AND for ; a 3-input AND for , combined in a 2-input OR gate.
- : a 2-input AND for ; a 2-input AND for ; a 2-input AND for , combined in a 3-input OR gate.
- : a 3-input AND for .
Check: input X = 0111101110 gives Z = 0000010001; Z = 1 at bits 6 and 10. Note D stays in D on 1, since "1111" still ends in "111".
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Sequence detector 1101 using T flip-flops · Digital Logic, chapter 9 · asked 7×
- Sequence detector 001 using JK flip-flops · Digital Logic, chapter 9 · asked 7×
- Sequence detector 011 using JK flip-flops · Digital Logic, chapter 9 · asked 7×
- Sequence detector 1101 using SR flip-flops · Digital Logic, chapter 9 · asked 7×
- Sequence detector 1001 using D flip-flops · Digital Logic, chapter 9 · asked 9×
- Sequence detector 1011 using T flip-flops · Digital Logic, chapter 9 · asked 2×
- Sequence detector 1010 using T flip-flops · Digital Logic, chapter 9 · asked 7×
- Sequence detector 1001 using SR flip-flops · Digital Logic, chapter 9 · asked 7×
- Sequence detector 101 using T flip-flops · Digital Logic, chapter 9
- Sequence detector 110 using JK flip-flops · Digital Logic, chapter 9 · asked 3×
- Sequence detector 1011 using JK flip-flops · Digital Logic, chapter 9 · asked 3×