![Page 1: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/1.jpg)
CO
UNIT-I
![Page 2: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/2.jpg)
2
Multiplexers:• A multiplexer selects information from an input
line and directs the information to an output line
• A typical multiplexer has– n selection control inputs (Sn - 1, … S0)
– 2n information data inputs (I2n
- 1, … I0)– one output Y
![Page 3: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/3.jpg)
3
Multiplexers (continued)• A multiplexer can be designed to have
– n selection inputs– m information inputs with m < 2n
![Page 4: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/4.jpg)
Design of a 2/1 Mux
• 2/1 mux Block Diagram• Truth Table
D1
D0
S
OS D1 D0 O
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 1
![Page 5: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/5.jpg)
A Single Bit 4-to-1 Line Multiplexer
4-to-1-Line Multiplexer
I0
I1
I2
I3
I0
I1
I2
I3
![Page 6: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/6.jpg)
Uses of Multiplexers
– Used in data communications for several computers to communicate over 1 line
– Used in radio to select one channel from many– Used to route data within a computer– Used for function generation
![Page 7: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/7.jpg)
Demultiplexer
• Takes one input• Out to one of 2n possible outputs
1-to-4-Line Demultiplexer
![Page 8: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/8.jpg)
Encoder
• Encoder is the opposite of decoder• 2n inputs
– or less – 10 inputs in “Decimal to BCD” encoder: I0, I1, I2, I3, …, I9
• n outputs– 4 output lines “Decimal to BCD”encoder
![Page 9: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/9.jpg)
Truth Table: 8-to-3 Binary Encoder
![Page 10: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/10.jpg)
Decoders
• Typically n inputs and 2n outputs • The output line corresponding to the input
code is high
1-to-2 Line Decoder
![Page 11: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/11.jpg)
11
• 2-to-4-Line Decoder
Note that the 2-4-line made up of 2 1-to-2- line decoders and 4 AND gates.
Decoder Examples
A1
0
0
1
1
A0
0
1
0
1
D0
1
0
0
0
D1
0
1
0
0
D2
0
0
1
0
D3
0
0
0
1
(a)
D0 A1 A0
D1 A1 A0
D2 A1 A0
D3 A1 A0
(b)
A1
A0
=
=
=
=
![Page 12: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/12.jpg)
2-to-4 Decoder with Enable
![Page 13: CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has](https://reader036.vdocuments.site/reader036/viewer/2022082713/5697bf731a28abf838c7f319/html5/thumbnails/13.jpg)
Uses for Decoders
• Binary number might serve to select some operation– Computer operation codes are encoded
• Decoder lines might select add operation, or subtract operation, or multiply operation, etc.
• Memory address lines