Lecture 13: Sequential Networks – Flip flops and Finite State Machines
CSE 140: Components and Design Techniques for Digital Systems
Diba Mirza
- Dept. of Computer Science and Engineering
University of California, San Diego
1
Lecture 13: Sequential Networks Flip flops and Finite State - - PowerPoint PPT Presentation
Lecture 13: Sequential Networks Flip flops and Finite State Machines CSE 140: Components and Design Techniques for Digital Systems Diba Mirza Dept. of Computer Science and Engineering University of California, San Diego 1 T Flip-Flop
Diba Mirza
University of California, San Diego
1
2
3
4
5
6
7
8
9
10
Combinational
RTL: Register-Transfer Level Description
11
12
Active Inactive
13
14
CLK Q1 Q0
15
16
CLK
17
S0 S1 S2 S3
Q1(t) Q0(t) Q1(t+1) Q0(t+1) Current state Next State S0 S1 S1 S2 S2 S3 S3 S0
18
Q1(t) Q0(t) Q1(t+1) Q0(t+1) 1 1 1 1 1 1 1 1
PI Q: Which of the following is the likely structure of the circuit realization of the counter Q0(t) Q1(t)
D Q Q’ D Q Q’
Combinational circuit Combinational circuit
Q0(t) Q1(t)
Q D Q Q’
Combinational circuit
19
Q1(t) Q0(t) Q1(t+1) Q0(t+1) 1 1 1 1 1 1 1 1
Q0(t) Q1(t)
D Q Q’ D Q Q’
Combinational circuit D0(t) = Q0(t)’ D1(t) = Q0(t) Q1(t)’ + Q0(t)’ Q1(t)
20
Q1(t) Q0(t) Q1(t+1) Q0(t+1) 1 1 1 1 1 1 1 1
We store the current state using D-flip flops so that:
don’t change while the next output is being computed
the clock Q0(t) Q1(t)
D Q Q’ D Q Q’
Q0(t+1) = Q0(t)’ Q1(t+1) = Q0(t) Q1(t)’ + Q0(t)’ Q1(t)
21
22
id Q1(t) Q0(t) T1(t) T0(t) Q1(t+1) Q0(t+1) 1 1 1 1 2 1 1 1 3 1 1
Q0(t) Q1(t)
T Q Q’ T Q Q’
Combinational circuit
23
id Q1(t) Q0(t) T1(t) T0(t) Q1(t+1) Q0(t+1) 1 1 1 1 1 1 1 2 1 1 1 1 3 1 1 1 1
Q0(t) Q1(t)
T Q Q’ T Q Q’
24
id Q1(t) Q0(t) T1(t) T0(t) Q1(t+1) Q0(t+1) 1 1 1 1 1 1 1 2 1 1 1 1 3 1 1 1 1
Q0(t) Q1(t)
T Q Q’ T Q Q’
25
T Q Q’ T Q Q’
Q0 Q1 1 T1
26
id Q1(t) Q0(t) J1(t) K1(t) J0(t) K0(t) Q1(t+1) Q0(t+1) 1 1 1 1 2 1 1 1 3 1 1
Q0(t) Q1(t)
Q Q’ Q Q’
Combinational circuit
27
id Q1(t) Q0(t) J1(t) K1(t) J0(t) K0(t) Q1(t+1) Q0(t+1) X 1 1 1 1 X 1 2 1 X 1 1 3 1 1 X 1
Q0(t) Q1(t)
Q Q’ Q Q’
Combinational circuit
28
id Q1(t) Q0(t) J1(t) K1(t) J0(t) K0(t) Q1(t+1) Q0(t+1) X 1 X 1 1 1 1 X X 1 1 2 1 X 1 X 1 1 3 1 1 X 1 X 1
Q0(t) Q1(t)
Q Q’ Q Q’
Combinational circuit
29
id Q1(t) Q0(t) J1(t) K1(t) J0(t) K0(t) Q1(t+1) Q0(t+1) X 1 X 1 1 1 1 X X 1 1 2 1 X 1 X 1 1 3 1 1 X 1 X 1
Q0(t) Q1(t)
Q Q’ Q Q’
Combinational circuit