Professional Documents
Culture Documents
Week 4 Boolean Algebra Part-A - 2021
Week 4 Boolean Algebra Part-A - 2021
1
Basic Theorems
Rusdianto Roestam
After learning this material,
2
you should be able to explain:
Understand the basic operations and laws of Boolean algebra.
Relate these operations and laws to circuits composed of AND
gates, OR gates, and INVERTERS. Also relate these operations
and laws to circuits composed of switches.
Prove any of these laws in switching algebra using a truth table.
Apply these laws to the manipulation of algebraic expressions
including:
Multiplying out an expression to obtain a sum of products
(SOP)
Factoring an expression to obtain a product of sums (POS)
Simplifying an expression by applying one of the laws
Finding the complement of an expression
3 Introduction
We will use a Boolean variable, such as X or Y,
to represent the input or output of a switching
circuit.
We will assume that each of these variables
can take on only two different values.
The symbols “0” and “1” are used to represent
these two different values.
Thus, if X is a Boolean (switching) variable,
then either X = 0 or X = 1.
4 Basic Operations
Called AND, OR, and complement (or inverse)
If contact X is open, the variable X is defined to be 0; if contact
X is closed, the variable X is defined to be 1.
The contacts in a switch can be normally open (NO) or normally
closed (NC). --- When the switch position is changed,
the NO contact closes and the NC contact opens,
so the NO and NC contacts are always in opposite states.
If X is the variable assigned to the NO contact, then the variable
assigned to the NC contact is the complement of X, denoted as
X′ , where the prime (′) denotes complementation.
5 Inverter
If X is a switching variable,
X′ = 1 if X = 0
X′ = 0 if X = 1
The electronic circuit which forms the inverse
of X is referred to as an inverter
6 AND Operation
When switch contacts A and B are connected in
series (see truth table below),
there is an open circuit between the terminals if
either A or B or both are open (0),
there is a closed circuit between the terminals
only if both A and B are closed (1).
AND operation is written algebraically as C = A
·B.
usually write AB instead of A · B.
also referred to as logical (or Boolean)
multiplication.
7 OR operation
When switches A and B are connected in
parallel,
there is a closed circuit between the terminals if
either A or B is closed (1), and there is an open circuit
between the terminals only if both A and B are open
(0).
written algebraically as C = A + B.
8 Logic gates operation
Logic gates operate so that the voltage on inputs
and outputs of a gate is either in a low voltage
range or a high voltage range, except when the
signals are changing.
Switching algebra can be applied to logic gates by
assigning 0 and 1 to the two voltage ranges.
Usually, a 0 is assigned to the low voltage range
and a 1 to the high voltage range (Logic 0= -5 V)
Fig below is Logic gates which perform the AND
and OR operations
Boolean Expressions and Truth
9
Tables
Boolean expressions are formed by application of the
basic operations to one or more variables or constants.
The simplest expressions consist of a single constant or
variable, such as 0, X, or Y′.
More complicated expressions are formed by combining
two or more other expressions using AND or OR, or by
complementing another expression.
Examples of expressions are: –> Expression (2-1), B′ is
formed first, then A.B′, and finally AB′ + C.
Circuits for Expressions (2-1) and
10
(2-2)
If A = B = C = 1 and D = E = 0, the value of
Expression (2-2) is
[ A(C + D) ] ′ + BE = [ 1(1 + 0) ] ′ + 1 · 0 = [ 1(1) ] ′
+0=0+0=0
11 Truth table
A truth table (also called a table of combinations)
specifies the values of a Boolean expression for every
possible combination of values of the variables in the
expression.
The name truth table comes from a similar table which
is used in symbolic logic to list the truth or falsity of a
statement under all possible conditions.
We can use a truth table to specify the output values
for a circuit of logic gates in terms of the values of the
input variables.
Two-Input Circuit
12
and Truth Table
Equation (2-3)
13
AB′ + C = (A + C)(B′ + C)
Two expressions are equal if they have the same value for every
possible combination of the variables.
14 Basic Theorems
Operations with 0 and 1:
X+0=X (2-4) X · 1 = X (2-4D)
X+1=1 (2-5) X · 0 = 0 (2-5D)
Idempotent laws:
X+X=X (2-6) X · X = X (2-6D)
Involution law:
(X′)′ = X (2-7)
Laws of complementarity:
X + X′ = 1 (2-8)X · X′ = 0 (2-8D)
Each of these theorems is easily proved by showing that it is valid for both of
the possible values of X. For example, to prove X + X′ = 1, we observe that if
X = 0, 0 + 0′ = 0 + 1 = 1, and if X = 1, 1 + 1′ = 1 + 0 = 1
Idempotent laws:
l Associative laws:
l
l
3. X + X = X 3D. X · X = X
l
7. (X + Y ) + Z = X + (Y + Z ) = X + Y + Z
l
7D. (XY )Z = X(YZ ) = XYZ
l
Involution law: l
Distributive laws:
8. X(Y + Z ) = XY + XZ
4. (X′)′ = X
l
l
l
8D. X + YZ = (X + Y )(X + Z )
l
Laws of complementarity: l
DeMorgan’s laws:
l
5. X + X′ = 1 5D. X · X′ = 0 l
9. (X + Y )′ = X′Y′ ----- 9D. (XY )′ = X′ + Y
′