2, Combinational Logic Circuits
2, 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).
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),
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
9 Expand A + BC + ABC to minterms and maxterms
EXPANSION OF A BOOLEAN EXPRESSION TO POS FORM
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 + C + B)( A + C + B)
SIMPLIFYING LOGIC CIRCUITS
Once the expression for a logic circuit has been Why simplification?
obtained, we may be able to reduce it to a simpler
form containing fewer terms of fewer variables in A
one or more terms. A + (B ⋅ C)
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 simplified
to produce the circuit of fig (b). ( )
Y= A+(B⋅C) ⋅A⋅ B
Since both circuits perform the same logic, it B⋅ C
should be obvious that the simplest circuit is more
desirable because it contains fewer gates and will
therefore be smaller and cheaper than the
original. (a) unsimplified circuit
Furthermore, the circuit reliability will improve
because there are fewer interconnections that can
be potential circuit faults. In subsequent sections
we will study two methods for simplifying logic
circuits:
Y=A⋅B
¾ One method will utilize the Boolean algebra
theorems (Algebraic Method)
Method and
¾ The other method will utilize Karnaugh (b) Simplified circuit
mapping (K-map Method)
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.
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.
2. Once it is in this form the product terms are checked for common factors, and
factoring is performed wherever possible. Hopefully, the factoring results in
the elimination of one or more terms.
Example # 1
Simplify the expression Z = ABC + A B (A C)
9 It is usually a good idea to break down all large inverter signs using De
Morgan’s theorems and then multiply out all terms
[theorem (19)]
Z = ABC + A B(A + C)
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.
3 Write the Sum-of-products expression for the output.
X = ABC + A BC + ABC + ABC
X = BC + AC + AB
Step 5. Implement the circuit for the final expression.
9 The X= AB + BC + AC expression is implemented in fig. below.
9 Since the expression is in SOP, the circuit consists of a group of
AND gates working into a single OR gate.
AB
BC
X = AB+ BC + AC
AC
Example # 2:2
9 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 .
9 Design this circuit
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
4 0 1 0 0 0 12 1 1 0 0 1 ABC D
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 + A BCD + 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 + A B + AB
= A BCD + A ( B + B )
= ABCD + A
Z = BCD + A
AOI LOGIC CIRCUIT
(for example # 1)
NAND
NAND
NAND
NAND
NAND/NAND LOGIC CIRCUIT
AB
BC
AC X = AB ⋅ BC ⋅ AC
AOI LOGIC CIRCUIT
(for example # 2)
9 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.
BCD
Y = A ⋅ BCD
???
X = A + BCD