SlideShare a Scribd company logo
BOOLEAN ALGEBRA
AND LOGIC GATES
&
MINTERM, MAXTERM
AND KARNAUGH
MAPS
UNIT II
DIGITAL
ELECTRONICS
PROF.ARTI GAVAS-PARAB
ANNA LEELA COLLEGE OF COMMERCE AND ECONOMICS, SHOBHA
JAYARAM SHETTY COLLEGE FOR BMS
CHAPTER II
UNIT II: CONTENTS
 Boolean Algebra and Logic Gates:
 Introduction, Logic (AND OR NOT),
 Boolean theorems, Boolean Laws, De Morgan’s Theorem,
 Perfect Induction, Reduction of Logic expression using Boolean Algebra,
 Deriving Boolean expression from given circuit, exclusive OR and Exclusive NOR gates,
 Universal Logic gates, Implementation of other gates using universal gates, Input bubbled logic,Assertion level.
 Minterm, Maxterm and Karnaugh Maps:
 Introduction, minterms and sum of minterm form, maxterm and Product of maxterm form,
 Reduction technique using Karnaugh maps – 2/3/4/5/6 variable K-maps, Grouping of variables in K-maps, K-maps for product
of sum form,
 Mminimize Boolean expression using K-map and obtain K-map from Boolean expression,
 Quine Mc Cluskey Method.
C
H
A
P
T
E
R
I
C
H
A
P
T
E
R
II
MINTERM, MAXTERM AND KARNAUGH MAPS: INTRODUCTION
 MinTerm:-Product term
which contains each of the n
variables in either
complemented or
uncomplimented form.
 MaxTerm:-Sum term which
contains each of the n
variables in either
complemented or
uncomplimented form.
BOOLEAN FUNCTION
 A Boolean function is an algebraic form of Boolean expression.A Boolean expression is an expression which
consists of variables, constants (0-false and 1-true) and logical operators which results in true or false.
 A Boolean function of n-variables is represented by f(x1, x2, x3….xn).
 By using Boolean laws and theorems, we can simplify the Boolean functions of digital circuits.
 A brief note of different ways of representing a Boolean function is shown below.
 Sum-of-Products (SOP) Form
 Product-of-sums (POS) form
 Canonical forms
 There are two types of canonical forms:
 Sum-of-min terms or Canonical SOP
 Product-of- max terms or Canonical POS
SUM OF MINTERM (SUM OF PRODUCTS (SOP))
 The sum-of-products (SOP) form is a method (or form) of simplifying the Boolean expressions of logic gates.
 In this SOP form of Boolean function representation, the variables are operated by AND (product) to form a
product term and all these product terms are ORed (summed or added) together to get the final function.
 Examples
 AB + ABC + CDE
 (AB) ̅ + ABC + CD E ̅
 SOP form can be obtained by
 Writing an AND term for each input combination, which produces HIGH output.
 Writing the input variables if the value is 1, and write the complement of the variable if its value is 0.
 OR the AND terms to obtain the output function.
SUM OF PRODUCTS (SOP): EXAMPLE
 Boolean expression for majority function F = A’BC + AB’C + ABC ‘ + ABC
Truth table:
For a 3-variable (x, y and z) Boolean function, the possible
minterms are:
x’y’z’, x’y’z, x’yz’, x’yz, xy’z’, xy’z, xyz’ and xyz.
•1 – Minterms = minterms for which the function F = 1.
•0 – Minterms = minterms for which the function F = 0.
PRODUCT OF MAXTERM (PRODUCT OF SUM (POS))
 In this POS form, all the variables are ORed, i.e. written as sums to form sum terms.
 All these sum terms are ANDed (multiplied) together to get the product-of-sum form.This form is exactly
opposite to the SOP form. So this can also be said as “Dual of SOP form”.
 Examples
 (A+B) * (A + B + C) * (C +D)
 (A+B) ̅ * (C + D + E ̅)
 POS form can be obtained by
 Writing an OR term for each input combination, which produces LOW output.
 Writing the input variables if the value is 0, and write the complement of the variable if its value is 1.
 AND the OR terms to obtain the output function.
PRODUCT OF SUM (POS): EXAMPLE
 Boolean expression for majority function F = (A + B + C) (A + B + C ‘) (A + B’ + C) (A’ + B + C)
Truth table:
For a 3-variable (x, y and z) Boolean function, the possible
maxterms are:
x + y + z, x + y + z’, x + y’ + z, x + y’ + z’, x’ + y + z, x’ + y + z’,
x’ + y’ + z and x’ + y’ + z’.
•1 – Max terms = max terms for which the function F = 1.
•0 – max terms = max terms for which the function F = 0.
CANONICAL FORM (STANDARD SOP FORM)
 Any Boolean function that is expressed as a sum of minterms or as a product of max terms is said to
be in its “canonical form”.
 Any Boolean function can be expressed as the sum (OR) of its 1- min terms.The representation of the
equation will be
 F(list of variables) = Σ(list of 1-min term indices)
 Ex: F (x, y, z) = Σ (3, 5, 6, 7)
 The inverse of the function can be expressed as a sum (OR) of its 0- min terms.The representation of
the equation will be
 F(list of variables) = Σ(list of 0-min term indices)
 Ex: F’ (x, y, z) = Σ (0,1, 2, 4)
CANONICAL FORM (STANDARD POS FORM)
 In max term, each variable is complimented, if its value is assigned to 1, and each variable is un-
complimented if its value is assigned to 0.
 Any Boolean function can be expressed the product (AND) of its 0 – max terms.The representation
of the equation will be
 F(list of variables) = Π (list of 0-max term indices)
 Ex: F (x, y, z) = Π (0, 1, 2, 4)
 The inverse of the function can be expressed as a product (AND) of its 1 – max terms.The
representation of the equation will be
 F(list of variables) = Π (list of 1-max term indices)
 Ex: F’ (x, y, z) = Π (3, 5, 6, 7)
REDUCTION TECHNIQUE USING KARNAUGH MAPS (K-MAPS) RULES
 Karnaugh mapping is a graphic technique for reducing a Sum-of-Products (SOP) and Product-of-Sums (POS)
expression to its minimum form.
 Two, three and four variable k-maps will have 4, 8 and 16 cells respectively.
 Each cell of the k-map corresponds to a particular combination of the input variable and between adjacent cells
only one variable is allowed to change (As in Gray Code Sequence).
 Use the following steps to reduce an expression using a k-map.
 Mark each term of the SOP/POS expression in the correct cell of the k-map. (kind of like the game Battleship)
 Circle adjacent cells in groups of 2, 4 or 8 making the circles as large as possible. (NO DIAGONALS!)
 Write a term for each circle in a final SOP/POS expression.The variables in a term are the ones that remain constant
across a circle.
 The cells of a k-map are continuous left-to-right and top-to-bottom.The wraparound feature can be used to draw
the circles as large as possible.
 When a variable does not appear in the original equation, the equation must be plotted so that all combinations
of the missing variable(s) are covered.
K-MAPS FOR 2 TO 5VARIABLES
 Karnaugh introduced a method for simplification of Boolean functions in an easy way.
 This method is known as Karnaugh map method or K-map method. It is a graphical method, which consists of 2n
cells for ‘n’ variables.The adjacent cells are differed only in single bit position.
 K-Map method is most suitable for minimizing Boolean functions of 2 variables to 5 variables. Now, let us discuss
about the K-Maps for 2 to 5 variables one by one.
 would be 00, 01, 10, 11. It is 00, 01, 11 10, which is Gray code sequence. Gray code sequence only changes one
binary bit as we go from one number to the next in the sequence, unlike binary.
2VARIABLE K-MAP
 The number of cells in 2 variable K-map is four, since the number of variables is two.The following figure shows 2
variable K-Map.
 There is only one possibility of grouping 4 adjacent min terms.
 The possible combinations of grouping 2 adjacent min terms are {(m0, m1), (m2, m3), (m0, m2) and (m1, m3)}.
3VARIABLE K-MAP
 The number of cells in 3 variable K-map is eight, since the number of variables is three.The following figure shows
3 variable K-Map.
 There is only one possibility of grouping 8 adjacent min terms.
 The possible combinations of grouping 4 adjacent min terms are {(m0, m1, m3, m2), (m4, m5, m7, m6), (m0, m1, m4,
m5), (m1, m3, m5, m7), (m3, m2, m7, m6) and (m2, m0, m6, m4)}.
 The possible combinations of grouping 2 adjacent min terms are {(m0, m1), (m1, m3), (m3, m2), (m2, m0), (m4, m5),
(m5, m7), (m7, m6), (m6, m4), (m0, m4), (m1, m5), (m3, m7) and (m2, m6)}.
 If x=0, then 3 variable K-map becomes 2 variable K-map.
4VARIABLE K-MAP
 The number of cells in 4 variable K-map is sixteen, since the number of variables is four.The following figure
shows 4 variable K-Map.
 There is only one possibility of grouping 16 adjacent min terms.
 Let R1, R2, R3 and R4 represents the min terms of first row, second row, third row and fourth row respectively.
Similarly, C1, C2, C3 and C4 represents the min terms of first column, second column, third column and fourth
column respectively.The possible combinations of grouping 8 adjacent min terms are {(R1, R2), (R2, R3), (R3, R4),
(R4, R1), (C1, C2), (C2, C3), (C3, C4), (C4, C1)}.
 If w=0, then 4 variable K-map becomes 3 variable K-map.
5VARIABLE K-MAP
 The number of cells in 5 variable K-map is thirty-two, since the number of variables is 5.The following figure
shows 5 variable K-Map.
 There is only one possibility of grouping 32 adjacent min terms.
 There are two possibilities of grouping 16 adjacent min terms.
 i.e., grouping of min terms from m0 to m15 and m16 to m31.
 If v=0, then 5 variable K-map becomes 4 variable K-map.
MINIMIZATION OF BOOLEAN FUNCTIONS USING K-MAPS
 Follow these rules for simplifying K-maps in order to get standard sum of products form.
 Select the respective K-map based on the number of variables present in the Boolean function.
 If the Boolean function is given as sum of min terms form, then place the ones at respective min term cells in the
K-map. If the Boolean function is given as sum of products form, then place the ones in all possible cells of K-map
for which the given product terms are valid.
 Check for the possibilities of grouping maximum number of adjacent ones. It should be powers of two. Start from
highest power of two and upto least power of two. Highest power is equal to the number of variables considered
in K-map and least power is zero.
 Each grouping will give either a literal or one product term. It is known as prime implicant.The prime implicant
is said to be essential prime implicant, if atleast single ‘1’ is not covered with any other groupings but only that
grouping covers.
 Note down all the prime implicants and essential prime implicants.The simplified Boolean function contains all
essential prime implicants and only the required prime implicants.
MINIMIZATION OF BOOLEAN FUNCTIONS USING K-MAPS
 Note 1 − If outputs are not defined for some combination of inputs, then those
output values will be represented with don’t care symbol ‘x’.That means, we can
consider them as either ‘0’ or ‘1’.
 Note 2 − If don’t care terms also present, then place don’t cares ‘x’ in the respective
cells of K-map. Consider only the don’t cares ‘x’ that are helpful for grouping
maximum number of adjacent ones. In those cases, treat the don’t care value as ‘1’.
GROUPING OF K-MAPVARIABLES
 The square that contains ‘1’ should
be taken in simplifying, at least once.
 The square that contains ‘1’ can be
considered as many times as the
grouping is possible with it.
 Group shouldn’t include any zeros
(0).
 A group should be the as large as
possible.
 Groups can be horizontal or vertical.
Grouping of variables in diagonal
manner is not allowed.
2VARIABLE K-MAP: EXAMPLE
 A general representation
of a 2 variable K-map
plot is shown below.
Example
Simplify the given 2-variable
Boolean equation by using
K-map.
F = XY’ + X’Y + X’Y’
Here the lower right cell is used in both
groups.
3) After grouping the variables, the next
step is determining the minimized
expression.
By reducing each group, we obtain a
conjunction of the minimized expression
such as by taking out the common terms
from two groups, i.e. X’ andY’.
4) So the reduced equation will be X’ +Y’.
1) We put 1 at the output terms given
in equation.
In this K-map, we can create 2 groups
by following the rules for grouping,
one is by combining (X’,Y) and (X’,Y’)
terms and the other is by combining
(X,Y’) and (X’,Y’) terms.
2VARIABLE K-MAP: EXAMPLE
 Example 1:
 Consider the following map.The
function plotted is:
 Z = f(A,B) = A + AB
Z=A
3VARIABLE K-MAP: EXAMPLE
 A typical plot of a 3-variable K-map is
shown below. It can be observed that the
positions of columns 10 and 11 are
interchanged so that there is only change
in one variable across adjacent cells.This
modification will allow in minimizing the
logic.
We put 1 at the output terms
given in equation.
Example
Simplify the given 3-variable Boolean equation by
using k-map.
F = X’Y Z + X’Y’ Z + XY Z’ + X’Y’ Z’ + XY Z + XY’ Z’
And in both the terms, we have ‘Y’ in common. So the group of size
4 is reduced as the conjunctionY.To consume every cell which has
1 in it, we group the rest of cells to form size 2 group, as shown
below.
The 2 size group has no common variables, so they are written
with their variables and its conjugates.
So the reduced equation will be X Z’ +Y’ + X’ Z. In this equation,
no further minimization is possible.
3VARIABLE K-MAP: EXAMPLE
 By using the rules of simplification and ringing
of adjacent cells in order to make as many
variables redundant, the minimised result
obtained is
 By using the rules of simplification and ringing
of adjacent cells in order to make as many
variables redundant, the minimised result
obtained is
K-MAP OF 3VARIABLES (SOP)
 Z= ∑A,B,C(1,3,6,7)
 From red group we get product term—
 A’C
 From green group we get product term—
 AB
 Summing these product terms we get-
 Final expression (A’C+AB)
K-MAP OF 3VARIABLES (POS)
 From red group
we find terms
A B C’
 Taking complement
of these two
A’ B’ C
 Now sum up them
(A’ + B’ + C)
 From brown group
we find terms
A’ B’ C’
 Taking complement of
these two
A B C
 Now sum up them
(A + B + C)
 We will take product of these three terms
:Final expression (A’ + B’ + C) (B’ + C’)
(A + B + C)
 From green group
we find terms
B C
 Taking complement
of these two terms
B’ C’
 Now sum up them
(B’+C’)
Example:
F(A,B,C)=π(0,3,6,7)
 This Boolean expression has seven product terms.They
are mapped top to bottom and left to right on the K-
map above.
 For example, the first P-term A’B’CD is the first
row, 3rd cell, corresponding to map location A=0, B=0,
C=1, D=1.
 The other product terms are placed in a similar manner.
Encircling the largest groups possible, two groups of
four are shown above.
 The dashed horizontal group corresponds to the
simplified product term AB.The vertical group
corresponds to Boolean CD. Since there are two
groups, there will be two product terms in the Sum-Of-
Products result of Out=AB+CD.
Example:
f(A,B,C,D)=
4VARIABLE K-MAP: EXAMPLE
4VARIABLE K-MAP: EXAMPLE
 Fold up the corners of the map here like it is a napkin to make the
four cells physically adjacent.
 The four cells here are a group of four because they all have the
Boolean variables B’ and D’ in common. In other words, B=0 for
the four cells, and D=0 for the four cells.
 The other variables (A, C) are 0 in some cases, 1 in other cases
with respect to the four corner cells.
 Thus, these variables (A, C) are not involved with this group of
four.This single group comes out of the map as one product term
for the simplified result: Out=B’D’
Example:
f(A,B,C,D)=
4VARIABLE K-MAP: EXAMPLE
 For the K-map here, roll the top and bottom edges
into a cylinder forming eight adjacent cells.
 This group of eight has one Boolean variable in
common: B=0.
 Therefore, the one group of eight is covered by one
p-term: B’.
 The original eight-term Boolean expression
simplifies to Out=B’
Example:
f(A,B,C,D)=
MISSING-TERMS IN 4VARIABLE K MAPS
 The Boolean expression here has nine p-terms, three
of which have three Booleans instead of four.The
difference is that while four Boolean variable product
terms cover one cell, the three Boolean p-terms
cover a pair of cells each.
 The six product terms of four Boolean variables map
in the usual manner above as single cells.The three
Boolean variable terms (three each) map as cell pairs,
which is shown above.
 Note that we are mapping p-terms into the K-map,
not pulling them out at this point.
 For the simplification, we form two groups of eight.
Cells in the corners are shared with both groups.This
is fine. In fact, this leads to a better solution than
forming a group of eight and a group of four without
sharing any cells. Final Solution is Out=B’+D’
Example:
f(A,B,C,D)=
4VARIABLE K-MAP: EXAMPLE
 Here we map the un-simplified Boolean
expression to the Karnaugh map.
 Three of the cells form into groups of two
cells.
 A fourth cell cannot be combined with
anything, which often happens in “real world”
problems. In this case, the Boolean p-
term ABCD is unchanged in the simplification
process.
 Result:
 Out= B’C’D’+A’B’D’+ABCD
Example:
f(A,B,C,D)=
4VARIABLE K-MAP: EXAMPLE
 Often times there is more than one
minimum cost solution to a simplification
problem. Such is the case illustrated below.
 Both results above have four product terms
of three Boolean variable each. Both are
equally valid minimal cost solutions.
 The difference in the final solution is due to
how the cells are grouped as shown here.
 A minimal cost solution is a valid logic
design with the minimum number of gates
with the minimum number of inputs.
Example:
f(A,B,C,D)=
4VARIABLE K-MAP: EXAMPLE
 Below we map the un-simplified
Boolean equation as usual and form a
group of four as a first simplification
step. It may not be obvious how to
pick up the remaining cells.
 Pick up three more cells in a group of
four, center above.There are still two
cells remaining. the minimal cost
method to pick up those is to group
them with neighboring cells as groups
of four as at above right.
 On a cautionary note, do not attempt
to form groups of three.
 Groupings must be powers of 2, that
is, 1, 2, 4, 8 ...
Example:
f(A,B,C,D)=
K-MAP FOR 4VARIABLES (SOP)
 F(P,Q,R,S)=∑(0,2,5,7,8,10,13,15)
 From red group we get product term—
 QS
 From green group we get product
term—
 Q’S’
 Summing these product terms we get-
 Final expression (QS+Q’S’)
K-MAP FOR 4VARIABLES (POS)
 F(A,B,C,D)=π(3,5,7,8,10,11,12,13)
 From green group we find terms C’ D B
 Taking their complement and summing them (C+D’+B’)
 From red group we find terms C D A’
 Taking their complement and summing them (C’+D’+A)
 From blue group we find terms A C’ D’
 Taking their complement and summing them (A’+C+D)
 From brown group we find terms A B’ C
 Taking their complement and summing them (A’+B+C’)
Finally we express these as product –
(C+D’+B’).(C’+D’+A).(A’+C+D).(A’+B+C’)
K-MAP FOR 4VARIABLES (DON’T CARES)
 Don’t cares in a Karnaugh map, or truth table, may be either 1s or 0s, as long as we don’t care what the output is
for an input condition we never expect to see.We plot these cells with an asterisk, *, among the normal 1s
and 0s.
 When forming groups of cells, treat the don’t care cell as either a 1 or a 0, or ignore the don’t cares.
 This is helpful if it allows us to form a larger group than would otherwise be possible without the don’t cares.
There is no requirement to group all or any of the don’t cares.
 Only use them in a group if it simplifies the logic.
QUINE-MCCLUSKEY TABULAR METHOD
 Quine-McClukey tabular method is a tabular method based on the concept of prime implicants.
 The prime implicant is a product or sum term, which can’t be further reduced by combining with any other
product or sum terms of the given Boolean function.
 Quine-McClukey tabular method is a tabular method based on the concept of prime implicants.We know that
prime implicant is a product or sum term, which can’t be further reduced by combining with any other product
or sum terms of the given Boolean function.
QUINE-MCCLUSKEY TABULAR METHOD: STEPS FOR SIMPLIFYING BOOLEAN FUNCTIONS
 Step 1 − Arrange the given min terms in an ascending order and make the groups based on the number of ones
present in their binary representations. So, there will be at most ‘n+1’ groups if there are ‘n’ Boolean variables in a
Boolean function or ‘n’ bits in the binary equivalent of min terms.
 Step 2 − Compare the min terms present in successive groups. If there is a change in only one-bit position, then take
the pair of those two min terms. Place this symbol ‘_’ in the differed bit position and keep the remaining bits as it is.
 Step 3 − Repeat step2 with newly formed terms till we get all prime implicants.
 Step 4 − Formulate the prime implicant table. It consists of set of rows and columns. Prime implicants can be placed
in row wise and min terms can be placed in column wise. Place ‘1’ in the cells corresponding to the min terms that are
covered in each prime implicant.
 Step 5 − Find the essential prime implicants by observing each column. If the min term is covered only by one prime
implicant, then it is essential prime implicant.Those essential prime implicants will be part of the simplified Boolean
function.
 Step 6 − Reduce the prime implicant table by removing the row of each essential prime implicant and the columns
corresponding to the min terms that are covered in that essential prime implicant. Repeat step 5 for Reduced prime
implicant table. Stop this process when all min terms of given Boolean function are over.
QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 1
 simplify the following Boolean function, f(W,X,Y,Z)=∑m(2,6,8,9,10,11,14,15) using Quine-McClukey tabular method.
Group Name Min terms W X Y Z
GA1
2 0 0 1 0
8 1 0 0 0
GA2
6 0 1 1 0
9 1 0 0 1
10 1 0 1 0
GA3
11 1 0 1 1
14 1 1 1 0
GA4 15 1 1 1 1
 The given Boolean function is
in sum of min terms form.
 It is having 4 variables W, X,Y & Z.
 The given min terms are 2, 6, 8,
9, 10, 11, 14 and 15.
 The ascending order of these
min terms based on the
number of ones present in
their binary equivalent is 2, 8, 6,
9, 10, 11, 14 and 15.
 The following table shows
these min terms and their
equivalent
binary representations.
Min
Term
Binary
2 0010
6 0110
8 1000
9 1001
10 1010
11 1011
14 1110
15 1111
QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 2
 The given min terms are arranged into 4 groups based on the number of ones present in their binary equivalents.
The following table shows the possible merging of min terms from adjacent groups.
Group Name Min terms W X Y Z
GB1
2,6 0 - 1 0
2,10 - 0 1 0
8,9 1 0 0 -
8,10 1 0 - 0
GB2
6,14 - 1 1 0
9,11 1 0 - 1
10,11 1 0 1 -
10,14 1 - 1 0
GB3
11,15 1 - 1 1
14,15 1 1 1 -
QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 3
 The min terms, which are differed in only one-bit position from adjacent groups are merged.That differed bit is
represented with this symbol,‘-‘. In this case, there are three groups and each group contains combinations of two
min terms.The following table shows the possible merging of min term pairs from adjacent groups.
Group Name Min terms W X Y Z
GB1
2,6,10,14 - - 1 0
2,10,6,14 - - 1 0
8,9,10,11 1 0 - -
8,10,9,11 1 0 - -
GB2
10,11,14,15 1 - 1 -
10,14,11,15 1 - 1 -
QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 4
 The successive groups of min term pairs, which are differed in only one-bit position are merged.That differed bit
is represented with this symbol,‘-‘. In this case, there are two groups and each group contains combinations of
four min terms. Here, these combinations of 4 min terms are available in two rows. So, we can remove the
repeated rows.The reduced table after removing the redundant rows is shown below.
Group Name Min terms W X Y Z
GC1 2,6,10,14 - - 1 0
8,9,10,11 1 0 - -
GC2 10,11,14,15 1 - 1 -
QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 5
 Further merging of the combinations of min terms from adjacent groups is not possible, since they are differed in
more than one-bit position.There are three rows in the above table. So, each row will give one prime implicant.
Therefore, the prime implicants areYZ’,WX’ & WY.
 The prime implicant table is shown below.
Min terms / Prime
Implicants
2 6 8 9 10 11 14 15
YZ’ 1 1 1 1
WX’ 1 1 1 1
WY 1 1 1 1
QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 6
 The prime implicants are placed in row wise and min terms are placed in column wise. 1s are placed in the
common cells of prime implicant rows and the corresponding min term columns.
 The min terms 2 and 6 are covered only by one prime implicant YZ’. So, it is an essential prime implicant.
This will be part of simplified Boolean function. Now, remove this prime implicant row and the corresponding min
term columns.The reduced prime implicant table is shown below.
Min terms / Prime
Implicants
8 9 11 15
WX’ 1 1 1
WY 1 1
QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 7
 The min terms 8 and 9 are covered only by one prime implicant WX’. So, it is an essential prime implicant.
This will be part of simplified Boolean function. Now, remove this prime implicant row and the corresponding min
term columns.The reduced prime implicant table is shown below.
Min terms / Prime Implicants 15
WY 1
The min term 15 is covered only by one prime implicant WY. So, it is an essential prime implicant.This will be
part of simplified Boolean function.
In this example problem, we got three prime implicants and all the three are essential.
Therefore, the simplified Boolean function is
F(W,X,Y,Z) =YZ’ + WX’ + WY.
THANKYOU!

More Related Content

What's hot

Synchronous Counter
Synchronous Counter Synchronous Counter
Synchronous Counter
Akhilesh Kushwaha
 
Counters
CountersCounters
Counters
Randaqra
 
KMAP
KMAPKMAP
KMAP
princy75
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
mshoaib15
 
digital electronics Design of 101 sequence detector without overlapping for...
digital  electronics Design of 101 sequence detector without  overlapping for...digital  electronics Design of 101 sequence detector without  overlapping for...
digital electronics Design of 101 sequence detector without overlapping for...
sanjay kumar pediredla
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
Unsa Shakir
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
Srikrishna Thota
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
kumari36
 
digital Counter
digital Counterdigital Counter
digital Counter
shamshad alam
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
MOHAN MOHAN
 
8086 String Instructions.pdf
8086 String Instructions.pdf8086 String Instructions.pdf
8086 String Instructions.pdf
A. S. M. Badrudduza
 
Number systems
Number systemsNumber systems
Number systems
Mustafa Salah
 
Race around and master slave flip flop
Race around and master slave flip flopRace around and master slave flip flop
Race around and master slave flip flop
Shubham Singh
 
3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )
MdFazleRabbi18
 
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
Arti Parab Academics
 
BCD Adder
BCD AdderBCD Adder
BCD Adder
Fatima Qayyum
 
01.number systems
01.number systems01.number systems
01.number systems
Sripati Mahapatra
 
Karnaugh Graph or K-Map
Karnaugh Graph or K-MapKarnaugh Graph or K-Map
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
knightnick
 
Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh Map
Kawsar Ahmed
 

What's hot (20)

Synchronous Counter
Synchronous Counter Synchronous Counter
Synchronous Counter
 
Counters
CountersCounters
Counters
 
KMAP
KMAPKMAP
KMAP
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
digital electronics Design of 101 sequence detector without overlapping for...
digital  electronics Design of 101 sequence detector without  overlapping for...digital  electronics Design of 101 sequence detector without  overlapping for...
digital electronics Design of 101 sequence detector without overlapping for...
 
multiplexers and demultiplexers
 multiplexers and demultiplexers multiplexers and demultiplexers
multiplexers and demultiplexers
 
Digital Electronics Notes
Digital Electronics Notes Digital Electronics Notes
Digital Electronics Notes
 
SHIFT REGISTERS
SHIFT REGISTERSSHIFT REGISTERS
SHIFT REGISTERS
 
digital Counter
digital Counterdigital Counter
digital Counter
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
 
8086 String Instructions.pdf
8086 String Instructions.pdf8086 String Instructions.pdf
8086 String Instructions.pdf
 
Number systems
Number systemsNumber systems
Number systems
 
Race around and master slave flip flop
Race around and master slave flip flopRace around and master slave flip flop
Race around and master slave flip flop
 
3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )3.codes( binary code ,excess 3, gray code )
3.codes( binary code ,excess 3, gray code )
 
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
FYBSC IT Digital Electronics Unit I Chapter II Number System and Binary Arith...
 
BCD Adder
BCD AdderBCD Adder
BCD Adder
 
01.number systems
01.number systems01.number systems
01.number systems
 
Karnaugh Graph or K-Map
Karnaugh Graph or K-MapKarnaugh Graph or K-Map
Karnaugh Graph or K-Map
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
Presentation on Karnaugh Map
Presentation  on Karnaugh MapPresentation  on Karnaugh Map
Presentation on Karnaugh Map
 

Similar to FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh Maps

B sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) baB sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) ba
MahiboobAliMulla
 
Module 1 ppt class.pptx
Module 1 ppt class.pptxModule 1 ppt class.pptx
Module 1 ppt class.pptx
VivekNaik55
 
Module ppt class.pptx
Module ppt class.pptxModule ppt class.pptx
Module ppt class.pptx
VivekNaik71
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
MahiboobAliMulla
 
Document from Saikrish.S.pdf
Document from Saikrish.S.pdfDocument from Saikrish.S.pdf
Document from Saikrish.S.pdf
MeenakshiKS22BCE1551
 
Chapter-3.pptx
Chapter-3.pptxChapter-3.pptx
Chapter-3.pptx
AliaaTarek5
 
K map in digital electronics for engineering students
K map in digital electronics for engineering studentsK map in digital electronics for engineering students
K map in digital electronics for engineering students
banjareankita1
 
Chapter 3 2
Chapter 3 2Chapter 3 2
Chapter 3 2
Ch Farhan
 
Chapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionChapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean Function
Er. Nawaraj Bhandari
 
K map
K mapK map
pos and do not care ppt.pptx
pos and do not care ppt.pptxpos and do not care ppt.pptx
pos and do not care ppt.pptx
Dr. Pravin Prajapati
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their function
kumarankit06875
 
Digital electronics lesson 2 part 2
Digital electronics lesson 2 part 2Digital electronics lesson 2 part 2
Digital electronics lesson 2 part 2
Sukriti Dhang
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
SwathiSundari
 
Boolean Function Forms
Boolean Function FormsBoolean Function Forms
Boolean Function Forms
Hashni T
 
KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)
mihir jain
 
DigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfDigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdf
k vimal kumar
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
sonusreekumar
 
Modules Linear Algebra Drills
Modules Linear Algebra DrillsModules Linear Algebra Drills
Modules Linear Algebra Drills
Daniel Bragais
 
3,EEng k-map.pdf
3,EEng k-map.pdf3,EEng k-map.pdf
3,EEng k-map.pdf
DamotTesfaye
 

Similar to FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh Maps (20)

B sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) baB sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) ba
 
Module 1 ppt class.pptx
Module 1 ppt class.pptxModule 1 ppt class.pptx
Module 1 ppt class.pptx
 
Module ppt class.pptx
Module ppt class.pptxModule ppt class.pptx
Module ppt class.pptx
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
 
Document from Saikrish.S.pdf
Document from Saikrish.S.pdfDocument from Saikrish.S.pdf
Document from Saikrish.S.pdf
 
Chapter-3.pptx
Chapter-3.pptxChapter-3.pptx
Chapter-3.pptx
 
K map in digital electronics for engineering students
K map in digital electronics for engineering studentsK map in digital electronics for engineering students
K map in digital electronics for engineering students
 
Chapter 3 2
Chapter 3 2Chapter 3 2
Chapter 3 2
 
Chapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionChapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean Function
 
K map
K mapK map
K map
 
pos and do not care ppt.pptx
pos and do not care ppt.pptxpos and do not care ppt.pptx
pos and do not care ppt.pptx
 
Digital electronics k map comparators and their function
Digital electronics k map comparators and their functionDigital electronics k map comparators and their function
Digital electronics k map comparators and their function
 
Digital electronics lesson 2 part 2
Digital electronics lesson 2 part 2Digital electronics lesson 2 part 2
Digital electronics lesson 2 part 2
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
Boolean Function Forms
Boolean Function FormsBoolean Function Forms
Boolean Function Forms
 
KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)KARNAUGH MAP(K-MAP)
KARNAUGH MAP(K-MAP)
 
DigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdfDigitalLogic_BooleanAlgebra_P.pdf
DigitalLogic_BooleanAlgebra_P.pdf
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
 
Modules Linear Algebra Drills
Modules Linear Algebra DrillsModules Linear Algebra Drills
Modules Linear Algebra Drills
 
3,EEng k-map.pdf
3,EEng k-map.pdf3,EEng k-map.pdf
3,EEng k-map.pdf
 

More from Arti Parab Academics

COMPUTER APPLICATIONS Module 4.pptx
COMPUTER APPLICATIONS Module 4.pptxCOMPUTER APPLICATIONS Module 4.pptx
COMPUTER APPLICATIONS Module 4.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptxCOMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 5.pptx
COMPUTER APPLICATIONS Module 5.pptxCOMPUTER APPLICATIONS Module 5.pptx
COMPUTER APPLICATIONS Module 5.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 1 CAH.pptx
COMPUTER APPLICATIONS Module 1 CAH.pptxCOMPUTER APPLICATIONS Module 1 CAH.pptx
COMPUTER APPLICATIONS Module 1 CAH.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 3.pptx
COMPUTER APPLICATIONS Module 3.pptxCOMPUTER APPLICATIONS Module 3.pptx
COMPUTER APPLICATIONS Module 3.pptx
Arti Parab Academics
 
COMPUTER APPLICATIONS Module 2.pptx
COMPUTER APPLICATIONS Module 2.pptxCOMPUTER APPLICATIONS Module 2.pptx
COMPUTER APPLICATIONS Module 2.pptx
Arti Parab Academics
 
Health Informatics- Module 5-Chapter 2.pptx
Health Informatics- Module 5-Chapter 2.pptxHealth Informatics- Module 5-Chapter 2.pptx
Health Informatics- Module 5-Chapter 2.pptx
Arti Parab Academics
 
Health Informatics- Module 5-Chapter 3.pptx
Health Informatics- Module 5-Chapter 3.pptxHealth Informatics- Module 5-Chapter 3.pptx
Health Informatics- Module 5-Chapter 3.pptx
Arti Parab Academics
 
Health Informatics- Module 4-Chapter 3.pptx
Health Informatics- Module 4-Chapter 3.pptxHealth Informatics- Module 4-Chapter 3.pptx
Health Informatics- Module 4-Chapter 3.pptx
Arti Parab Academics
 
Health Informatics- Module 3-Chapter 2.pptx
Health Informatics- Module 3-Chapter 2.pptxHealth Informatics- Module 3-Chapter 2.pptx
Health Informatics- Module 3-Chapter 2.pptx
Arti Parab Academics
 
Health Informatics- Module 4-Chapter 1.pptx
Health Informatics- Module 4-Chapter 1.pptxHealth Informatics- Module 4-Chapter 1.pptx
Health Informatics- Module 4-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 4-Chapter 2.pptx
Health Informatics- Module 4-Chapter 2.pptxHealth Informatics- Module 4-Chapter 2.pptx
Health Informatics- Module 4-Chapter 2.pptx
Arti Parab Academics
 
Health Informatics- Module 3-Chapter 3.pptx
Health Informatics- Module 3-Chapter 3.pptxHealth Informatics- Module 3-Chapter 3.pptx
Health Informatics- Module 3-Chapter 3.pptx
Arti Parab Academics
 
Health Informatics- Module 5-Chapter 1.pptx
Health Informatics- Module 5-Chapter 1.pptxHealth Informatics- Module 5-Chapter 1.pptx
Health Informatics- Module 5-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 3-Chapter 1.pptx
Health Informatics- Module 3-Chapter 1.pptxHealth Informatics- Module 3-Chapter 1.pptx
Health Informatics- Module 3-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 2-Chapter 2.pptx
Health Informatics- Module 2-Chapter 2.pptxHealth Informatics- Module 2-Chapter 2.pptx
Health Informatics- Module 2-Chapter 2.pptx
Arti Parab Academics
 
Health Informatics- Module 1-Chapter 1.pptx
Health Informatics- Module 1-Chapter 1.pptxHealth Informatics- Module 1-Chapter 1.pptx
Health Informatics- Module 1-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 2-Chapter 3.pptx
Health Informatics- Module 2-Chapter 3.pptxHealth Informatics- Module 2-Chapter 3.pptx
Health Informatics- Module 2-Chapter 3.pptx
Arti Parab Academics
 
Health Informatics- Module 2-Chapter 1.pptx
Health Informatics- Module 2-Chapter 1.pptxHealth Informatics- Module 2-Chapter 1.pptx
Health Informatics- Module 2-Chapter 1.pptx
Arti Parab Academics
 
Health Informatics- Module 1-Chapter 2.pptx
Health Informatics- Module 1-Chapter 2.pptxHealth Informatics- Module 1-Chapter 2.pptx
Health Informatics- Module 1-Chapter 2.pptx
Arti Parab Academics
 

More from Arti Parab Academics (20)

COMPUTER APPLICATIONS Module 4.pptx
COMPUTER APPLICATIONS Module 4.pptxCOMPUTER APPLICATIONS Module 4.pptx
COMPUTER APPLICATIONS Module 4.pptx
 
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptxCOMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
COMPUTER APPLICATIONS Module 1 HPSY - Copy.pptx
 
COMPUTER APPLICATIONS Module 5.pptx
COMPUTER APPLICATIONS Module 5.pptxCOMPUTER APPLICATIONS Module 5.pptx
COMPUTER APPLICATIONS Module 5.pptx
 
COMPUTER APPLICATIONS Module 1 CAH.pptx
COMPUTER APPLICATIONS Module 1 CAH.pptxCOMPUTER APPLICATIONS Module 1 CAH.pptx
COMPUTER APPLICATIONS Module 1 CAH.pptx
 
COMPUTER APPLICATIONS Module 3.pptx
COMPUTER APPLICATIONS Module 3.pptxCOMPUTER APPLICATIONS Module 3.pptx
COMPUTER APPLICATIONS Module 3.pptx
 
COMPUTER APPLICATIONS Module 2.pptx
COMPUTER APPLICATIONS Module 2.pptxCOMPUTER APPLICATIONS Module 2.pptx
COMPUTER APPLICATIONS Module 2.pptx
 
Health Informatics- Module 5-Chapter 2.pptx
Health Informatics- Module 5-Chapter 2.pptxHealth Informatics- Module 5-Chapter 2.pptx
Health Informatics- Module 5-Chapter 2.pptx
 
Health Informatics- Module 5-Chapter 3.pptx
Health Informatics- Module 5-Chapter 3.pptxHealth Informatics- Module 5-Chapter 3.pptx
Health Informatics- Module 5-Chapter 3.pptx
 
Health Informatics- Module 4-Chapter 3.pptx
Health Informatics- Module 4-Chapter 3.pptxHealth Informatics- Module 4-Chapter 3.pptx
Health Informatics- Module 4-Chapter 3.pptx
 
Health Informatics- Module 3-Chapter 2.pptx
Health Informatics- Module 3-Chapter 2.pptxHealth Informatics- Module 3-Chapter 2.pptx
Health Informatics- Module 3-Chapter 2.pptx
 
Health Informatics- Module 4-Chapter 1.pptx
Health Informatics- Module 4-Chapter 1.pptxHealth Informatics- Module 4-Chapter 1.pptx
Health Informatics- Module 4-Chapter 1.pptx
 
Health Informatics- Module 4-Chapter 2.pptx
Health Informatics- Module 4-Chapter 2.pptxHealth Informatics- Module 4-Chapter 2.pptx
Health Informatics- Module 4-Chapter 2.pptx
 
Health Informatics- Module 3-Chapter 3.pptx
Health Informatics- Module 3-Chapter 3.pptxHealth Informatics- Module 3-Chapter 3.pptx
Health Informatics- Module 3-Chapter 3.pptx
 
Health Informatics- Module 5-Chapter 1.pptx
Health Informatics- Module 5-Chapter 1.pptxHealth Informatics- Module 5-Chapter 1.pptx
Health Informatics- Module 5-Chapter 1.pptx
 
Health Informatics- Module 3-Chapter 1.pptx
Health Informatics- Module 3-Chapter 1.pptxHealth Informatics- Module 3-Chapter 1.pptx
Health Informatics- Module 3-Chapter 1.pptx
 
Health Informatics- Module 2-Chapter 2.pptx
Health Informatics- Module 2-Chapter 2.pptxHealth Informatics- Module 2-Chapter 2.pptx
Health Informatics- Module 2-Chapter 2.pptx
 
Health Informatics- Module 1-Chapter 1.pptx
Health Informatics- Module 1-Chapter 1.pptxHealth Informatics- Module 1-Chapter 1.pptx
Health Informatics- Module 1-Chapter 1.pptx
 
Health Informatics- Module 2-Chapter 3.pptx
Health Informatics- Module 2-Chapter 3.pptxHealth Informatics- Module 2-Chapter 3.pptx
Health Informatics- Module 2-Chapter 3.pptx
 
Health Informatics- Module 2-Chapter 1.pptx
Health Informatics- Module 2-Chapter 1.pptxHealth Informatics- Module 2-Chapter 1.pptx
Health Informatics- Module 2-Chapter 1.pptx
 
Health Informatics- Module 1-Chapter 2.pptx
Health Informatics- Module 1-Chapter 2.pptxHealth Informatics- Module 1-Chapter 2.pptx
Health Informatics- Module 1-Chapter 2.pptx
 

Recently uploaded

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 

Recently uploaded (20)

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 

FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh Maps

  • 1. BOOLEAN ALGEBRA AND LOGIC GATES & MINTERM, MAXTERM AND KARNAUGH MAPS UNIT II DIGITAL ELECTRONICS PROF.ARTI GAVAS-PARAB ANNA LEELA COLLEGE OF COMMERCE AND ECONOMICS, SHOBHA JAYARAM SHETTY COLLEGE FOR BMS CHAPTER II
  • 2. UNIT II: CONTENTS  Boolean Algebra and Logic Gates:  Introduction, Logic (AND OR NOT),  Boolean theorems, Boolean Laws, De Morgan’s Theorem,  Perfect Induction, Reduction of Logic expression using Boolean Algebra,  Deriving Boolean expression from given circuit, exclusive OR and Exclusive NOR gates,  Universal Logic gates, Implementation of other gates using universal gates, Input bubbled logic,Assertion level.  Minterm, Maxterm and Karnaugh Maps:  Introduction, minterms and sum of minterm form, maxterm and Product of maxterm form,  Reduction technique using Karnaugh maps – 2/3/4/5/6 variable K-maps, Grouping of variables in K-maps, K-maps for product of sum form,  Mminimize Boolean expression using K-map and obtain K-map from Boolean expression,  Quine Mc Cluskey Method. C H A P T E R I C H A P T E R II
  • 3. MINTERM, MAXTERM AND KARNAUGH MAPS: INTRODUCTION  MinTerm:-Product term which contains each of the n variables in either complemented or uncomplimented form.  MaxTerm:-Sum term which contains each of the n variables in either complemented or uncomplimented form.
  • 4. BOOLEAN FUNCTION  A Boolean function is an algebraic form of Boolean expression.A Boolean expression is an expression which consists of variables, constants (0-false and 1-true) and logical operators which results in true or false.  A Boolean function of n-variables is represented by f(x1, x2, x3….xn).  By using Boolean laws and theorems, we can simplify the Boolean functions of digital circuits.  A brief note of different ways of representing a Boolean function is shown below.  Sum-of-Products (SOP) Form  Product-of-sums (POS) form  Canonical forms  There are two types of canonical forms:  Sum-of-min terms or Canonical SOP  Product-of- max terms or Canonical POS
  • 5. SUM OF MINTERM (SUM OF PRODUCTS (SOP))  The sum-of-products (SOP) form is a method (or form) of simplifying the Boolean expressions of logic gates.  In this SOP form of Boolean function representation, the variables are operated by AND (product) to form a product term and all these product terms are ORed (summed or added) together to get the final function.  Examples  AB + ABC + CDE  (AB) ̅ + ABC + CD E ̅  SOP form can be obtained by  Writing an AND term for each input combination, which produces HIGH output.  Writing the input variables if the value is 1, and write the complement of the variable if its value is 0.  OR the AND terms to obtain the output function.
  • 6. SUM OF PRODUCTS (SOP): EXAMPLE  Boolean expression for majority function F = A’BC + AB’C + ABC ‘ + ABC Truth table: For a 3-variable (x, y and z) Boolean function, the possible minterms are: x’y’z’, x’y’z, x’yz’, x’yz, xy’z’, xy’z, xyz’ and xyz. •1 – Minterms = minterms for which the function F = 1. •0 – Minterms = minterms for which the function F = 0.
  • 7. PRODUCT OF MAXTERM (PRODUCT OF SUM (POS))  In this POS form, all the variables are ORed, i.e. written as sums to form sum terms.  All these sum terms are ANDed (multiplied) together to get the product-of-sum form.This form is exactly opposite to the SOP form. So this can also be said as “Dual of SOP form”.  Examples  (A+B) * (A + B + C) * (C +D)  (A+B) ̅ * (C + D + E ̅)  POS form can be obtained by  Writing an OR term for each input combination, which produces LOW output.  Writing the input variables if the value is 0, and write the complement of the variable if its value is 1.  AND the OR terms to obtain the output function.
  • 8. PRODUCT OF SUM (POS): EXAMPLE  Boolean expression for majority function F = (A + B + C) (A + B + C ‘) (A + B’ + C) (A’ + B + C) Truth table: For a 3-variable (x, y and z) Boolean function, the possible maxterms are: x + y + z, x + y + z’, x + y’ + z, x + y’ + z’, x’ + y + z, x’ + y + z’, x’ + y’ + z and x’ + y’ + z’. •1 – Max terms = max terms for which the function F = 1. •0 – max terms = max terms for which the function F = 0.
  • 9. CANONICAL FORM (STANDARD SOP FORM)  Any Boolean function that is expressed as a sum of minterms or as a product of max terms is said to be in its “canonical form”.  Any Boolean function can be expressed as the sum (OR) of its 1- min terms.The representation of the equation will be  F(list of variables) = Σ(list of 1-min term indices)  Ex: F (x, y, z) = Σ (3, 5, 6, 7)  The inverse of the function can be expressed as a sum (OR) of its 0- min terms.The representation of the equation will be  F(list of variables) = Σ(list of 0-min term indices)  Ex: F’ (x, y, z) = Σ (0,1, 2, 4)
  • 10. CANONICAL FORM (STANDARD POS FORM)  In max term, each variable is complimented, if its value is assigned to 1, and each variable is un- complimented if its value is assigned to 0.  Any Boolean function can be expressed the product (AND) of its 0 – max terms.The representation of the equation will be  F(list of variables) = Π (list of 0-max term indices)  Ex: F (x, y, z) = Π (0, 1, 2, 4)  The inverse of the function can be expressed as a product (AND) of its 1 – max terms.The representation of the equation will be  F(list of variables) = Π (list of 1-max term indices)  Ex: F’ (x, y, z) = Π (3, 5, 6, 7)
  • 11. REDUCTION TECHNIQUE USING KARNAUGH MAPS (K-MAPS) RULES  Karnaugh mapping is a graphic technique for reducing a Sum-of-Products (SOP) and Product-of-Sums (POS) expression to its minimum form.  Two, three and four variable k-maps will have 4, 8 and 16 cells respectively.  Each cell of the k-map corresponds to a particular combination of the input variable and between adjacent cells only one variable is allowed to change (As in Gray Code Sequence).  Use the following steps to reduce an expression using a k-map.  Mark each term of the SOP/POS expression in the correct cell of the k-map. (kind of like the game Battleship)  Circle adjacent cells in groups of 2, 4 or 8 making the circles as large as possible. (NO DIAGONALS!)  Write a term for each circle in a final SOP/POS expression.The variables in a term are the ones that remain constant across a circle.  The cells of a k-map are continuous left-to-right and top-to-bottom.The wraparound feature can be used to draw the circles as large as possible.  When a variable does not appear in the original equation, the equation must be plotted so that all combinations of the missing variable(s) are covered.
  • 12. K-MAPS FOR 2 TO 5VARIABLES  Karnaugh introduced a method for simplification of Boolean functions in an easy way.  This method is known as Karnaugh map method or K-map method. It is a graphical method, which consists of 2n cells for ‘n’ variables.The adjacent cells are differed only in single bit position.  K-Map method is most suitable for minimizing Boolean functions of 2 variables to 5 variables. Now, let us discuss about the K-Maps for 2 to 5 variables one by one.  would be 00, 01, 10, 11. It is 00, 01, 11 10, which is Gray code sequence. Gray code sequence only changes one binary bit as we go from one number to the next in the sequence, unlike binary.
  • 13. 2VARIABLE K-MAP  The number of cells in 2 variable K-map is four, since the number of variables is two.The following figure shows 2 variable K-Map.  There is only one possibility of grouping 4 adjacent min terms.  The possible combinations of grouping 2 adjacent min terms are {(m0, m1), (m2, m3), (m0, m2) and (m1, m3)}.
  • 14. 3VARIABLE K-MAP  The number of cells in 3 variable K-map is eight, since the number of variables is three.The following figure shows 3 variable K-Map.  There is only one possibility of grouping 8 adjacent min terms.  The possible combinations of grouping 4 adjacent min terms are {(m0, m1, m3, m2), (m4, m5, m7, m6), (m0, m1, m4, m5), (m1, m3, m5, m7), (m3, m2, m7, m6) and (m2, m0, m6, m4)}.  The possible combinations of grouping 2 adjacent min terms are {(m0, m1), (m1, m3), (m3, m2), (m2, m0), (m4, m5), (m5, m7), (m7, m6), (m6, m4), (m0, m4), (m1, m5), (m3, m7) and (m2, m6)}.  If x=0, then 3 variable K-map becomes 2 variable K-map.
  • 15. 4VARIABLE K-MAP  The number of cells in 4 variable K-map is sixteen, since the number of variables is four.The following figure shows 4 variable K-Map.  There is only one possibility of grouping 16 adjacent min terms.  Let R1, R2, R3 and R4 represents the min terms of first row, second row, third row and fourth row respectively. Similarly, C1, C2, C3 and C4 represents the min terms of first column, second column, third column and fourth column respectively.The possible combinations of grouping 8 adjacent min terms are {(R1, R2), (R2, R3), (R3, R4), (R4, R1), (C1, C2), (C2, C3), (C3, C4), (C4, C1)}.  If w=0, then 4 variable K-map becomes 3 variable K-map.
  • 16. 5VARIABLE K-MAP  The number of cells in 5 variable K-map is thirty-two, since the number of variables is 5.The following figure shows 5 variable K-Map.  There is only one possibility of grouping 32 adjacent min terms.  There are two possibilities of grouping 16 adjacent min terms.  i.e., grouping of min terms from m0 to m15 and m16 to m31.  If v=0, then 5 variable K-map becomes 4 variable K-map.
  • 17. MINIMIZATION OF BOOLEAN FUNCTIONS USING K-MAPS  Follow these rules for simplifying K-maps in order to get standard sum of products form.  Select the respective K-map based on the number of variables present in the Boolean function.  If the Boolean function is given as sum of min terms form, then place the ones at respective min term cells in the K-map. If the Boolean function is given as sum of products form, then place the ones in all possible cells of K-map for which the given product terms are valid.  Check for the possibilities of grouping maximum number of adjacent ones. It should be powers of two. Start from highest power of two and upto least power of two. Highest power is equal to the number of variables considered in K-map and least power is zero.  Each grouping will give either a literal or one product term. It is known as prime implicant.The prime implicant is said to be essential prime implicant, if atleast single ‘1’ is not covered with any other groupings but only that grouping covers.  Note down all the prime implicants and essential prime implicants.The simplified Boolean function contains all essential prime implicants and only the required prime implicants.
  • 18. MINIMIZATION OF BOOLEAN FUNCTIONS USING K-MAPS  Note 1 − If outputs are not defined for some combination of inputs, then those output values will be represented with don’t care symbol ‘x’.That means, we can consider them as either ‘0’ or ‘1’.  Note 2 − If don’t care terms also present, then place don’t cares ‘x’ in the respective cells of K-map. Consider only the don’t cares ‘x’ that are helpful for grouping maximum number of adjacent ones. In those cases, treat the don’t care value as ‘1’.
  • 19. GROUPING OF K-MAPVARIABLES  The square that contains ‘1’ should be taken in simplifying, at least once.  The square that contains ‘1’ can be considered as many times as the grouping is possible with it.  Group shouldn’t include any zeros (0).  A group should be the as large as possible.  Groups can be horizontal or vertical. Grouping of variables in diagonal manner is not allowed.
  • 20. 2VARIABLE K-MAP: EXAMPLE  A general representation of a 2 variable K-map plot is shown below. Example Simplify the given 2-variable Boolean equation by using K-map. F = XY’ + X’Y + X’Y’ Here the lower right cell is used in both groups. 3) After grouping the variables, the next step is determining the minimized expression. By reducing each group, we obtain a conjunction of the minimized expression such as by taking out the common terms from two groups, i.e. X’ andY’. 4) So the reduced equation will be X’ +Y’. 1) We put 1 at the output terms given in equation. In this K-map, we can create 2 groups by following the rules for grouping, one is by combining (X’,Y) and (X’,Y’) terms and the other is by combining (X,Y’) and (X’,Y’) terms.
  • 21. 2VARIABLE K-MAP: EXAMPLE  Example 1:  Consider the following map.The function plotted is:  Z = f(A,B) = A + AB Z=A
  • 22. 3VARIABLE K-MAP: EXAMPLE  A typical plot of a 3-variable K-map is shown below. It can be observed that the positions of columns 10 and 11 are interchanged so that there is only change in one variable across adjacent cells.This modification will allow in minimizing the logic. We put 1 at the output terms given in equation. Example Simplify the given 3-variable Boolean equation by using k-map. F = X’Y Z + X’Y’ Z + XY Z’ + X’Y’ Z’ + XY Z + XY’ Z’ And in both the terms, we have ‘Y’ in common. So the group of size 4 is reduced as the conjunctionY.To consume every cell which has 1 in it, we group the rest of cells to form size 2 group, as shown below. The 2 size group has no common variables, so they are written with their variables and its conjugates. So the reduced equation will be X Z’ +Y’ + X’ Z. In this equation, no further minimization is possible.
  • 23. 3VARIABLE K-MAP: EXAMPLE  By using the rules of simplification and ringing of adjacent cells in order to make as many variables redundant, the minimised result obtained is  By using the rules of simplification and ringing of adjacent cells in order to make as many variables redundant, the minimised result obtained is
  • 24. K-MAP OF 3VARIABLES (SOP)  Z= ∑A,B,C(1,3,6,7)  From red group we get product term—  A’C  From green group we get product term—  AB  Summing these product terms we get-  Final expression (A’C+AB)
  • 25. K-MAP OF 3VARIABLES (POS)  From red group we find terms A B C’  Taking complement of these two A’ B’ C  Now sum up them (A’ + B’ + C)  From brown group we find terms A’ B’ C’  Taking complement of these two A B C  Now sum up them (A + B + C)  We will take product of these three terms :Final expression (A’ + B’ + C) (B’ + C’) (A + B + C)  From green group we find terms B C  Taking complement of these two terms B’ C’  Now sum up them (B’+C’) Example: F(A,B,C)=π(0,3,6,7)
  • 26.  This Boolean expression has seven product terms.They are mapped top to bottom and left to right on the K- map above.  For example, the first P-term A’B’CD is the first row, 3rd cell, corresponding to map location A=0, B=0, C=1, D=1.  The other product terms are placed in a similar manner. Encircling the largest groups possible, two groups of four are shown above.  The dashed horizontal group corresponds to the simplified product term AB.The vertical group corresponds to Boolean CD. Since there are two groups, there will be two product terms in the Sum-Of- Products result of Out=AB+CD. Example: f(A,B,C,D)= 4VARIABLE K-MAP: EXAMPLE
  • 27. 4VARIABLE K-MAP: EXAMPLE  Fold up the corners of the map here like it is a napkin to make the four cells physically adjacent.  The four cells here are a group of four because they all have the Boolean variables B’ and D’ in common. In other words, B=0 for the four cells, and D=0 for the four cells.  The other variables (A, C) are 0 in some cases, 1 in other cases with respect to the four corner cells.  Thus, these variables (A, C) are not involved with this group of four.This single group comes out of the map as one product term for the simplified result: Out=B’D’ Example: f(A,B,C,D)=
  • 28. 4VARIABLE K-MAP: EXAMPLE  For the K-map here, roll the top and bottom edges into a cylinder forming eight adjacent cells.  This group of eight has one Boolean variable in common: B=0.  Therefore, the one group of eight is covered by one p-term: B’.  The original eight-term Boolean expression simplifies to Out=B’ Example: f(A,B,C,D)=
  • 29. MISSING-TERMS IN 4VARIABLE K MAPS  The Boolean expression here has nine p-terms, three of which have three Booleans instead of four.The difference is that while four Boolean variable product terms cover one cell, the three Boolean p-terms cover a pair of cells each.  The six product terms of four Boolean variables map in the usual manner above as single cells.The three Boolean variable terms (three each) map as cell pairs, which is shown above.  Note that we are mapping p-terms into the K-map, not pulling them out at this point.  For the simplification, we form two groups of eight. Cells in the corners are shared with both groups.This is fine. In fact, this leads to a better solution than forming a group of eight and a group of four without sharing any cells. Final Solution is Out=B’+D’ Example: f(A,B,C,D)=
  • 30. 4VARIABLE K-MAP: EXAMPLE  Here we map the un-simplified Boolean expression to the Karnaugh map.  Three of the cells form into groups of two cells.  A fourth cell cannot be combined with anything, which often happens in “real world” problems. In this case, the Boolean p- term ABCD is unchanged in the simplification process.  Result:  Out= B’C’D’+A’B’D’+ABCD Example: f(A,B,C,D)=
  • 31. 4VARIABLE K-MAP: EXAMPLE  Often times there is more than one minimum cost solution to a simplification problem. Such is the case illustrated below.  Both results above have four product terms of three Boolean variable each. Both are equally valid minimal cost solutions.  The difference in the final solution is due to how the cells are grouped as shown here.  A minimal cost solution is a valid logic design with the minimum number of gates with the minimum number of inputs. Example: f(A,B,C,D)=
  • 32. 4VARIABLE K-MAP: EXAMPLE  Below we map the un-simplified Boolean equation as usual and form a group of four as a first simplification step. It may not be obvious how to pick up the remaining cells.  Pick up three more cells in a group of four, center above.There are still two cells remaining. the minimal cost method to pick up those is to group them with neighboring cells as groups of four as at above right.  On a cautionary note, do not attempt to form groups of three.  Groupings must be powers of 2, that is, 1, 2, 4, 8 ... Example: f(A,B,C,D)=
  • 33. K-MAP FOR 4VARIABLES (SOP)  F(P,Q,R,S)=∑(0,2,5,7,8,10,13,15)  From red group we get product term—  QS  From green group we get product term—  Q’S’  Summing these product terms we get-  Final expression (QS+Q’S’)
  • 34. K-MAP FOR 4VARIABLES (POS)  F(A,B,C,D)=π(3,5,7,8,10,11,12,13)  From green group we find terms C’ D B  Taking their complement and summing them (C+D’+B’)  From red group we find terms C D A’  Taking their complement and summing them (C’+D’+A)  From blue group we find terms A C’ D’  Taking their complement and summing them (A’+C+D)  From brown group we find terms A B’ C  Taking their complement and summing them (A’+B+C’) Finally we express these as product – (C+D’+B’).(C’+D’+A).(A’+C+D).(A’+B+C’)
  • 35. K-MAP FOR 4VARIABLES (DON’T CARES)  Don’t cares in a Karnaugh map, or truth table, may be either 1s or 0s, as long as we don’t care what the output is for an input condition we never expect to see.We plot these cells with an asterisk, *, among the normal 1s and 0s.  When forming groups of cells, treat the don’t care cell as either a 1 or a 0, or ignore the don’t cares.  This is helpful if it allows us to form a larger group than would otherwise be possible without the don’t cares. There is no requirement to group all or any of the don’t cares.  Only use them in a group if it simplifies the logic.
  • 36. QUINE-MCCLUSKEY TABULAR METHOD  Quine-McClukey tabular method is a tabular method based on the concept of prime implicants.  The prime implicant is a product or sum term, which can’t be further reduced by combining with any other product or sum terms of the given Boolean function.  Quine-McClukey tabular method is a tabular method based on the concept of prime implicants.We know that prime implicant is a product or sum term, which can’t be further reduced by combining with any other product or sum terms of the given Boolean function.
  • 37. QUINE-MCCLUSKEY TABULAR METHOD: STEPS FOR SIMPLIFYING BOOLEAN FUNCTIONS  Step 1 − Arrange the given min terms in an ascending order and make the groups based on the number of ones present in their binary representations. So, there will be at most ‘n+1’ groups if there are ‘n’ Boolean variables in a Boolean function or ‘n’ bits in the binary equivalent of min terms.  Step 2 − Compare the min terms present in successive groups. If there is a change in only one-bit position, then take the pair of those two min terms. Place this symbol ‘_’ in the differed bit position and keep the remaining bits as it is.  Step 3 − Repeat step2 with newly formed terms till we get all prime implicants.  Step 4 − Formulate the prime implicant table. It consists of set of rows and columns. Prime implicants can be placed in row wise and min terms can be placed in column wise. Place ‘1’ in the cells corresponding to the min terms that are covered in each prime implicant.  Step 5 − Find the essential prime implicants by observing each column. If the min term is covered only by one prime implicant, then it is essential prime implicant.Those essential prime implicants will be part of the simplified Boolean function.  Step 6 − Reduce the prime implicant table by removing the row of each essential prime implicant and the columns corresponding to the min terms that are covered in that essential prime implicant. Repeat step 5 for Reduced prime implicant table. Stop this process when all min terms of given Boolean function are over.
  • 38. QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 1  simplify the following Boolean function, f(W,X,Y,Z)=∑m(2,6,8,9,10,11,14,15) using Quine-McClukey tabular method. Group Name Min terms W X Y Z GA1 2 0 0 1 0 8 1 0 0 0 GA2 6 0 1 1 0 9 1 0 0 1 10 1 0 1 0 GA3 11 1 0 1 1 14 1 1 1 0 GA4 15 1 1 1 1  The given Boolean function is in sum of min terms form.  It is having 4 variables W, X,Y & Z.  The given min terms are 2, 6, 8, 9, 10, 11, 14 and 15.  The ascending order of these min terms based on the number of ones present in their binary equivalent is 2, 8, 6, 9, 10, 11, 14 and 15.  The following table shows these min terms and their equivalent binary representations. Min Term Binary 2 0010 6 0110 8 1000 9 1001 10 1010 11 1011 14 1110 15 1111
  • 39. QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 2  The given min terms are arranged into 4 groups based on the number of ones present in their binary equivalents. The following table shows the possible merging of min terms from adjacent groups. Group Name Min terms W X Y Z GB1 2,6 0 - 1 0 2,10 - 0 1 0 8,9 1 0 0 - 8,10 1 0 - 0 GB2 6,14 - 1 1 0 9,11 1 0 - 1 10,11 1 0 1 - 10,14 1 - 1 0 GB3 11,15 1 - 1 1 14,15 1 1 1 -
  • 40. QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 3  The min terms, which are differed in only one-bit position from adjacent groups are merged.That differed bit is represented with this symbol,‘-‘. In this case, there are three groups and each group contains combinations of two min terms.The following table shows the possible merging of min term pairs from adjacent groups. Group Name Min terms W X Y Z GB1 2,6,10,14 - - 1 0 2,10,6,14 - - 1 0 8,9,10,11 1 0 - - 8,10,9,11 1 0 - - GB2 10,11,14,15 1 - 1 - 10,14,11,15 1 - 1 -
  • 41. QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 4  The successive groups of min term pairs, which are differed in only one-bit position are merged.That differed bit is represented with this symbol,‘-‘. In this case, there are two groups and each group contains combinations of four min terms. Here, these combinations of 4 min terms are available in two rows. So, we can remove the repeated rows.The reduced table after removing the redundant rows is shown below. Group Name Min terms W X Y Z GC1 2,6,10,14 - - 1 0 8,9,10,11 1 0 - - GC2 10,11,14,15 1 - 1 -
  • 42. QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 5  Further merging of the combinations of min terms from adjacent groups is not possible, since they are differed in more than one-bit position.There are three rows in the above table. So, each row will give one prime implicant. Therefore, the prime implicants areYZ’,WX’ & WY.  The prime implicant table is shown below. Min terms / Prime Implicants 2 6 8 9 10 11 14 15 YZ’ 1 1 1 1 WX’ 1 1 1 1 WY 1 1 1 1
  • 43. QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 6  The prime implicants are placed in row wise and min terms are placed in column wise. 1s are placed in the common cells of prime implicant rows and the corresponding min term columns.  The min terms 2 and 6 are covered only by one prime implicant YZ’. So, it is an essential prime implicant. This will be part of simplified Boolean function. Now, remove this prime implicant row and the corresponding min term columns.The reduced prime implicant table is shown below. Min terms / Prime Implicants 8 9 11 15 WX’ 1 1 1 WY 1 1
  • 44. QUINE-MCCLUSKEY TABULAR METHOD: EXAMPLE: STEP 7  The min terms 8 and 9 are covered only by one prime implicant WX’. So, it is an essential prime implicant. This will be part of simplified Boolean function. Now, remove this prime implicant row and the corresponding min term columns.The reduced prime implicant table is shown below. Min terms / Prime Implicants 15 WY 1 The min term 15 is covered only by one prime implicant WY. So, it is an essential prime implicant.This will be part of simplified Boolean function. In this example problem, we got three prime implicants and all the three are essential. Therefore, the simplified Boolean function is F(W,X,Y,Z) =YZ’ + WX’ + WY.