Week 5
Week 5
Half adder is a combinational logic circuit for adding two single-bit numbers. It accepts two inputs
and produces two outputs. The block diagram of the half adder is shown in Figure 1.
Figure 10: Block diagram and truth table for binary to octal decoder.
The binary-to-octal decoder shown in Figure 11 is implemented with three inverters and eight
three-input AND gates.
Figure 14 shows the block diagram, logic diagram, and truth table of a 2x1 multiplexer. In 2×1
multiplexer, there are only two inputs, i.e., A0 and A1, one selection line, S0, and a single output, Y.
Based on the value at select line S0, one of the two inputs will be connected to the output. As you
can see in the truth table, when S0 is 0, A0 is connected to the output, and when S0 is 1, A1 is
connected to the output. Hence, the logic expression for output Y is given by
Y = S0’ A0 + S0 A1
The logic circuit implementation requires two AND gates, one NOT gate, and one OR gate.
Figure 14: Block diagram, logic diagram, and truth table of 2x1 multiplexer.
Figure 15 show the block diagram, logic diagram, and truth table of 4x1 multiplexer. In
4x1multiplexer, there are four inputs, A0, A1, A2, and A3, two selection lines, S0 and S1, and a single
output, Y. On the basis of the combination of inputs present at the selection lines S0 and S1, one of
these four inputs is connected to the output. Boolean expression for 4x1 multiplexer is
Y = S1’ S0’ A0 + S1’ S0 A1 + S1 S0’ A2 + S1 S0 A3
The logic implementation Boolean function requires four AND gates, two NOT gates, and one OR
gate.
Figure 15: Block diagram, logic diagram, and truth table of 4x1 multiplexer.
IC 74151 is a very popular high-speed 8x1 multiplexer. It provides one-of-eight data sources as a
result of a unique three-bit binary code at the select inputs. It provides complementary and
non-complementary outputs. IC 74153 has two 4x1 multiplexer.
5.4.5: Demultiplexer
Figure 16 shows a demultiplexer, in short, Demux, a combinational circuit with single-input and
multiple-output lines. The information received from the single input lines is directed to one of the
output lines based on the values set at the selection or control lines. The function of the
demultiplexer is exactly opposite to the multiplexer. Multiplexers are called data selectors, whereas
demultiplexers are data distributors because they transmit similar information obtained at the input to
various outputs.
Figure 16: Demultiplexer.
Figure 17 shows the symbol of 1 to M demultiplexer. It has one input line and several output lines
Some designers use a square box instead of trapezoid.
These demultiplexers are available in various IC packages. Popular ones are: IC 74139, a dual 1 to
4 Demux, IC 74138 is a 1 to 8 Demux, whereas IC 74154 is a 1 to 16 Demux.
Figure 18 shows the 1:2 demultiplexer, a basic demultiplexer with one input and two outputs.
Usually, the input line is used to carry data. Hence, it is indicated as data line D. Since there are two
output lines Y0 and Y1, we need one select signal S to control data flow from input to output. The
truth table for this demultiplexer is as shown. When S equals zero, output Y0 is selected, and data D
is sent on this output line Y0. Similarly, when S equals one, output Y1 is selected and data D is sent
on Y1. The logic expression for
Y0 = S’ D
Y1 = S D
Implementing these two logic expressions requires two AND gates and one NOT gate.