Lecture 13: Standard Modules
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: Standard Modules CSE 140: Components and Design - - PowerPoint PPT Presentation
Lecture 13: Standard Modules CSE 140: Components and Design Techniques for Digital Systems Diba Mirza Dept. of Computer Science and Engineering University of California, San Diego 1 Decoder Application: universal set {Decoder, OR} Example:
Diba Mirza
University of California, San Diego
1
2
3
How many 2:4 decoders are required to implement the above function? A. One B. Two C. Three D. Four
4
How many 1:2 decoders are required to implement the above function? A. Three B. Four C. Six D. Seven
5
I0
y0 y1 y7
I1 I2
1 2 3 4 5 6 7
I0
y8 y9 y15
I1 I2
1 2 3 4 5 6 7
6
En
I2, I1, I0
En I2, I1, I0 I2, I1, I0 I5, I4, I3
7
8
Processors Decoder: Decode the address to assert the addressed device Mux: Select the inputs according to the index addressed by the control signals
Memory Bank
Mux
Demux
Decoder
Mux
Data Address
Address k Address 2 Address 1 Data 1 Data k
n n-m m 2m
9
10
y0 y1 y2
1 2 3 4 5 6 7
I0 I7
1 2
11
En I1 I3 I5 I7 y0 En I2 I3 I6 I7 y1 En I4 I5 I6 I7 y2 En I0 I1 I6 I7 A . .
12
13
Processors Decoder: Decode the address to assert the addressed device Mux: Select the inputs according to the index addressed by the control signals
Memory Bank
Mux
Demux
Decoder
Mux
Data Address
Address k Address 2 Address 1 Data 1 Data k
n n-m m 2m
En y S1 S0
1 2 3
14
15
En =1 y S=1
1
Y 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 S D0 Y D1 D1 D0 S Y 1 D1 D0 S
16
00
01 10 11
17
18
Id a b c f 0 0 0 0 1 1 0 0 1 1 2 0 1 0 - 3 0 1 1 0 4 1 0 0 0 5 1 0 1 0 6 1 1 0 0 7 1 1 1 1
19
Id a b c f 0 0 0 0 1 1 0 0 1 1 2 0 1 0 - 3 0 1 1 0 4 1 0 0 0 5 1 0 1 0 6 1 1 0 0 7 1 1 1 1 En
1 1 1
S2 S1 S0
1 2 3 4 5 6 7 20
S1 S0
21
Id a b c f 0 0 0 0 1 1 0 0 1 1 2 0 1 0 - 3 0 1 1 0 4 1 0 0 0 5 1 0 1 0 6 1 1 0 0 7 1 1 1 1
D0 (c) =1 D1 (c) =0 D2 (c) =0 D3 (c) =c
a 1 1 b 1 1 c = 0 1
1 1 D (c)
D0 (c) =1 D1 (c) =0 D2 (c) =0 D3 (c) =c
S1 S0
22
a
23
Id a b c f 0 0 0 0 1 1 0 0 1 1 2 0 1 0 - 3 0 1 1 0 4 1 0 0 0 5 1 0 1 0 6 1 1 0 0 7 1 1 1 1
b 1 c = 0 c = 1 1 l1(0) = 0 l1(c) = c
a
24
1
c b 0 0 0 1 c b
b 1 c = 0 c = 1 1 l1(0) = 0 l1(c) = c
a b
25
26
27