Professional Documents
Culture Documents
Applications of Boolean Algebra and Logic Gates
Applications of Boolean Algebra and Logic Gates
Algebra and
Logic Gates
0_ = 1
1=0
Or is a plus
0+0 = 0
0+1 = 1
1+0 = 1
1+1 = 1
And is multiplication
0*0 = 0
0*1 = 0
1*0 = 0
1*1 = 1
F(x,y) = (x+y).(x.y)
x+y
x.y
F(x,y)
XOR Gate
Truth Table for XOR gate
Question : 1.Write the SOP expression from the above truth table for XOR gate.
2.Draw the logic gate diagram using basic logic gates.
XNOR Gate
The output values of
XNOR are simply the
inverse
of
the
corresponding output
values of XOR
Question : 1.Write the SOP expression from the above truth table for XNOR gate.
2.Draw the logic gate diagram using basic logic gates.
x+y
(x+y)y
y
__
Answer: (x+y)y
Or (x+y).y'
x
xy
xy
y
___
__
Answer: xy
Or (x.y ) x+y
x+y
10
x+y
(x+y)x
11
0+0 = 0
0+1 = 1
1+0 = 1
1+1 = 10
x
0
0
1
1
y
0
1
0
1
Carry Sum
0
0
0
1
0
1
1
0
Carry is x AND y
Sum is x XOR y
The circuit to compute this is called a half-adder
12
The half-adder
Sum = x XOR y
Carry = x AND y
13
1
1
0
0
1
1
0
0
0
14
Inputs: x, y, carry in
Outputs: sum, carry out
1 1 1
1 1 0
1 0 1
1 0 0
0 1 1
0 1 0
0 0 1
0 0 0
1
0
1
1
0
1
1
0
0
1
1
0
1
0
0
0
15
Full Adder
x
xy
y
(x y).c
c
Cout
x.y
S =x y c
Cout = x.y + (x y).c
19
3 inputs, 2 outputs.
Logic Equations
Cout = xyc + xyc + xyc+ xyc
= c .(x y) + x.y
or
Cout = xy + yc + xc
S = xyc + xyc +xyc+xyc
or
S =xyc
X
Cout
Y
FULL
ADDER
20
How Cout = xy + yc + xc
Cout = xyc +xyc + xyc + xyc
=(xyc + xyc) + xyc + xyc + xyc .x+x =x
=xyc + xy(c+c) + xyc + xyc
=(xyc + xyc) + xy + xyc + xyc
=xy + xyc +xyc + xyc +xyc
=xy + xc(y+y) + yc(x+x)
=xy + xc + yc
Therefore,
Cout=xy+yc+xc
S=xyc
AND
AND
yc
xc
OR
carry
Application of Adders
Adders are important in computers and
also in other types of digital systems in
which numerical data are processed.
Adder circuits are essential inside
microprocessors as part of the ALU, or
arithmetic logic unit, where the
processing and manipulation of binary
numbers takes place.
23