Boolean
Boolean
Boolean
com
TRUTH TABLE:
• A Truth Table is a table which represents all the possible input combinations of
logical variables along with all the possible results/output of the given
combinations of values.
LOGIC GATES:
• Logic gates are the basic building blocks of any digital system. It is an
electronic circuit having one or more than one input and only one output. The
relationship between the input and the output is based on a certain logic.
Based on this, logic gates are named as AND gate, OR gate, NOT gate etc.
AND Operator
Operation performed by AND operator is called
Logical Multiplication. Thus X.Y means X AND Y.
0.0=0
0.1=0
1.0=0
1.1=1
The Symbol and Truth table of AND gate
X Y F= ( X.Y)
X
F 0 0 0
Y
0 1 0
1 0 0
1 1 1
OR Operator
Operation performed by OR operator is called
Logical Addition. Thus X+Y means X OR Y.
0+0=0
0+1=1
1+0=1
1+1=1
The Symbol and Truth table of OR gate
X Y F=(X+Y)
X 0 0 0
F
Y 0 1 1
1 0 1
1 1 1
NOT Operator
This operator operates on single variable and
operation performed by NOT operator is called
complementation. Thus X’ means complement of X.
0’=1
1’=0
The Symbol and Truth table of NOT gate
X X’
X X’ 0 1
1 0
What is Basic Postulates Of Boolean
Algebra?
Boolean algebra, consists of fundamental laws that are used to build
a workable, cohesive framework upon which are based the theorem of
Boolean algebra. These fundamental laws are known as Basic
Postulates Of Boolean Algebra.
POSTULATES
b) 1+X=1 1 X R=1
1 1 0 1
1
X 1 1 1
c) 0.X=0
0 X R=0
0
0 0 0 0
X
0 1 0
d) 1.X=X
1 1 X R=X
X
X 1 0 0
1 1 1
2. Indempotence Law
The law states that,
a) X+X=X
X X R=X
X
X 0 0 0
X
i.e.,
1 1 1
0+0=0
1+1=1
b) X.X=X
X
X X R=X
X
X 0 0 0
i.e., 1 1 1
0.0=0
1.1=1
3.Involution Law
The law states that,
(X’)’=X
X’
X (X’)’=X
X X’ (X’)’ = X
0 1 0
1 0 1
4.Complementarity Law
The law states that,
a) X+X’=1
X X’ R=X+X’
X
X+X’=1 0 1 1
X’ i.e.,
0+1=1
1 0 1
1+0=1
b) X.X’=0 X X’ R=X.X’
X 0 1 0
X.X’=0
X’ 1 0 0
i.e.,
0.1=0
1.0=0
5.Commutative Law
The law states that,
a) X+Y=Y+X
X Y
Y R X R
X Y R=X+Y R=Y+X
0 0 0 0
0 1 1 1
1 0 1 1
1 1 1 1
+ is OR
5.Commutative Law
b) X.Y=Y.X
X Y
R R
Y X
X Y R=X.Y R=Y.X
0 0 0 0
0 1 0 0
1 0 0 0
1 1 1 1
. is AND
6.Associative Law
The law states that,
a) X+(Y+Z)=(X+Y)+Z
X R X X+Y
Y Y R
Z Z
Y+Z
X Y Z YZ XY R=X(YZ) R=(XY) Z
0 0 0 0 0 0 0
0 0 1 0 0 0 0
0 1 0 0 0 0 0
0 1 1 1 0 0 0
1 0 0 0 0 0 0
1 0 1 0 0 0 0
1 1 0 0 1 0 0
1 1 1 1 1 1 1
7. Distributive Law (First)
The law states that,
a) X(Y+Z)=XY+XZ X XY
Y
X R
R
Y
Z Y+Z
Z XZ
Y XY
X Y X.Y X+XY
0 0 0 0
0 1 0 0
1 0 0 1
PROOF ( By Algebraic Method) 1 1 1 1
L.H.S. = X+XY
=X(1+Y) (By Properties of 0 and 1)
=X.1 = X
=R.H.S. Hence Proved
8. Absorption Law
The law states that, b) X(X+Y)=X
X
X
Y X.Y
L.H.S.
= (X+Y)+(X’Y’) (Distributive Law: A+BC=(A+B).(A+C) )
=1
Hence First Part Proved
Now, let us prove the second part of 1st
theorem, i.e.,
(X+Y).(X’Y’)=0
L.H.S.
= (X+Y).(X’Y’) (Distributive Law): A+B).C=A.C+A.B
= (XX’Y’)+(YX’Y’) (Associative Law): X.Y=Y.X
= (XX’Y’)+(X’YY’) (Complementarity Law): X.X’=0
= (0.Y’) + (X’.0) (Properties of 0 and 1)
= 0+0 (Properties of 0 and 1)
=0 Hence Second Part Proved
Thus, De-Morgan’s 1st Law proved (X+Y)’=X’.Y’
DeMorgan’s Second Theorem
It states that, (X.Y)’=X’+Y’
X’
X
X R R
Y
XY XY X’+Y’
Y
Y’
X 0 0 0 1
F= X.Y
Y 0 1 0 1
1 0 0 1
2 input NAND Gate
1 1 1 0
X
Y X Y Z X.Y.Z X.Y.Z
0 0 0 0 1
3 input NAND Gate
P 0 0 1 0 1
Q 0 1 0 0 1
R
0 1 1 0 1
4 input NAND Gate 1 0 0 0 1
A
1 0 1 0 1
B 1 1 0 0 1
C
D 1 1 1 1 0
NOR Gate
NOR gate is a universal gate which is a
combination of OR with NOT X Y X+Y F=X+Y
X 0 0 0 1
F= X+Y
Y 0 1 1 0
1 0 1 0
2 input NOR Gate
1 1 1 0
X
Y F X Y Z X+Y+Z F=X+Y+Z
0 0 0 0 1
3 input NOR Gate
P 0 0 1 1 0
Q 0 1 0 1 0
R F 0 1 1 1 0
4 input NOR Gate 1 0 0 1 0
A
1 0 1 1 0
B 1 1 0 1 0
C F
D 1 1 1 1 0
XOR Gate
XOR gate produces output 1 for only those input No. of 1’s X Y X + Y
combinations that have ODD number of 1’s Even/Odd
Even 0 0 0
X
Y F=X+Y Odd 0 1 1
Odd 1 0 1
XOR Addition can be summarized as: Even 1 1 0
0 + 0=0 0 + 1=1
No. of 1’s X Y Z F= X + Y + Z
1 + 0=1 1 + 1=0
Even 0 0 0 0
3 input XOR Gate
Odd 0 0 1 1
P
Q Odd 0 1 0 1
R F Even 0 1 1 0
Solution :
A B A’ B’ A’+B’ A+B (A’+B’).(A+B) A’.B A.B’ (A’.B)+(A.B’)
0 0 1 1 1 0 0 0 0 0
0 1 1 0 1 1 1 1 0 1
1 0 0 1 1 1 1 0 1 1
1 1 0 0 0 1 0 0 0 0
Since, Column no. 7 and 10 are having same values as per the given
question. Hence, proved.
Q) Draw a logic circuit for the following expression:
F(X,Y,Z) = (X+Y’+Z).(X+Y’+Z’)
Solution:
X X+Y’+Z
Y’
Z
F
X
.
(X+Y’+Z) (X+Y’+Z’)
Y’
Z’ X+Y’+Z’
Q) Write the equivalent Boolean expression for
the following logic circuit:
Solution :
F(A,B,C) = A’B+AB+B’C
Q) Draw a logic circuit for the following expression:
F(A,B,C) = (AB’C)+(C’B)
Using NAND-to-NAND Logic Gate only.
Solution:
A (A.B’.C)
B B’
C F(A,B,C)
C C’
(C’.B)
B (AB’C). (C’B)
De-Morgan’s
Theorem
(applied). = (AB’C)+ (C’B)
NOTE: No need to solve. Directly write the answer. This is done just to prove = (AB’C)+(C’B)
and show.
REFERENCES
•Wikipedia
•Tutorialspoint