Lecture 10
Lecture 10
Lecture 10
A multiplexer circuit has a number of data inputs, one or more select inputs, and one
output.
It passes the signal value on one of the data inputs to the output.
The data input is selected by the values of the select inputs.
2-to-1 multiplexer
• The select input, s, chooses as
the output of the multiplexer
either input w0 or w1.
• Hence,
when s=0, the o/p becomes wo
when s=1, the o/p becomes w1
1
4-to-1 multiplexer
Four data inputs, w0, . . . ,w3, and two select inputs, s1 and s0.
2
Larger multiplexers can also be constructed from smaller multiplexers. For example, the
4-to-1 multiplexer can be built using three 2-to-1 multiplexers as illustrated below.
3
crossbar switch
A circuit that has n inputs and k outputs, whose sole function is to provide a capability
to connect any input to any output, is usually referred to as an n×k crossbar switch.
Implementing 2×2 crossbar using 2-to-1 multiplexers:
4
Synthesis of Logic Functions Using Multiplexers
5
By manipulating the truth table, f can be implemented by a single 2-to-1
multiplexer.
w1 in this example, is chosen as the
select input of the 2-to-1 multiplexer.
6
Example #2: Three-input majority function
Consider the truth table for the three-input majority function, f.
The truth table is modified to implement the function using a 4-to-1
multiplexer.
w1 and w2 are chosen as the multiplexer select inputs.
8
Exercise:
#1)* Implement the previous example using a 4-to-1 multiplexer. Give the Shannon’s
expansion in terms of two variables.
#2) Implement the three-input majority function using only 2-to-1 multiplexers. Use
Shannon’s expansion.
9
Demultiplexer
A demultiplexer is a circuit that performs the opposite function of multiplexer,
namely, placing the value of a single data input onto multiple data outputs.
1-to-4 demultiplexer
The data-input line goes to all of the AND gates. The two data-select lines enable
only one gate at a time, and the data appearing on the data-input line will pass
through the select gate to the associated data-output line.
10