Lecture5 Simplification
Lecture5 Simplification
E1.2 Digital Electronics 1 5.1 31 October 2008 E1.2 Digital Electronics 1 5.2 31 October 2008
• The product term in a canonical SOP expression is An alternative notation: write f as a sum of the row
called a ‘minterm’ numbers that have TRUE minterms:
f = ∑(3,6,7)
E1.2 Digital Electronics 1 5.5 31 October 2008 E1.2 Digital Electronics 1 5.6 31 October 2008
= AB CD
E1.2 Digital Electronics 1 5.11 31 October 2008 E1.2 Digital Electronics 1 5.12 31 October 2008
Step 3: Step 5:
Write the SOP form for the output Implement the circuit
Z = A BC + AB C + ABC + ABC
Step 4:
Using the rules of Boolean algebra, try to simplify the expression
Z = A BC + AB C + ABC + ABC
= ABC + A BC + ABC + AB C + ABC + ABC
= BC ( A + A ) + AC ( B + B ) + AB(C + C )
= BC + AC + AB
E1.2 Digital Electronics 1 5.13 31 October 2008 E1.2 Digital Electronics 1 5.14 31 October 2008
AB\CD 00 01 11 10
Minimisation using Karnaugh Maps
00
• What is a Karnaugh map? An example 01 ? ??
with 4 variables:
BC 11
A grid of squares A 00 01 11 10 Corresponds to
minterm ABC 10
0
An example with
three variables: 1
The square marked ? represents: A BC D
• Similar to a truth table: shows the output value for every combination The square marked ?? represents:
of inputs A BCD
• Each square represents a minterm Note that they differ only in the C variable
• Only one variable changes between adjacent squares (similar to
Gray Codes)
• Squares at the edges are adjacent to squares on the opposite edges
E1.2 Digital Electronics 1 5.15 31 October 2008 E1.2 Digital Electronics 1 5.16 31 October 2008
Filling out a Karnaugh Map Minimisation technique
• Write the Boolean expression in SOP form • Minimisation is done by spotting patterns of 1s and 0s
• For each product term, write a 1 in all the squares which are
included in the term
• The rules of algebra can be used to describe the
• Write a 0 in the remaining blank squares
patterns in simple product terms
• Example: • For example, take a pair of adjacent 1s:
X = A BC + ABC + AB – Adjacent squares differ by one variable
– The expression for a pair of adjacent 1s has the form:
A \ BC 00 01 11 10 ( P )C + ( P )C = ( P )(C + C )
0 0 0 1 0
1 0 1 1 1 This can be simplified to just P
E1.2 Digital Electronics 1 5.17 31 October 2008 E1.2 Digital Electronics 1 5.18 31 October 2008
AB\CD 00 01 11 10 AB\CD 00 01 11 10
00 0 1 0 0 00 0 0 0 0
01 0 1 0 0 01 1 0 0 1
11 1 1 1 1 11 1 0 1 1
10 0 1 0 0 10 0 0 0 0
AB + C D BD + ABC
E1.2 Digital Electronics 1 5.21 31 October 2008 E1.2 Digital Electronics 1 5.22 31 October 2008
E1.2 Digital Electronics 1 5.23 31 October 2008 E1.2 Digital Electronics 1 5.24 31 October 2008
K-map simplification Complete K-map simplification process
– all groups must be of size 1, 2, 4, 8, 16, … 5. Find the product term that corresponds to each group
6. OR together all the product terms
E1.2 Digital Electronics 1 5.25 31 October 2008 E1.2 Digital Electronics 1 5.26 31 October 2008
Example: A \ BC 00 01 11 10
X can be 0 or 1, but the
0 0 0 1 X
best minimisation is if Z=B
X=1 1 0 0 1 1
E1.2 Digital Electronics 1 5.27 31 October 2008 E1.2 Digital Electronics 1 5.28 31 October 2008
More ‘don’t care’ examples Open the lift doors
when the lift is
stopped at a floor
F2 F3 F2 F3 F2 F3 F2 F3
M F1 0 1 X 1
M F1 1 X X X
OPEN = MF1 + MF 2 + MF 3
M F1 0 X X X
M F1 0 0 X 0
E1.2 Digital Electronics 1 5.29 31 October 2008 E1.2 Digital Electronics 1 5.30 31 October 2008
E1.2 Digital Electronics 1 5.31 31 October 2008 E1.2 Digital Electronics 1 5.32 31 October 2008
Summary
• SOP and POS are useful forms of Boolean equations
• Designing a combinational logic circuit:
1. Construct a truth table
2. Convert it to SOP
3. Simplify using Boolean algebra or a K-map
4. Implement
• A Karnaugh map is a graphical method for representing and
simplifying Boolean expressions
• “Don’t care” entries in a K-map can take values of 1 or 0 depending
on which value is more helpful in the simplification