Professional Documents
Culture Documents
Boolean Algebra
Boolean Algebra
Boolean Algebra
CHAPTER 4
LOGIC GATES
Lessons:
1. Introduction
2. Types of Logic Gates
3. Boolean Algebra
4. Standard Forms of Boolean Expression
5. NAND and NOR Implementation
LESSON 1: INTRODUCTION
The emphasis in this chapter is on the operation, application, and
troubleshooting of logic gates. The relationship of input and output waveforms of
a gate using timing diagrams is thoroughly covered.
Logic symbols used to represent the logic gates are in accordance with
ANSI/lEEE Standard 91-1984. This standard has been adopted by private
industry and the military for use in internal documentation as well as published
literature. Both programmable logic and fixed-function logic are discussed in this
chapter. Because integrated circuits (ICs) are used in all applications, the logic
function of a device is generally of greater importance to the technician or
technologist than the details of the component-level circuit operation within the IC
package.
Figure 3
Logic Gates Symbols
The Inverter
Figure 4
Inverter
The AND gate is one of the basic gates that can be combined to form any
logic function. An AND gate can have two or more inputs and performs what is
known as logical multiplication. This operation is represented by a dot or by the
absence of an operator. For example, x.y=z or xy=z is read “x AND y is equal to
z.” the logical operation AND is interpreted to mean that z=1 if and only if x=1
and y=1; otherwise z=0.
Figure 5
AND Gate
THE OR GATE
The OR gate is another of the basic gates from which all logic functions
are constructed. An OR gate can have two or more inputs and performs what is
known as logical addition. This operation is represented by a plus sign. For
example, x + y=z is read “x OR y is equal to z,” meaning that z=1 if x=1 or if y=1
or both x=1 and y=1. If both x = 0 and y = 0, then z = 0.
Figure 6
OR Gate
Figure 7
NAND Gate
The NOR gate, like the NAND gate, is a useful logic element because it
can also be used as a universal gate; that is, NOR gates can be used in
combination to perform the AND, OR, and inverter operations.
Figure 8
NOR Gate
Figure 9
XOR Gate
Figure 10
XNOR Gate
Boolean Function
It is an expression formed with binary variables, the two binary operates
OR & AND and a unary operators NOT, parenthesis & equal sign. A Boolean
function consists of an algebraic expression formed with binary variables, the
constants 0 and 1, the logic operation symbols, parenthesis, and an equal sign.
For example,
F(X,Y,Z) = X + Y’ Z or F = X + Y’ Z
where X, Y and Z are Boolean variables. A literal is the appearance of a variable
or its complement in a Boolean expression
A Boolean function can be represented with a truth table and a logic circuit
diagram composed of logic gates. The operator precedence for evaluating
Boolean expressions are as follows:
1. parentheses
2. NOT
3. AND
4. OR
In other words, the expression inside the parentheses must be evaluated
before all other operations. The next operation that holds precedence is the
complement, then follows the AND, and finally OR.
Duality Principle
It states that every algebraic expression deducible from the postulates of
Boolean Algebra remains valid if the operators and identity elements are
interchanged.
Table 5
Boolean Algebra
Boolean Boolean
Postulate/Theorem
Addition Multiplication
Postulate 2 x+ 0 = x x.1 = x
Postulate 3, Commutative x+y=y+x xy = yx
Postulate 4, Distributive x(y +z) = xy + xz x + yz = (x + y)(x + z)
Postulate 5 x + x’ = 1 x.x’ = 0
Theorem 1, Idempotency x+x=x x.x = x
Theorem 2, Boundedness x+1=1 x.0 = 0
Theorem 3, Involution (x’)’ = x (x’)’ = x
x + (y + z) =
Theorem 4, Associative x(yz) = (xy)z
(x + y) + z
Theorem 5, De Morgan (x + y)’ =x’y’ (xy)’ = x’ + y’
Theorem 6, Absorption x + xy= x x(x + y) = x
Examples:
1. F = AB + A(B + C) + B(B + C)
ANS:
5. F = x’y’ + xy + x’y
ANS:
6. F = (x + y)(x + y’)
ANS:
8. F = x’ + xy +xz’ + xy’z’
ANS:
9. F = (X + Y) + (X + Y)Z
ANS:
13. F = B + AB’C’D
ANS:
14. F = Y’(X + Y + Z)
ANS:
EXERCISE 5
BOOLEAN ALGEBRA
I. Prove the identity of each of the following Boolean equations using algebraic
manipulation
1. X’Y’ + X’Y + XY = X’ + Y
2. A’B + B’C’ + AB + B’C = 1
3. Y + X’Z + XY’ = X + Y + Z
4. X’Y’ + Y’Z + XZ + XY + YZ’ = X’Y’ + XZ + YZ’
II. Reduce the following Boolean expressions to the indicated number of literals
1. F = X’Y’ + XYZ + X’Y TO THREE LITERALS
ANS: _______________________________________
Examples:
Convert each of the following Boolean expressions to SOP form:
(a) F = AB + B(CD + EF)
(b) F = (A + B)(B + C + D)
(c) F = ((A + B)’ + C)’
So far, you have seen SOP expressions in which some of the product
terms do not contain all of the variables in the domain of the expression. For
example, the expression A’BC’ + AB’D + A’BC’D has a domain made up of the
variables A, B, C. and D. However, notice that the complete set of variables in
the domain is not represented in the first two terms of the expression; that is, D
or D’ is missing from the first term and C or C’ is missing from the second term.
A standard SOP expression is one in which all the variables in the domain
appear in each product term in the expression. For example, AB’CD + A’B’CD’ +
ABC’D’ is a standard SOP expression.
Examples:
Convert the following Boolean expression into standard SOP form:
1. F = AB’C + A’B’ + ABC’D
2. F = WX’Y + X’YZ’ + WXY’
made up of the variables A. B. C, and D. Notice that the complete set of variables
in the domain is not represented in the first two terms of the expression; that is, D
or D’ is missing from the first term and C or C’ is missing from the second term.
A standard POS expression is one in which all the variables in the domain
appear in each sum term in the expression. For example,
(A’ + B’ + C’ + D’)(A + B’ + C + D)(A + B + C’ + D)
is a standard POS expression. Any nonstandard pas expression (referred to
simply as POS) can be converted to the standard form using Boolean algebra.
Examples:
Convert the following Boolean expression into standard POS form:
1. F = (A + B’ + C)(B’ + C + D’)(A + B ‘+ C’ + D)
2. F = (A + B’)(B + C)
Example:
Convert the following SOP expression to an equivalent POS expression:
A’B’C’ + A’BC’ + A’BC + ABC + ABC
Figure 11
NAND Gate Representations
Step 1. We first draw the logic diagram using basic gates. (It is assumed that
both normal and complemented forms are available i.e., no need of
inverter).
Step 2 and 3
Step 4. From the above figures obtained from step 2 and 3, it is very clear that
only two inputs D’ and E are emerging in the original forms at the output. Rest
i.e., A, B’, C and F are emerging as the complement of their original form. So we
need an inverter after inputs A, B’, C and F or alternatively we can complement
these variables Now because both the symbols AND-invert and invert-OR
represent a NAND gate, thus it can be converted into one symbol diagram shown
below. The two symbols were taken just for simplicity of implementation.
Figure 12
NOR Gate Representations
Step 2 and 3. Here we have to convert all OR gates to NOR using OR-invert and
all AND gates to NOR using invert AND symbol.
Step 4. From figure above it is clear that all the input variables are emerging in
the same form at the output Y as they were at input. Therefore there is no need
of inverter at inputs or complementing the input variables. Here again, both
symbols OR-invert and invent-AND represent a NOR gate.
EXERCISE 6
STANDARD FORMS OF BOOLEAN EXPRESSIONS
1. For the Boolean functions E and F, as given in the following truth table:
x y z E F
0 0 0 1 0
0 0 1 0 0
0 1 0 1 1
0 1 1 0 0
1 0 0 0 1
1 0 1 1 0
1 1 0 1 1
1 1 1 0 1
b. AND d. XOR
b. AND c. OR