Lecture 3 Updated
Lecture 3 Updated
SEQUENTIAL CIRCUIT
DESIGN
BOOLEAN ALGEBRA & LOGIC GATES
2
BASIC DEFINITION
Closure
A set S is closed w.r.t. a binary operator if, for every pair of elements of S, the binary
operator specifies a rule for obtaining a unique element of S.
◼ Example
3
BASIC DEFINITIONS
◼ Associative Law
A binary operator * on a set S is said to be associative whenever:
◼ Commutative Law
A binary operator * on a set S is said to be commutative whenever:
4
BASIC DEFINITIONS
◼ Identity Element
A set S is said to have an identity element with respect to a binary
operation * on S if there exist an element e S with the property
e * x = x * e = x for every x S
5
BASIC DEFINITIONS
QUESTION
With respect to operator +, what is the identity element for the set of natural numbers
NONE
With respect to operator +, what is the identity element for the set of whole numbers
ZERO
6
BASIC DEFINITIONS
Inverse
A set S having the identity element e with respect to a binary
operator * is said to have an inverse whenever, for every x
S, there exist an element y S such that
x * y = e for every x S
◼ Example
For set of integers I and operator +, e=0
Inverse of a = -a
a+ (-a) = 0 = e 7
BASIC DEFINITIONS
Distributive Law
If ‘*’ and ‘.’ are two binary operators on S, ‘*’ is said to be
distributive over ‘.’ whenever
The only distributive law applicable is that of * over +:
a * (b + c) = (a * b) + (a * c)
8
BOOLEAN ALGEBRA
9
POSTULATES & THEOREMS
Postulate (a fact)
Theorem
❑ A statement which can be proved to be true
using logical (deductive) reasoning
❑ A proposition deducible from basic postulates
10
BOOLEAN ALGEBRA
11
POSTULATE 1
A1. Closure: For every a, b B
I. a + b is in B; Closure with respect to ‘+’
II. a · b is in B; Closure with respect to ‘.’
(1,0)
(1,0) (1,0)
(1,0)
(1,0) (1,0)
12
POSTULATE 2
A2. Existence of identity elements: The set B has two distinct identity
elements, denoted as 0 and 1, such that for every element a B
additive identity element
I. a+0=0+a=a
II. a·1=1·a= a
a a
a 1 a
0
OR operation AND operation 13
POSTULATE 3
A3. Commutative laws: For every a, b B
I. a+b=b+a
II. a·b=b·a
a
F=a+b a F = a.b
b b
b
F=b+a b F = b.a
a a
14
POSTULATE 4
A4. Distributive laws: For every a, b, c B
a · (b + c) = (a · b) + (a · c)
a·+(b . c) = (a·+ b) . (a + c)
15
POSTULATES 5 & 6
A5. Existence of a complement: For every element a B there exists an
element a’ such that
I. a + a’ = 1
II. a · a’ = 0
the complement of a
16
BOOLEAN ALGEBRA
Closure➔ x + y is in B and x . y is in B
Obvious as result either 0 or 1
Duals
Postulate
Expression 1 Expression 2
1 a, b, a + b ε B a, b, a · b ε B
2 a+0=a a·1=a
3 a+b=b+a a·b=b·a
4 a + (b + c) = (a + b) + c a · (b · c) = (a · b) · c
6 a+a =1 a•a = 0
PROPERTIES OF BOOLEAN ALGEBRA
The postulates are basic axioms of the algebraic structure and need no proof.
The theorems must be proven from the postulates.
21
Identity a) x + 0 = x
b) x .1 = x
Commutative a) x + y = y + x
b) x .y = y.x
THEOREM 1: Distributive a) x.(y + z) = (x .y) + (x.z)
b) x + (y.z) = (x+y).(x+z)
IDEMPOTENCY Complement a) x + x’ = 1
b) x.x’ = 0
22
Identity a) x + 0 = x
b) x .1 = x
Commutative a) x + y = y + x
b) x .y = y.x
THEOREM 1: Distributive a) x.(y + z) = (x .y) + (x.z)
b) x + (y.z) = (x+y).(x+z)
IDEMPOTENCY Complement a) x + x’ = 1
b) x.x’ = 0
23
Identity a) x + 0 = x
b) x .1 = x
THEOREM 2 Commutative a) x + y = y + x
b) x .y = y.x
Distributive a) x.(y + z) = (x .y) + (x.z)
a + 1 = 1, for + operator b) x + (y.z) = (x+y).(x+z)
Complement a) x + x’ = 1
a · 0 = 0, for · operator b) x.x’ = 0
Proof:
a+1 = (a + 1).1
= 1.(a + 1)
= (a + ā).(a + 1)
= a + ā.1
= a+ā
= 1
a · 0 = 0 (By Duality) 24
Identity a) x + 0 = x
b) x .1 = x
Commutative a) x + y = y + x
b) x .y = y.x
Distributive a) x.(y + z) = (x .y) + (x.z)
b) x + (y.z) = (x+y).(x+z)
THEOREM 2 Complement a) x + x’ = 1
b) x.x’ = 0
a + 1 = 1, for + operator
a · 0 = 0, for · operator
Proof:
a.0 = (a.0) + 0
= 0 + (a.0)
= (a.ā) + (a.0)
= a.(ā + 0)
= a.ā
= 0
25
THEOREM 3 - INVOLUTION
a=a
Proof:
a + ā = 1 and a ā = 0, (complements)
or ā + a = 1 and ā a = 0, (commutativity)
i.e., a is complement of ā
Therefore, a = a
26
THEOREM 4 - ABSORPTION
Identity a) x + 0 = x
b) x .1 = x
Commutative a) x + y = y + x
b) x .y = y.x
Distributive a) x.(y + z) = (x .y) + (x.z)
b) x + (y.z) = (x+y).(x+z)
a+ab=a Complement a) x + x’ = 1
a (a + b) = a b) x.x’ = 0
Proof:
a + a.b = a.1 + a b
= a.(1 + b)
= a .1
= a
27
THEOREM 5 – DEMORGAN
(a+b)’ = a’.b’
(a.b)’ = a’+ b’
a b a+b (a+b) a’ b’ a’b’
’ 1 1 1
0 0 0 1 1 0 0
0 1 1 0 0 1 0
1 0 1 0 0 0 0
1 1 1 0
28
THEOREM 6 - ASSOCIATIVITY
a + (b + c) = (a + b) + c
a.(b.c) = (a.b).c
29
BOOLEAN FUNCTIONS
Boolean functions, truth tables or logic diagrams can be generated from
each other
Two different boolean functions may represent the same logic and truth
table
a
b
F
31
IMPLEMENTATION OF BOOLEAN FUNCTIONS
F1 = x + y ' z
Boolean Function expresses logical relationship between
binary variables
x
F1
y
z
IMPLEMENTATION OF BOOLEAN FUNCTIONS
F2
z
IMPLEMENTATION OF BOOLEAN FUNCTIONS
▪ Try another implementation using a simplified F2:
= x' z + xy '
x
y
F2
This implementation has fewer gates and fewer inputs to the gates (or wires) than the previous one.
SIMPLIFYING BOOLEAN FUNCTIONS
F3 = xy + x' z + yz
= xy + x' z + yz ( x + x' ) Identity .1 is same & Complement Pos (x.x’)=1
z
COMPLEMENT OF A FUNCTION
DeMorgan’s Theorem
(x+y)’ = x.’y’
(x.y)’=x’+y’
(A+B+C+D+…+F)’= A’B’C’D’…. F’
(ABCD…F)’ = A’+B’+C’+D’+… + F’
The complement of a function can be obtained by interchanging AND and OR operators and
complementing each literal
COMPLEMENT OF A FUNCTION
F = x’yz’+x’y’z
F’ = (x’yz’+x’y’z)’
= (x’yz’)’.(x’y’z)’
=(x+y’+z).(x+y+z’)
COMPLEMENT OF A FUNCTION
Example: Find the complement of F by taking its dual and complementing each
literal
F = x’yz’+x’y’z
Dual of F
= (x’+y+z’).(x’+y’+z)
Complement each literal
=(x+y’+z).(x+y+z’) = F’
COMPLEMENT OF A FUNCTION
Example: Find the Complement of
F = ( AB '+C ) D '+ E
F ' = [( AB '+C ) D '+ E ]'
= [( AB '+C ) D ' ]' E '
= [( AB '+C )'+ D ' ' ]E '
= [( AB ' )' C '+ D ]E '
= ( A'+ B )C ' E '+ DE '
DEFINITIONS
0 0 0 x’.y’.z’ m0 x+y+z M0
0 0 1 x’.y’.z m1 x+y+z’ M1
0 1 0 x’.y.z’ m2 x+y’+z M2
0 1 1 x’.y.z m3 x+y’+z’ M3
1 0 0 x.y’.z’ m4 x’+y+z M4
1 0 1 x.y’.z m5 x’+y+z’ M5
1 1 0 x.y.z’ m6 x’+y’+z M6
1 1 1 x.y.z m7 x’+y’+z’ M7
MINTERMS AND MAXTERMS
m3 = XYZ = X + Y + Z = M 3
REPRESENTATION OF FUNCTIONS
Representation of Function in minterms m x y z F1 F2
0 0 0 0 0 0
F1 = x’y’z+x’yz+xyz = m1 + m4 + m7
1 0 0 1 1 0
F2 = x’yz+xy’z+xyz’+xyz = m3 + m5 + m6 + m7
2 0 1 0 0 0
3 0 1 1 0 1
Representation of Function in maxterms 4 1 0 0 1 0
F1 = (x+y+z).(x+y’+z).(x+y’+z’).(x’+y+z’).(x’+y’+z) 5 1 0 1 0 1
= M0 . M2 . M3 . M5 . M6
6 1 1 0 0 1
F2 = (x+y+z).(x+y+z’).(x+y’+z).(x’+y+z)
= M0 . M1 . M2 . M4 7 1 1 1 1 1
F1 ( x, y, z ) = (1,4,7) = m1 + m4 + m7
= ( x' y ' z ) + ( xy ' z ' ) + ( xyz )
PRODUCT OF MAXTERMS
x y z F1 F2
0 0 0 0 1
0 0 1 1 0
0 1 0 0 1
0 1 1 0 1
1 0 0 1 0
1 0 1 1 0
1 1 0 1 0
1 1 1 1 0
F1 ( x, y, z ) = (0,2,3) = M 0 M 2 M 3
= ( x + y + z )( x + y '+ z )( x + y '+ z ' )
Example: Sum of Minterms
x = x( y + y ' ) = xy + xy '
xy = xy ( z + z ' ) = xyz + xyz '
xy ' = xy ' ( z + z ' ) = xy ' z + xy ' z '
y ' z = y ' z ( x + x' ) = xy ' z + x' y ' z
Adding all terms and excluding recurring terms:
F= y’ + xy+ x’yz’
F= x(y’+z)(x+’y+z’)
x’
y
z’
y’
F
x
y
PRODUCT OF SUMS
F= x(y’+z)(x’y+z’)
x’
y
z’
x
F
y’
z
BE-26 C
NON STANDARD BOOLEAN FUNCTION
Boolean Expression in non standard form F=AB+C(D+E)
Neither SOP or POS
Implemented in 3 levels
NON STANDARD BOOLEAN FUNCTION
F=AB+C(D+E)
Convert to Standard Form by distributive law
F=AB+C(D+E) = AB+CD+CE
Draw 2 Level Standard Sum of Product Circuit
TRUTH TABLE FOR 2 VARIABLES
2 = 1622
f0 to f15