Ee177 Supplement 3
Ee177 Supplement 3
INTRODUCTION TO
DIGITAL LOGIC
TheoremsofBooleanAlgebra(1)
1)A+0=A
2)A+1=1
3)A0=0
4)A1=A
5)A+A=A
6)A+A=1
7)AA=A
8)AA=0
DeMorgans
Theorem
TheoremsofBooleanAlgebra(2)
9)A=A
10)A+AB=A
11)A+AB=A+B
12)(A+B)(A+C)=A+BC
13)Commutative:A+B=B+A
AB=BA
14)Associative:A+(B+C)=(A+B)+C
A(BC)=(AB)C
15)Distributive:A(B+C)=AB+AC
(A+B)(C+D)=AC+AD+BC+BD
9/16/2015
ImplicationsofDeMorgansTheorem
DeMorgansTheorems
Two most important theorems of Boolean
Algebra were contributed by De Morgan.
(a)
(b)
Input
Output
X+Y XY
(c)
16)(X+Y)=X.Y
17)(X.Y)=X+Y
ImplicationsofDeMorgansTheorem
(a)
(b)
Input
Output
XY X+Y
(c)
DeMorgansTheoremConversion(1)
Step1:ChangeallORstoANDsandallANDstoOrs
Step2:Complementeachindividualvariable
(shortoverbar)
Step3:Complementtheentirefunction(longoverbars)
Step4:Eliminateallgroupsofdoubleoverbars
Example:A.B
A.B.C
=A+B
=A+B+C
=A+B
=A+B+C
=A+B
=A+B+C
=A+B
9/16/2015
DeMorgansTheoremConversion(2)
ABC+ABC
=(A+B+C).(A+B+C)
=(A+B+C).(A+B+C)
=(A+B+C).(A+B+C)
=(A+B+C).(A+B+C)
Example:Analyzethecircuitbelow
(A+B+C)D
=(A.B.C)+D
=(A.B.C)+D
=(A.B.C)+D
=(A.B.C)+D
1. Y=???
2. Simplify the Boolean expression found in 1
Exercises:
Example:Analyzethecircuitbelow(CONT.)
Followthestepslistbelow(constructingtruth
table)
Listalltheinputvariablecombinationsof1and0
inbinarysequentially
Placetheoutputlogicforeachcombinationof
input
Baseontheresultfoundwriteouttheboolean
expression.
9/16/2015
Notes:
SOP and POS expression cannot have more than
one variable combined in a term with an inversion bar
Theres no parentheses in the expression
f ( A, B, C ) m2 m3 m6
f ( A, B, C ) m(2,3,6)
9/16/2015
f ( A, B, C ) ( A B C ) ( A B C ) ( A B C ) ( A B C )
f ( A, B, C ) M 1M 4 M 5
f ( A, B, C ) M (1,4,5)
K-Map (1)
TheKarnaughMAP
(KMap)
9/16/2015
K-Map (2)
The map is made up of a table of every possible
SOP using the number of variables that are being
used.
B
0
B
The upper right hand cell is A B if
X= A B then put an X in that cell
If X=AB + AB then
put an X in both of
these cells
A
A
1
1
9/16/2015
X=ABC+ABC+ABC+ABC
Gray Code
00
AB
01
AB
11
AB
10
AB
AB
01
AB
11
AB
10
AB
00
AB
01
AB
11
AB
10
AB
Each 3 variable
term is one cell
on a 4 X 2
Karnaugh map
One
simplification
could be
00
AB
C
1
C
1
X =AB +AB
01
AB
X=BC+BC
11
AB
10
AB
A Karnaugh
Map does wrap
around
Another
simplification
could be
9/16/2015
C
1
C
1
00
AB
01
AB
The Best
simplification
would be
11
AB
X =B
10
AB
4 Variables K-Map
Gray Code 0 0
On a 3 Variables K-Map
01
11 10
Simplify:
X=ABCD+ABCD+ABCD+ABCD+ABCD+ABC
D
Gray Code
CD CD CD CD
00
AB
01
AB
00
01
11
CD CD CD CD
00
AB
01
AB
11
AB
10
AB
11
AB
12
13
15
14
10
AB
11
10
10
Now try it
with Boolean
reductions
1
1
X = ABD + ABC + CD
9/16/2015
On a 4 Variables K-Map
Simplify:
Z=BCD+BCD+CD+BCD+ABC
Gray Code
00
01
11
10
CD CD CD CD
00
AB
01
AB
11
AB
10
AB
1
1
1
1
1
1
1
Z = C +AB + B D
SOP expression
9/16/2015
00
01
11
10
CD CD CD CD
00
AB
01
AB
11
10
1
1
AB
AB
Y=1
1
1
01
11
10
10
9/16/2015
CD
AB
00
01
1 1
10
00
01
11
12
13
15
14
10
11
10
K-Map - Examples
Mapping a Standard SOP expression
Example:
Y ABC D ABC D A BCD ABCD ABC D ABC D
Y B D ACD
Answer:
Mapping a Standard POS expression
Example:
Using K-Map, convert the following standard POS
expression into a minimum SOP expression
Y A( B C )
Y ABC ABC ABC
Answer:
Y = AB + AC or standard SOP:
11
9/16/2015
:
Output
Solution :
F(A, B, C, D) M(0,2,6,8,9,10) D(5,12,13,14,15)
CD
AB
00
BC
00
0
01
11
10
0
4
12
8
01
1
X
X
1
5
13
11
1
1
X
1
3
7
15
11
10
0
0
2
6
14
10
AD
CD
12
9/16/2015
Exercise
Minimize this expression with a K-Map
13
9/16/2015
6 variable K-map
End of
Chapter 1
- tqvm -
14