DLC Lab 2 (Deriving Logic Equations and Truth Table From A Given Statement or Expression and Construction of Combinational Circuits)
DLC Lab 2 (Deriving Logic Equations and Truth Table From A Given Statement or Expression and Construction of Combinational Circuits)
SOLVED BY
Table of Contents:
1. Abstract 3
2. Objective 3
3. Theory 3
4. Apparatus
6. Simulation Data
7. Hardware Setup
8. Discussions
10. References
Page 2 of 13
Experiment # 2 Group # 6
Abstract:
The purpose of this experiment is to derive logic equation and truth table from a given equation or
expression and implement the derivation by constructing combinational circuits with the help of
IC and observe whether the output verifies the truth table of the given logic statement or not.
Objective:
• To build logic circuits generated from a given statement on a breadboard using gate ICs
and see if the output validates the truth table of the provided logic statement.
• To perform relevant theoretical work by deriving the logic circuit and truth table from the
given logic equation/statement, as well as being acquainted with Boolean algebra and De
Morgan's law.
• To utilize K-Map to simplify the logic statements, then use a breadboard implementation
to confirm accuracy.
Theory:
Logic gates and other components are used to create combinatorial circuits. It doesn't contain any
values that should be extrapolated from the circuit's previous state. To create such a combinational
digital system, one of the following techniques must be used:
1. First, find the inputs and outputs of the system and relate the inputs with the outputs.
2. Develop the truth table for the inputs and outputs and establish a relationship.
3. Generate a standard output expression from the truth table.
4. Simplify the output expression using Boolean algebra or K-Map.
5. Finally, implement the circuit.
If an expression is given,
In Boolean algebra, a variable is a symbol that represents an event, a circumstance, or some data.
The only possible values for a single variable are 1 and 0.
A logical number that can have a value of 1 or 0 is represented by the symbol "variable," which is
typically denoted by an italic letter.
Page 3 of 13
Experiment # 2 Group # 6
The opposite or opposite of a number is its complement. The inverse function is represented in
Boolean algebra by a bar over the variable.
The Boolean addition of two or more literals, often known as the OR operation.
The Boolean operation that results from adding two or more literals together, is called AND
operation.
The expression that results when two or more product terms are added together by Boolean
addition is called a sum of product.
The expression that results from multiplying two or more sum terms is known as a sums product
(POS).
The minimal expression is the simplest SOP or POS expression that can be created using a
Karnaugh map, which is a methodical approach for deriving Boolean expressions. Because it lists
all potential input variable values along with the output of each, a Karnaugh map is comparable to
a truth table. The Karnaugh map is an array of cells with each cell presenting a binary value of the
input variables rather than being structured into columns and rows like a truth table. The cells are
set up so that simplifying a particular expression only requires correctly arranging the cells.
Expressions with two, three, four, and five variables can be represented by Karnaugh maps. The
number of rows in a truth table and the number of cells in a Karnaugh map are both equal to the
entire number of conceivable input variable combinations.
Apparatus:
1. Digital trainer board
2. IC 7432:1 pcs
3. IC 7408:1 pcs
4. IC 7404:2 pcs
5. IC 7402:1 pcs
6. IC 7400:1 pcs
7. IC 7486:1 pcs
8. Connecting wires
Solution:
The Boolean expression is: Y=AB+BC+D
The simulated circuit for problem 1 is figure 1.
Page 4 of 13
Experiment # 2 Group # 6
Page 5 of 13
Experiment # 2 Group # 6
Problem 2:
For the expression Y=𝐴𝐵̅ + ̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝐶(𝐴𝐵 + 𝐷), find truth table, reduced expression using K-MAP and
the logic gate diagram.
Solution:
Table 2: Truth table for problem 2.
A B C D Y
0 0 0 0 1
0 0 0 1 1
0 0 1 0 1
0 0 1 1 0
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 0
1 0 0 0 1
1 0 0 1 1
1 0 1 0 1
1 0 1 1 1
1 1 0 0 1
1 1 0 1 1
1 1 1 0 0
1 1 1 1 0
Page 6 of 13
Experiment # 2 Group # 6
Page 7 of 13
Experiment # 2 Group # 6
Reduced expression:
Y=𝐶̅ + 𝐴𝐵̅ + 𝐴̅𝐷
̅
Hardware Setup:
Result:
1. As per the requirement of problem 1, figure 1 describes the logic circuit needed to
simulate the logic and figure 5 shows the hardware implementation.
2. For problem 2, figure 3 gives the logic gate simulation & figure 6 shows the hardware
simulation.
Page 8 of 13
Experiment # 2 Group # 6
Discussions:
1. Due to some difficulties faced during the lab with some equipment, the experiment was
not carried out in due time and extra time was needed.
2. It was made sure that truth tables of all simulations carried out were matched with the
truth tables found during hardware implementation.
3. The use of K-MAP serves to speed up the process of simplifying a Boolean expression by
a wide margin.
Answer to questions:
1. Construct the derived equations (i) and (ii), using Universal gates (both NAND and
NOR).
Solution:
For problem 1:
Using NAND gate:
Y=AB+BC+D
̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿
=𝐴𝐵 + 𝐵𝐶 + 𝐷
̅̅̅̅̅̅̅̅̅̅̅̅
̅̅̅̅ ̅̅̅̅ . 𝐷
=𝐴𝐵 . 𝐵𝐶 ̅
The circuit diagram is given in figure 7
Page 9 of 13
Experiment # 2 Group # 6
For problem 2:
Using NAND gate:
Y= 𝐴𝐵̅ + ̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝐶(𝐴𝐵 + 𝐷)
̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿̿
=𝐴𝐵 ̅ + ̅̅̅̅̅̅̅̅̅̅̅̅̅̅
𝐶(𝐴𝐵 + 𝐷)
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
̅̅̅̅̅ . ̅̅̅̅̅̅̅̅̅̅̅̅̅̅
=𝐴𝐵 𝐶(𝐴𝐵 + 𝐷)
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
=𝐴𝐵̅ . ̅̅̅̅̅̅̅̅̅̅̅̅̅
𝐶 + 𝐴𝐵̅̅̅̅. 𝐷
̅
̅̅̅̅̅̅̅̅̅̅̅̅̅̅̅
=𝐴𝐵̅ . 𝐶. ̅̅̅̅̅̅̅
̅̅̅̅ . 𝐷
𝐴𝐵 ̅
The circuit diagram for the circuit is given in figure 9.
Page 10 of 13
Experiment # 2 Group # 6
The logic circuit for problem 2 using NOR is given in figure 10.
2. Develop the truth table for a certain three-input logic circuit with the output expression
Y=ABC+(AB)’C+A’BC+AB’C+A(B’+C).
Solution:
Simplifying the equation:
𝑌 = 𝐴𝐵𝐶 + 𝐴𝐵̅̅̅̅ 𝐶 + 𝐴̅𝐵𝐶 + 𝐴𝐵̅ 𝐶 + 𝐴(𝐵̅ + 𝐶)
= 𝐴𝐵𝐶 + 𝐴̅𝐶 + 𝐵̅ 𝐶 + 𝐴̅𝐵𝐶 + 𝐴𝐵̅ 𝐶 + 𝐴𝐵̅ + 𝐴𝐶
= 𝐶(𝐴 + 𝐴̅) + 𝐵𝐶(𝐴 + 𝐴̅) + 𝐵̅ 𝐶(1 + 𝐴) + 𝐴𝐵̅
= 𝐶 + 𝐵𝐶 + 𝐵̅ 𝐶 + 𝐴𝐵̅
= 𝐶 + 𝐶 + 𝐴𝐵̅
= 𝐶 + 𝐴𝐵̅
Solution:
Y=ABC+AB+AC
= AB(1+C)+AC
Page 11 of 13
Experiment # 2 Group # 6
=AB+AC
=A(B+C)
The circuit diagram is given in figure 11.
References:
1. Thomas L. Floyd, “Digital Fundamentals”, available Edition, Prentice Hall International Inc.
AIUB COURSE
SOLUTION-ACS
Page 12 of 13
Experiment # 2 Group # 6
GROUP:
https://www.facebook.com/groups/860221227407452
PAGE: https://www.facebook.com/acsaiub
https://www.youtube.com/channel/UCC3KjA8kstFtM-
2CxVr-jcg
Page 13 of 13