Chapter 2
Chapter 2
Boolean Algebra
Contents
Objectives
•
•
•
•
2.1 Introduction
•
• –
• …
2.2 Basic Operations
NOT(Inverter)
0' = 1 and 1' = 0
Gate Symbol
2.2 Basic Operations
AND
0⋅0 = 0 0 ⋅1 = 0 1⋅ 0 = 0 1 ⋅1 = 1
A B C=A·B
Truth Table
0 0 0
0 1 0
1 0 0
1 1 1
Gate Symbol
2.2 Basic Operations
OR
0+0 = 0 0 +1 = 1 1+ 0 = 1 1+1 = 1
A B C=A+B
Truth Table
0 0 0
0 1 1
1 0 1
1 1 1
Gate Symbol
2.2 Basic Operations
Apply to Switch
AND T = A⋅ B
OR T = A+ B
2.3 Boolean Expressions and Truth Tables
’
2.3 Boolean Expressions and Truth Tables
Logic Expression : [ A(C + D)]'+ BE
A B A’ F = A’ + B
0 0 1 1
0 1 1 1
1 0 0 0
1 1 0 1
2.3 Boolean Expressions and Truth Tables
Proof using Truth Table AB'+C = ( A + C )( B'+C )
n times
0 0 0 1 0 0 0 1 0
0 0 1 1 0 1 1 1 1
0 1 0 0 0 0 0 0 0
0 1 1 0 0 1 1 1 1
1 0 0 1 1 1 1 1 1
1 0 1 1 1 1 1 1 1
1 1 0 0 0 0 1 0 0
1 1 1 0 0 1 1 1 1
2.4 Basic Theorems
Operations with 0, 1 X +0= X X ⋅1 = X
X +1 = 1 X ⋅0 = 0
Idempotent Laws X+X =X X ⋅X = X
Involution Laws ( X ' )' = X
Complementary Laws X + X '=1 X ⋅ X '= 0
Example ( AB'+ D) E + 1 = 1
( AB'+ D)( AB'+ D)' = 0
2.4 Basic Theorems with Switch Circuits
·
2.4 Basic Theorems with Switch Circuits
2.5 Commutative, Associative, and
Distributive Laws
Commutative Laws: XY = YX X +Y = Y + X
Proof
( X + Y )( X + Z ) = X ( X + Z ) + Y ( X + Z ) = XX = XZ + YX + YZ
= X + XZ + XY + YZ = X ⋅1 + XZ + XY + YZ
= X (1 + Z + Y ) + YZ = X ⋅1 + YZ = X + YZ
2.6 Simplification Theorems
Useful Theorems
for Simplification XY + XY ' = X ( X + Y )( X + Y ' ) = X
X + XY = X X (X +Y) = X
( X + Y ' )Y = XY XY '+Y = X + Y
Proof X + XY = X ⋅1 + XY = X (1 + Y ) = X ⋅1 = X
X ( X + Y ) = XX + XY = X + XY = X
Y + XY ' = (Y + X )(Y + Y ' ) = (Y + X )1 = Y + X
F = A( A'+ B) = AB
Proof ’ ’
’
2.7 Multiplying Out and Factoring
To obtain a sum-of-product form Î Multiplying out using distributive laws
Sum of product
form:
Product of sum
form:
2.8 DeMorgan’s Laws
( X + Y )' = X ' Y '
DeMorgan’s Laws
( XY )' = X '+Y '
Proof
X Y X’ Y’ X+Y ( X + Y )’ X’ Y’ XY ( XY )’ X’ + Y’
0 0 1 1 0 1 1 0 1 1
0 1 1 0 1 0 0 0 1 1
1 0 0 1 1 0 0 0 1 1
1 1 0 0 1 0 0 1 0 0
A B A’ B A B’ F = A’B+AB’ A’ B’ AB F’ = A’B’ + AB
0 0 0 0 0 1 0 1
0 1 1 0 1 0 0 0
1 0 0 1 1 0 0 0
1 1 0 0 0 0 1 1
Dual: ‘dual’ is formed by replacing AND with OR, OR with AND, 0 with 1, 1 with 0