Boolean Function
Boolean Function
Boolean algebra is an algebra that deals with binary variables and logic operations. A Boolean
function described by an algebraic expression consists of bina ry 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.
Complement of a function:
The complement of a function F is obtained from an interchange of 0’s for 1’sand 1’s for 0’s in the value
of F.
Example:
1.
Page 01
2. Find the comple ment of the functions F1 = x’yz’ + x’y’z and F2 = x(y’z’ + yz).
By applying DeMorgan’s theorems as many times as necessary, the complements areobtained as
follows:
3. Find the comple ment of the functions F1 = x’yz’ + x’y’z and F2 = x(y’z’ + yz) by taking their
duals and comple menting each literals.
Solution:
****************************************************
Canonical and Standard forms:
Explain canonical SOP & POS form with suitable example.
Binary logic values obtained by the logical functions and logic variables are in binary form. An
arbitrary logic function can beexpressed in the following forms.
(i) Sum of the Products (SOP)
(ii) Product of the Sums (POS)
Boolean functions expressed as a sum of minterms or product of maxterms are said to be in
canonical form.
Product te rm:
The AND function is referred to as a product. The variable in a product term can appear either in
complementary or uncomplimentary form. Example: ABC’
Sum te rm:
The OR function is referred to as a Sum. The variable in a sum term can appear either in
complementary or uncomplimentary form. Example: A+B+C’
Sum of Product (SOP):
The logical sum of two or more logical product terms is called sum of product expression. It is
basically an OR operation of AND operated variables. Example: Y=AB+BC+CA
Product of Sum (POS):
The logical product of two or more logical sum terms is called product of sum expression. It is
basically an AND operation of OR operated variables. Example: Y=(A+B).(B+C).(C+A)
Page 02
Minterm:
A product term containing all the K variables of the function in either complementary or
uncomplimentary form is called Minterm or standard product.
Maxterm:
A sum term containing all the K variables of the function in either complementary or
uncomplimentary form is called Maxterm or standard sum.
Page 03
Combining all terms, we have
F = A + B’C =ABC + ABC’ + AB’C + AB’C’ + A’B’C
But AB’C appears twice, and according to theorem 1 (x + x = x), it is possible toremove one of
those occurrences. Rearranging the minterms in ascending order, wefinally obtain
F = A’B’C + AB’C’+ AB’C + ABC’ + ABC= m1 + m4 + m5 + m6 + m7
F(A, B, C) = ∑(1, 4, 5, 6, 7)
Example:Obtain the canonical sum of product form of the following function. (May 2014)
Page 04
Example:
Obtain the canonical product of the sum form of the following function.
F (A, B, C) = (A + B′) (B + C) (A + C′) (Dec 2012)
Solution:
*********************************
Using Boolean algebra to simplify Boolean expressions can be difficult. The Karnaugh map provides
a simple and straight- forward method of minimizing Boolean expressions which represent
combinational logic circuits.
A Karnaugh map is a pictorial method of grouping together expressions with common factors and
then eliminating unwanted variables.
A Karnaugh map is a two-dimensional truth-table. Note that the squares are numbered so that the
binary representations for the numbers of two adjacent squares differ in exactly one position.
If A is a variable that has value 0 in all of the squares in the grouping, then the complemented
form A is in the product term.
If A is a variable that has value 1 in all of the squares in the grouping, then the true form A is in
the product term.
Page 05
If A is a variable that has value 0 for some squares in the grouping and value 1 for others, then it
is not in the product term
K-Maps of 2 Variables:
K-Maps of 3 Variables:
Simplify the boolean function F (x, y, z) =
Page 06
K-Maps of 4 Variables:
Page 07
Note:
The Karnaugh map uses the following rules for the simplification of expressions by grouping
together adjacent cells containing ones
Page 08
Groups must contain 1, 2, 4, 8, or in general 2 n cells. That is if n = 1, a group will contain
two 1's since 21 = 2. If n = 2, a group will contain four 1's since 2 2 = 4.
Page 09
Groups may overlap.
There should be as few groups as possible, as long as this does not contradict any of the
previous rules.
Summmary:
1. No zeros allowed.
2. No diagonals.
3. Only power of 2 numbers of cells in each group.
4. Groups should be as large as possible.
5. Everyone must be in at least one group.
6. Overlapping allowed.
7. Wrap around allowed.
8. Fewest numbers of groups possible.
In certain digital systems, some input combinations never occur during the process of normal
operation because those input conditions are guaranteed never to occur. Such input combinations are
don’t care conditions.
Page 10
Completely specified functions:
If a function is completely specified, it assumes the value 1 for some input combinations and the
value 0 for others.
There are functions which assume the value 1 for some combinations and 0 for some other and
either 0 or 1 for the remaining combinations. Such a functions are called incompletely specified .
Prime Implicants:
**************************************
From the set of prime implicants, a set of essential implicants must be determined by
preparing a prime implicant chart.
The minterm which are not covered by the essential implicants are taken into
consideration and a minimum cover is obtained from the remaining prime implicants.
Step:1
Page 11
Step:2
Page 12
Step:3
Step:4
*************************************************
Logic gates
Explain about different types of logic gates. (OR) What are Universal gates? Construct any four basic
gates using only NOR gates and using only NAND gates. (May 2011)[NOV – 2019]
A logic gate is an idealized or physical device implementing a Boolean function; that is, it performs a
logical operation on one or more logical inputs, and produces a single logical output.
Page 13
Truth Table
A truth table lists all possible combinations of input binary variables and the corresponding
outputs ofa logic system.
Universal Gates
The OR, AND and NOT gates are the three basic logic gates as they together can be used to
construct the logic circuit for any given Boolean expression.
The NOR and NAND gates have the property that they individually can be used to hardware-
implement a logic circuit corresponding to any given Boolean expression.
That is, it is possible to use either only NAND gates or only NOR gates to implement any
Boolean expression. This is so because a combination of NAND gates or a combination of NOR
gates can be used to perform functions of any of the basic logic gates. It is for this reason that
NAND and NOR gates are universal gates.
Page 14
NAND gatesandNOR gatesarecalleduniversalgates or universalbuildingblocks, as any
type of gates or logic functio ns can be implemented by these gates. Figures
Symbo lshowshow variouslogic functionscan be realizedby NAND gatesandFigures
Symbo lshow therealizationofvariouslogic gatesby NOR gates.
NAND–NOR implementations:
AND gate:
Page 15
OR gate:
AND gate:
OR gate:
NAND–NOR implementations:
Digital circuits are frequently constructed with NAND o r NOR gates rather than with AND and
OR gates.
NAND and NOR gates are easier to fabricate with electronic components and are the basic gates
used in all IC digital logic families.
Because of the prominence of NAND and NOR gates in the design of digital c ircuits, rules and
procedures have been developed for the conversion from Boolean functions given in terms of
AND, OR, and NOT into equivalent NAND and NOR logic diagrams .
Page 16
NAND Imple mentation Procedure:
Draw the AOI logic of given Boolean expression.
Add bubble on input of OR gate & output of AND gate.
Add an Inverter on each line that received bubbles.
Eliminate double inversions
Replace all by NAND gates
Example:
1. Implement F = AB + CD using only NAND gate.
2. Implement the following Boolean function with NAND gates:F (x, y, z) = (1, 2, 3, 4, 5, 7) (Apr
2018)
Page 17
3. Implement the function F = (AB’ + A’B)(C + D’) using only NAND gate.
Page 18
Page 19
Page 20
NOR Imple mentation Procedure:
Page 21
Draw the AOI logic of given Boolean expression.
Add bubble on input of AND gate & output of OR gate.
Add an Inverter on each line that received bubbles.
Eliminate double inversions
Replace all by NOR gates
Example:
1. Implement F = (A + B)(C + D)E using only NOR gate. (Apr 2018)
Page 22
Page 23
Page 24
Page 25