Professional Documents
Culture Documents
Coa Unit-2
Coa Unit-2
2.Demultiplexer:
Demultiplexer is a data distributor which takes a single input and gives several outputs.In
demultiplexer we have 1 input and 2n output lines where n is the selection line.
Difference between of Multiplexer and Demultiplexer :
Multiplexer Demultiplexer
Function A MUX selects several input signals A DEMUX takes a single input signal
and transmits them on a single and transmits it to one of several output
output line. lines.
Number of A MUX can have 'n' input lines, A DEMUX typically has a single (1) input
input lines where 'n' can be any number. line.
Number of A MUX has log2 (n) output lines A DEMUX has n output lines, where 'n'
output lines rounded up to the next integer can be any number.
value.
Selection A MUX has selection inputs used to A DEMUX has selection inputs used to
inputs select one of the input lines for select which output line the input signal
transmission to the output line. should be transmitted through.
Example A MUX is used for selecting one of A DEMUX is used for distributing a
several video inputs to display on a digital signal to multiple devices.
TV.
MUXs are used in data transmission, signal routing, memory addressing, and computer
networks. For example, a MUX can be used to select one of several video inputs to display on a
TV. DEMUXs, on the other hand, are used in memory decoding, signal routing, communication
systems, and computer networks. For instance, a DEMUX can be used to distribute a digital
signal to multiple devices.
What is a Multiplexer?
The multiplexer is a device that has multiple inputs and single line output. The
select lines determine which input is connected to the output, and also
increase the amount of data that can be sent over a network within a certain
time. It is also called a data selector.
Multiplexer
The 4X1 multiplexer comprises 4-input bits, 1- output bit, and 2- control bits.
The four input bits are namely 0, D1, D2, and D3, respectively; only one of the
input bits is transmitted to the output. The o/p ‘q’ depends on the value of
control input AB. The control bit AB decides which of the i/p data bit should
transmit the output. The following figure shows the 4X1 multiplexer circuit
diagram using AND gates. For example, when the control bits AB =00, then
the higher AND gates are allowed while remaining AND gates are restricted.
Thus, data input D0 is transmitted to the output ‘q”
4X1 Mux
If the control input is changed to 11, then all gates are restricted except the
bottom AND gate. In this case, D3 is transmitted to the output, and q=D0. If
the control input is changed to AB =11, all gates are disabled except the
bottom AND gate. In this case, D3 is transmitted to the output, and q = D3.
The best example of a 4X1 multiplexer is IC 74153. In this IC, the o/p is the
same as the i/p. Another example of a 4X1 multiplexer is IC 45352. In this IC,
the o/p is the compliment of the i/p
8-to-1 Multiplexer
The 8-to-1 multiplexer consists of 8 input lines, one output line, and 3
selection lines.
8-to-1 Mux
For the combination of a selection input, the data line is connected to the
output line. The circuit shown below is an 8*1 multiplexer. The 8-to-1
multiplexer requires 8 AND gates, one OR gate, and 3 selection lines. As an
input, the combination of selection inputs is giving to the AND gate with the
corresponding input data lines.
In a similar fashion, all the AND gates are given connection. In this 8*1
multiplexer, for any selection line input, one AND gate gives a value of 1 and
the remaining all AND gates give 0. And, finally, by using OR gates, all the
AND gates are added; and, this will be equal to the selected value.
Communication System
A communication system has both a communication network and a transmission
system. By using a multiplexer, the efficiency of the communication system can
be increased by allowing the transmission of data, such as audio and video
data from different channels through single lines or cables.
Computer Memory
Multiplexers are used in computer memory to maintain a huge amount of
memory in the computers, and also to reduce the number of copper lines
required to connect the memory to other parts of the computer.
Telephone Network
In telephone networks, multiple audio signals are integrated on a single line of
transmission with the help of a multiplexer.
Types of Demultiplexer
Demultiplexers are classified into four types
The 1-to-4 demultiplexer comprises 1- input bit, 4-output bits, and control bits.
The 1X4 demultiplexer circuit diagram is shown below.
1X4 Demux
The i/p bit is considered as Data D. This data bit is transmitted to the data bit
of the o/p lines, which depends on the AB value and the control i/p.
When the control i/p AB = 01, the upper second AND gate is permitted while
the remaining AND gates are restricted. Thus, only data bit D is transmitted to
the output, and Y1 = Data.
If the data bit D is low, the output Y1 is low. IF data bit D is high, the output Y1
is high. The value of the output Y1 depends upon the value of data bit D, the
remaining outputs are in a low state.
If the control input changes to AB = 10, then all the gates are restricted except
the third AND gate from the top. Then, data bit D is transmitted only to the
output Y2; and, Y2 = Data. . The best example of 1X4 demultiplexer is IC
74155.
1-8 Demultiplexer
The input bit is considered as data D and it is transmitted to the output lines.
This depends on the control input value of the AB. When AB = 01, the upper
second gate F1 is enabled, while the remaining AND gates are disabled, and
the data bit is transmitted to the output giving F1= data. If D is low, the F1 is
low, and if D is high, the F1 is high. So the value of the F1 depends on the
value of D, and the remaining outputs are in the low state.
Communication System
Mux and demux both are used in communication systems to carry out the
process of data transmission. A De-multiplexer receives the output signals
from the multiplexer and at the receiver end, it converts them back to the
original form.
It is noteworthy here that multiplexer acts as data selector thus provide a single
output from several inputs. However, demultiplexer acts as a data distributor and
generates several outputs with a single input.
We will discuss some other major differences between MUX and DEMUX but
before that have a look towards the contents to be discussed under this article.
1. Comparison Chart
2. Definition
3. Key Differences
4. Conclusion
Comparison chart
provides single output but accepts multiple takes single input but that input can be directed
Symbol
data inputs
data output
technique
Device It is N to 1 device and thus behaves as data It is 1 to N device and thus behaves as data
Definition of Multiplexer
It is referred to as many to one circuit due to its ability to select the single
output from multiple inputs.
The figure below shows the circuit of a MUX including input, output and control
signals.
It works as a multi-position switch which is digitally controlled by the control
signals. Here, the select lines determine which input will get switched to output
among several inputs. As we can see in the figure shown above that n input
signal is fed to a MUX, containing m control signals. However, only 1 data source
is transmitted to output.
A relation exists between the input and select lines which is noteworthy and is
given by:
2m = n
One can have several configurations of multiplexer depending on input lines and
the control signal applied to it.
Let us have a look at 4 to 1 multiplexer that consists of 4 input signal along with 2
control signals, in order to provide a single output.
Here, 4 input bits applied to the MUX are D0, D1, D2, D3 and the control signals are
a and b. So, any data input can be transmitted to output on changing the level of
the control signal.
The truth table for the multiplexer is shown below. Let us consider 4 separate
cases in order to understand the variation in output by controlling the level of
control signals.
a b D D Z
0 0 D0 0 0
1 1
0 1 D1 0 0
DATA SELECT LINES INPUT SELECTED INPUT OUTPUT
1 1
1 0 D2 0 0
1 1
1 1 D3 0 0
1 1
Case 1: Consider that both the applied control signals a and b are low i.e., 0. In
such a condition due to the presence of NOT gate inputs I1 and I2 of only AND
gate 1 is high. So, if the input bit of D0 is high then the output is high and if the
input of D0 is low then AND gate generates its output as 0.
Thus, with control signal level 00 only A1 is enabled and all others get disable
hence output achieved is the reflection of data bit associated with A1.
Case 2: When control signal a is low and b is high then it causes AND gate 2 to
be enabled as I1 and I2 of A2 will be high. So, input bit D1 decides the output of A2.
If D1 is high, the output will be 1 otherwise 0.
Case 3: Now consider that level of control signal a is high and that of b is low.
This enables only AND gate 3 as inputs I1 and I2 of A3 is high in this condition. So,
applied input bit D2 will provide the desired bit at the output.
Case 4: Let us now consider the case when the level of both the applied control
signals is high or 1. Then due to this only gate, A4 gets enabled while all others
get disabled. Due to this, the output will be the result of applied input D 3.
Definition of Demultiplexer
Let’s have a look at the DEMUX configuration shown below that have only one
input but m control and n output lines.
Moving further have a look at 1:4 demultiplexer consisting of data bit D, with 2
control signals a and b. Here, Z0, Z1, Z2, Z3 are the 4 output provided by the
demultiplexer.
As we have already explained that for a particular value of control signal only a
single AND gate is enabled while all others get disabled.
A B D Z0 Z1 Z2 Z3
0 0 0 0 0 0 0
0 0 1 1 0 0 0
0 1 0 0 0 0 0
0 1 1 0 1 0 0
A B D Z0 Z1 Z2 Z3
1 0 0 0 0 0 0
1 0 1 0 0 1 0
1 1 0 0 0 0 0
1 1 1 0 0 0 1
Encoder circuit basically converts the applied Decoder performs reverse operation
information signal into a coded digital bit and recovers the original information
1 stream. signal from the coded bits.
In case of encoder, the applied signal is the Decoder accepts coded binary data as
2 active signal input. its input.
4 The output lines for an encoder is n. The output lines of an decoder is 2n.
The encoder circuit is installed at the The decoder circuit is installed at the
7 transmitting end. receiving side.
8 OR gate is the basic logic element used in it. AND gate along with NOT gate is the
basic logic element used in it.
It is used in Microprocessors, memory
9 It is used in E-mail, video encoders etc. chips etc.
The basic difference between encoder and decoder is that, in encoder, the binary
information is passed in the form of 2n input lines, and it changes the input into n output
lines. Whereas, in decoder, the binary information is passed in the form of n input lines, and
changes this binary information in the form of 2n output lines. Similarly, we will see other
differences between encoder and decoder.
But before jumping directly to the comparison, let's first see a brief description of encoder
and decoder.
Encoder
An encoder can also be described as a combinational circuit that has a maximum of 2^n (or
less) input lines and n output lines.
Encoders are used to convert a decimal number into a binary number. The objective is to
perform a binary operation such as addition, subtraction, multiplication, etc. The basic logic
element that is used in encoders is OR gate. The operation of the encoder is fairly simple.
Encoders are commonly used in Videos, E-mail, etc.
In 4 to 2 line encoder, there are a total of four inputs, i.e., Y0, Y1, Y2, and Y3, and two
outputs, i.e., A0 and A1.
In 8 to 3 line encoder, there are a total of eight inputs, i.e., Y0, Y1, Y2, Y3, Y4, Y5,
Y6, and Y7 and three outputs, i.e., A0, A1, and A2. It is also known as Octal to Binary
Encoder.
Decoder
Decode performs the reverse operation of encoder.
It can be described as a combinational circuit that converts binary information from n coded
inputs to a maximum of 2^n different outputs. In decoder, the basic logic element is AND
gate along with the NOT gate. Decoders are commonly used in memory chips,
microprocessors, etc. Unlike encoder, the operation of decoder is complex. It is because the
decoder requires understanding the coding format of the encoder.
In the 2 to 4 line decoder, there are a total of three inputs, i.e., A0, A1, and E and four
outputs, i.e., Y0, Y1, Y2, and Y3.
In 3 to 8 line decoder, there are a total of eight outputs, i.e., Y0, Y1, Y2, Y3, Y4, Y5,
Y6, and Y7 and three inputs, i.e., A0, A1, and A2. It is also called as Binary to octal decoder.
The commonly used or most preferred decoders are n to m decoders, where m<= 2^n. It is
also referred to as n * m decoder that has n inputs and m outputs.
Now, let's see the comparison between Encoder and Decoder. We are comparing both
terms on the basis of some characteristics to make the comparison clear and more
understandable.
2. Input lines There are 2n input lines in the There are n input lines in the decoder.
encoder.
3. Output lines There are n output lines in the There are 2n output lines in the
encoder. decoder.
5. Basic logic The basic logic element that is In decoder, the basic logic element
element used in encoders is OR gate. is AND gate along with the NOT gate.
Both encoders and decoders are the compliment of each other. One is used for encoding
the original information, and another is used to decode the coded data bits to get the exact
message signal.