Combinational Logic Circuits
Combinational Logic Circuits
Combinational Logic Circuits
Introduction
Until now we studied the operation of the entire basic logic
gate, and we used Boolean algebra to describe and analyze
circuits that were made up of combinations of logic gates.
These Circuits can be classified as combinational logic circuits
because, at any time, the logic level at the output depends on
the combination of logic levels present at the inputs.
A combinational circuit has no memory characteristic, so its
output depends on the current value of its input.
We will study the simplification of logic circuits by using
Boolean algebra theorems & a mapping technique.
In addition, we will study simple techniques for designing logic
circuits to satisfy a given set of requirements.
Any Boolean expression can be expressed
In a standard or canonical or expanded Sum (OR) Of
Products (AND)-SOP form-or
In a standard or canonical or expanded Product (AND) Of
Sums (OR)-POS form.
Sum- of- Products Form (Minterms)
The methods of logic- circuit simplification and design that we
will study require logic expression to be in a sum- of- products
form (SOP).
Some examples of this form are:
1. ABC ABC
2. AB ABC CD D
3. AB CD EF GH
Each of this sum- of- product expression consists of two or
more AND terms (products) that are ORed together.
Each AND term consists of one or more variables appearing in
either complemented or Uncomplemented form.
Note that in a sum- of- products expression; one inversion sign
can not cover more than one variable in a term.
Example : we can not have
ABC or RST
Product- of- Sums (Maxterms)
There is another general form for logic expressions that is
sometimes used in logic- circuit design.
It is called the Product- of- sums form (POS), and it
consists of two or more OR terms (sums) that are ANDed
together.
Each OR term contains one or more variables in
complemented or uncomplemented form. Here are some
product- of- sums expressions;
1. ( A B C) (A C)
2. (A B ) (C D) F
The methods of circuit simplification and design, which we
will be using, are based on the sum- of- products form, so
we will not be doing much with the products- of- sum form.
It will, however, occur from time to time in some logic
circuits, which have a particular structure.
CONVERSION FROM SOP to POS
and vice-versa
A B AX X B
0X X0
00 01 00 10
00 01 10
m 0 m1 m 2
m(0,1,2)
Exercise
Expand A BC ABC to minterms and maxterms
EXPANSION OF A BOOLEAN EXPRESSION TO POS FORM
A OX (00)(01) M 0 M 1
(A B ) (01) M 1
B X0 (00)(10) M 0 M 2
Therefore,
A(A B)B M(0,1,2)
Exercise
Expand A(A C )(A B C ) to maxterms and minterms
A A BB CC
( A B)( A B) CC
( A B CC )( A B CC )
( A B C )( A B C )( A B C )( A B C )
A C A C BB
(A B C)(A B C)
Hence,
POS (ABC)(ABC)(ABC)(ABC)(ABC)(ABC)(ABC)
M 2 M 3 M 0 M1 M 4 M 6 Maxterms M(0,1,2,3,4,6)
m(5,7).............................................. minterms
SIMPLIFYING LOGIC CIRCUITS
Once the expression for a logic circuit Why simplification?
has been obtained, we may be able to
reduce it to a simpler form containing A
fewer terms of fewer variables in one or A (B C)
more terms.
The new expression can then be used to
implement a circuit that is equivalent to
the original circuit but that contains
fewer gates and connections.
To illustrate, the circuit of fig (a) can be
Y ABC A B
B C
simplified to produce the circuit of fig
(b).
Since both circuits perform the same
logic, it should be obvious that the (a) unsimplified circuit
simplest circuit is more desirable
because it contains fewer gates and will
therefore be smaller and cheaper than
the original. A
Furthermore, the circuit reliability will
improve because there are fewer
B YAB
interconnections that can be potential
circuit faults. In subsequent sections we
will study two methods for simplifying
logic circuits:
(b) Simplified circuit
One method will utilize the Boolean
algebra theorems (Algebraic
ALGEBRAIC SIMPLIFICATION
The Boolean algebra theorems that we studied earlier can be
used to help us simplify the expression for logic circuit.
Unfortunately, it is not always obvious which theorems should
be applied in order to produce the simplest result.
Furthermore, there is no easy way to tell whether the
simplified expression is in its simplest form or whether it could
have been simplified further.
Thus, algebraic simplification often becomes a process of trial
and error. With experience, however, one can become adept at
obtaining reasonably good results.
The examples that follow will illustrate many of the ways in
which the Boolean theorems can be applied in trying to
simplify an expression.
You should notice that these examples contain two essential
steps;
1. The original expression is put in to the sum- of- products form
by repeated application of De Morgan’s theorems and
multiplication of terms.
Example # 1
Simplify the expression
Z ABC A B (A C)
It is usually a good idea to break down all large inverter signs
using De Morgan’s theorems and then multiply out all terms
Z ABC AB(A C) [theorem (19)]
A B C X
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1 ABC
1 0 0 0
1 0 1 1 ABC STEP 2
1 1 0 1 ABC
1 1 1 1 ABC
Step 3. Write the Sum-of-products expression for the output.
Y ABC A BC ABC ABC
Y BC AC AB
Step 5. Implement the circuit for the final expression.
The Y= AB + BC + AC expression is implemented in fig. below.
Since the expression is in SOP, the circuit consists of a group of
AND gates working into a single OR gate.
AB
A
B
BC
C
Y = AB+ BC + AC
AC
Example # 2:
refer to fig (a), where four logic-signal lines A, B, C, D are
being used to represent a 4-bit binary number with A as the
MSB and D as the LSB. The binary inputs are fed to a logic
circuit that produces a HIGH output only when the binary
number is greater than 01102 = 610 .
Design this circuit
MSB
A
B Loic
Z
C circuit
D
LSB
Fig.(a)
TRUTH TABLE
A B C D Z A B C D Z
0 0 0 0 0 8 1 0 0 0
1 0 0 0 1 9 1 0 0 1
2 0 0 1 0 10 1 0 1 0
3 0 0 1 1 11 1 0 1 1
4 0 1 0 0 12 1 1 0 0
5 0 1 0 1 13 1 1 0 1
6 0 1 1 0 14 1 1 1 0
7 0 1 1 1 15 1 1 1 1
STEP:2
A B C D Z A B C D Z
0 0 0 0 0 0 8 1 0 0 0 1 A BC D
1 0 0 0 1 0 9 1 0 0 1 1 A BCD
2 0 0 1 0 0 10 1 0 1 0 1 A BC D
3 0 0 1 1 0 11 1 0 1 1 1 A BCD
ABC D
4 0 1 0 0 0 12 1 1 0 0 1
5 0 1 0 1 0 13 1 1 0 1 1 ABCD
6 0 1 1 0 0 14 1 1 1 0 1 ABC D
7 0 1 1 1 1 15 1 1 1 1 1 ABCD
ABCD
Step 3. SOP expression
Z ABCD ABCD A BCD A BCD A BCD ABCD ABCD ABCD ABCD
Step:4 Simplification
Z ABCD A BCD A BCD A BCD A BCD ABCD ABCD ABCD ABCD
ABCD AB AB
A BCD A ( B B )
ABCD A
Z BCD A
LOGIC CIRCUIT
(for example # 1)
AB
A
B
BC
C
X=AB+BC+AC
AC
AB
A
B
BC
C
AC X=AB+BC+AC
NAND
NAND
NAND
A
B
NAND
NAND/NAND LOGIC CIRCUIT
A AB
B
BC
C
AC X AB BC AC
LOGIC CIRCUIT
(for example # 2)
B
X=A+BCD
C
D
We can streamline the process of converting a sum-of-
products circuit from AND/OR to NAND gates as follows:
1. Replace each AND gate, OR gate, and Inverter by a single
NAND gate.
2. Use a NAND gate to invert any single variable that is feeding
the final OR gate.
A A
A
B B BCD
Y=A+BCD Y A BCD
C C
D D
A
B
C
???
X A BCD
D
KARNAUGH MAP METHOD
Y BC
Looping Groups of Two (pairs) (Continued)
C C
1 0
AB
0 0
AB
0 0
AB
1 0
AB
(c)
Y BC
Looping a pair of adjacent 1s in a K map eliminates
the variable that appears in complemented and
uncomplemented form.
Redundant Looping
ABC
CD CD C D C D
AB 0 0 1 1
0 0 0 0
AB
AB 0 0 0 0
AB D
Y A BC A BD Correct
Y A BC A BD BCD Incorrect
Looping Groups of Four (Quads):
C D C D C D CD C D C D C D CD
AB 0 0 0 1 0 0 0 0
AB
0 0 0 1 0 0 0 0
AB AB
AB 0 0 0 1 1 1 1 1
AB
AB 0 0 0 1 0 0 0 0
AB
(a)
(b)
X AB
X CD
Looping Groups of Four (Quads) (continued…)
C D C D C D CD C D C D C D CD
AB 0 0 0 0 0 0 0 0
AB
0 1 1 0 0 0 0 0
AB AB
AB 0 1 1 0 1 0 0 1
AB
AB 0 0 0 0 AB 1 0 0 1
(c) (d)
X BD X AD
Looping Groups of Four (Quads) (continued…)
C D C D C D CD
AB 1 0 0 1
0 0 0 0
AB
AB 0 0 0 0
AB 1 0 0 1
(e)
X BD
Looping a quad of 1s eliminates the two variables
that appear in both complemented and
uncomplemented form.
Looping Groups of Eight (octets):
C D C D C D CD C D C D C D CD
0 0 0 0 AB 1 1 0 0
AB
1 1 1 1 1 1 0 0
AB AB
1 1 1 1 AB 1 1 0 0
AB
AB 0 0 0 0 AB 1 1 0 0
(a) (b)
XB XC
Looping Groups of Eight (Octets) (cont’d…)
C D C D C D CD C D C D C D CD
AB
AB 1 1 1 1 1 0 0 1
AB
0 0 0 0 1 0 0 1
AB AB
AB 0 0 0 0 1 0 0 1
AB
AB 1 1 1 1 1 0 0 1
(c) (d)
YB YD
Looping an octet of 1s eliminates the three
variables that appear in both complemented and
uncomplemented form.
Rule for loops of any size
We can summarize the rule for loops of any size:
When a variable appears in both
complemented and uncomplemented form
within a loop, that variable is eliminated from
the expression.
Variables that are the same for all squares of
the loop must appear in the final expression.
It should be clear that a larger loop of 1s
eliminates more variables. To be exact, a loop
of two eliminates one variable, a loop of four
eliminates two, and a loop of eight eliminates
Complete Simplification Process
1. Construct the K map and place 1s in those squares
corresponding to the 1s in the truth table. Place 0s in
the other squares.
2. Examine the map for adjacent 1s and loop those 1s,
which are not adjacent to any other 1s. These are
called isolated 1s.
3. Next, look for those 1s, which are adjacent to only one
other 1. Loop any pair containing such a 1.
4. Loop any octet even it contains some 1s that have
already been looped.
5. Loop any quad that contains one or more 1s, which
have not already been looped, is making sure to use the
minimum number of loops.
6. Loop any pairs necessary to include any 1s that have
Example#1
ABCD
C D C D C D CD
AB 0 0 0 1
0 1 1 0
AB
BD
AB 0 1 1 0
AB 0 0 1 0
(a)
ACD
X ABCD ACD BD
Example#2
Option #1
ACD
C D C D C D CD
AB 0 1 0 0
0 1 1 1 ABC
AB
AB 0 0 0 1
1 1 0 1 AC D
AB
A BC
X ACD ABC ACD A BC
Example#
Option # 2
C D C D C D CD
ABD
AB 0 1 0 0
BCD 0 1 1 1
AB
AB 0 0 0 1
BCD
AB 1 1 0 1
A BD
variables. 0 1 1 1 1 0 1 1 1 1 1 0
The
Y E D C B A E D C B A E D C B A E D C B A
unsimplified Boolean
E D C B A E D C B A E D C B A E D C B A
E D C B A
E D C B A Y E D C B A Y
0 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 1 1 1 0 0 0 1 1
0 0 0 1 0 0 1 0 0 1 0 0
0 0 0 1 1 0 1 0 0 1 1 0
0 0 1 0 0 0 1 0 1 0 0 1
0 0 1 0 1 1 1 0 1 0 1 0
0 0 1 1 0 0 1 0 1 1 0 0
0 0 1 1 1 0 1 0 1 1 1 0 DA
0 1 0 0 0 1 1 1 0 0 0 0
0 1 0 0 1 0 1 1 0 0 1 0
0 1 0 1 0 0 1 1 0 1 0 0
0 1 0 1 1 0 1 1 0 1 1 0
0 1 1 0 0 1 1 1 1 0 0 1 EDCBA
0 1 1 0 1 0 1 1 1 0 1 1
0 1 1 1 0 0 1 1 1 1 0 0
0 1 1 1 1 0 1 1 1 1 1 0
Example
EDCA
(b)
“Don’t Care” Conditions
Some logic circuits can be A B C Z
designed so that there are certain
input conditions for which there 0 0 0 0
are no specified output levels, 0 0 1 0
usually because these input 0 1 0 0
conditions will never occur.
0 1 1 X
In other words, there will be
1 0 0 X
certain combinations of input
levels where we ‘’don’t care’’ 1 0 1 1
whether the output is HIGH or 1 1 0 1
LOW.
1 1 1 1
This is illustrated in the truth table.
C C C C
AB 0 0 AB 0 0
0 0
AB 0 x AB
1 1 AB 1 1
AB
AB 1 1
AB x 1
Z=A
(b (c)
)
Whenever ‘’don’t care’’ conditions occur, we have
to decide which ones to change to 0 and which to 1
to produce the best K-map looping (i.e., the
simplest expression).
This decision is not always an easy one.
Example on “Don’t Care”
CD CD CD CD
AB 0 0 0 0
AB 1 0 0 X
Redundant
loop
AB 1 1 1 1
AB 0 X X 0
Y B D AD
Y B D AD AB
Summary
The K-map process has several advantages over the algebraic
method.
K mapping is a more orderly process with well-defined steps as
compared with the trial- and error process sometimes used in
algebraic simplification.
K mapping usually requires fewer steps, especially for
expressions containing many terms, and it always produces a
minimum expression.
Nevertheless, some instructors prefer the algebraic method
because it requires a thorough knowledge of Boolean algebra and
is not simply a mechanical procedure. Each method has its
advantages, and though most logic designers are adept at both,
being proficient in one method is all that is necessary to produce
acceptable results.
There are other more complex techniques that designers use to
minimize logic circuits. These techniques are especially suited for
circuits with large numbers of inputs where algebraic and k-