EE272 Digital Systems Fall 2019 Instructor: Dr. Aashir Waleed
EE272 Digital Systems Fall 2019 Instructor: Dr. Aashir Waleed
EE272 Digital Systems Fall 2019 Instructor: Dr. Aashir Waleed
Chapter 2
Boolean Algebra & Logic Gates
Lecture 2 – 2
Lecture Overview
Boolean Algebra
Boolean Functions
Logic Gates
Implementing Boolean Functions using Logic Gates
Canonical and Standard Forms
Inside logic gates
TTL and CMOS logic
Electrical characteristics: Signal levels, Noise margins,
Fan- out, Speed
Reading assignment: Chapter 2.1 to 2.8
Lecture 2 – 3
Logic function
Digital system works on binary number which has only
two elements, ‘0’, and ‘ 1 ’
Need circuits to manipulate 1’s and 0’s, they are called
logic function
A
F Y
B
C
A,B, C,Y – logic variables (binary
signals)
A, B,C – inputs
Y – output
Logic function:Y = F(A,B,C)
Lecture 2 – 4
Truth Table
Tabulate all possible input combinations of the variables
Showing the relation between the values that the
variables may take and the result of the
operation A B C Y
E.g. 0 0 0 1
0 0 1 1
0 1 0 0 How can we design a
0 1 1 1 circuit that implement a
1 0 0 0
certain function specified
1 0 1 1
1 1 0 1
by a truth table?
1 1 1 0
Lecture 2 – 5
Boolean Algebra
In 1854, a mathematician, George Boole, in a book
called “An Investigation of the Laws of Thought, on
Which are Founded the Mathematical Theories of
Logic an Probabilities” developed an algebraic system
to handle only two variables,TRUE and FALSE
Lecture 2 – 6
Structure of Boolean
Algebra
a set of elements B
Two binary {AND, OR} { ,
operations +}
One unary
Axioms
operation Postulates)
(Huntington {NOT} { ' }
x y + x ’ z = (x + z) (x’ + y)
(x y + x’ ) (x y + z) = (x + z) (x’ + y)
(x + x’)(y + x’)(x + z)(y + z) = (x + z)(x’ + y)
(y + x’)(x + z)(y + z + x x’) = (x + z)(x’ + y) since x + x’ = 1 and x x’ =
0
(y + x’)(x + z)(y + z + x)(y + z + x’) = (x + z)(x’ + y)
[(y + x’)(y + x’) + z (y + x’)][(x + z)(x + z) + (x + z) y ] = (x + z)(x’ + y)
[(y + x’)(1 + z)][(x + z)(1 + y)] = (x + z)(x’ + y) since 1 + z = 1 and 1 + y
=1
Lecture 2 – 12
Consensus
Theorem:
x y + y z + x’ z = x y + x’
z
Proof?
(x + y) (y + z) (x’ + z) = (x + y) (x’ +
z)
Proof?
Lecture 2 – 13
INVERT ER OR
AND
Lecture 2 – 15
A B Y Minterms A B Y Maxterms
0 0 Y0 A’ B’ 0 0 Y0 A +B
0 1 Y1 A’ B 0 1 Y1 A + B’
1 0 Y2 A B’ 1 0 Y2 A’ + B
1 1 Y3 A B 1 1 Y3 A’ + B’
Lecture 2 – 17
AND Y = AB =Σm(3) = m3
Agate
B Y=A.B
0 0 0 OR Y = A’B + AB’ + AB
0 1 0 Agate
B Y=A+B = Σm(1,2,3) = m1 + m2 + m3
1 0 0 0 0 0 Does this look like OR gate?
0 1 1 How about after further simplification:
1 1 1
1 0 1 = A’B + AB’ + AB + AB
1 1 1
= B (A’ + A) + A (B’ + B)
=A+B
Lecture 2 – 19
OR Y = (0+A+B)(1+A+B’)(1+A’+B)(1+A’+B’) = A + B
A gate
B Y=A+B = (0+A+B)(0+A+B’)(0+A’+B)(1+A’+B’)
A N D gate Y
0 0 0 A B Y=A.B = (A + B)(A + B’)(A’ + B)
0 1 1 Does this look like OR gate?
0 0 0 How about after further simplification:
1 0 1 0 1 0 =(AA + AB’ + BA + BB’)(A’ + B)
1 1 1 1 0 0 =A(1 + B’ + B)(A’ + B) since AA = A and
1 1 1 BB’=0
=AA’+AB since AA’ = 0
=AB
Lecture 2 – 20
OR Y = A + B = ΠM(0) =
A gate
B Y=A+B M0 = (A + B)(A + B’)(A’ + B)
A N D gate Y
0 0 0 A B Y=A.B = ΠM(0,1,2) = M0 M1 M2
0 1 1 0 0 0 Does this look like OR gate?
1 0 1 How about after further simplification:
0 1 0
1 1 1 =(AA + AB’ + BA + BB’)(A’ + B)
1 0 0
=A(1 + B’ + B)(A’ + B) since AA = A and
1 1 1 BB’=0
=AA’+AB since AA’ = 0
=AB
Apply to previous Example: F = x (y + z)
SOP: F = Σ m(5,6,7) = m5 + m6 + m7 = x y’ z + x y z’ + x
yz
POS:= F(x=+ Π
y +M(0,1,2,3,4) = M+0 M
z)(x + y + z’)(x y’1 +Mz)(x
2 M 3 +My’
4 + z’)(x’ + y +
z)
x y z (y+z) F = x.(y+z) Minterms Maxterms
0 0 0 0 0 m0 = x’ y’ z’ M0 = x + y + z
0 0 1 1 0 m1 = x’ y’ z M 1 = x + y + z’
0 1 0 1 0 m2 = x’ y z’ M 2 = x + y’ + z
0 1 1 1 0 m3 = x’ y z M 3 = x + y’ + z’
1 0 0 0 0 m4 = x y’ z’ M 4 = x’ + y + z
1 0 1 1 1 m5 = x y’ z M 5 = x’ + y + z’
1 1 0 1 1 m6 = x y z’ M 6 = x’ + y’ + z
1 1 1 1 1 m7 = x y z M 7 = x’ + y’ + z’
Apply to previous Example: F = x (y + z)
SOP: F = Σ m(5,6,7) = m5 + m6 + m7 = x y’ z + x y z’ + x
yz
Show that if you simplify SOP you get x (y + z)???
….
POS: F = Π M(0,1,2,3,4) = M0 M1 M2 M3 M4
= (x + y + z)(x + y + z’)(x + y’ + z)(x + y’ + z’)(x’ + y +
z) if you simplify POS, you get x (y +
Show that
z)???
…
Lecture 2 – 23
Example
F(A,B,C) m(3,4,5,6,7) m3 m4 m5 m6
m7
Lecture 2 – 26
A
Lecture 2 – 27
Summary
Four Alternative Implementations of F =m(3,4,5,6,7)
: A
Canonical Sum of Minterms
B F1 = A' B C + A B' C' +
F A B' C
C + A B C' + A
1
B C of Minterms
Minimized Sum
F2 = A + BC
F Canonical Products of
2 Maxterms
F F3 = (A+B+C) (A+B+C')
3
(A+B'+C)
F Minimized Products of
4
Maxterms F4 = (A+B) (A+C)
Lecture 2 – 29
Summary
Truth table and Boolean expression
Truth table is the unique signature of a Boolean function
Many alternative expressions (gate realizations) may have the same truth
table
Canonical form: Standard form for a Boolean expression
Provides a unique algebraic signature because it derives from the truth
table
Either presented in SOP or POS form
All the terms in SOP or POS must contain all the literals that the
function depends on (because it’s Canonical)
Leads to a two-level gate implementation (see the previous slide)
Sum of Product (AND first, OR last)
also known as minterm expansion
Product of Sum (OR first,AND last)
Also known as maxterm expansion
Lecture 2 – 30
Maxterms
Lecture 2 – 31
D
Lecture 2 – 33
z
z
Sequence of designing a digital circuit given
the logic function
Design
Sequence:
1.Truth Table
(input and output
relations)
Derive truth
table from project
specifications
2. Boolean
Expressions
Derived from the
truth table
3.Logic
Minimization
Use Laws of Boolean Algebra to reduce the complexity of Boolean
expressions while maintaining the same function
2’ Graphic Method (K-Map) (Chapter 3)
Re-express the truth table in graphs (K-Map)
3’ Logic Minimization
READ the simplified Boolean expressions from the graphs
Lecture 2 – 41
Reading assignment
Chapter 2.1 to 2.8 of
textbook