Professional Documents
Culture Documents
DLD Lab 4 Fall 2016-1 PDF
DLD Lab 4 Fall 2016-1 PDF
(EL-227)
LABORATORY MANUAL
FALL 2016
(LAB # 4)
Boolean Function Simplification using K-map
Engr. Jawad-ul Haq
Engr. Maria Nasir
Student Name: ___________________________
___________________________
Lab #
Design
(EL-227)
of Computer and Emerging Sciences
Islamabad Fall 2016
04
_________________________________________________________________________________
Introduction:
When a Boolean expression is implemented with logic gates, each term requires a gate,
and each variable within the term designates an input to the gate. We define a literal as a single
variable within the term that may or may not be complemented. By reducing the number of
terms, the number of literals, or both in a Boolean expression, it is often possible to obtain a
simpler circuit. Boolean algebra or K-map is applied to reduce an expression for the purpose
of obtaining a simpler circuit.
A Boolean function can be written in a variety of ways when expressed algebraically.
There are, however, a few ways of writing algebraic expressions that are considered to be
standard forms. The standard forms facilitate the simplification procedures for Boolean
expressions and frequently result in more desirable logic circuits.
The standard forms contain product terms and sum terms. An example of a product
term is XYZ. This is a logical product consisting of an AND operation among three literals.
An example of a sum term is X+Y+Z. This is a logical sum consisting of OR operation among
the literals.
In the sum of minterms canonical form, ‘Sum Of Products (SOP)’, every product term
includes a literal of every variable of the function. Product terms of the SOP form which do
not include a literal of a variable, say variable B, should be augmented by,
AND-ing the product term which misses a literal of B with (𝐁 + 𝐁 ′ ),
Subsequently applying the distributive property to eliminate the parenthesis.
In the product of maxterms canonical form, ‘Product Of Sums (POS)’, every sum term
includes a literal of every variable of the function. Sum terms of the POS form which do not
include a literal of a variable, say variable B, ought to be augmented by,
OR-ing the sum term with (𝐁. 𝐁 ′ ),
Subsequently applying postulate 𝑎 + 𝑏. 𝑐 = (𝑎 + 𝑏). (𝑎 + 𝑐) to distribute the
product (𝐁. 𝐁 ′ ).
Lab #
Design
(EL-227)
of Computer and Emerging Sciences
Islamabad Fall 2016
04
_________________________________________________________________________________
Lab Tasks:
Task 1: For the following given Boolean expressions:
𝑭𝟏 = 𝑨′ 𝑩′ + 𝑨′ 𝑩 + 𝑨𝑩
i. Complete the truth table for fuction F1:
Output
Inputs Intermediate terms
Calculated Observed
A B 𝑨′𝑩′ 𝑨′𝑩 𝑨𝑩 𝑭𝟏
′ ′ ′
Table 2.2: Truth table for 𝑭𝟏 = 𝑨 𝑩 + 𝑨 𝑩 + 𝑨𝑩
iii. Implement the logic circuit of F1 on bread board and verify and note the
ouput in the ‘Observed’ column of the truth table.
Lab #
Design
(EL-227)
of Computer and Emerging Sciences
Islamabad Fall 2016
04
_________________________________________________________________________________
Task 2:
A function F2 is defined by
𝑭𝟐 (𝑨, 𝑩) = ∑(𝟎, 𝟏, 𝟑)
Steps to Implement the Function:
i. Write the truth table for the function given above.
ii. Fill the k-map cells from the truth table
iii. Simplify and minimize the function with k-map.
iv. Write the simplified function from k-map.
v. Draw the circuit diagram and construct the circuit on the Trainer Board.
i. Truth Table:
Inputs Output
A B F2
ii. K-Map:
Lab #
Design
(EL-227)
of Computer and Emerging Sciences
Islamabad Fall 2016
04
_________________________________________________________________________________
Task 3:
A function F3 is defined by
𝑭𝟑 (𝑨, 𝑩, 𝑪) = ∑(𝟐, 𝟑, 𝟒, 𝟔, 𝟕)
i. Truth Table:
Lab #
Design
(EL-227)
of Computer and Emerging Sciences
Islamabad Fall 2016
04
_________________________________________________________________________________
ii. K-Map:
Lab #
Design
(EL-227)
of Computer and Emerging Sciences
Islamabad Fall 2016
04
_________________________________________________________________________________
Task 4:
A function F4 is defined by
𝑭𝟒 (𝑨, 𝑩, 𝑪, 𝑫) = ∑(𝟎, 𝟐, 𝟓, 𝟖, 𝟏𝟎, 𝟏𝟒, 𝟏𝟓)
i. Truth Table:
ii. K-Map:
Lab #
Design
(EL-227)
of Computer and Emerging Sciences
Islamabad Fall 2016
04
_________________________________________________________________________________
Lab #
Design
(EL-227)
of Computer and Emerging Sciences
Islamabad Fall 2016
04
_________________________________________________________________________________
Student's feedback: Purpose of feedback is to know the strengths and weaknesses of the
system for future improvements. This feedback is for the 'current lab session'. Circle your
choice:
[-3 = Extremely Poor, -2 = Very Poor, -1 = Poor, 0 = Average, 1 = Good, 2 = Very Good, 3 =
Excellent]:
The following table should describe your experience with:
S# Field Rating Describe your experience in words
1 Overall Session -3 -2 -1 0 1 2 3
2 Lab Instructor -3 -2 -1 0 1 2 3
3 Lab Staff -3 -2 -1 0 1 2 3
4 Equipment -3 -2 -1 0 1 2 3
5 Atmosphere -3 -2 -1 0 1 2 3
Correctness
Conclusion
Originality
of results
Initiative
Neatness
MARKS
Attitude
TOTAL
TOTAL 10 10 10 20 20 30 100
EARNED
Lab Instructor's
Comments:_________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________