Boolean Algebra
Boolean Algebra
0 1 0
1 0 0
1 1 1
OR operator
• The OR operator is used to perform logical
addition and the symbol for OR operator is (+)
plus.
Truth table for OR operator
X Y X+Y
0 0 0
0 1 1
1 0 1
1 1 1
Evaluation of boolean expression using
truth table
• Logical variables are combined by means of
logical operators(AND,OR,NOT) to form a
boolean expression.
For Example
X Y Z YZ
0 0 0 0 1 1 1
0 0 1 0 1 0 1
0 1 0 0 1 1 1
0 1 1 1 0 0 0
1 0 0 0 1 1 1
1 0 1 0 1 0 1
1 1 0 0 1 1 1
1 1 1 1 0 0 1
Basic Logic gates
• A gate is simply an electronic circuit which
operates on one or more signal to produce an
output signal.
• Fundamental Gates
• Derived Gates
Fundamental Gates
• These are the basic gates which are not
constructed from other gates these are
• 1)AND gate
• 2)OR gate
• 3)NOT gate
AND GATE
• This gate has two or more input signals but
only one output signal.This gate
producesoutput 1 when all inputs are 1
X Y Z(X.Y)
0 0 0
0 1 0
1 0 1
1 1 1
OR gate
• This gate has 2 or more input signals but only
one output signals.This gate produces output
1 when any of the inputs are 1.
NOT gate
• The NOT gate has only one input and one
output signal.The output state is always the
opposite of the input state.
• 1)NOR gate
• 2)NAND gate
• 3)XOR gate
• 4)XNOR gate
NOR gate
• This gate is the combination of the NOT and
the OR gate.The NOR gate has two or more
inputs but only one output.
• It produces output 1 when all inputs are 0.
TRUTH Table NOR gate
X Y X+Y’
0 0 1
0 1 0
1 0 0
1 1 0
NAND Gate
• This gate is the combination of the NOT and
the AND gate.
• The NAND gate has two or more input signals
but only one output signal.
X.Y
IMPLEMENTATION OF OR GATE BY
USING NAND GATE
X
X
X+Y
Y
Y X.Y
IMPLEMENTATION OF BASIC GATES USING
NOR GATES
IMPLEMENTATION OF NOT GATE
USING NOR GATE
IMPLEMENTATION OF AND GATE
USING NOR GATE
A.B
B
IMPLEMENTATION OF OR GATE USING
NOR GATE
A+B
A+B
NAND to NAND and NOR to NOR
• Any combinational circuit is possible using
only NAND or NOR gate because of this NAND
and NOR gates are called universal gates.
• a)0+X =X
• b)1+X=1
• C) 0.X=0
• D)1.X=X
Idempotence Law
• X+X=X
• X.X=X
Involution Law
• (X’)’ = X
Complementarity Law
• X + X’ = 1
• X.X’ = 0
Commutative Law
• X+Y=Y+X
• X.Y=Y.X
Associatiative Law
• X+(Y+Z)=(X+Y)+Z
• X.(Y.Z)=(X.Y).Z
Distributive Law
• X(Y+Z)=XY+XZ
• X+YZ=(X+Y)(X+Z)
Absorption Law
• X+XY=X
• =X(1+Y)
• =X(1)
• =X
• X(X+Y)=X
Summary Of Boolean Laws
Using Laws of boolean algebra prove that
A’B’C’D’ + A’B’CD’ + A’BCD + AB’C’D’ + ABCD + A B’D=B’D’ + AB’ + BCD
Lhs = A’B’C’D’ + A’B’CD’ + A’BCD + AB’C’D’ + ABCD + A B’D
Applying Distributive Law
=A’B’D’(C’+C)+BCD(A’+A)+AB’D’(C’+C)+AB’D
Applying inverse law and identity law
=A’B’D’+BCD+AB’D’+AB’D
=B’D’(A’+A)+BCD+AB’D
=B’D’+BCD+AB’D
Applying Distributive Law
=B’(D’+AD)+BCD --- Absorbtion law
=B’(D’+A)+BCD
=B’D’+B’A+BCD
=B’D’+AB’+BCD
• (A+B)(A+C)=A+BC
• LHS=(A+B)(A+C)
• =A.A +A.B +A.C+B.C
• =A+AB+AC+BC
• =A(1+B)+AC+BC
• =A.1+AC+BC
• =A+AC+BC
• =A(1+C)+BC
• =A.1+BC
• =A+BC
• Using boolean laws prove that
• (A+B’+C’)(A+B’C)=A+B’C
• LHS=A.A+AB’C+B’A+B’B’C+C’A+C’B’C
• =A+AB’C+AB’+B’C+AC’+BC’C
• =A+AB’C+AB’+B’C+AC’+B.O
• =A+AB’+AC’+AB’C+B’C+0
• =A(1+B’+C’+B’C)+B’C
• =A.1+B’C
• =A+B’C
De Morgans Law
• In set theory,de morgans law relates the three
basic set properties to each other,the union
,the intersection and the complement.One of
the most powerful identities used in boolean
algebra i.e De Morgans Theorem.
• X+Y+X’.Y’=1
• =((X+Y)+X’)((X+Y)+Y’)
• =(X+Y+X’)(X+Y+Y’)
• =(X+X’+Y)(X+Y+Y’)
• =(1+Y)(X+1)
• =1.1
• =1
• Let us now prove the second part
• X+Y.X’.Y’=0
• =X’Y’(X+Y)
• =X’Y’X+X’Y’Y
• =0.Y’+X’.0
• =0+0
• =0
• De Morgans second theorem
• It states that
• (X.Y)’=X’+Y’
• 1ST Part X.Y+(X’+Y’)=1
• 2ND Part X.Y.(X’+Y’)=0
It states that
• 1) (X+Y)’ = X’.Y’
• 2)(X.Y)’ = X’ + Y’
Duality Principal
• The principal of duality is an important
principal in boolean algebra.
• It states that another boolean relation can be
derived by:
• 0+0=0
• 1.1=1
• 0+1=1
• 1.0=0
• A(B+C)=A.B+A.C
• A+(B.C)=(A+B)(A+C)
• Find the dual of the following
• (A+B)(AC’ +B)
• =(A.B)+(A+C’).B
• 2)A+A’B=A+B
• =A.(A’+B)=A.B
• 3)(X+Y).(X’+Y’)
• =X.Y+X’.Y’
• Find the dual of
• (U+W)(V’U+W)
• =UW+(V’+U)W
• Simplify the following using boolean laws
• F=AB(A+C)+AB(A+B+C)
• =AB+(A+C)+AB(ABC)
• =A+B+AC+ABC
• =A+B+AC(1+B)
• =A+B+AC
• =A(1+C)+B
• =A+B
• AB+BC+CA=AB+BC+CA
• =AB+BC+CA
• =(AB)(BC)(CA)
• =(A+B)(B+C)(C+A)
• =(A+B)(A+C)(B+C)
• =(A+BC)(B+C)
• =AB+BBC+AC+BCC
• =AB+BC+AC+BC
• =AB+BC+BC+AC
• =AB+BC+AC
Derivation of Boolean Expression
• Boolean expression which consists of a single
variable or its complement,example x or y or
z’ are known as literals.
• Min term
• Max Term
Min Term
• One of the most poweful theorem within
boolean algebra states that any boolean
function can be expressed as the sum of
products of all the variables within the
system.
• =X(Y+Y’)+Y(X+X’)
• =XY+XY’+XY+X’Y
• =XY+XY’+X’Y
• Max Terms
F(X,Y,Z)=X’Y’Z+X’YZ’+XY’Z’+XYZ
Product of Sum
• When a boolean expression is represented
purely as a product of maxterm ,it is said to be
canonical product of sum formed of an
expression.
1 0 0 1
1 0 1 0 X’+Y+Z’
1 1 0 1
1 1 1 1
F(X,Y,Z)=(X+Y+Z’)(X+Y’+Z’)(X’+Y+Z’)
State and verify the distributive law
using truth table
• Seven invertors are cascaded after one
another.What will be the output if the input is
1?
• Ans 0
Karnaugh Maps
• Obtain a simplified form for the following
boolean expression using K maps
• F(abcd)= (0,1,2,3,4,5,10,11,15)
S=A’B+AB’
C=AB
Circuit for half adder
Full Adders
• The main difference between a half-adder and a
full-adder is that the full-adder has three inputs
and two outputs. The first two inputs are A and B
and the third input is an input carry designated as
CIN.