Boolean Logic
Boolean Logic
Boolean Logic - It is a form of algebra in which all values are reduced to either
1(True) or 0(False). It was developed by George Boole.
Binary Decision - The decision which results in either yes (True) or No (False)
is called Binary decision.
Truth Value - The values True and False are called Truth Values
Boolean Variable - They are the variables that stores either True or False
Logical Operator
NOT Operator - This operator operates on a single variable and it gives the
compliments of a given variable. It is represented by ‘-’ (bar).
Ex-
X X|
0 1
1 0
X Y X+Y
0 0 0
0 1 1
1 0 1
1 1 1
X Y X.Y
0 0 0
0 1 0
1 0 0
1 1 1
Boolean Expression - It is a logical statement that results in either True or
False.
Truth Table - It is a table that represents all the possible values of logical
variables/statements along with all the possible results of the given combination
of values.
|
TRUTH TABLE: X .Y
X Y X| X|.Y
0 0 1 0
0 1 1 1
1 0 0 0
1 1 0 0
|. | |. |
(A D )+ B.(C D )
OR Gate: The OR Gate has two or more input signals but only
one output signal. If any of the input is high (1), the output signal
is high (1).
X F
X Y F=(X+Y) Y
0 0 0
0 1 1
1 0 1
1 1 1
AND Gate: The AND Gate has two or more input signals but only
one output signal. If any of the input is low (0), the output signal is
low (0). X
F
X Y F=(X.Y) Y
0 0 0
0 1 0
1 0 0
1 1 1
NOR Gate: The NOR Gate has two or more input signals but only
one output signal. All input signals must be low (0) to get a high
(1) output signal.
X
F
| Y
X Y F=(X+Y)
0 0 1
0 1 0
1 0 0
1 1 0
NAND Gate: The NAND Gate has two or more input signals but
only one output signal. All input signals must be high (1) to get a
low (0) output signal.
X
F
| Y
X Y F=(X.Y)
0 0 1
0 1 1
1 0 1
1 1 0
XOR Gate: The XOR Gate has two or more input signals but only
one output signal. Its produces output high (1) for only those input
combinations that have odd number of 1’s.
X Y F=(X Y)
X
0 0 0 F
Y
0 1 1
1 0 1
1 1 0
De-Morgan’s Theorem:
|
i) (X.Y) = X| + Y| -The complement of a product is equal to the sum of
complement.
|
ii) (X+Y) = X|. Y| - The complement of a sum is equal to the product of
complement.