BIT DL 3
BIT DL 3
Unit-3
Simplification of Boolean Functions
Unit-3
Simplification of Boolean Functions
b) Expanded SOP
An expression in which each product term consist of maximum numbers of variables.
E.g. XYZ+X’YZ+WXYZ
b) Expanded POS
In this an expression in which there are maximum number of variables.
E.g. (X+Y+Z)٠(X’+Y’+Z’)٠(W+X+Y+Z)
Note: Each maxterm is the complement of its corresponding minterm and vice versa.
The complement of a Boolean function can be obtained from the truth table by forming a
minterm of each combination that produces a 0 in the function and then ORing those terms.
- Another way to express Boolean functions is in standard form. In this configuration, the
terms that form the function may contain one, two or any number of literal.
- There are two types of standard forms: the sum of products and product of sums.
Sum of products: 𝐹1 = 𝑦 ′ + 𝑥𝑦 + 𝑥′𝑦𝑧′
Product of sums: 𝐹2 = 𝑥(𝑦 ′ + 𝑧)(𝑥 ′ + 𝑦 + 𝑧 ′ + 𝑤)
- To express the Boolean function as a product of maxterms , expand the Boolean function
into a product of sums. This may be done by using the distributive law, x + yz = (x + y)(x
+ z). Then any missing variable x in each OR term is ORed with xx'.
Consider a function
𝐹(𝐴, 𝐵, 𝐶 ) = ∑(1, 4, 5, 6,7)
Taking the complement of 𝐹
𝐹 ′ (𝐴, 𝐵, 𝐶 ) = ∑(0, 2, 3) = 𝑚0 + 𝑚2 + 𝑚3
Taking the complement of 𝐹 ′
𝐹 = (𝑚0 + 𝑚2 + 𝑚3 )′ = 𝑚0′ ∙ 𝑚2′ ∙ 𝑚3′ = 𝑀0 𝑀2 𝑀3 = ∏(0, 2, 3)
Similarly,
𝐹(𝑥, 𝑦, 𝑧) = ∑(1, 3, 6,7) ⟷ 𝐹 (𝑥, 𝑦, 𝑧) = ∏(0, 2, 4,5)
Groups may wrap around the table. The leftmost cell in a row may be grouped with the
rightmost cell and the top cell in a column may be grouped with the bottom cell.
There should be as few groups as possible, as long as this does not contradict any of the
previous rules.
Q. Simplify the Boolean function: 𝑭(𝑿, 𝒀, 𝒁) = ∑(𝟎, 𝟐, 𝟒, 𝟓, 𝟔) using three variable K-map.
Soln:
K-map for given function:
Q. Simplify the Boolean function: 𝑭 = ∑(𝟎, 𝟏, 𝟐, 𝟓, 𝟖, 𝟗, 𝟏𝟎) in (a) sum of product (SOP)
and (b) product of sum (POS).
Soln:
(a) Sum of products simplification (b) Product of sums simplification
𝐹 = 𝐵′ 𝐷′ + 𝐵′ 𝐶 ′ + 𝐴′𝐶′𝐷 𝐹 ′ = 𝐴𝐵 + 𝐶𝐷 + 𝐵𝐷′
So, 𝐹 = (𝐴′ + 𝐵′ )(𝐶 ′ + 𝐷′ )(𝐵′ + 𝐷)
From Map,
𝐹′ = 𝐴′ 𝐵′ + 𝐵′ 𝐶 + 𝐴′𝐶′𝐷′
Q. Simplify 𝑭(𝒘, 𝒙, 𝒚, 𝒛) = ∑(𝟏, 𝟑, 𝟕, 𝟏𝟏, 𝟏𝟓) which has the don’t care conditions
𝒅(𝒘, 𝒙, 𝒚, 𝒛) = ∑(𝟎, 𝟐, 𝟓).
Soln:
Q. 𝑭(𝑨, 𝑩, 𝑪, 𝑫) = ∏(𝟎, 𝟏, 𝟑, 𝟕, 𝟖, 𝟏𝟐) and ∏ 𝒅(𝟓, 𝟏𝟎, 𝟏𝟑, 𝟏𝟒). Obtain SOP and POS.
Soln:
𝐴′𝐵′ 0 0 0 𝐴′𝐵′ 1
𝐴′𝐵 X 0 𝐴′𝐵 1 X 1
𝐴𝐵 0 X X 𝐴𝐵 X 1 X
𝐴𝐵′ 0 X 𝐴𝐵′ 1 1 X
NAND Implementation
The implementation of a Boolean function with NAND gates requires that the function be
simplified in the sum of products form.
E.g. Implementation of 𝐹 = 𝐴𝐵 + 𝐶𝐷 + 𝐸 by NAND gate only.
Rules for obtaining the NAND logic diagram from a Boolean function:
1) Simplify the function and express it in sum of products.
2) Draw a NAND gate for each product term of the function that has at least two literals.
The inputs to each NAND gate are the literals of the term. This constitutes a group of
first-level gates.
3) Draw a single NAND gate (using the AND-invert or invert-OR graphic symbol) in the
second level, with inputs coming from outputs of the 1st level.
4) A term with a single literal requires an inverter in the first level or may be
complemented and applied as an input to the second-level NAND gate.
Note: If we simplify the function combining 0’s in a map, we obtain the simplified
expression of the complement of the function in sum of product. The complement of the
function can then be implemented with two levels of NAND gates using the rules stated
above. If the normal output is desired, it would be necessary to insert a one-input NAND
gate.
In Fig(c): If output F is required, it is necessary to add a one input NAND gate to invert the
function. This gives a three-level implementation.
NOR Implementation
The implementation of a Boolean function with NOR gates requires that the function be
simplified in product of sums form.
E.g. Implementation of the function 𝐹 = (𝐴 + 𝐵)(𝐶 + 𝐷)𝐸
Rules for obtaining the NAND logic diagram from a Boolean function:
1) Simplify the function and express it in POS.
2) Draw a NOR gate for each sum term of the function that has at least two literals.
3) Draw a single NOR gate (using the OR-invert or invert-AND) in the second level, with
inputs coming from outputs of the 1st level.
4) A term with a single literal requires a one input NOR or inverter gate in the first level
or may be complemented and applied as an input to the second-level NOR gate.
A second way to implement a function with NOR gates would be to use the expression for
the complement of the function of the function in product of sums. This will give a two-level
implementation for 𝐹′ and a three-level implementation if the normal output 𝐹 is required.
To obtain the simplified product of sums from a map, it is necessary to combine the 0’s in the
map and then complement the function. To obtain the simplified product of sums expression
for the complement of the function, it is necessary to combine the 1’s in the map and then
complement the function.
Q. Implement the following function with NAND and NOR gates. Use only four gates.
𝑭 = 𝒘′ 𝒙𝒛 + 𝒘′ 𝒚𝒛 + 𝒙′ 𝒚𝒛′ + 𝒘𝒙𝒚′ 𝒛 and 𝒅 = 𝒘𝒚𝒛
Soln:
NAND implementation
NOR implementation
References: