Professional Documents
Culture Documents
Cha 4
Cha 4
Cha 4
INSTITUTE OF TECHNOLOGY
Department of Electrical and Computer Engineering
COURSE NAME: DIGITAL LOGIC DESIGN
COURSE CODE: ECEG3141
COURSE INSTRUCTOR: AMARE WORKU
CONTACT INFORMATION:
EMAIL: amareworku2154@gmail.com
CONSULTATION HOURS:
FRIDAY: FROM 8:00-11:00
CHAPTER FOUR
Boolean algebra and Logic simplification
De 'Morgan Theorems
The K-map
Introduction
Y = A . B+C
1. parentheses
2.AND
3.OR
Boolean operations and expressions
A gate
is an digital circuit which operates on one or more signals and
produce single output.
Gatesare digital circuits because the input and output signals are
denoted by either 1(high voltage) or 0(low voltage).
There are three type of basic gates are as under:
1. AND gate
2. OR gate
3. NOT gate
Principal of Duality
L1 : Commutative Law
(a) A + B = B + A
(b) A.B = B.A
L2 : Associate Law
(a) (A + B) + C = A + (B + C)
(b) (A.B).C = A.(B.C)
L3 : Distributive Law
(a) A.(B + C) = A.B + A.C
(b) (A + B).(A + C) = A + (B.C)
Rules of Boolean Algebra
A. A+AB=A
A(1+B)
A.1
A=A
B. A+A’B= A+B
CONT…..
C. (A+B)(A+C)=A+BC
De Morgan's Theorem
Example :
A. XYZ
B. X+Y+Z
C. X+Y+Z
D. XYZ
E.
Boolean analysis of logic circuits
SOP expression can be implemented by one OR gate and two or more ANDs.
Cont.….
In SOP expression, an over bar can not extend more than one variable. But more than one variable can have an
over bar.
SOP expression can be implemented by using AND/OR gates or equivalently NAND/NOR gates. E.g.:
Cont.….
Conversion of general expression to SOP form
Example
A(B + CD) = AB + ACD .. Apply distributive law
Standard SOP form
In standard SOP each term of Boolean expression must contain all the
literals (with and without bar) that has been used in Boolean
expression.
If the above condition is satisfied by the Boolean expression, that
expression is called Standard/Canonical form of Boolean expression.
For instance, in Boolean expression AB+AC the literal C is missing in
the 1st term AB and B is missing in 2nd term AC. So AB+AC is not a
Standard/Canonical SOP.
Converting product terms to standard SOP
The Product of sum( POS) form : consists of two or more sum terms that are
multiplied by Boolean multiplication. Recall that a sum term is a term
consisting of the sum of literals. E.g.:
POS expression can be implemented by one AND gate and two or more ORs.
Converting a sum term to standard POS
Converting standard SOP to standard POS
Recall SOP expression is equal to one iff at least one of the product
terms is 1.
To convert SOP to truth table; first list all possible combinations of
input variables in the expression.
Then convert the SOP expression in its standard form if it is not.
Finally,place 1 in the output column for each binary value that makes
the standard SOP expression 1 and place a 0 for remaining binary
values.
Example
solution:
Converting POS expressions to truth table format
Recall POS expression is equal to 0 iff at least one of the sum terms is
0.
To convert POS to truth table; first list all possible combinations of
input variables in the expression.
Then convert the POS expression in its standard form if it is not.
Finally,place 0 in the output column for each binary value that makes
the standard POS expression 0 and place a 1 for remaining binary
values.
Con…
Solution:
Determining standard expressions from truth table
For Minterms:
‘1’ means the variable is “Not Complemented” and
‘0’ means the variable is “Complemented”.
For Maxterms:
‘0’ means the variable is “Not Complemented” and
‘1’ means the variable is “Complemented”.
Exercise
Cont.….
Karnaugh map ( kmap )
The cells in a Karnaugh map are arranged so that there is only a single
variable change between adjacent cells.
Adjacency is defined by a single variable change. In the 3-variable map the
010 cell is adjacent to the 000
cell, the 011 cell, and the 110 cell.
The 010 cell is not adjacent to the 001
cell, the 111 cell, the 100 cell, or the 101 cell.
Cont.….
KARNAUGH MAP SOP MINIMIZATION
solution
Cont.….
Karnaugh Map Simplification of SOP Expressions
Sometimes a situation arises in which some input variable combinations are not
allowed.
For example, recall that in the BCD code there are six invalid combinations:
1010, 1011, 1100, 1101, 1110, and 1111.
Since these unallowed states will never occur in an application involving the
BCD code, they can be treated as "don't care" terms with respect to their effect on
the output.
That is, for these "don't care" terms either a 1 or a 0 may be assigned to
the output: it really does not matter since they will never occur.
Cont.….
The "don't care" terms can be used to advantage on the Karnaugh map.
Fig. shows that for each "don't care" term, an X is placed in the cell.
When grouping the 1 s, the Xs can be treated as 1s to make a larger
grouping or as 0s if they cannot be used to advantage.
Steps of mapping
A. Determine the binary value of each sum term in the standard POS, that makes
the sum term ‘0’.
B. as each sum term is evaluated ,place ‘0’ on the k-map in the corresponding
cell.
Example.
(A+B+C)(A+B+C)(A+B+C)(A+B+C)
Kmap simplification of POS expression
Example
Cont.…..
POS: A(C+B)
SOP:AC+AB =A(C+B)
Example
Converting between POS and SOP using karnaugn Map
A. minimum POS
B. standard SOP
C. minimum SOP
solution
Cont.….
Exercise
Reading assignment