Professional Documents
Culture Documents
Karnaugh Maps QUINE McCLUSKY METHOD EPRESSO Algorithm HAZARDSStatic and Dynamic
Karnaugh Maps
z
Review
Lecture 2
Form the PI chart Remove the EPI Re-form the PI chart ( with non-essential PIs only) Apply the following 2 rules to reduce the PI chart
z z
A row that is covered by another row may be eliminated A column that covers another column may be eliminated
Note: If the PI chart is cyclic ( no SPI and cant be reduced using the above two rules), then arbitrarily select a PI for SPI and apply the rules for the remaining PI chart.
EE 270 Simplification of Boolean Expressions Dr. Tri Caohuu 2006 Andy Davis Lecture 2 3
Learning by example
z
F (A,B,C,D) = m(2,4,6,8,9,10,12,13,15)
AB CD 00 01 00 01 11 10
1 1 1
1 1
11 10
1
Dr. Tri Caohuu 2006 Andy Davis Lecture 2 4
Step 1
z
Group 1 (a single 1)
Step 2
z
Step 2: Make a list of minterms that can be combined ( minterms differing by a single literal)
List 1 Minterm 2 4 8 6 9 10 12 13 15 ABCD 0010 0100 1000 0110 1001 1010 1100 1101 1111 9 9 9 9 9 9 9 9 9 Minterm 2,6 2,10 4,6 4,12 8,9 8,10 8,12 9,13 12,13 13,15 List 2 ABCD 0-10 -010 01-0 -100 10010-0 1-00 1-01 11011-1 PI 2 PI 3 PI 4 PI 5 9 PI 6 9 9 9 PI 7
Lecture 2 6
Step 3
z
2 ** PI 1 PI 2 PI 3 x x
8 x
9 x
10
12 x
13 x
15
x x x x x x x
Dr. Tri Caohuu 2006 Andy Davis Lecture 2
EPI
PI 4 PI 5 PI 6 ** PI 7
x x
x
7
Step 4
z
2 PI 2 *PI 3 *PI 4 PI 5 PI 6 x x
6 x
10
x x x x x
Lecture 2
Covering Procedure
z
Rule 1: A row that is covered by another row may be eliminated from the chart. When identical rows are present, all but one of the rows may be eliminated. Rule 2: A column that covers another column may be eliminated. All but one column from a set of identical columns may be eliminated.
Lecture 2
0 ** PI 1 PI 2 PI 3 PI 4 PI 5 PI 6 ** PI 7 X
1 X X
8 X
9 X X
10
11
13
14
15
X X X X
X X X
X X
X X X X X X X X
X X X
F(A,B,C,D) = ?
EE 270 Simplification of Boolean Expressions Dr. Tri Caohuu 2006 Andy Davis Lecture 2 10
Cyclic PI
z
A cyclic PI chart is a chart that contains no essential PI and that cannot be reduced by rules 1 and 2.
F (A,B,C,D) = m(1,2,3,4,5,6)
9 9
1 * PI 1 PI 2 PI 3 PI 4 PI 5 PI 6 X X
3 X
X X
X X X X X X
Dr. Tri Caohuu 2006 Andy Davis Lecture 2 11
Procedure
z
z z z
Step 1: Identify any minterms covered by only one PI in the chart. Select these PIs for the cover. Note that this step identifies essential PIs on the first pass and nonessential PIs on the subsequent passes (from step 4) Step 2: Remove rows corresponding to the identified essential and nonessential PIs. Remove columns corresponding o minterms covered by the removed rows. Step 3: If a cyclic chart results after completing step 2, go to step 5. otherwise, apply the reduction procedure of rules 1 and 2 Step 4: if a cyclic chart results from step 3, go to step 5. otherwise, return to step 1. Step 5: apply the cyclic chart procedure. Repeat step 5 until a void chart occurs or until a noncyclic chart is produced. In the latter case, return to step 1.
Dr. Tri Caohuu 2006 Andy Davis Lecture 2 12
List 2 ABCDE 00010-010 -0010 00-11 -0011 001-1 -0101 10010-111 -0111 10-11 1-011 101-1 9 PI4 9 9 9 9 9 9 PI5 9 9 PI6 9 Minterm 2,3,18,19 3,7,19,23 5,7,21,23
Lecture 2
13
Listing dont cares as regular minterms Do not list dont cares in the PI chart Dont care terms do not need to be checked out
9 9 9 9 9 9
2 PI 1 PI 2 PI 3 ** PI 4 ** PI 5 ** PI 6 ** PI 7 X X
3 X X
10
12
15
27
X X X X X X X
Dr. Tri Caohuu 2006 Andy Davis Lecture 2 14
SYSTEMS WITH MULTIPLE OUTPUTS Simplification of switching functions by exploiting potential gate sharing to obtain a simpler overall design. z Introduction of Flags column z Minterms can be combined only if they possess one or more common flags and the term that results from the combination carries only flags that are common to both minterms z Minterm(s) are checked off only if all flags are included in the resulting combination
EE 270 Simplification of Boolean Expressions Dr. Tri Caohuu 2006 Andy Davis Lecture 2 15
Example: F(A,B,C,D) = m(0,2,7,10) + d(12,15) F(A,B,C,D) = m(2,4,5) + d(6,7,8,10) F(A,B,C,D) = m(2,7,8) + d(0,5,13)
Lecture 2
16
PI13
Lecture 2
17
F 9 7 10 9 2 9 4 X 9 5 X X 9 2
9 2
X X X X X
X X X X X
X
18
F = PI2 + PI5 + PI13 F = PI1 + PI5 F = PI2 + PI3 + PI13 *PI3 PI7 PI9 PI11 *PI13
F 9 7 9 7
F 9 8 X X
X X X X
Lecture 2
19
PETRICKS ALGORITHM
Use an algebraic approach to generate all possible covers of a function
z
z z
Write a POS expression representing all possible covers, C Convert C into SOP form Select the product that represents a minimum cost
Dr. Tri Caohuu 2006 Andy Davis Lecture 2 20
10
PETRICKS ALGORITHM
C = (PI1 + PI6)(PI1 + PI2)(PI2 + PI3)(PI3+ PI4)(PI4 + PI5)(PI5 + PI6) = PI1 PI3 PI5 + PI2 PI3 PI5 PI6 + PI1 PI2 PI4 PI5 + PI2 PI4 PI6 + PI2PI3 PI5 PI6 PI1 PI3 PI5 is a minimum solution
9 9
1 * PI 1 PI 2 PI 3 PI 4 PI 5 PI 6
EE 270 Simplification of Boolean Expressions
3 X
X X X
X X X X X X
Dr. Tri Caohuu 2006 Andy Davis Lecture 2 21
A Static Hazard exists in a combinational circuit realizing a Boolean function if the function assumes momentarily a wrong value during a single change in its variables A Dynamic Hazard exists in combinational circuit realizing a Boolean function, whose value must change from 0/1 to 1/0 due to a change in one of its variables, does not change in a single step
Dr. Tri Caohuu 2006 Andy Davis Lecture 2 22
11
Lecture 2
23
X1 X2,X3 00 01
D = X1 X2 + X2 X3 0 1
1 1 1 1
11 10
EE 270 Simplification of Boolean Expressions
Lecture 2
24
12
Theorem: Static 1 hazard exists in the realization of a Boolean function in the form of a sum of cubes if there exists two disjoint and adjacent cubes Theorem: Static 1 hazard can be eliminated in a Boolean function expressed as a sum of cubes by providing the bridging cube for each pair of disjoint and adjacent cubes
Lecture 2
25
Lecture 2
26
13
1 0 0 1
0 0 1 1
11 10
Lecture 2
27
14