3eng Boolean Logic
3eng Boolean Logic
Chapter 3
X X’
0 1
1 0
Logical Operators (AND)
– AND operator is used by applying ( . ) between two variables. like X.Y
– It shows a very important operation of boolean algebra which is known
as logical multiplication.
– X.Y is to be read as X AND Y. It is also represented as “XɅY”.
– Rules of AND operation are-
0.0=0
0.1=0
1.0=0
1.1=1
– AND operator’s truth table and Venn Diagram are as under-
X Y X.Y
Result will be 1 only when
0 0 0
both the inputs will be 1
0 1 0 otherwise result will
1 0 0 always be 0.
1 1 1 Shadowed potion shows X.Y
Logical Operators (OR)
– OR operator is used by applying ( + ) between two variables. like X+Y
– It shows a very important operation of boolean algebra which is known
as logical addition.
– X+Y is to be read as X OR Y. It is also represented as “XUY”.
– Rules of OR operation are-
0+0=0
0+1=1
1+0=1
1+1=1
– AND operator’s truth table and Venn Diagram are as under-
X Y X+Y
Result will be 1 when
0 0 0 either of the input will 1
0 1 1 otherwise result will be 0.
1 0 1
1 1 1 Shadowed potion shows X+Y
Evaluation of Boolean Expression using Truth Table
– To develop Boolean Expression, logical variables are used with
logical operators. Truth table is used for its evaluation. For ex-
X + (Y.Z)’ + Z’ is a boolean expression and its truth table
should be as follows-
X Y Z Y.Z (Y.Z)’ Z’ X+(Y.Z)’ X+(Y.Z)’+Z’
0 0 0 0 1 1 1 1
0 0 1 0 1 0 1 1
0 1 0 0 1 1 1 1
0 1 1 1 0 0 0 0
1 0 0 0 1 1 1 1
1 0 1 0 1 0 1 1
1 1 0 0 1 1 1 1
1 1 1 1 0 0 1 1
Evaluation of Boolean Expression using Truth Table
Prove (X+Y)’ = X’.Y’ using Boolean logic and truth table-
0 0 0 1 1 1 1
0 1 1 0 1 0 0
1 0 1 0 0 1 0
1 1 1 0 0 0 0
By comparing (X+Y)’ and X’.Y’ it is proved that both the values are same.
Basic Logic Gates
– When Shannon used boolean logic in switching circuit of telephone then
Engineers realized that boolean algebra can also be used in computer
electronics. In computers, logic gates are used to complete boolean
operations.
– A Gate is a basic Electronic Circuit used to develop an output signal by
passing one or more input signal(s).
– A Gate is a kind of two-state digital circuit because its input or output are
either low voltage (i.e. 0) or high voltage (i.e.1).
– Gates are also known as logic gates because they can coordinate with
boolean logic.
– Logic gates are of three types--
1. Inverter (NOT Gate)
2. OR Gate
3. AND Gate
Inverter (NOT Gate)
– NOT gate takes one input and produces one output.
– Its output is exactly opposite to its input.
– It is called NOT gate because its output is not similar to its input.
– Its output is also called as complement(opposite) of input.
– Truth table and diagram of Not gate are as under-
X X’
Low High
High Low X X’
OR
X X’
0 1
1 0
OR Gate
– OR gate takes two or more inputs and produces one output.
– Its output is logical sum of passed inputs.
– It produces high voltage output on any one high voltage input. It produces
low voltage output only when all the inputs are of low voltage.
– OR Gate Truth table and diagram are as under-
X Y X+Y X Y X+Y
Low Low Low 0 0 0
Low High High 0 1 1
High Low High 1 0 1
High High High 1 1 1
– This gate work for more than two input signals in similar manner.
AND Gate
– AND gate takes two or more inputs and produces one output.
– Its output is logical multiplication of passed inputs.
– It produces low voltage output on any of the input signal as low voltage
input. It produces high voltage output only when all the inputs are of high
voltage.
– AND Gate Truth table and diagram are as under-
X Y X .Y X Y X.Y
Low Low Low 0 0 0
Low High Low 0 1 0
High Low Low 1 0 0
High High High 1 1 1
– This gate work for more than two input signals in similar manner.
Assignment
I. F(A,B,C,D) = AB + CD’
AND Gate
AND Gate
decoders etc.
comparator etc.
store data.
NOR Gate:
There is two or more input signals and one output
signal in NOR gate.if all input signals are 0 (low) then
output signal will be 1 (high). X Y Z F
0 0 0 1
X Y F 0 0 1 0
0 0 1 0 1 0 0
0 1 0 0 1 1 0
1 0 0 1 0 0 0
1 1 0 1 0 1 0
1 1 0 0
1 1 1 0
NAND Gate
• There is two or more input signals and one output signal in
NAND gate.if all input signals are 1 (high) then output signal
will be 0 (low). It is also known as universal gate because
fundamental gates can be retrieved with its help.
X Y Z F
0 0 0 1
0 0 1 1
X Y F 0 1 0 1
0 0 1 0 1 1 1
0 1 1 1 0 0 1
1 0 1 1 0 1 1
1 1 0 1 1 0 1
1 1 1 0
XOR Gate
• XOR Gate produces 1 (high) when inputs are not at equal
logic level. It is also known as universal gate because
fundamental gates can be retrieved
with its help.
No of 1’s X Y Z F
Even 0 0 0 0
Odd 0 0 1 1
No of 1’s X Y F
Odd 0 1 0 1
Even 0 0 0 Even 0 1 1 0
Odd 0 1 1 Odd 1 0 0 1
Odd 1 0 1 Even 1 0 1 0
Even 1 1 0 Even 1 1 0 0
Odd 1 1 1 1
XNOR Gate
• XNOR Gate produces 1 (high) when the inputs are
identical (both 1’s or both 0’s).
No of 1’s X Y Z F
Even 0 0 0 1
No of 1’s X Y F
Odd 0 0 1 0
Odd 0 1 0 0
Even 0 0 1
Even 0 1 1 1
Odd 0 1 0
Odd 1 0 0 0
Odd 1 0 0
Even 1 0 1 1
Even 1 1 1
Even 1 1 0 1
Odd 1 1 1 0
are
to
https://www.learnelectronicswithme.com/2021/10/nandnor-implementations-implement
Assignment solution
1. By Using NAND gates:
V. Commutative Law
– (a) X + Y = Y + X (b) X . Y = Y . X
X Y X+Y Y+X X Y X. Y Y. X
0 0 0 0 0 0 0 0
0 1 1 1 0 1 0 0
1 0 1 1 1 0 0 0
1 1 1 1 1 1 1 1
Main Concepts of Boolean Algebra
VI. Associative Law –
(a)
X Y Z Y+Z X+Y X+ (Y + Z) (X + Y) + Z
X+(Y+Z) = (X+Y)+Z
0 0 0 0 0 0 0
0 0 1 1 0 1 1
0 1 0 1 1 1 1
0 1 1 1 1 1 1
1 0 0 0 1 1 1
1 0 1 1 1 1 1
1 1 0 1 1 1 1
1 1 1 1 1 1 1
Main Concepts of Boolean Algebra
VI. Associative Law –
(b)
X Y Z Y.Z X.Y X . (Y . Z) (X . Y) . Z
X . (Y . Z) = (X . Y)
0 0 0 0 0 0 0
.Z
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
Main Concepts of Boolean Algebra
VII. Distributive Law –
(a) X . (Y + Z) = X.Y + X.Z
X Y Z Y+Z X.Y X.Z X.(Y+Z) X.Y+X.Z
0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0
0 1 0 1 0 0 0 0
0 1 1 1 0 0 0 0
1 0 0 0 0 0 0 0
1 0 1 1 0 1 1 1
1 1 0 1 1 0 1 1
1 1 1 1 1 1 1 1
Main Concepts of Boolean Algebra
VII. Distributive Law –
(b) X
X Y Z Y.Z X+Y
+ Y.Z
X+Z X+Y.Z
= (X+Y).(X+Z)
(X + Y) . (X + Z)
0 0 0 0 0 0 0 0
0 0 1 0 0 1 0 0
0 1 0 0 1 0 0 0
0 1 1 1 1 1 1 1
1 0 0 0 1 1 1 1
1 0 1 0 1 1 1 1
1 1 0 0 1 1 1 1
1 1 1 1 1 1 1 1
Main Concepts of Boolean Algebra
VIII. Absorption Law –
(a) X + X . Y = X (b) X .
X Y (X + Y)
X.Y= X X+X.Y X Y X+Y X.(X+Y)
0 0 0 0 0 0 0 0
0 1 0 0 0 1 1 0
1 0 0 1 1 0 1 1
VIII.1 1 1 1 1 1 1 1
.
IX. Other rules (Third Distributive
Law) X + X’.Y = X + Y
X Y X’ X’.Y X + X’.Y X+Y
0 0 1 0 0 0
0 1 1 1 1 1
1 0 0 0 1 1
1 1 0 0 1 1
Main Concepts of Boolean Algebra
X. DEMORGAN’s Law –
(a) (X+Y)’ = X’ . Y’ (b) (X.Y)’
X = X’
Y + Y’
(X+Y)’ X’.Y’ X Y (X.Y)’ X’ + Y’
0 0 1 1 0 0 1 1
0 1 0 0 0 1 1 1
1 0 0 0 1 0 1 1
VIII.1 1 0 0 1 1 0 0
.
You can prove a law with the help of truth table and can also be proven
mathematically.
Minimization of Boolean Expression algebraically
Solution:
1. AB’CD’ + AB’CD +ABCD’ + ABCD
= AB’C(D’+D)+ABC(D’+D)
=AB’C + ABC
= AC (B’+B) = AC.1 = AC