CSE 140: Components and Design Techniques for Digital Systems Lecture 9: Sequential Networks: Implementation
CK Cheng
- Dept. of Computer Science and Engineering
University of California, San Diego
1
CSE 140: Components and Design Techniques for Digital Systems - - PowerPoint PPT Presentation
CSE 140: Components and Design Techniques for Digital Systems Lecture 9: Sequential Networks: Implementation CK Cheng Dept. of Computer Science and Engineering University of California, San Diego 1 Implementation Format and Tool
CK Cheng
University of California, San Diego
1
2
3
C1 C2
CLK x(t) y(t)
Mealy Machine C1 C2
CLK x(t) y(t)
Moore Machine
S(t) S(t)
4
D
x
Q
5
CLK x(t) y(t)
Q(t)
6
7
x(t) Q(t)
CLK
id x(t) Q(t) Q(t+1) 1 1 1 1 2 1 3 1 1
8
x(t) Q(t)
CLK
Q(t)
id x(t) Q(t) T(t) Q(t+1) 1 1 1 1 1 1 2 1 1 3 1 1 1 id x(t) Q(t) Q(t+1) 1 1 1 1 2 1 1 3 1 1
T(t)
9
x(t) Q(t)
CLK
Q(t)
id x(t) Q(t) T(t) Q(t+1) 1 1 1 1 1 1 2 1 1 3 1 1 1
10
11
12
13
1 1 1 1 PS NS Q(t) Q(t+1)
1 1 1 1 PS D Q(t) Q(t+1)
14
1 1 1 1 PS NS Q(t) Q(t+1)
1 1 1 1 PS T Q(t) Q(t+1)
15
00 1 01 1 PS JK Q(t)
10 1 1 11 1
Q Q’ C1 J K T
16
Q
id 1 2 3 4 5 6 7 J(t) 1 1 1 1 K(t) 1 1 1 1 Q(t) 1 1 1 1 Q(t+1) 1 1 1 1 T(t) 1 1 1 1
T(t) = Q(t) XOR ( J(t)Q’(t) + K’(t)Q(t))
17
1. State table: y(t)= f(Q(t), x(t)), Q(t+1)= g(x(t),Q(t)) 2. Excitation table of F-Fs:
3. From 1 & 2, we derive excitation table
4. Use K-map to derive combinational logic implementation.
i.e. Q(t+1)(t) = JQ’(t)+K’Q(t)
1 1 1 1 PS NS Q(t) Q(t+1)
0 2 6 4 1 3 7 5
Q(t)
J
0 0 1 1 0 1 1 0
K
Q Q’ J K T
18
19
20
S0 S1 S2 S3
PS
Next state
S1 S2 S3 S0 State Table
S0 S1 S2 S3
21
S0 S1 S2 S3
S1 S2 S3 S0 State Table
S0 S1 S2 S3
State Table with Assigned Encoding
0 0 0 1 1 0 1 1
Current
01 10 11 00
Next
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
Excitation table
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
Excitation table
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
Excitation table
Q1(t+1) = T1(t) Q’1(t)+T’1(t)Q1(t)
25
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
Excitation table
26
T Q Q’ T Q Q’
Q0 Q1 1 T1
27