Module 4 - Combinational Logic Circuits
Module 4 - Combinational Logic Circuits
Example:
1. 𝐴𝐵𝐶 + 𝐴𝐵𝐶
2. 𝐴𝐵 + 𝐴𝐵𝐶 + 𝐶̅ 𝐷
̅+𝐷
3. ̅ ̅
𝐴𝐵 + 𝐶𝐷 + 𝐸𝐹 + 𝐺𝐾 + 𝐻𝐿
Example:
1.( A + B + C )( A + C )
2.( A + B )(C + D )F
3.( A + C )( B + D )( B + C )( A + D + E )
The methods of circuit simplification and design that we will be using are
based on the sum-of-products form, so we will not be doing much with the
product-of-sums form. It will, however, occur from time to time in some logic
circuits that have a particular structure.
ALGEBRAIC SIMPLIFICATION
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 into the sum-of-products form by
repeated application of DeMorgan's theorems and multiplication of
terms.
2. Once the original expression 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 logic circuit shown.
Example 2:
Simplify the circuit using Boolean algebra.
Example 3:
Change each NAND gate in Exercise no.2 to a NOR gate, and simply the
circuit using Boolean algebra.
When the desired output level of a logic circuit is given for all possible input
conditions, the results can be conveniently displayed in a truth table.
The Boolean expression for the required circuit can then be derived from the
truth table.
Once the output expression has been determined from the truth table in
sum-of-products from, it can easily be implemented using AND and OR
gates, and INVERTERs.
Example 1:
Design a logic circuit that has three inputs, A, B, and C, and whose output
will be HIGH only when a majority of the inputs are HIGH.
Solution:
Step 2: Write the AND term for each case where the output is a 1.
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 A BC
1 1 0 1 AB C
1 1 1 1 ABC
Example 2:
Design the logic circuit corresponding to the truth table shown.
Truth table
A B C x
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 1
Example 3:
A manufacturing plant needs to have a horn sound to signal quitting time. The
horn should be activated when either of the following conditions is met.
1. It’s after 5 o’clock and all machines are shut down.
2. It’s Friday, the production run for the day is complete, and all
machines are shut down.
Design a logic circuit that will control the horn.
(Hint: Use four logic input variables to represent the various conditions; for
example, input A will be HIGH only when the time of the day is 5 o,clock or
later.)
MAP METHOD
The map method, first proposed by E.W. Vietch and slightly modified by M.
Karnaugh, is also known as the “Veitch Diagram” or the “Karnaugh
Map”.
TWO-VARIABLE MAP
There are four minterms for two variables; hence consists of four squares,
one for each minterm.
Note:
Minterm (also known as standard product) is an AND term of the n variables.
Maxterm (also known as standard sum) is an OR term of the n variables.
m0 m1
m2 m3
B
B B A 0 1
A m0 m1 0 A B A B
A m2 m3 1 A B A B
EXAMPLE:
TRUTH TABLE
A B X
0 0 1 AB
0 1 0
1 0 0
1 1 1 AB
x = A B + AB
B
B B A 0 1
A 1 0 0 1 0
A 0 1 1 0 1
THREE-VARIABLE MAP
BC C
A 00 01 11 10 AB 0 1
0 m0 m1 m3 m2 00 m0 m1
1 m4 m5 m7 m6 01 m2 m3
11 m6 m7
10 m4 m5
EXAMPLE:
TRUTH TABLE
A B C X
0 0 0 1 A BC
0 0 1 1 A BC
0 1 0 1 AB C
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 1 AB C
1 1 1 0
x = A BC + A BC + ABC + AB C
BC C
A 00 01 11 10 AB 0 1
0 1 1 0 1 00 1 1
1 0 0 0 1 01 1 0
11 1 0
10 0 0
FOUR-VARIABLE MAP
CD 00 01 11 10
AB
00 m0 m1 m3 m2
01 m4 m5 m7 m6
10 m8 m9 m11 m10
EXAMPLE:
TRUTH TABLE
A B C D X
0 0 0 0 0
0 0 0 1 1 A BC D
0 0 1 0 0
0 0 1 1 0
0 1 0 0 0
0 1 0 1 1 ABC D
0 1 1 0 0
0 1 1 1 0
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 0
1 1 0 1 1 AB C D
1 1 1 0 0
1 1 1 1 1 ABCD
x = A BC + A BC + ABC + AB C
CD
AB 00 01 11 10
00 0 1 0 0
01 0 1 0 0
11 0 1 1 0
10 0 0 0 0
LOOPING
The expression for output X can be simplified by properly combining those
squares in the K map which contain 1s.
The process for combining these 1s is called looping.
Step 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.
Step 2:
Examine the map for adjacent 1s and loop those 1s which are not adjacent
to any other 1s. These are called isolated Is.
Step 3:
Next, look for those 1s which are adjacent to only one other 1. Loop any
pair containing such a 1.
Step 4:
Loop any octet even it contains some 1s that have already been looped.
Step 5:
Loop any quad that contains one or more 1s that have not already been
looped, making sure to use the minimum number of loops.
Step 6:
Loop any pairs necessary to include any 1s that have not yet been looped,
making sure to use the minimum number of loops.
Step 7:
Form the OR sum of all the terms generated by each loop.
Example:
Example:
Use the K-map to simplify the expression y = ABC + BC + AB .
y=A
Problem:
MINTERMS MAXTERMS
x y z Term Designation Term Designation
0 0 0 x’y’z’ m0 x+y +z M0
0 0 1 x'y’z m1 x + y + z’ M1
0 1 0 x'yz’ m2 x + y’ + z M2
0 1 1 x'yz m3 x + y’ + z’ M3
1 0 0 xy'z’ m4 x' + y + z M4
1 0 1 xy'z m5 x' + y + z’ M5
1 1 0 xyz' m6 x' + y ‘ + z M6
1 1 1 xyz m7 x' + y’ + z’ M7
Minterm (also known as standard product) is an AND term of the n variables.
Maxterm ( also known as standard sum) is an OR term of the n variables.
Canonical Forms
Example:
x y z Function f1 Function f2
0 0 0 0 0
0 0 1 1 0
0 1 0 0 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Sum Of Minterms
f 1 = m1 + m4 + m7
f 2 = m3 + m5 + m6 + m7
Product Of Maxterms.
f1 = M0 . M2 . M3 . M5 . M6
f2 = M0 . M1 . M2 . M4
F1(x, y, z) = Σ ( 1, 4, 7 )
F2(x, y, z) = Σ ( 3, 5, 6, 7 )
F1(x, y, z) = π ( 0, 2, 3, 5,6 )
F2(x, y, z) = π ( 0, 1 ,2 ,4 )
Problem Set:
1. Obtain the simplified expressions in sum of products for the following Boolean
functions:
a. F (x, y, z) = Σ ( 2, 3, 6, 7 )
b. F(A, B, C, D) = Σ ( 7, 13, 14, 15 )
c. F(A, B, C, D) = Σ ( 4, 6, 7, 15 )
d. F (w, x, y, z) = Σ ( 2, 3, 12 ,13 ,14 ,15)
2. Obtain the simplified expressions in product of sums for the following Boolean
functions:
a. F1(x, y, z) = π ( 0, 1, 4, 5 )
b. F(A, B, C, D) = π ( 0, 1, 2, 3, 4, 10, 11 )
c. F1(w, x, y, z) = π ( 1, 3, 5, 7, 13, 15 )