ch2 Notes
ch2 Notes
The output obtained from the EX-OR gate is the sum of the two numbers while
that obtained by AND gate is the carry. There will be no forwarding of carry
addition because there is no logic gate to process that. Thus, this is called the Half
Adder circuit.
Logical Expression of Half Adder
The Logical Expression for half added is given as
Sum = A ⊕ B
Carry = A AND B
Truth Table of Half Adder
The Truth Table for Half Added is Given as
What is Full Adder ?
Full Adder is the circuit that consists of two EX-OR gates, two AND gates, and
one OR gate. Full Adder is the adder that adds three inputs and produces two
outputs which consist of two EX-OR gates, two AND gates, and one OR gate.
The first two inputs are A and B and the third input is an input carry as C-IN. The
output carry is designated as C-OUT and the normal output is designated as S
which is SUM.
The equation obtained by the EX-OR gate is the sum of the binary digits. While
the output obtained by AND gate is the carry obtained by addition.
Logical Expression of Full Adder
Given Below is the Logical Expression of Full Adder
SUM = (A XOR B) XOR Cin = (A ⊕ B) ⊕ Cin
CARRY-OUT = A AND B OR Cin(A XOR B) = A.B + Cin(A ⊕ B)
Truth Table of Full Adder Given Below is the truth Table of Full Adder
4×1 Multiplexer
The 4×1 Multiplexer which is also known as the 4-to-1 multiplexer. It is a
multiplexer that has 4 inputs and a single output. The Output is selected as one of
the 4 inputs which is based on the selection inputs. The number of the Selection
lines will depend on the number of the input which is determined by the
equation log2nlog2n ,In 4×1 Mux the selection lines can be determined
as log4=2log4=2 ,slo two selections are needed.
The output of the multiplexer is determined by the binary value of the selection
lines
When S1S0=00, the input I0 is selected.
When S1S0=01, the input I1 is selected.
When S1S0=10, the input I2 is selected.
When S1S0=11, the input I3 is selected.
Truth Table of 4×1 Multiplexer
Given Below is the Truth Table of 4×1 Multiplexer
Circuit Diagram of 4×1 Multiplexers
Using truth table the circuit diagram can be given as
What is a Demultiplexer?
From the definition, we can state that a Demultiplexer is a 1-to-2n device. The
functional block diagram of a typical 1×2n Demultiplexer is shown in Figure-1.
It can be seen that the Demultiplexer has only one data input line, 2n output lines,
and n select lines. The logic level applied to select lines of the Demultiplexer
determines the output channel to which the input data will be transmitted.
Demultiplexer circuit are the combinational logic circuit widely used in digital
decoders and Boolean function generator circuits.
1×4 Demultiplexer
The 1×4 Demultiplexer has 1 input line (I), 2 select line (S0 and S1), and 4 output
lines (Y0, Y1, Y2, and Y3). The logic level applied to the select lines determines the
output line to which the input data (I) will be transmitted.
The operation of the 1×4 Demultiplexer can be understood with the help of its
function table given below.
S1 S0 Y3 Y2 Y1 Y0
0 0 0 0 0 I
0 1 0 0 I 0
1 0 0 I 0 0
1 1 I 0 0 0
From this truth table of 1×4 Demultiplexer, we can directly write the Boolean
expression for each output as follow.
Y0=S1¯S0¯IY0=S1¯S0¯I
Y1=S1¯S0IY1=S1¯S0I
Y2=S1S0¯IY2=S1S0¯I
Y3=S1S0IY3=S1S0I