Boolean Function and Karnauph Map
Boolean Function and Karnauph Map
ETT04201
1 www.atc.ac.tz David M.
Lecture Content
Introduction
SOP and POS
Standard Forms
Minterms and Maxterms
Canonical Forms
2 www.atc.ac.tz David M.
Introduction
• Logical functions are generally expressed
in terms of logical variables. Values
taken on by the logical functions and
logical variables are in the binary form.
• An arbitrary logic function can be
expressed in the following forms:
1. Sum of Products(SOP)
3 www.atc.ac.tz David M.
Introduction
• Product term: The AND function is referred to as
a product. The logical product of several
variables on which a function depends is
considered to be a product term. The variables in
a product term can appear either in
complemented or un–complemented form. ABC’
for example, is a product term.
4 www.atc.ac.tz David M.
Sum of product &
Product of sum
• Sum of Products (SOP): The logical sum of two or
more logical product terms, is called a sum of
products expression. It is basically an OR operation
of AND operated variables such as:
1) Y= AB + BC +AC
2) Y = AB +A’C +BCD
5 www.atc.ac.tz David M.
The standard SOP and
POS Form
• A standard SOP expression is defined as an
expression in which all the variables in the
domain appear in each product term in
complimented on non complimented.
8 www.atc.ac.tz David M.
The std. Form of SOP &
POS
These standard forms are important
in:
9 www.atc.ac.tz David M.
Minterms and
Maxterms
The standard product terms are called “minterms”.
10 www.atc.ac.tz David M.
Minterms and
Maxterms
• The standard sum terms are called “maxterms”.
14 www.atc.ac.tz David M.
Canonical form
• Canonical POS Expression
• It is defined as the logical product of all the
maxterms derived from the rows of a truth
table, for which the value of the function is 0
it is also called a maxterm canonical form.
• In its compact form, the canonical POS
expression is given by listing the decimal
codes in correspondence with the maxterm
containing a function value of 0.
15 www.atc.ac.tz David M.
Canonical form
• Canonical POS Expression
• For example, if the canonical product of sum form of
a 3- variable logic function F has four maxterms (A +
B + C), (A + B’+ C) ,(A’+B+C)and (A’ +B’ +C’), this
can be expressed as the product of the decimal
codes corresponding to these maxterms as below:
F = ᴨ(0,2,4,7)
= M0.M2.M4.M7
=(A+B+C)(A+B’+C)(A’ + B + C)(A’ + B’
+ C’)
• Where ᴨ(0,2,4,7) represents the product of
maxterms corresponding to the decimal codes 0,2,4,
and7
16 www.atc.ac.tz David M.
THE END
17 www.atc.ac.tz David M.
DIGITAL COMBINATIONAL CIRCUITS
ETT04201
<KARNAUGH MAP>
18 www.atc.ac.tz David M.
Lecture Content
Introduction
Representing Boolean Functions on the K-
Map
Simplification of Boolean Functions using K-
Map.
19 www.atc.ac.tz David M.
Introduction
Using Boolean Algebra for minimization causes it’s
own problem because of it mainly being a trail and
error process and we can almost never be sure that
we have reached a minimal representation.
The simplification of the switching function using
Boolean laws and theorems become very complex
with the increase in the number of variables and
terms. The procedure is awkward as it lacks specific
rules to predict each succeeding step in the
manipulative process.
The Karnaugh Map Technique provides a simple
systematic and straightforward method for
simplifying and manipulating Boolean Function. This
method is regarded as Pictorial form of truth table
i.e the information containing is a truth table or
available in the POS or SOP form is represented on
the K-Map.
20 www.atc.ac.tz David M.
What is K-Map??
K-map is a diagram made up of squares called
cells. Each cell corresponds to one combination
of n-variables. Therefore for each row of the
truth table i.e for each minterm and for each
maxterm, there is a specific cell on the K-map.
In an n-variable K-map, there are 2^n cells.
The followings are the maps for 2,3 and 4
variables.
K-map cells are arranged such that adjacent
m0 mcells m0 m1 m3 m2
1 correspond
m0 m1 mto 3
to
m2truth rows that differ in
m4 m5 m7 m6
m2 monly
3 ONE
m4 bitmposition
5 m7 m6
m1 m1 m1 m1
2 3 5 4
21 www.atc.ac.tz m8 m9 m1 m1 David M.
1 0
Representation of Boolean
Functions
Boolean Expression are represented on the K-
map as follows:
1. Write the terms(product terms) into their
standard form (minterms).
2. Draw the K-Map of n-variables with reference to
the number of variable in the function domain.
3. Identify the minterms that belong to to the given
function on the K-map
4. Replace each minterms with 1
Examples;
1. F=AB
2. F= Ʃm(0,5,6)
3. F= A+BC
22 www.atc.ac.tz David M.
Simplification Of Boolean
Functions
Simplification of Boolean Functions using K-
map, is based on the principle of combining
the terms present in the adjacent cells.
The 1s in the adjacent cells can be grouped
by drawing a loop around those cells.
The following are the governing rules;
23 www.atc.ac.tz David M.
Simplification of Boolean
Expression
Governing rules
1. Examine the map for 1s that can not be combined with
other 1 cells and form group with such single 1.
2. Next look for those 1s which are adjacent to only one
other 1 and form groups containing only 2 cells and
which are not part of any group of 4 or 8. A group of 2
cells is called PAIR.
3. Group the 1s which results in group of 4 cells group but
are not part of 8 cells group. A group of 4 cells is called
QUAD.
4. Group the 1s which results in group of 8 cells. A group of
8 cells is called OCTET.
5. Form more Pairs,Quads and Octets to include those 1s
that have not yet been grouped and use only minimum
number of groups. There can be overlapping of groups if
the include common 1s.
6. Omit any redundant group.
7. Form the logical sum of all terms generated by each
group.
24 www.atc.ac.tz David M.
Example of grouping pairs
25 www.atc.ac.tz David M.
Examples of grouping QUADS
26 www.atc.ac.tz David M.
Examples of grouping the
OCTETS
1 1
1 1 1 1 1 1
1 1 1 1 1 1
1 1
1 1 1 1 1 1
1 1
1 1
1 1 1 1 1 1
27 www.atc.ac.tz David M.
Simplification of Boolean
Functions
When one or more than one variables
appear in both complimented and un-
complimented form within a group, then
that variable is eliminated from the term
corresponding to that group.
The variables that are the same for all the
cells of the group must appear in the term
corresponding to that group.
28 www.atc.ac.tz David M.
Examples
Simplify the Following Boolean functions
using K-Map method:
1. F=A’BC+A’BC’+AB’C’+AB’C
2. F=A’BC+AB’C+ABC+ABC’
3. F=A’C+A’B+AB’C+BC
4. F=Ʃm(0,2,4,5,6)
5. F=Ʃm(1,3,5,7,9,12,13)
6. F=Ʃm(8,10,11,12,13,14,15)
7. F=Ʃm(0,1,2,4,5,6,8,9,12,13,14)
8. F=A’B’C’+B’CD’+A’BCD’+AB’C’
9. F=BC’D’+A’BC’D+ABC’D+A’BCD+ABCD
29 www.atc.ac.tz David M.