Week 3 - Module 3 Boolean Algebra
Week 3 - Module 3 Boolean Algebra
1
Boolean Algebra
Boolean Algebra
Boolean algebra is part of mathematics that deals with operations involving logical
elements, variables and operators, as well as axioms and postulates. It is named after
George Boole, an English mathematician, logician, and philosopher.
In digital design, it forms part of the core concepts for simplifying logic circuits. Below are
the basic theorems and properties of Boolean algebra.
Table 1. Summary of Postulates and Theorems
Postulate 1, Closure
a. The structure is closed with respect to the operator, +¿ .
b. The structure is closed with respect to the operator, ⋅
Theorem 1 Theorem 2
a. x + x=x a. x +1=1
b. x ⋅ x= x b. x ⋅ 0=0
Course Module
Table 2. Proving the Theorems
Theorem 1(a): x + x=x
Statement Justification
x+x ¿ ( x + x ) ⋅1 Postulate 2(b)
¿ ( x + x ) ( x + x') Postulate 5(a)
Postulate 4(b)
¿ x + xx '
Postulate 5(b)
¿ x +0
Postulate 2(a)
¿x
Theorem 1(b): x ⋅ x= x
Statement Justification
x⋅ x ¿ xx +0 Postulate 2(a)
¿ xx + xx ' Postulate 5(b)
¿ x ( x + x' ) Postulate 4(a)
¿ x ⋅1 Postulate 5(a)
Postulate 2(b)
¿x
The postulates need no proof and are accepted as is; the theorems, however, do need to be
proven. Table 2 illustrates how the given theorems can be proven using the postulates.
Operator Precedence
In evaluating Boolean expressions, we take note of the following operator precedence:
1. Parenthesis
2. NOT
3. AND
4. OR
Example 1:
( x + y )' =x ' y ' For the right-hand expression, the variables are complemented first, then
ANDed. In the left-hand side, the variables, which are inside the parentheses, are ORed first,
then complemented.
Boolean Functions
They are described by an algebraic expression consisting of binary variables, logic
operations, and the constants 0 and 1 [ CITATION Man18 \l 13321 ].
Given binary variables, each with a specific value, the output of the function is either 1
or 0.
CPE 6204 – Logic Circuits and Switching Theory
3
Boolean Algebra
Boolean functions can be represented in three ways: (1) using a truth table, (2)
described by an algebraic expression, (3) illustrated as a logic circuit diagram
In the previous module, we have seen an example of a combinational circuit. It is composed
of interconnected logic gates whose truth table we have also completed. We were also able
to come up with its corresponding Boolean expression.
At this point, it is good to note that there is only one way to represent a Boolean function in
a truth table but may have more than one equivalent algebraic expression and circuit
diagram.
Example 2:
The function f =x ' y ' z + x ' yz+ xy ' has 3 terms and 8 literals, which may be represented by
the following logic circuit diagram:
Course Module
using the truth table. The next page shows the truth tables for f and f 1, as well as the
corresponding circuit diagram of f 1. The reduced expression gives us 2 terms and 4 literals.
Figure 2. Reduction of f
The circuit diagram now uses two 2-input AND gates, two inverters, and one 2-input OR
gate, whereas the original diagram uses two 3-input AND gates, one 2-input AND gate, two
inverters, and one 3-input OR gate. It may not seem much but if we try to implement the
circuit with integrated circuits (ICs), we will see the reduced expression will use less wires.
Complement of a Function
We say that a function is complemented if its output f =1 changes to 0, or if f =0 changes to
1. We denote the complement of f by f '. It is easily achieved by appending an inverter at
the final gate. Algebraically, we are not limited to complementing the entire expression.
Applying DeMorgan’s theorems will enable us to incorporate simplification even with
complemented functions.
Example 3: Find the complement of a) F 1=x ' y z ' + x ' y ' z and b) F 2=x ( y ' z ' + yz)
'
a) F '1 ¿( x ' y z ' + x' y ' z)' b) F 2 ' ¿ ( x ( y ' z ' + yz ) )
'
¿( x ' y z ' )' (x ' y ' z) ' ¿ x ' + ( y ' z ' + yz )
'
¿( x + y ' + z)( x + y + z ' ) ¿ x ' + ( ( y ' z ' ) ( yz )' )
CPE 6204 – Logic Circuits and Switching Theory
5
Boolean Algebra
Course Module