Digital Logic Design Boolean Algebra and Logic Simplification
Digital Logic Design Boolean Algebra and Logic Simplification
Chapter IV
Boolean algebra and logic simplification
Addis Ababa Science and Technology
College of Electrical and Mechanical Engineering
Lecturer: Ambasa Aklilu (MSc)
Introduction
• Boolean algebra is a convenient and systematic way of expressing and
analyzing the operation of logic circuits.
• Boolean algebra is the mathematics of digital systems.
• A basic knowledge of Boolean algebra is indispensable to the study
and analysis of logic circuits.
• Variable, complement and literal are terms used in Boolean algebra.
• Variable: is a symbol to represent a logical quantity.
• Complement: is the inverse of a variable and is indicated by an overbar.
• Literal: is a variable or the complement of a variable.
Boolean Addition
• Boolean addition is equivalent to the OR operation.
• The basic rules are illustrated with their relation to the OR gate as follow.
3. Place a 1 in the output column for each binary value that makes the
standard SOP expression a 1 and place a 0 for all the remaining
binary values.
Example
Converting POS Expressions to Truth Table
1. List all the possible combinations of binary values of the variables
just as was done for the SOP expression.
3. Finally, place a 0 in the output column for each binary value that
makes the expression a 0 and place a 1 for all the remaining binary
value.
Example
Determining Standard Expressions from a
Truth Table
• To determine the standard SOP expression represented by a truth
table;
• List the binary values of the input variables for which the output is 1.
• Convert each binary value to the corresponding product term by replacing
each 1 with the corresponding variable and each 0 with the corresponding
variable complement.
• For example:
Determining Standard Expressions from a
Truth Table
• To determine the standard POS expression represented by a truth
table,
• List the binary values for which the output is 0.
• Convert each binary value to the corresponding sum term by replacing each 1
with the corresponding variable complement and each 0 with the
corresponding variable.
• For example:
Example
• From the truth table given below determine the standard SOP
expression and the equivalent standard POS expression.
Example
• From the truth table given below determine the standard SOP
expression and the equivalent standard POS expression.
The Karanaugh Map (K-Map)
• A karnaugh map provides a systematic method for simplifying
Boolean expressions,
• If properly used, it produce the simplest SOP or POS expression
possible, known as the minimum expression.
• A K-map is similar to a truth table because it presents all of the
possible values of input variables and the resulting output for each
value.
• Instead of being organized into columns and rows like a truth table;
the K-Map is an array of cells in which each cell represents a binary
value of the input variables.
The 3-variable K-Map
• The 3-variable K-map is an array of 8 cells.
ABC ABC
ABC ABC
ABC ABC
ABC ABC
The 4-variable K-Map
• The 4 variable K-map is an array of 16 cells.
Cell adjacency
• The cells in a K-map are arranged so that there is only a single-variable
change between adjacent cells.
• In the 3-variable map the 010 cell is adjacent to the 000, 011, 110 cell.
• The 010 cell is not adjacent to the 001, 111, 100 or 101 cell.
• Cells in the top row are adjacent to the corresponding cells in the
bottom row. -> Wrap-around adjacency
• Cells in the outer left column are adjacent to the corresponding cells in
the outer right column. -> Wrap-around adjacency
K-Map SOP Minimization
• K-map is used for simplifying Boolean expressions to their minimum
form.
• Contains the fewest possible terms with the fewest possible variables
per term.
• Generally, a minimum SOP expression can be implemented with
fewer logic gates than a standard expression.
• Mapping a standard SOP expression:
• A 1 is placed on the K-map for each product term in the expression.
• For Example, for the product term a 1 goes in the 101 cell on 3-variable
map.
Mapping a Standard SOP Expression
• Step 1: Determine the binary value of each product term in the
standard SOP expression.
• Step 2: Place 1 on the K-map in the cell having the same value as the
product term.
• Ex: A’B’C’ + A’B’C + ABC’ + AB’C’
K-map Simplification of SOP
• After an SOP expression has been mapped, a minimum SOP
expression is obtained by grouping the 1’s and determining the
minimum SOP expression from the map.
• Grouping the 1’s:
• You can group 1’s on the K-map according to the following rules by enclosing
those adjacent cell containing 1’s.
1. The goal is to maximize the size of the groups and to minimize the number
of groups. group must contain either 1,2,4,8 …. All are the power of 2
2. Each cell in the group must be adjacent to one or more cells in the same
group;
3. Always include the largest possible number of 1s in a group in accordance
with rule 1.
4. Each 1 on the map must be included in at least one group.
Determining the minimum SOP Expression
From the Map
1. Each group of cells containing 1’s creates one product term
1. Variables that occur both in complemented and un-complemented form
within the group are eliminated.
3. When all the minimum product terms are derived from K-map, they
are summed to form the minimum SOP expression.
Example-1
Simplify A’B’C’ + A’BC’ + A’BC using K-map
Example-2
• Determine the product terms for each of the K-map in figure below
and write the resulting minimum SOP expression.