Boolean Values
Boolean Values
X X’
0 1
1 0
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
always be 0.
1 0 0
1 1 1 Shadowed potion shows X.Y
Neha Tyagi, KV 5 Jaipur II shift
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.
– 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
Neha Tyagi, KV 5 Jaipur II shift
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.X)’ + 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
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.
X X’
Low High
High Low X X’
OR
X X’
0 1
1 0
– This gate work for more than two input signals in similar manner.
– This gate work for more than two input signals in similar manner.
V. Commutative Law –
(a) X + Y = Y + X (b) X . Y = X . Y
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
Neha Tyagi, KV 5 Jaipur II shift
Main Concepts of Boolean Algebra
VI. Associative Law –
(a) X+(Y+Z) = (X+Y)+Z
X Y Z Y+Z X+Y 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
X Y Z Y.Z X.Y X . (Y . Z) (X . Y) . 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
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
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
You can prove a law with the help of truth table and can also be proven
mathematically.
Solution:
AB’CD’ + AB’CD +ABCD’ + ABCD
= AB’C(D’+D)+ABC(D’+D)
=AB’C + ABC
= AC (B’+B) = AC.1 = AC
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
Neha Tyagi, KV 5 Jaipur II shift
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
Neha Tyagi, KV 5 Jaipur II shift 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
Neha Tyagi, KV 5 Jaipur II shift
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
2. Prepare AND, NOT and OR gate and their circuit diagram by NOR
gate.