Professional Documents
Culture Documents
NTUEE C.M. Li
Logic Design
Review Questions
What is SOP? What is POS?
What is multiplying out? What is Factoring?
What is DeMorgans Law?
Logic Design
NTUEE C.M. Li
SOP POS
Logic Design
NTUEE C.M. Li
Outline
Logic Design
NTUEE C.M. Li
Useful Equations
X(Y+Z) = XY+XZ
(X+Y)(X+Z) = X+YZ
(X+Y)(X+Z) = XZ+XY
If X=0
If X=1
A better proof will come later
NTUEE C.M. Li
Logic Design
Logic Design
NTUEE C.M. Li
Factoring Out
Converse of 3-1, 3-2 and 3-3 helps to factoring out
XY+XZ = X(Y+Z)
(3-1)
X+YZ = (X+Y)(X+Z)
(3-2) second distributive law
XZ+XY = (X+Y)(X+Z)
(3-3)
Example P.63
Factor AC+ABD+ABE+ACDE
Logic Design
NTUEE C.M. Li
Real-world Example
X+XY = X
X =
Y =
The following two conditions are the same
LD
() LD
Logic Design
NTUEE C.M. Li
Outline
NTUEE C.M. Li
Logic Design
Exclusive OR
0 0=0
0 1=1
1 0=1
1 1=0
XY = (X+Y)(XY)= XY+XY
Logic Design
NTUEE C.M. Li
10
Symbol of XOR
X XOR Y
Logic Design
11
NTUEE C.M. Li
Theorems
P.65
X0=X
X 1 = X
XX=0
X X = 1
X Y = Y X (commutative law)
(X Y ) Z = X ( Y Z ) = X Y Z (associative law)
X( Y Z ) = XY XZ (distributive law)
(X Y) = X Y = X Y = XY + XY
Logic Design
NTUEE C.M. Li
(3-8)
(3-9)
(3-10)
(3-11)
(3-12)
(3-13)
(3-14)
(3-15)
12
Equivalence
00=1
10=0
01=0
11=1
X Y = 1 iff X equals Y
(X Y) = XY+XY
Equivalence is complement of XOR
NTUEE C.M. Li
Logic Design
13
Symbol of Equivalence
Equivalence
Exclusive NOR
XNOR
Logic Design
NTUEE C.M. Li
14
Example p.66
Simplify A B C
Logic Design
NTUEE C.M. Li
15
Use of XOR
Error Checking
Logic Design
NTUEE C.M. Li
16
Outline
Logic Design
NTUEE C.M. Li
17
Consensus Term
Given a pair of terms for which a variable appears in one term and
Logic Design
NTUEE C.M. Li
18
Consensus Theorem
Consensus Theorem: Consensus term can be eliminated
SOP form
XY + XZ + YZ = XY+XZ
Proof. on P.67
(3-20)
Exercise P.67
ab+ac+bc+bc+ab =?
POS form
(X+Y)(X+Z)(Y+Z) = (X+Y)(X+Z)
Exercise P.67
(a+b+c)(a+b+d)(b+c+d)= ?
Logic Design
NTUEE C.M. Li
19
Logic Design
NTUEE C.M. Li
20
Order Matters
The final results obtained by consensus theorem may depend on the
order in which terms are eliminated.
Example P.67
Simplify ACD+ABD+BCD+ABC+ACD
Method 1
Method 2
NTUEE C.M. Li
Logic Design
21
Simplification Using CT
Sometimes, adding a CT into Boolean expression helps to simplify
Example p.67
F=ABCD+BCDE+AB+BCE
Logic Design
NTUEE C.M. Li
22
Outline
NTUEE C.M. Li
Logic Design
23
Simplification
General rules of simplifying Boolean expressions
Step 1 combining terms
XY+XY=X
Dual: (X+Y)(X+Y)=X
Step 2 Eliminating terms
X+XY=X
Dual: X(X+Y) = X
XY+XZ+YZ = XY+XZ Dual: (X+Y)(X+Z)(Y+Z)=(X+Y)(X+Z)
Step 3 Eliminating literals
X+XY=X+Y
Dual: X(X+Y) = XY
Step 4 adding redundant CT terms
Logic Design
NTUEE C.M. Li
24
ABCD+ABCD+ABD+ABCD+ABCD+ACD+BCD
POS Example P. 70
(A+B+C)(A+B+C)(B+C)(A+C)(A+B+C)
Logic Design
NTUEE C.M. Li
25
Logic Design
NTUEE C.M. Li
26
Outline
Logic Design
NTUEE C.M. Li
27
Why ?
1. prove theorems
2. verify circuits
3. compare answers with your classmates
Logic Design
NTUEE C.M. Li
28
Logic Design
NTUEE C.M. Li
29
Prove Inequality
Showing one counterexample is enough
Logic Design
NTUEE C.M. Li
30
side
4. try to eliminate terms from one side that are not present on the
other side
Logic Design
NTUEE C.M. Li
31
Examples
Example 1, P. 71
Steps 2 to 4
Example 2, P. 71
Step 1
Logic Design
NTUEE C.M. Li
32
Cancellation Law
Cancellation law of ordinary algebra are not true for Boolean algebra
Ordinary algebra
If x+y = x+z then y=z
Boolean algebra
NOT APPLICABLE!
1+0=1+1 , but 10
Ordinary algebra
If xy=xz, then y=z if x not zero
Boolean algebra
NOT APPLICABLE!
So when proving Boolean equations, DO NOT use cancellation law
Converse of cancellation law is ok
If y=z, then x+y = x+z
If y=z, then xy=xz
Logic Design
NTUEE C.M. Li
33
FFT
Q: Proving equation is so hard. Can we find a good computer
Logic Design
NTUEE C.M. Li
34
Programmed Exercise
Please try all exercises
3-1 to 3-5
Will ask you next time
Logic Design
NTUEE C.M. Li
35
Tired of Equations?
Will teach simpler methods later
K map
Logic Design
NTUEE C.M. Li
36
Next Time
ch 1 Introduction Number Systems
and Conversion
ch 2 Boolean Algebra
(change to Rm.105, 9am to 12pm)
Or attend other classes on 9/26
ch 3 Boolean Algebra (contd)
ch 4. Application of Boolean Algebra
ch 5 Karnaugh Maps
ch 7 Multi-Level Gate Circuits;
NAND NOR Gates
ch 8 Combinational Ckt Design
Midterm
Logic Design
NTUEE C.M. Li
37