Professional Documents
Culture Documents
Chapter Objectives:
This chapter aims to help the student to:
be familiar with the basic logic gates and how these are used for logic circuits
implement circuits from Boolean expressions
evaluate Boolean expressions and logic circuit outputs for a given input combination
identify the different Boolean theorems and apply these to simplify logic circuits
determine minterms given maxterms and vice versa.
use universal gates to represent basic logic gates
be acquainted with two-level implementation of logic gates
George Boole
a british mathematician
published his paper, “An Investigation of the Laws of Thought ” in 1854.
paper became the foundation of mathematical theories of logic and probabilities
Claude Shannon
„father of information theory‟
first to use Boole‟s work for a concrete application in 1938
application: analysis and design of telephone switching circuits
wrote a thesis at MIT on “A Symbolic Analysis of Relay and Switching Circuits”
became the foundation of switching algebra
Boolean algebra differs from ordinary algebra in its constants and variables used
literals may only have two possible values: 0 and 1
Boolean 0 or 1 do not represent an actual number but the state of a logic level:
logic 0 logic 1
false true
off on
low high
no yes
open switch closed switch
4. TRUTH TABLE
illustrates all the possible combinations of inputs for a given number of inputs
total number of possible input combinations: 2N (where N: no. of input bits)
example: no. of inputs = 3
no. of inputs in the truth table: 23 = 8
truth table:
inputs output
A B C Y
0 0 0 ?
0 1 0 ?
0 0 1 ?
0 1 1 ?
1 0 0 ?
1 0 1 ?
1 1 0 ?
1 1 1 ?
truth table:
input, A output, A
0
1
b) Logical Addition
OR addition or OR operation
common symbol used: plus sign (+)
produces a sum term (sum of literals) wherein the output would be equal to 1 when
___________ ____ of the inputs is 1.
example: A+ B + C
truth table:
input output
A B Y
0 0
0 1
1 0
1 1
OR circuit: OR gate A
Y
B
waveforms:
EE 120 LECTURE NOTES CHAPTER 3: BOOLEAN ALGEBRA AND LOGIC GATES 3. 4
c) Logical Multiplication
AND multiplication or AND operation
common symbol used: dot ( )
produces a product term (product of literals) wherein the output would be equal to 1 only
when _______ of the inputs are 1.
example: A B C
truth table:
input output
A B Y
0 0
0 1
1 0
1 1
A
AND circuit: AND gate Y
B
waveforms:
D
EE 120 LECTURE NOTES CHAPTER 3: BOOLEAN ALGEBRA AND LOGIC GATES 3. 5
Example 4: Illustrate the logic circuit described by the Boolean function below:
W D C A B B D A C
a) Boolean Theorems
b) DeMorgan‟s Theorems
(1) (x + y) = x y
(2) (x y) = x + y
Order of Precedence
1. parenthesis
2. NOT
3. AND
4. OR
b) z A + C B+ D
EE 120 LECTURE NOTES CHAPTER 3: BOOLEAN ALGEBRA AND LOGIC GATES 3. 7
Example 10: Reduce the following Boolean expressions to the indicated number of literals:
a) Y =zD A B AB CD CD AC to 3 literals
b) z A B C A B C A B A B to 1 literal
minterm (mj)
– symbol used to indicate a sum of minterms: mj
– each minterm is obtained from an AND term of n variables
– an uncomplemented variable corresponds to a logic 1 whereas a complemented variable
corresponds to a logic 0
maxterm (Mj)
– symbol used to indicate a product of maxterms: Mj
– each maxterm is obtained from an OR term of n variables
– an uncomplemented variable corresponds to a logic 0 whereas a complemented variable
corresponds to a logic 1
EE 120 LECTURE NOTES CHAPTER 3: BOOLEAN ALGEBRA AND LOGIC GATES 3. 8
c) Minterms/Maxterms Conversion
Determining minterms/maxterms from:
1. Boolean Expressions
Steps:
Change all ORs to ANDs and ANDs to ORs.
Complement each individual variable.
Complement the entire function.
Eliminate all groups of double overbars.
Example 11:
Convert the given expressions to their minterm equivalent:
a.
Example 12:
Convert the given expressions to their maxterm equivalent:
a. MNO + MNO + MNO + MNO
2. Canonical Forms
A summary of conversion of forms is shown in the table below:
DESIRED FORM
GIVEN minterm maxterm minterm maxterm
FORM expansion of F expansion of F expansion of expansion of
minterm maxterm nos. list minterms maxterm nos.
expansion of F are those nos. not present in are the same as
not on the F. minterms nos.
minterm list for of F.
F.
maxterm minterm nos. minterm nos. list maxterms
expansion of F are those nos. are the same as not present in
not on the maxterm nos. F.
maxterm list of F.
for F.
Example 13:
Given the canonical form:
Find:
a. minterms of F
b. minterms and maxterms of
truth table:
input output
A B Y
0 0
0 1
1 0
1 1
A
NOR circuit: OR gate with a bubble or NOR gate Y
B
waveforms:
(3) OR gate
A
A+B
B
A A
(2) OR gate
A
B A+B
A
AB
Example 14:
Implement the following functions using minimum number of universal gates:
1) Z = (A+B)(A+C) 2) X = AB + AC
EE 120 LECTURE NOTES CHAPTER 3: BOOLEAN ALGEBRA AND LOGIC GATES 3. 12
Example 15: Implement the Boolean function F using two-level NAND gates, assuming that complemented
inputs are available.
F = AB+AB
Example 16: Implement the Boolean function F using two-level NOR gates, assuming that complemented inputs
are available.
F = AB+AB
References:
Nagayo, A. M., Swidlec Lecture Notes, DLSU
Roth, C.H., Jr., Fundamentals of Logic Design, 3rd edition, West Publishing Company, 1985.
Tocci, R. J., Digital Systems: Principles and Applications, 5 th edition, Prentice Hall Inc., 1991.
Tokheim, R. L., Digital Electronics: Principles and Applications, 5 th edition, Glencoe Division of Mcmillan/McGraw-Hill
School Publishing Company, 1999.