Chapter#2
BINARY LOGIC AND BOOLEAN ALGEBRA
INTRODUCTION
Device | Logic 0 | Logic 1 |
Switch | Off | On |
Lamp | Off | On |
Door | Open | Close |
Level | Low | High |
Types of Logic Gates
NOT GATE
AND GATE
OR GATE
NAND GATE
If both are 1, the output is 0; otherwise, the output is 1
NOR GATE
EX-OR or XOR GATE
If both are the same, the output is 0; otherwise, the output is 1.
EX-NOR or X-NOR GATE
SUMMARY OF LOGIC GATES
BUBBLED GATE
Input through inverter Bubbled OR gate
NAND AS UNIVERSAL GATE
NAND AS UNIVERSAL GATE
NAND AS UNIVERSAL GATE
NAND AS UNIVERSAL GATE
NOR AS UNIVERSAL GATE
NOR AS UNIVERSAL GATE
NOR AS UNIVERSAL GATE
NOR AS UNIVERSAL GATE
APPLICATIONS OF LOGIC GATES
BOOLEAN ALGEBRA
LAWS OF BOOLEAN ALGEBRA
PROPERTIES OF BOOLEAN ALGEBRA
(1) A+B=B+A OR is commutative
(2) A.B=B.A AND is commutative
2. ASSOCIATIVE PROPERTY: If variables are grouped in different ways there is no change in the result.
(1) A+(B+C)=(A+B)+C OR is associative
(2) A.(B.C)=(A.B).C AND is associative
3. DISTRIBUTIVE PROPERTY:
(I) A+BC=(A+B)(A+C) (2) A.(B+C)=AB+AC
Proof: LHS= A+BC
= A.1+BC
= A(1+B)+BC (⸪ 1+B=1)
= A.1+AB+BC
= A.(1+C)+AB+BC (⸪ 1+C=1)
= A.1+AC+AB+BC
= A.A+AC+AB+BC (⸪ A.A=A)
= A(A+C)+B(A+C)
= (A+B)(A+C)
=RHS
PROPERTIES OF BOOLEAN ALGEBRA
4. ABSORPTION PROPERTY:
(I) A+AB=A
Proof: LHS= A+AB
= A(1+B)
= A(1)
= A
=RHS
(2) A.(A+B)=A
Proof: LHS= A.(A+B)
= A.A+AB
= A+AB
= A(1+B)
= A.1
=A
= RHS
PROPERTIES OF BOOLEAN ALGEBRA
(3) A+A′B=A+B
Proof: LHS= A+A′B
= (A+A′)(A+B) (⸪ A+BC=(A+B)(A+C))
= 1(A+B) (⸪ A+A′=1)
= (A+B)
=RHS
(4) A(A′+B)=AB
Proof: LHS= A(A′+B)
= A. A′+AB
= 0+AB (⸪ A. A′=0)
=AB
=RHS
PROPERTIES OF BOOLEAN ALGEBRA
5. CONSENSUS PROPERTY:
(1) AB+A′C+BC=AB+ A′C
(2) (A+B)(A′+C)(B+C)=(A+B)(A′+C)
EXAMPLES OF BOOLEAN ALGEBRA
EXAMPLES OF BOOLEAN ALGEBRA
EXAMPLES OF BOOLEAN ALGEBRA
DE MORGAN’S THEOREMS
Complement of sum is equal to the product of the complements i.e
Left hand side is the complement of the sum. On the right hand side there is product instead the sum and each term is the complement of the variable.
DE MORGAN’S THEOREMS
DE MORGAN’S THEOREMS
Complement of the product is the sum of the complements i.e
Left hand side is the complement of the product of the variables A & B. On the right hand side there is sum of the complements of variables A and B.
DE MORGAN’S THEOREMS
DE MORGAN’S THEOREMS
DRAWING LOGIC CIRCUIT FROM BOOLEAN EXPRESSION (Q=A.B+B.C(B+C))
🡪 Our first step in simplification must be to write a Boolean expression for this circuit.
🡪This task is easily performed step by step if we start by writing sub-expressions at the output of each gate, corresponding to the respective input signals for each gate.
🡪 Remember that OR gates are equivalent to Boolean addition, while AND gates are equivalent to Boolean multiplication.
For example, I’ll write sub-expressions at the outputs of the first three gates:
DRAWING LOGIC CIRCUIT FROM BOOLEAN EXPRESSION (Q=A.B+B.C(B+C))
then another sub-expression for the next gate:
DRAWING LOGIC CIRCUIT FROM BOOLEAN EXPRESSION
Finally, the output (“Q”) is seen to be equal to the expression AB + BC(B + C):
DRAWING LOGIC CIRCUIT FROM BOOLEAN EXPRESSION (REDUCING EXPRESSION)
DRAWING LOGIC CIRCUIT FROM BOOLEAN EXPRESSION (REDUCING EXPRESSION)
DRAWING LOGIC CIRCUIT FROM BOOLEAN EXPRESSION (REDUCING EXPRESSION)
DRAWING LOGIC CIRCUIT FROM BOOLEAN EXPRESSION (MORE EXAMPLES)
DRAWING LOGIC CIRCUIT FROM BOOLEAN EXPRESSION (MORE EXAMPLES)