












Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!













Multiple Output Q-M
Multiple o/p’s
Multiple i/p’s
Share gates as much as possible to reduce cost
Sometimes sharing reduces cost; however indiscriminate sharing (e.g., having canonical SOPs for all functions) can actually increase cost.
Q: How to do this optimally? A: Multi-function Q-M.
f AD ABD
f AB ABD
α
β
= +
= + B
f β
f α
4 trans.
6 trans.
4 trans.
4 trans.
22 transistors^ 4 trans.
BD α
12 1 9
f (^) β = AB + ACD cost = 5 + 2 = 7
Multiple Output Q-M
f (^) α = (^) ∑m(3, 4,5, 7,13,15)
f (^) β = (^) ∑ m(8,12,13,14,15) +∑d(6)
14 10 (^6) x 1 2 10
15 11 1
7 1 3 11^1
13 1 5 1
1 01
8 1 4 1 0 00
00 01 11 10
AB CD
ABC
ACD
α α (^) β
α β
α α (^) α (^) β
ACDβ
ABD α β
Taken separately^ ABβ
α (^) β
β β
α
CDβ
Total cost=
Xβ Xβ
(1) Each minterm is tagged by “flag(s)” of the function it is in. (2) For PI formation, the impl./min-term list is formed for all min-terms/DCs over all functions. (3) Two impl’s (incl. minterms) can be combined only if they contain same common flags. The new impl. formed by this combining is flagged by the set of common (intersecting) flags. (4) An impl. i that was combined to form a larger impl. can be “checked” only if the combined impl. contain all the flags that i contains. (5) In the PIT, the cols are separated for each function, and each minterm for a function is listed under its function’s group—thus a minterm will have separate cols for each function it belongs to.
(6) In the PIT, each PI covers minterms only for functions whose flags it contains.
α
β
Example 1
PI table fα fβ PIs 1 3 5 7 13 15 8 9 10 11 13 15 3+1 PI 1 αβ 2+1 PI 2 α 2+1 PI 3 β 2+1 PI 4 α 2+1 PI 5 β
f (^) α = PI 1 + PI 2 f (^) β = PI 1 +PI 3
__*^1
1 1 1 1
__*^2
2 2 2 2
More Rules: (5) The covering rules apply across the entire PIT, not just in the sub-PIT corresponding to each function. (6) The EPI defn, however, applies to only single functions, and if a multi-function PI g is an EPI for some funcs and not for all for which it is an impl, it is only chosen for the former function(s) and not right away for the latter. After this partial inclusion (for some funcs), g ’s cost is reduced to 1 , and it maybe chosen later based on this reduced cost. The reduction in cost corresponds to the AND gate cost of g which has already been incurred. The remaining 1 cost corresponds to the OR gate cost in each remaining function for which it may be included at a later time. Note: We will provide an alternative for rule (6) in which an EPI/pseudo-EPI for one func is also automatically included in all other funcs for which it is an implicant. This alternative uses a sweep-up phase****.
C
_ 5_*
3 4
(^5 5 5 )
f (^) α = (^) ∑ m(3, 4,5, 7,13,15) f (^) β = (^) ∑ m(8,12,13,14,15) +∑d(6)
Min
term
List 1 Min term
List 2 Min List 3 Flags Flags term
4 0100 α 4,5 010- α PI 1 5,7,13,15 -1-1 α PI 5
8 1000 β 8,12 1-00 β PI 2 12,13,14,15 11-- β PI 6
3 0011 α 3,7 0-11 α PI 3
5 0101 α 5,7 01-1 α
6 0110 β 5,13 -101 α
12 1100 β 6,14 -110 β PI 7
7 0111 α 12,13 110- β
13 1101 α β 12,14 11-0 β
14 1110 β 7,15 -111 α
15 1111 α β 13,15 11-1 α β PI 4
14,15 111- β
Example 2:
Docsity.com
9 1
12 1
14 10 (^6) 1 1 2 10
15 11 1
7 11 3^1
13 1 5 1
1 01
4 8 1 0 00
00 01 11 10
BC DE
ABC
CDE
α (^) β
α (^) β
ACE α β ABDE
α (^) β
β
ABCβ
α (^) β α
α (^) β
α
α
25
28
30 26 (^22) 1 1 18 10
27 1 31 1
23 11 19^11
29 1 21 1
17 01
16 20 24 00
00 01 11 10
BC DE
α β
β β
α α (^) α α
α
α
CDEβ ADE α PI 1 PI 2 PI (^3) PI 4 PI 5
Example 3
A=0 A=
Taking # of MTs covered and cost into consideration
f (^) α f (^) β C PIs 4 5 6 7 9 13 15 19 23 27 31 5 7 12 13 14 15 21 29 3+1 (^) PI 1 α 3+1 (^) PI 2 αβ 3+1 (^) PI 3 β 4+1 (^) PI 4 α 3+1 (^) PI 5 α 3+1 (^) PI 6 β 3+1 (^) PI 7 α
__*^1
__*^3
1
__*^2
2 3
4 4 4
__*^5
5 5
__*^6
6 6 C
1 2 4 7
2 3 6
f PI PI PI +PI
f PI PI +PI
α
β
= + +
= +
Total cost=
7
__*
β (^) 8 1 4 α
Note: For every choice of a multi-func PI g as an EPI/pseudo-EPI for a function, mark each inclusion choice of g by the flag of the function(s) for which it is an EPI/pseudo-EPI. At the end, the flags will determine which functions g should be included in
8
Min
term
List 1 Min term
List 2 Min List 3 Flag Flag term
(^0 0000) α γ 0,2 00-0 (^) α γ PI 2 4,5,6,7 01-- β PI 1
2 0010 α γ PI 1 0
0,8 -000 (^) γ PI 3
4 0100 β 2,6 0-10 β PI 4
8 1000 β γ PI 11 2,10 -010 α β PI 5
5 0101 β γ 4,5 010- β
6 0110 β 4,6 01-0 β
10 1010 α 8,10 10-0 β PI 6
12 1100 Α PI 1 2
5,7 01-1 β γ PI 7
7 0111 α γ PI 1 3
5,13 -101 (^) γ PI 8
(^13 1101) γ 6,7 011- β
15 1111 α 7,15 -111 α PI 9
β
β
β
fα f β f γ PIs 0 2 7 10 2 4 5 2 7 8 2+1 PI 1 β 3+1 PI 2 α γ 3+1 PI 3 γ 3+1 PI 4 β 3+1 PI 5 α β 3+1 PI 6 β 3+1 PI 7 β γ 3+1 PI 8 γ 3+1 PI 9 α 4+1 PI 10 α 4+1 PI 11 4+1 PI 12 α 4+1 PI 13 α
β γ β γ
β^ γ
1
1
2
2 2 5
3
3 3 1
α New cost = 1
C
4
γ^5 γ
it covers, delete it completely. Also, include it in other functions f j (for which it is currently non-essential) whose minterms it covers only if not all such MTs of f j have been deleted so far.
β (^) 4
4
β (^) 2
αβ 1
Utility of the Sweep-up Phase
PIs f α f β PIj αβ
PIk β PIl β PIr β
Example:
….
3
f α =PI j +……
f β =PI j +PI k +PI r Deleted in the sweep-up phase.
We thus get f β =PI (^) k +PI (^) r, reducing the cost by 1.
C
Exercise: Use this alternative to rule 6 to find a minimum-cost covering of the problem in Example 3 (PIT given on slide 14) Docsity.com