CE212 Chapter2
CE212 Chapter2
CE 212 Chapter 2
Salah Safi
Winter 2024-2025
German Jordanian University
Chapter 2: Boolean
Algebra and Logic
Gates
2.1 INTRODUCTION
● Because binary logic is used in all of today’s digital computers and devices, the cost of the
circuits that implement it is an important factor addressed by designers.
■ Every algebraic expression deducible from the postulates of Boolean algebra remains
valid if the operators and identity elements are interchanged.
■ We simply interchange OR and AND operators and replace 1’s by 0’s and 0’s by 1’s.
2.4 BASIC THEOREMS AND PROPERTIES OF BOOLEAN ALGEBRA
● Operator Precedence:
● The operator precedence for evaluating Boolean expressions is
■ (1) parentheses,
■ (2) NOT,
■ (3) AND,
■ (4) OR.
● In other words, expressions inside parentheses must be evaluated before all other operations.
The next operation that holds precedence is the complement, and then follows the AND and,
finally, the OR.
2.5 BOOLEAN FUNCTIONS
● Boolean function described by an algebraic expression consists of binary variables, the
constants 0 and 1, and the logic operation symbols.
● For a given value of the binary variables, the function can be equal to either 1 or 0.
■ example:
● A Boolean function can be represented in a truth table. The number of rows in the truth table is
2n, where n is the number of variables in the function.
BOOLEAN FUNCTIONS
● A Boolean function can be transformed from an algebraic expression into a circuit diagram
composed of logic gates connected in a particular structure. The logic‐circuit diagram (also
called a schematic) for F1
BOOLEAN FUNCTIONS
● The function of Fig. 2.2(a) has three terms and eight literals, and the one in Fig. 2.2(b) has two
terms and four literals.
● By reducing the number of terms, the number of literals, or both in a Boolean expression, it is
often possible to obtain a simpler circuit.
● The manipulation of Boolean algebra consists mostly of reducing an expression for the purpose
of obtaining a simpler circuit.
Algebraic Manipulation
Complement of a Function
● The complement of a function F is F’ and is obtained from an interchange of 0’s for 1’s and 1’s for
0’s in the value of F.
● The complement of a function may be derived algebraically
● The generalized form of DeMorgan’s theorems states that the complement of a function is
obtained by interchanging AND and OR operators and complementing each literal.
Complement of a Function
Complement of a Function
2.6 CANONICAL AND STANDARD FORMS
Minterms and Maxterms
Sum of products (minterms)
A Boolean function can be expressed algebraically from a given truth table by forming a minterm
for each combination of the variables that produces a 1 in the function and then taking the OR of
all those terms.
Sum of products (minterms)
Sum of products (minterms)
● An alternative procedure for deriving the minterms of a Boolean function is to obtain the truth
table of the function directly from the algebraic expression and then read the minterms from
the truth table.
Product of sums (maxterms)
A Boolean function can be expressed algebraically from a given truth table by forming a maxterm
for each combination of the variables that produces a 0 in the function and then taking the AND of
all those terms.
2.7 OTHER LOGIC OPERATIONS
2.8 DIGITAL LOGIC GATES
● Since Boolean functions are expressed in terms of AND,
OR, and NOT operations, it is easier to implement a
Boolean function with these type of gates.
● Digital ICs are often categorized according to the complexity of their circuits, as measured by
the number of logic gates in a single package:
■ Small‐scale integration (SSI): The number of gates is usually fewer than 10.
■ Medium‐scale integration (MSI) devices have a complexity of approximately 10 to 1,000
They usually perform specific elementary digital operations. Examples: decoders,
adders, and multiplexers registers and counters.
■ Large‐scale integration (LSI) devices contain thousands of gates in a single package.
examples: processors, memory chips, and programmable logic devices.
■ Very large‐scale integration (VLSI) devices now contain millions of gates within a single
package. Examples are large memory arrays and complex microcomputer chips.