Boolean Algebra and Logic Gates: Basic Theorems
Boolean Algebra and Logic Gates: Basic Theorems
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—be they computer
engineers, electrical engineers, or computer scientists. Finding simpler and cheaper, but
equivalent, realizations of a circuit can reap huge payoffs in reducing the overall cost of the
design. Mathematical methods that simplify circuits rely primarily on Boolean algebra.
Duality:
states that every algebraic expression deducible from the postulates of Boolean algebra
remains valid if the operators and identity elements are interchanged.
Basic Theorems:
Statement:
Associative law of addition states that OR ing more than two variables i.e. mathematical
addition operation performed on variables will return the same value irrespective of the
grouping of variables in an equation.
It involves in swapping of variables in groups.
A+(B+C) = (A+B)+C
Example
(0 + 1) + 0 = 0 + (1 + 0)
1+0=0+1
1=1
Statement:
Associative law of multiplication states that ANDing more than two variables i.e.
mathematical multiplication operation performed on variables will return the same value
irrespective of the grouping of variables in an equation.
A * (B * C) = (A * B) * C
Distributive law
This is the most used and most important law in Boolean algebra, which involves in 2 operators:
AND, OR.
Statement1:
The multiplication of two variables and adding the result with a variable will result in
same value as multiplication of addition of the variable with individual variables.
In other words, ANDing two variables and ORing the result with another variable is
equal to AND of ORing of the variable with the two individual variables.
Distributive law can be written as
A + BC = (A + B)(A + C)
Statement 2:
The addition of two variables and multiplying the result with a variable will result in
same value as addition of multiplication of the variable with individual variables.
In other words, ORing two variables and ANDing the result with another variable is
equal to OR of ANDing of the variable with the two individual variables.
A (B+C) = (A B) + (A C)
Example:
0 (1 + 0) = (0*1) + (0*0)
0=0
Commutative law
Statement:
Commutative law states that the inter-changing of the order of operands in a Boolean
equation does not change its result.
Using OR operator → A + B = B + A
Using AND operator → A * B = B * A
Example:
1+0=0+1
1=1
Similarly,
1*0=0*1
0=0
Absorption Law
i. A+AB = A
ii. A(A+B) = A
iv. A.(Ā+B) = AB
Statement 1: A + AB = A
Proof:
=A(1+B) → since 1 + B = 1
= A.1
=A
Statement 2:A (A + B) = A
Proof:
A (A + B) = A.A + A.B
= A+AB → since A . A = A
= A (1 + B)
= A.1
=A
Statement 3:A + ĀB = A + B
Proof:
= 1 * (A + B) → since A + Ā = 1
=A + B
Statement 4: A * (Ā+B) = AB
Proof: A * (Ā + B) = A. Ā + AB
= AB → since A Ā = 0
Statement:
Duality principle states that “The Dual of the expression can be achieved by replacing
the AND operator with OR operator, along with replacing the binary variables, such as replacing
1 with 0 and replacing 0 with 1”.
This law explains that, replacing the variables doesn’t change the value of the Boolean function.
But while interchanging the names of the variables, we must change the binary
operators also. “If the operators and variables of an equation or function that produce no
change in the output of the equation, though they are interchanged is called “Duals”.
The Duality principle is also known as “De Morgan Duality”, which states that
‘Interchanging of Duals pairs in Boolean algebra will result in same output of the equation’.
There is one special type of operation in duality that is ‘Self-dual’.A self-dual operation
processes the input to the output, without making any changes to it. So this is also called “Do
nothing operation”.
Example:
If we have the Boolean equation like A + B = 0, then the equation formed by replacing
the variable 0 with 1 and replacing the OR operator with AND operator is A * B = 1. This means
both the Boolean functions are represents the operation of logic circuit.
As per Duality principle, if A, B are two variables then both the equations A + B = 0 and A
* B = 1 are true in case of same logic circuit.
De Morgan’s Theorem
Boolean algebra involves in binary addition, binary subtraction, binary division and
binary multiplication of binary numbers. Similar to these basic laws, there is another important
theorem in which the Boolean algebraic system mostly depends on. That is De Morgan’s law.
This can be also known as De Morgan’s theorem. This law works depending of the
concept of Duality. Duality means interchanging the operators and variables in a function, such
as replacing 0 with 1 and 1 with 0,AND operator with OR operator and OR operator with AND
operator.
Statement 1:
“The negation of conjunction is the disjunction of the negations”. Or we can define that
as “The compliment of the product of 2 variables is equal to the sum of the compliments of
individual variables”.
(A.B)’ = A’ + B’
Statement 2:
“The negation of disjunction is the conjunction of the negations”. Or we can define that
as “The compliment of the sum of two variables is equal to the product of the compliment of
each variable”.
(A + B)’ = A’.B’
Consensus Theorem
Statement
The consensus theorem states that the consensus term of a disjunction is defined when
the terms in function are reciprocals to each other (such as A and A ̅). Consensus theorem is
defined in two statements (normal form and its dual). They are
AB + ĀC+BC = AB+ĀC
AB+ĀC+BC = AB + ĀC + BC.1
= AB + ĀC + BC (A + Ā) → since A + Ā = 1
= AB + ĀC + ABC + ĀBC
= AB (1 + C) + ĀC (1 + B)
= AB + ĀC → since 1 + B = 1 + C = 1
Example
By using consensus theorem, prove that A’BD’ + BCD + ABC’ + AB’D = BC’D’ + AD + A’BC
So:
A’BD’ + BCD + ABC’ + AB’D = A’BD’ + BCD + ABC’ + AB’D + A’BC + BC’D’ + ABD
= AD + A’BC + BC’D’
BOOLEAN FUNCTIONS
Boolean algebra deals with binary variables and logic operation. A Boolean Function is
described by an algebraic expression called Boolean expression which consists of binary
variables, the constants 0 and 1, and the logic operation symbols. Consider the following
example.
Here the left side of the equation represents the output Y. So we can state equation no. 1
The output will be high (1) if A = 1 or BC = 1 or both are 1. The truth table for this
equation is shown by Table (a). The number of rows in the truth table is 2 n where n is the
number of input variables (n=3 for the given equation). Hence there are 2 3 = 8 possible input
combination of inputs.
CANONICAL AND STANDARD FORMS
Canonical SoP and PoS forms
A truth table consists of a set of inputs and outputss. If there are ‘n’ input variables,
then there will be 2n possible combinations with zeros and ones. So the value of each output
variable depends on the combination of input variables. So, each output variable will have ‘1’
for some combination of input variables and ‘0’ for some other combination of input variables.
Therefore, we can express each output variable in following two ways.
Canonical SoP form means Canonical Sum of Products form. In this form, each product
term contains all literals. So, these product terms are nothing but the min terms. Hence,
canonical SoP form is also called as sum of min terms form.
First, identify the min terms for which, the output variable is one and then do the
logical OR of those min terms in order to get the Boolean expression function corresponding to
that output variable. This Boolean function will be in the form of sum of min terms.
Follow the same procedure for other output variables also, if there is more than one
output variable.
Example
Inputs Output
p q r f
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1
Here, the output f is ‘1’ for four combinations of inputs. The corresponding min terms
are p’qr, pq’r, pqr’, pqr. By doing logical OR of these four min terms, we will get the Boolean
function of output ff.
Therefore, the Boolean function of output is, f = p’qr + pq’r + pqr’ + pqr. This is
the canonical SoP form of output, f. We can also represent this function in following two
notations.
f=m3+m5+m6+m7f=m3+m5+m6+m7
f=∑m(3,5,6,7)f=∑m(3,5,6,7)
In one equation, we represented the function as sum of respective min terms. In other
equation, we used the symbol for summation of those min terms.
Canonical PoS form means Canonical Product of Sums form. In this form, each sum term
contains all literals. So, these sum terms are nothing but the Max terms. Hence, canonical PoS
form is also called as product of Max terms form.
First, identify the Max terms for which, the output variable is zero and then do the
logical AND of those Max terms in order to get the Boolean expression function corresponding
to that output variable. This Boolean function will be in the form of product of Max terms.
Follow the same procedure for other output variables also, if there is more than one
output variable.
Example
Consider the same truth table of previous example. Here, the output f is ‘0’ for four
combinations of inputs. The corresponding Max terms are p + q + r, p + q + r’, p + q’ + r, p’ + q +
r. By doing logical AND of these four Max terms, we will get the Boolean function of output f.
Therefore, the Boolean function of output is, f = p+q+rp+q+r.p+q+r′p+q+r′.p+q′+rp+q′+r.p′
+q+rp′+q+r. This is the canonical PoS form of output, f. We can also represent this function in
following two notations.
f=M0.M1.M2.M4f=M0.M1.M2.M4
f=∏M(0,1,2,4)f=∏M(0,1,2,4)
Standard SoP form means Standard Sum of Products form. In this form, each product
term need not contain all literals. So, the product terms may or may not be the min terms.
Therefore, the Standard SoP form is the simplified form of canonical SoP form.
We will get Standard SoP form of output variable in two steps.
Standard PoS form means Standard Product of Sums form. In this form, each sum term
need not contain all literals. So, the sum terms may or may not be the Max terms. Therefore,
the Standard PoS form is the simplified form of canonical PoS form.
We will get Standard PoS form of output variable in two steps.
Logic gates are the basic building blocks of any digital system. It is an electronic circuit
having one or more than one input and only one output. The relationship between the input
and the output is based on a certain logic. Based on this, logic gates are named as AND gate, OR
gate, NOT gate etc.
INTEGRATED CIRCUITS
Levels of Integration
Digital ICs are often categorized according to the complexity of their circuits, as
measured by the number of logic gates in a single package. The differentiation between
those chips which have a few internal gates and those having hundreds of thousands of
gates is made by customary reference to a package as being either a small‐, medium‐,
large‐, or very large‐scale integration device.
Very large‐scale integration (VLSI) devices now contain millions of gates within a
single package. Examples are large memory arrays and complex microcomputer
chips. Because of their small size and low cost, VLSI devices have revolutionized the
computer system design technology, giving the designer the capability to create
structures that were previously uneconomical to build.
Digital Logic Families
Digital integrated circuits are classified not only by their complexity or logical operation,
but also by the specific circuit technology to which they belong. The circuit technology is
referred to as a digital logic family. Each logic family has its own basic electronic circuit upon
which more complex digital circuits and components are developed. The basic circuit in
each technology is a NAND, NOR, or inverter gate. Many different logic families of digital
integrated circuits have been introduced commercially. The following are the most popular:
CMOS - is preferable in systems requiring low power consumption, such as digital cameras,
personal media players, and other handheld portable devices
Low power consumption is essential for VLSI design; therefore, CMOS has become the
dominant logic family, while TTL and ECL continue to decline in use.
Fan‐out specifies the number of standard loads that the output of a typical gate can
drive without impairing its normal operation. A standard load is usually defined as the
amount of current needed by an input of another similar gate in the same family.
Fan‐in is the number of inputs available in a gate.
Power dissipation is the power consumed by the gate that must be available from the
power supply.
Propagation delay is the average transition delay time for a signal to propagate from
input to output. For example, if the input of an inverter switches from 0 to 1, the output
will switch from 1 to 0, but after a time determined by the propagation delay of the
device. The operating speed is inversely proportional to the propagation delay.
Noise margin is the maximum external noise voltage added to an input signal that does
not cause an undesirable change in the circuit output.