CSE 140 Lecture 12 Combinational Standard Modules
CK Cheng CSE Dept. UC San Diego
1
CSE 140 Lecture 12 Combinational Standard Modules CK Cheng CSE - - PowerPoint PPT Presentation
CSE 140 Lecture 12 Combinational Standard Modules CK Cheng CSE Dept. UC San Diego 1 Part III. Standard Modules Interconnect Modules: 1. Decoder, 2. Encoder 3. Multiplexer, 4. Demultiplexer 2 Multiplexer Definition Logic Diagram
1
2
3
4
Processors Decoder: Decode the address to assert the addressed device Mux: Select the inputs according to the index addressed by the control signals P1 Memory Bank
Mux
P2 Pk
Demux
Decoder
Mux
Data Address
Address k Address 2 Address 1 Data 1 Data k
Arbiter n n-m m 2m
5
6
7
E: Enable y: Output S: Selector or Address D0 D1 1 Data input
8
E =1 y S=1 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
9
En y S1 S0 D0 D1 D2 D3 1 2 3
10
Y D0 S D1
D1 Y D0 S S 00 01 1 Y 11 10 D0 D1 1 1 1 1 Y = D0S + D1S
11
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
00
01 10 11
12
13
14
En
S2 S1 S0 1 2 3 4 5 6 7
S1 S0 1 2 3
15
1 a
16
1 a
17
1 a
18
1 a b
1
19
20
1 a
D0(b,c) D1(b,c)
21
22
E 1 3 2 1 0
E
24
>> 2 4 4 A3 A2 A1 A0 Y3 Y2 Y1 Y0 shamt1:0
00 01 10 11
S1:0 S1:0 S1:0 S1:0
00 01 10 11 00 01 10 11 00 01 10 11
2
O or 1 shift O or 2 shift O or 4 shift
y 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
26