SlideShare a Scribd company logo
1 of 6
Download to read offline
K-Map
•   Definition:
    A literal is a variable or the complement of a variable.
    A product term is a single literal or a logical product of two or more literals.
    A sum-of-products expression is a logical sum of product terms.
    A sum term is a single literal or a logical sum of two or more literals.
    A product-of-sums expression is a logical product of sum terms.
    A normal term is a product or sum term in which no variable appears more than
    once. A nonnormal term can always be simplified to a constant or a normal term.
    An n-variable minterm is a normal product term with n literals. There are 2n such
    product terms.
    An n-variable maxterm is a normal sum term with n literals. There are 2n such sum
    terms.
    The canonical sum of a logic function is a sum of the minterms corresponding to
    input combinations for which the function produces a 1 output.
    The canonical product of a logic function is a product of the maxterms
    corresponding to input combinations for which the function produces a 0 output.
    A minimal sum of a logic function F ( X 1 ,…, X n ) is a sum-of-products expression for
    F such that no sum-of-products expression for F has fewer product terms, and any
    sum-of-products expression with the same number of product terms has at least as
    many literals.
    A logic function P ( X 1 ,…, X n ) implies a logic function F ( X 1 ,…, X n ) if for every
    input combination such that P = 1, then F = 1 also. (F can be 1 at some more places..)
    We may write the shorthand P ⇒ F . We may also say that “F includes P,” or that “F
    covers P.”
•   Logic function:
                                           F ( X 1 ,…, X n )



                                                               LSB
                                    MSB
•   A minterm can be defined as a product term that is 1 in exactly one row of the truth
    table. Similarly, a maxterm can be defined as a sum term that is 0 in exactly one row
    of the truth table.
                                          Minterm        Maxterm
                             XYZ
                                          X ′ ⋅Y ⋅ Z    X + Y′ + Z′
                              011
    Corresponding to the input combination ( X , Y , Z ) = ( 0,1,1) , the minterm is X ⋅ Y ⋅ Z
    = minterm 3, and the maxterm is X + Y + Z = maxterm 3. Observe that
1) The minterm X ′ ⋅ Y ⋅ Z = 1 iff ( X , Y , Z ) = ( 0,1,1) .
    2) The maxterm X + Y ′ + Z ′ = 0 iff ( X , Y , Z ) = ( 0,1,1) .

    3) X ⋅ Y ⋅ Z = X + Y + Z .
•   The following are equivalent:
    1) F ( X , Y , Z ) = 1 iff ( X , Y , Z ) = 0, 3, 4, 6, 7,

                            ∑              ( 0,3, 4,6,7 ) ,
    2) the minterm list         X ,Y , Z


    3) the canonical sum X ⋅ Y ⋅ Z + X ⋅ Y ⋅ Z + X ⋅ Y ⋅ Z + X ⋅ Y ⋅ Z + X ⋅ Y ⋅ Z ,
    4) F ( X , Y , Z ) = 0 iff ( X , Y , Z ) = 1,2,5,

                             ∏              (1, 2,5) ,
    5) the maxterm list          X ,Y , Z


                                     (                   )(     )(       )
    6) the canonical product X + Y + Z ⋅ X + Y + Z ⋅ X + Y + Z .
    Each one of these representations specifies exactly the same information; given any
    one of them, we can derive the other four using a simple mechanical process.
•   The minterm list is also known as the on-set for the logic function. This is because
    each minterm “turns on” the output for exactly one input combination. On the other
    hand, the maxterm list is also known as the off-set for the logic function because each
    maxterm “turns off” the output for exactly one input combination.
    For a function of n variables, the possible minterm and maxterm numbers are in the
    set {0,1,…, 2n−1} ; a minterm or maxterm list contains a subset of these numbers. To
    switch between list types, take the set complement.
•   The minimization method we will be consider do not consider the cost of input
    inverters; they assume that both true and complemented versons of all variables are
    available.
•   A Karnaugh map is a graphical representation of a logic function’s truth table.
    The map for an n-input logic function is an array with 2n cells, one for each possible
    input combination or minterm.
X
                                          X
                                                                                       F (W , X , Y , Z )
                                     Y            0            1
                                              0            2




                                          0
                 F ( X ,Y )                                                                                 W
                                                                         WX
                                                                    YZ            00        01         11           10
                                              1            3
                                                                              0         4            12         8
                                 Y




                                          1
                                                                         00


                                                                              1         5            13         9
                                F ( X ,Y , Z )                           01
                                                       X
                  XY
                                                                                                                         Z
             Z             00        01           11           10             3         7            15         11
                       0         2            6            4             11
                  0




                                                                    Y         2         6            14         10
                       1         3            7            5             10
                  1




            Z

                                                                                                 X
                                          Y

    The small number in side each cell is the corresponding minterm number in the truth
    table, assuming that the truth table inputs are labeled alphabetically from left to right
    (e.g. X, Y, Z) and the rows are numbered in binary counting order.
•   Each cell corresponds to an input combination that differs from each of its
    immediately adjacent neighbors in only one variable.
•   Combining rule for 1-cells:
    A set of 2i cells may be combined if there are i variables of the logic function that
    take on all 2i possible combinations within that set, while the remaining n-i variables
    have the same value throughout that set. The corresponding product term has n-i
    literals, where a variable is complemented if it appears as 0 in all of the 1-cells, and
    uncomplemented if it appears as 1.
    Graphically, this rule means that we can circle rectangular sets of 2i 1s, literally as
    well as figuratively stretching the definition of rectangular to account for wraparound
    at the edges of the map. For each variable, we make the following determination
    • If a circle covers only areas of the map where variable is 0, then the variable is
         complemented in the product term.
    • If a circle covers only areas of the map where the variable is 1, then the variable is
         uncomplemented in the product term.
    • If a circle covers both areas of the map where the variable is 0 and areas where it
         is 1, then the variable does not appear in the product term.
•   Definition:
    A prime implicant of a logic function F ( X 1 ,… , X n ) is a normal product term
    P ( X 1 ,…, X n ) that implies F, such that if any variable is removed from P, then the
    resulting product term does not imply F. (Note that by removing variable from P, we
    in fact expand the area of P (area where P = 1) on the K-map.)
In terms of a K-map, a prime implicant of F is a circled set of 1-cells satisfying
    combining rule, such that if we try to make it larger (covering twice as many cells), it
    covers one or more 0s.
    The sum of all the prime implicants of a logic function is called the complete sum.
    (Note that the complete sum is not always minimal.)
    A distinguished 1-cell of a logic function is an input combination that is covered by
    only one prime implicant.
    An essential prime implicant of a logic function is a prime implicant that covers one
    or more distinguished 1-cells. (Since an essential prime implicant is the only prime
    implicant that covers some 1-cell, it must be included in every minimal sum for the
    logic function.)
    Given two prime implicants P and Q in a reduced map, P is said to eclipse Q (written
    P … Q) if P covers at least all the 1-cells covered by Q. (P is at least as good as Q.
    Removing Q form consideration cannot prevent us from finding a minimal sum.)
•   Prime-Implicant Theorem:
    A minimum sum is a sum of prime implicants.
    Proof. Suppose that a product term P in a “minimal” sum is not a prime implicants.
            Then, according to the definition of prime implicants, if P is not one, it is
            possible to remove some literal from P to obtain a new product term P* that
            still implies F. If we replace P with P* in the presumed “minimal” sum, the
            resulting sum still equals F but has one fewer literal. Therefore, the presumed
            “minimal” sum was not minimal.
    Hence, to find a minimal sum, we need not consider any product terms that are not
    prime implicants.
•   Branching method:
    Starting with any 1-cell, we can arbitrarily select one of the prime implicants that
    covers it, and we include it as if it were essential. This simplifies the remaining
    problem, which we can complete in the usual way to find a tentative minimal sum.
    We repeat this process starting with all other prime implicants that cover the starting
    1-cell, generating a different minimal sum from each starting point. We may get stuck
    along the way and have to apply the branching method recursively. Finally, we
    examine all of the tentative minimal sums that we generated in this way and select
    one that is truly minimal.
                                                   (      )
    Example: F = X Z + X Z = X ⊕ Z = ( X + Z ) ⋅ X + Z
•
W                                                                                                       W
                                  WX                                                                                                       WX
                         YZ                                                                                                           YZ
                                                      00           01                   11                           10                                      00                       01                  11              10
                                             0                 4                      12                         8                                   0                         4                        12          8
                                  00                                                                                                       00
                                                      0            1                       1                         0                                        0                       1                     1             0
                                             1                 5                      13                         9                                   1                         5                        13          9
                                  01                                                                                                       01
                                                      1            0                       0                         1                                        1                       0                     0             1
                                                                                                                                      Z                                                                                                         Z
                                             3                 7                      15                         11                                  3                         7                        15          11
                                  11                                                                                                       11
                                                      1            0                       0                         1                                        1                       0                     0             1
                         Y                                                                                                            Y
                                             2                 6                      14                         10                                  2                         6                        14          10
                                  10                                                                                                       10
                                                      0            1                       1                         0                                        0                       1                     1             0


                                                                                                                     X ⋅Z
                                                                              X                                                                                                                     X
                                       X ⋅Z
                                                                                                                                                                                                    X ⋅Z = Z + X
                                                                                                                                           Z⋅X =Z +X
    Example: F = WX + XZ = X (W + Z )
•
                                                                                  W⋅X
                                                                                                        W                                                                                                       W
                                  WX                                                                                                       WX
                         YZ                                                                                                           YZ
                                                      00           01                   11                           10                                      00                       01                  11              10
                                             0                 4                      12                         8                                   0                         4                        12          8
                                  00                                                                                                       00
                                                      0            0                       1                         0                                        0                       0                     1             0
                                             1                 5                      13                         9                                   1                         5                        13          9
                                  01                                                                                                       01
                                                      0            1                       1                         0                                        0                       1                     1             0
                                                                                                                                      Z                                                                                                         Z
                                             3                 7                      15                         11                                  3                         7                        15          11
                                  11                                                                                                       11
                                                      0            1                       1                         0                                        0                       1                     1             0
                         Y                                                                                                            Y
                                             2                 6                      14                         10                                  2                         6                        14          10
                                  10                                                                                                       10
                                                      0            0                       1                         0                                        0                       0                     1             0


                                                                                                                                           W ⋅Z =W + Z
                                                                              X                                                                                                                                 X=X
                                                                                                                                                                                                    X
                                                               X ⋅Z
•   Example:
                         W⊕X                                                               W ⊕Y                                                      W ⊕ X ⊕Y                                                   W ⊕ X ⊕Y ⊕ Z
                                             W                                                                       W                                                                W                                                                W
                                                                             WX                                                                 WX                                                                   WX
           WX
                                                                        YZ                                                                 YZ                                                                   YZ
      YZ                                                                              00           01         11             10                          00           01         11            10                             00       01         11           10
                    00       01         11           10
                                                                                  0            4            12           8                           0            4            12          8                              0        4            12         8
                0        4            12         8
                                                                             00                                                                 00                                                                   00
           00                                                                                                 1              1                                        1                        1                                       1                       1
                             1                       1
                                                                                  1            5            13           9                           1            5            13          9                              1        5            13         9
                1        5            13         9
                                                                             01                                                                 01                                                                   01
           01                                                                                                 1              1                                        1                        1                              1                   1
                             1                       1
                                                                                                                                  Z                                                                     Z                                                           Z
                                                           Z                      3            6            15           11                          3            6            15          11                             3        7            15         11
                3        6            15         11
                                                                             11                                                                 11                                                                   11
           11                                                                         1            1                                                     1                       1                                                     1                       1
                             1                       1
                                                                        Y                                                                  Y                                                                    Y
      Y                                                                           2            7            14           10                          2            7            14          10                             2        6            14         10
                2        7            14         10
                                                                             10                                                                 10                                                                   10
           10                                                                         1            1                                                     1                       1                                            1                   1
                             1                       1


                                                                                                        X                                                                  X                                                                X
                                  X



•   Using the principle of duality, we can minimize product-of-sums expressions by
    looking at the 0s on a K-map.
•   Alternatively, to obtain the minimal product:
1) Complement F. (Switch 1 and 0.)
    2) Find a minimal sum for F .
    3) Complement the result using the generalized DeMorgan’s theorem, which yields a
        minimal product for F = F .
•   In general, to find the lowest-cost two-level realization of a logic function, we have to
    find both a minimal sum and a minimal product and compare them.
•   For “Don’t-Care” input combinations, we modify the procedure for circling sets of 1s
    (prime implicants) as follows:
    • Allow d’s to be included when circling sets of 1s, to make the sets as large as
        possible.
    • Do not circle any sets that contain only d’s. (Including the corresponding product
        term in the function would unnecessarily increase its cost.)
    Note that we still
    • do not circle any 0s,
    • look for distinguished 1-cells, and include only the corresponding essential prime
        implicants and ony others that are needed to cover all the 1s on the map.
•   Multiple output minimization:
    The key to successful multiple-output minimization of a set of n functions is to
    consider not only the n original single-output functions, but also “product functions.”
    An m-product function of a set of n functions is the product of m of the functions,
                                            ⎛n⎞     ⎛ n⎞ ⎛ n⎞
    where 2 ≤ m ≤ n . There are ∑ ⎜ ⎟ = 2n − ⎜ ⎟ − ⎜ ⎟ = 2n − n − 1 such functions. In
                                   2≤ m ≤ n ⎝ m ⎠   ⎝ 0⎠ ⎝1⎠
    general, the map for an m-product function is obtained by ANDing the maps of its m
    components.
    A multiple-output prime implicant of a set of n functions is a prime implicant of one
    of the n functions or of one of the product functions.
    The first step in minimization is to find all the multiple-output prime implicants. Each
    prime implicant of an m-product function is a possible term to include in the
    corresponding m outputs of the circuit. Then, we identify the essential ones.
    A distinguished 1-cell of a particular single-output function F is a 1-cell that is
    covered by exactly one prime implicant of F or of the product functions involving F.
    An essential prime implicant of a particular single-output function is one that
    contains a distinguished 1-cell. The essential prime implicants must be included in a
    minimum-cost solution.
    Only the 1-cells that are not covered by essential prime implicants are considered in
    the remainder of the algorithm.
    The final step is to select a minimal set of prime implicants to cover the remaining 1-
    cells. In this step, we must consider all n functions simultaneously, including the
    possibility of sharing. (This will not be discussed here.)

More Related Content

What's hot

Solution of linear and nonlinear partial differential equations using mixture...
Solution of linear and nonlinear partial differential equations using mixture...Solution of linear and nonlinear partial differential equations using mixture...
Solution of linear and nonlinear partial differential equations using mixture...Alexander Decker
 
11.solution of linear and nonlinear partial differential equations using mixt...
11.solution of linear and nonlinear partial differential equations using mixt...11.solution of linear and nonlinear partial differential equations using mixt...
11.solution of linear and nonlinear partial differential equations using mixt...Alexander Decker
 
Statistics lecture 13 (chapter 13)
Statistics lecture 13 (chapter 13)Statistics lecture 13 (chapter 13)
Statistics lecture 13 (chapter 13)jillmitchell8778
 
Matrix factorization
Matrix factorizationMatrix factorization
Matrix factorizationrubyyc
 
Lesson 23: The Definite Integral (slides)
Lesson 23: The Definite Integral (slides)Lesson 23: The Definite Integral (slides)
Lesson 23: The Definite Integral (slides)Matthew Leingang
 
Real time information reconstruction -The Prediction Market
Real time information reconstruction -The Prediction MarketReal time information reconstruction -The Prediction Market
Real time information reconstruction -The Prediction Marketraghavr186
 
Portfolios and Risk Premia for the Long Run
Portfolios and Risk Premia for the Long RunPortfolios and Risk Premia for the Long Run
Portfolios and Risk Premia for the Long Runguasoni
 
Formulario cuantica 2
Formulario cuantica 2Formulario cuantica 2
Formulario cuantica 2Abraham Prado
 
Exponentials integrals
Exponentials integralsExponentials integrals
Exponentials integralsTarun Gehlot
 
Prévision de consommation électrique avec adaptive GAM
Prévision de consommation électrique avec adaptive GAMPrévision de consommation électrique avec adaptive GAM
Prévision de consommation électrique avec adaptive GAMCdiscount
 
Paris2012 session1
Paris2012 session1Paris2012 session1
Paris2012 session1Cdiscount
 

What's hot (18)

Models
ModelsModels
Models
 
01 plain
01 plain01 plain
01 plain
 
Fdtd
FdtdFdtd
Fdtd
 
Solution of linear and nonlinear partial differential equations using mixture...
Solution of linear and nonlinear partial differential equations using mixture...Solution of linear and nonlinear partial differential equations using mixture...
Solution of linear and nonlinear partial differential equations using mixture...
 
11.solution of linear and nonlinear partial differential equations using mixt...
11.solution of linear and nonlinear partial differential equations using mixt...11.solution of linear and nonlinear partial differential equations using mixt...
11.solution of linear and nonlinear partial differential equations using mixt...
 
Statistics lecture 13 (chapter 13)
Statistics lecture 13 (chapter 13)Statistics lecture 13 (chapter 13)
Statistics lecture 13 (chapter 13)
 
Lesson 1: Functions
Lesson 1: FunctionsLesson 1: Functions
Lesson 1: Functions
 
Algo Final
Algo FinalAlgo Final
Algo Final
 
Matrix factorization
Matrix factorizationMatrix factorization
Matrix factorization
 
Mo u quantified
Mo u   quantifiedMo u   quantified
Mo u quantified
 
Lesson 23: The Definite Integral (slides)
Lesson 23: The Definite Integral (slides)Lesson 23: The Definite Integral (slides)
Lesson 23: The Definite Integral (slides)
 
Real time information reconstruction -The Prediction Market
Real time information reconstruction -The Prediction MarketReal time information reconstruction -The Prediction Market
Real time information reconstruction -The Prediction Market
 
iTute Notes MM
iTute Notes MMiTute Notes MM
iTute Notes MM
 
Portfolios and Risk Premia for the Long Run
Portfolios and Risk Premia for the Long RunPortfolios and Risk Premia for the Long Run
Portfolios and Risk Premia for the Long Run
 
Formulario cuantica 2
Formulario cuantica 2Formulario cuantica 2
Formulario cuantica 2
 
Exponentials integrals
Exponentials integralsExponentials integrals
Exponentials integrals
 
Prévision de consommation électrique avec adaptive GAM
Prévision de consommation électrique avec adaptive GAMPrévision de consommation électrique avec adaptive GAM
Prévision de consommation électrique avec adaptive GAM
 
Paris2012 session1
Paris2012 session1Paris2012 session1
Paris2012 session1
 

Similar to Peta karnaugh

Similar to Peta karnaugh (20)

Ch 04 Arithmetic Coding ( P P T)
Ch 04  Arithmetic  Coding ( P P T)Ch 04  Arithmetic  Coding ( P P T)
Ch 04 Arithmetic Coding ( P P T)
 
Cap4 lec5
Cap4 lec5Cap4 lec5
Cap4 lec5
 
17th120529
17th120529 17th120529
17th120529
 
tensor-decomposition
tensor-decompositiontensor-decomposition
tensor-decomposition
 
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
IJERD (www.ijerd.com) International Journal of Engineering Research and Devel...
 
Copy of 7.digital basicsa
Copy of 7.digital basicsaCopy of 7.digital basicsa
Copy of 7.digital basicsa
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Fourier series
Fourier seriesFourier series
Fourier series
 
Cg
CgCg
Cg
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 
C Sanchez Reduction Saetas
C Sanchez Reduction SaetasC Sanchez Reduction Saetas
C Sanchez Reduction Saetas
 
Lesson20 Tangent Planes Slides+Notes
Lesson20   Tangent Planes Slides+NotesLesson20   Tangent Planes Slides+Notes
Lesson20 Tangent Planes Slides+Notes
 
Cs8092 computer graphics and multimedia unit 2
Cs8092 computer graphics and multimedia unit 2Cs8092 computer graphics and multimedia unit 2
Cs8092 computer graphics and multimedia unit 2
 
Cash Settled Interest Rate Swap Futures
Cash Settled Interest Rate Swap FuturesCash Settled Interest Rate Swap Futures
Cash Settled Interest Rate Swap Futures
 
Matlab
MatlabMatlab
Matlab
 
Module 2 lesson 4 notes
Module 2 lesson 4 notesModule 2 lesson 4 notes
Module 2 lesson 4 notes
 
Cunningham slides-ch2
Cunningham slides-ch2Cunningham slides-ch2
Cunningham slides-ch2
 
Chapter3 laplace
Chapter3 laplaceChapter3 laplace
Chapter3 laplace
 
Distributions
DistributionsDistributions
Distributions
 
Boolean Matching in Logic Synthesis
Boolean Matching in Logic SynthesisBoolean Matching in Logic Synthesis
Boolean Matching in Logic Synthesis
 

Recently uploaded

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 

Recently uploaded (20)

18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 

Peta karnaugh

  • 1. K-Map • Definition: A literal is a variable or the complement of a variable. A product term is a single literal or a logical product of two or more literals. A sum-of-products expression is a logical sum of product terms. A sum term is a single literal or a logical sum of two or more literals. A product-of-sums expression is a logical product of sum terms. A normal term is a product or sum term in which no variable appears more than once. A nonnormal term can always be simplified to a constant or a normal term. An n-variable minterm is a normal product term with n literals. There are 2n such product terms. An n-variable maxterm is a normal sum term with n literals. There are 2n such sum terms. The canonical sum of a logic function is a sum of the minterms corresponding to input combinations for which the function produces a 1 output. The canonical product of a logic function is a product of the maxterms corresponding to input combinations for which the function produces a 0 output. A minimal sum of a logic function F ( X 1 ,…, X n ) is a sum-of-products expression for F such that no sum-of-products expression for F has fewer product terms, and any sum-of-products expression with the same number of product terms has at least as many literals. A logic function P ( X 1 ,…, X n ) implies a logic function F ( X 1 ,…, X n ) if for every input combination such that P = 1, then F = 1 also. (F can be 1 at some more places..) We may write the shorthand P ⇒ F . We may also say that “F includes P,” or that “F covers P.” • Logic function: F ( X 1 ,…, X n ) LSB MSB • A minterm can be defined as a product term that is 1 in exactly one row of the truth table. Similarly, a maxterm can be defined as a sum term that is 0 in exactly one row of the truth table. Minterm Maxterm XYZ X ′ ⋅Y ⋅ Z X + Y′ + Z′ 011 Corresponding to the input combination ( X , Y , Z ) = ( 0,1,1) , the minterm is X ⋅ Y ⋅ Z = minterm 3, and the maxterm is X + Y + Z = maxterm 3. Observe that
  • 2. 1) The minterm X ′ ⋅ Y ⋅ Z = 1 iff ( X , Y , Z ) = ( 0,1,1) . 2) The maxterm X + Y ′ + Z ′ = 0 iff ( X , Y , Z ) = ( 0,1,1) . 3) X ⋅ Y ⋅ Z = X + Y + Z . • The following are equivalent: 1) F ( X , Y , Z ) = 1 iff ( X , Y , Z ) = 0, 3, 4, 6, 7, ∑ ( 0,3, 4,6,7 ) , 2) the minterm list X ,Y , Z 3) the canonical sum X ⋅ Y ⋅ Z + X ⋅ Y ⋅ Z + X ⋅ Y ⋅ Z + X ⋅ Y ⋅ Z + X ⋅ Y ⋅ Z , 4) F ( X , Y , Z ) = 0 iff ( X , Y , Z ) = 1,2,5, ∏ (1, 2,5) , 5) the maxterm list X ,Y , Z ( )( )( ) 6) the canonical product X + Y + Z ⋅ X + Y + Z ⋅ X + Y + Z . Each one of these representations specifies exactly the same information; given any one of them, we can derive the other four using a simple mechanical process. • The minterm list is also known as the on-set for the logic function. This is because each minterm “turns on” the output for exactly one input combination. On the other hand, the maxterm list is also known as the off-set for the logic function because each maxterm “turns off” the output for exactly one input combination. For a function of n variables, the possible minterm and maxterm numbers are in the set {0,1,…, 2n−1} ; a minterm or maxterm list contains a subset of these numbers. To switch between list types, take the set complement. • The minimization method we will be consider do not consider the cost of input inverters; they assume that both true and complemented versons of all variables are available. • A Karnaugh map is a graphical representation of a logic function’s truth table. The map for an n-input logic function is an array with 2n cells, one for each possible input combination or minterm.
  • 3. X X F (W , X , Y , Z ) Y 0 1 0 2 0 F ( X ,Y ) W WX YZ 00 01 11 10 1 3 0 4 12 8 Y 1 00 1 5 13 9 F ( X ,Y , Z ) 01 X XY Z Z 00 01 11 10 3 7 15 11 0 2 6 4 11 0 Y 2 6 14 10 1 3 7 5 10 1 Z X Y The small number in side each cell is the corresponding minterm number in the truth table, assuming that the truth table inputs are labeled alphabetically from left to right (e.g. X, Y, Z) and the rows are numbered in binary counting order. • Each cell corresponds to an input combination that differs from each of its immediately adjacent neighbors in only one variable. • Combining rule for 1-cells: A set of 2i cells may be combined if there are i variables of the logic function that take on all 2i possible combinations within that set, while the remaining n-i variables have the same value throughout that set. The corresponding product term has n-i literals, where a variable is complemented if it appears as 0 in all of the 1-cells, and uncomplemented if it appears as 1. Graphically, this rule means that we can circle rectangular sets of 2i 1s, literally as well as figuratively stretching the definition of rectangular to account for wraparound at the edges of the map. For each variable, we make the following determination • If a circle covers only areas of the map where variable is 0, then the variable is complemented in the product term. • If a circle covers only areas of the map where the variable is 1, then the variable is uncomplemented in the product term. • If a circle covers both areas of the map where the variable is 0 and areas where it is 1, then the variable does not appear in the product term. • Definition: A prime implicant of a logic function F ( X 1 ,… , X n ) is a normal product term P ( X 1 ,…, X n ) that implies F, such that if any variable is removed from P, then the resulting product term does not imply F. (Note that by removing variable from P, we in fact expand the area of P (area where P = 1) on the K-map.)
  • 4. In terms of a K-map, a prime implicant of F is a circled set of 1-cells satisfying combining rule, such that if we try to make it larger (covering twice as many cells), it covers one or more 0s. The sum of all the prime implicants of a logic function is called the complete sum. (Note that the complete sum is not always minimal.) A distinguished 1-cell of a logic function is an input combination that is covered by only one prime implicant. An essential prime implicant of a logic function is a prime implicant that covers one or more distinguished 1-cells. (Since an essential prime implicant is the only prime implicant that covers some 1-cell, it must be included in every minimal sum for the logic function.) Given two prime implicants P and Q in a reduced map, P is said to eclipse Q (written P … Q) if P covers at least all the 1-cells covered by Q. (P is at least as good as Q. Removing Q form consideration cannot prevent us from finding a minimal sum.) • Prime-Implicant Theorem: A minimum sum is a sum of prime implicants. Proof. Suppose that a product term P in a “minimal” sum is not a prime implicants. Then, according to the definition of prime implicants, if P is not one, it is possible to remove some literal from P to obtain a new product term P* that still implies F. If we replace P with P* in the presumed “minimal” sum, the resulting sum still equals F but has one fewer literal. Therefore, the presumed “minimal” sum was not minimal. Hence, to find a minimal sum, we need not consider any product terms that are not prime implicants. • Branching method: Starting with any 1-cell, we can arbitrarily select one of the prime implicants that covers it, and we include it as if it were essential. This simplifies the remaining problem, which we can complete in the usual way to find a tentative minimal sum. We repeat this process starting with all other prime implicants that cover the starting 1-cell, generating a different minimal sum from each starting point. We may get stuck along the way and have to apply the branching method recursively. Finally, we examine all of the tentative minimal sums that we generated in this way and select one that is truly minimal. ( ) Example: F = X Z + X Z = X ⊕ Z = ( X + Z ) ⋅ X + Z •
  • 5. W W WX WX YZ YZ 00 01 11 10 00 01 11 10 0 4 12 8 0 4 12 8 00 00 0 1 1 0 0 1 1 0 1 5 13 9 1 5 13 9 01 01 1 0 0 1 1 0 0 1 Z Z 3 7 15 11 3 7 15 11 11 11 1 0 0 1 1 0 0 1 Y Y 2 6 14 10 2 6 14 10 10 10 0 1 1 0 0 1 1 0 X ⋅Z X X X ⋅Z X ⋅Z = Z + X Z⋅X =Z +X Example: F = WX + XZ = X (W + Z ) • W⋅X W W WX WX YZ YZ 00 01 11 10 00 01 11 10 0 4 12 8 0 4 12 8 00 00 0 0 1 0 0 0 1 0 1 5 13 9 1 5 13 9 01 01 0 1 1 0 0 1 1 0 Z Z 3 7 15 11 3 7 15 11 11 11 0 1 1 0 0 1 1 0 Y Y 2 6 14 10 2 6 14 10 10 10 0 0 1 0 0 0 1 0 W ⋅Z =W + Z X X=X X X ⋅Z • Example: W⊕X W ⊕Y W ⊕ X ⊕Y W ⊕ X ⊕Y ⊕ Z W W W W WX WX WX WX YZ YZ YZ YZ 00 01 11 10 00 01 11 10 00 01 11 10 00 01 11 10 0 4 12 8 0 4 12 8 0 4 12 8 0 4 12 8 00 00 00 00 1 1 1 1 1 1 1 1 1 5 13 9 1 5 13 9 1 5 13 9 1 5 13 9 01 01 01 01 1 1 1 1 1 1 1 1 Z Z Z Z 3 6 15 11 3 6 15 11 3 7 15 11 3 6 15 11 11 11 11 11 1 1 1 1 1 1 1 1 Y Y Y Y 2 7 14 10 2 7 14 10 2 6 14 10 2 7 14 10 10 10 10 10 1 1 1 1 1 1 1 1 X X X X • Using the principle of duality, we can minimize product-of-sums expressions by looking at the 0s on a K-map. • Alternatively, to obtain the minimal product:
  • 6. 1) Complement F. (Switch 1 and 0.) 2) Find a minimal sum for F . 3) Complement the result using the generalized DeMorgan’s theorem, which yields a minimal product for F = F . • In general, to find the lowest-cost two-level realization of a logic function, we have to find both a minimal sum and a minimal product and compare them. • For “Don’t-Care” input combinations, we modify the procedure for circling sets of 1s (prime implicants) as follows: • Allow d’s to be included when circling sets of 1s, to make the sets as large as possible. • Do not circle any sets that contain only d’s. (Including the corresponding product term in the function would unnecessarily increase its cost.) Note that we still • do not circle any 0s, • look for distinguished 1-cells, and include only the corresponding essential prime implicants and ony others that are needed to cover all the 1s on the map. • Multiple output minimization: The key to successful multiple-output minimization of a set of n functions is to consider not only the n original single-output functions, but also “product functions.” An m-product function of a set of n functions is the product of m of the functions, ⎛n⎞ ⎛ n⎞ ⎛ n⎞ where 2 ≤ m ≤ n . There are ∑ ⎜ ⎟ = 2n − ⎜ ⎟ − ⎜ ⎟ = 2n − n − 1 such functions. In 2≤ m ≤ n ⎝ m ⎠ ⎝ 0⎠ ⎝1⎠ general, the map for an m-product function is obtained by ANDing the maps of its m components. A multiple-output prime implicant of a set of n functions is a prime implicant of one of the n functions or of one of the product functions. The first step in minimization is to find all the multiple-output prime implicants. Each prime implicant of an m-product function is a possible term to include in the corresponding m outputs of the circuit. Then, we identify the essential ones. A distinguished 1-cell of a particular single-output function F is a 1-cell that is covered by exactly one prime implicant of F or of the product functions involving F. An essential prime implicant of a particular single-output function is one that contains a distinguished 1-cell. The essential prime implicants must be included in a minimum-cost solution. Only the 1-cells that are not covered by essential prime implicants are considered in the remainder of the algorithm. The final step is to select a minimal set of prime implicants to cover the remaining 1- cells. In this step, we must consider all n functions simultaneously, including the possibility of sharing. (This will not be discussed here.)