7 Segment Led
7 Segment Led
KMapLogicMinimizationContd..
Out e Outline
Karnough mapsimplification
4variable i bl karnaugh k h map Dontcarecondition Algorithmforbettergrouping
4VariableKarnaugh g Map p
CD AB
00 01 11 10 00
m0 m4
CD
01
m1 m5
11
m3 m7
10
m2 m6
AB
00 01 11 10
00
01
11
10
0 1 1 0
0 1 1 1
0 1 1 0
1 1 1 0
ACD
ACD
F = ACD + ACD + B
FindaPOSSolution
AB CD
00 01 00 01 11 10
AD
1 0 1 1 0 0 1 1 0 0 1 1 1 0 1 0
F=AD+AB+ABCD F=( (A+D)(A+B)(A+B+C+D) )( )( )
AB
11 10
ABCD Find solutions to groups of 0s to find F Invert to get F then use DeMorgans
x 1 1 0
0 x 1 0
ABC+ABC+ ABC+ABC =C
11 10
F=C
Circle the x xs s that help get bigger groups of 1 1s s Dont circle the xs that dont
7SegmentDisplay
a
f g
e d
a f e d g b c
ActivationofLEDs
BCDto7SegmentDisplay
BCDare4bit Designadecodertodrive7segmentLED
A B C D E F G
BCD input
W X Y Z
Decoder
PrimeImplicants
Agroupofoneormore1 1s swhichareadjacent andcanbecombinedonaKarnaugh Mapis calledanimplicant. implicant Thebiggest groupof1swhichcanbecircled tocoveragiven1iscalledaprimeimplicant. implicant
PrimeImplicants
AB CD
00 01 11 10 00 01 11 10
0 0 0 0
0 0 1 1
0 1 1 1
1 1 1 1
Are there any additional prime implicants in the map that are not shown above?
Prime i Implicants li
0 0 0 0
0 0 1 1
0 1 1 1
1 1 1 1
When looking for a minimal solution only circle prime implicants A minimal i i l solution l i will ill never contain i non-prime implicants
Not all prime implicants are required required A prime implicant which is the only l cover of f some 1 is i essential i l a minimal solution requires it.
0 0 0 0
0 0 1 1
0 1 1 1
1 1 1 1
Minimum
0 0 0 0
0 0 1 1
0 1 1 1
1 1 1 1
Not required q
Another Example
AB CD
00 01 11 10 00 01 11 10
1 1 1 1
0 1 1 0
0 0 1 0
1 0 0 1
AnotherExample
AB CD
00 01 11 10 00 01 11 10
1 1 1 1
0 1 1 0
0 0 1 0
1 0 0 1
AB is not required Every one one of its locations ocat o s is s cove covered ed by multiple implicants After choosing essentials, essentials everything is covered
F= AD+BCD+BD
Minimum
Finding the Minimum Sum of Products 1.Fi 1 Find deach hessential i l prime i implicant i li andincludeitinthesolution. 2.Determineifanyminterms arenot yet tcovered. d 3.Findtheminimal#ofremaining primeimplicants whichfinishthe cover.
1 0 1 1
1 0 1 1
0 1 1 0
0 1 1 0
1 0 1 1
1 0 1 1
0 1 1 0
0 1 1 0
AD CD
AC
11 10
AD
5VariableKarnaugh Map
BC DE
00 01 11 10 00 01 11 10
BC DE
00 01 11 10 00 01 11 10
m16 m20 m28 m24 m17 m21 m29 m25 m19 m23 m31 m27 m18 m22 m30 m26
ThisistheA=0plane
ThisistheA=1plane
The p planes are adjacent j to one another (one ( is above the other in 3D) )
SomeImplicants ina5VariableKMap
BC DE
00 01 11 10 00 01 11 10
BC DE
00 01 11 00 01 11 10
1 0 0 1
1 0 0 0
1 0 1 1
1 0 0 0
1 0 1 1
1 0 0 0
1 0 0 0
1 0 1 0
DE
10
A 0 A=0
ABCD
A 1 A=1
ABCD
ABCDE ABC DE
BCDE
5VariableKMap Example
Find i d the h minimum i i sum-of-products f d f for: F=m( (0,1,4,5,11,14,15,16,17,20,21,30,31) , , , , , , , , , , , , )
BC DE
00 01 11 10 00 01 11 10
BC DE
00 01 11 10 00 01 11 10
A=0
A=1
5VariableKMap Example
Find the minimum sum-of-products for: F = m (0 ( ,1,4,5,11,14,15,16,17,20,21,30,31) (0,1,4,5,11,14,15,16,17,20,21,30,31) )
BC DE
00 01 11 10 00 01 11 10
BC DE
00 01 11 10 00 01 11 10
1 1 0 0
1 1 0 0
0 0 1 1
0 0 1 0
1 1 0 0
1 1 0 0
0 0 1 1
0 0 0 0
A=0 F=BD+BCD+ABDE
A=1
CD EF
00
6VariableKarnaugh Map
CD
00 01 11 10
EF
00 01
00
01
11
10
m32 m36 m44 m40 m33 m37 m45 m41 m35 35 m39 39 m47 47 m43 43 m34 m38 m46 m42
AB=0001
11 10
11 10
AB=10
CD EF
00
CD EF
00 01 11 10 00 m48 m52 m60 m56 01 m49 m53 m61 m57 11 m51 m55 m63 m59 10 m50 m54 m62 m58
m16 m20 m28 m24 m17 m21 m29 m25 m19 m23 m31 m27 m18 m22 m30 m26
AB=01
01 11 10
AB=11
CD EF
00 01 11 10 00 01 11 10
CD EF
00 01 11 10 00 01 11 10
0 0 0 0
0 0 0 0
0 0 1 0
0 0 0 0
1 1 1 1
0 0 0 0
0 0 1 0
0 0 0 0
AB=10
AB=00
CD EF
00 01 00 01 11 10
CD EF
00 01 11 10 00 01 11 10
0 0 0 0
0 0 0 0
0 0 1 0
0 0 0 0
=ACD
1 1 1 1
0 0 0 0
0 0 1 0
0 0 0 0
AB=11
AB=01
11 10
Solution=ACD+CDEF
=CDEF
KMap Summary
AKmapissimplyafoldedtruthtable
wherephysicaladjacencyimplieslogicaladjacency
Thanks
27