DLC_EXP2_ grp 5
DLC_EXP2_ grp 5
AMERICAN INTERNATIONAL
UNIVERSITY-BANGLADESH
Faculty of Engineering
Deriving logic equations and truth table from a given statement
Assignment Title: or expression and construction of combinational circuits
* Student(s) must complete all details except the faculty use part.
** Please submit all assignments to your course teacher or the office of the concerned teacher.
Group Name/No.: 05
FACULTYCOMMENTS Marks
Obtained
Total Marks
Table of Contents
Title
Introduction
Introduction:
From any given logic statement, it is possible to construct a digital logic circuit. The first step in this process
is to construct a truth table and then determine a standard SOP (sum of products) or POS (product of sums).
At the same time, it is also possible to derive a logic expression from a given combinational circuit diagram
by observing the individual logic operations performed in the circuit and matching them with their
corresponding logic gates. Expressions are simplified using Boolean algebra and De Morgan's law or K-Map
to reduce the number of gates used. Then the circuit is implemented in the breadboard using gate ICs and
observed whether the output verifies the truth table of the given statement.
This experiment shows the students a practical verification of deriving logic equations and truth table from
combinational circuits. Knowing how to derive logic equations and truth table from combinational circuits
helps a person with detecting the output logic expressions from any unknown logic circuit.
taken from a previous state of the circuit. Designing such a combinational digital system requires use of one
of the following methods: If a problem statement is given, the following steps will help designing the system
1. If a problem statement is given, the following steps will help designing the system
2. Or if an expression is given, the following steps will help in designing the system
Boolean algebra: In Boolean algebra, a variable is a symbol used to represent an action, a condition, or data.
A single variable can only have a value of 1 or 0.
Variable: A symbol used to represent a logical quantity that can have a value of 1 or 0, usually designated by
an italic letter.
Complement: The inverse or opposite of a number. In Boolean algebra, the inverse function, expressed with
a bar over the variable.
Sum term: The Boolean sum of two or more literals equivalent to an OR operation.
Product term: The Boolean product of two or more literals equivalent to an AND operation.
Sum of Products (SOP): When two or more product terms are summed by Boolean addition, the resulting
expression is a sum of product. E.g.: Implementing an SOP expression simply requires doing OR the outputs
of two or more AND gates. A product term is produced by an AND operation, and the sum (addition) of two
or more product terms is produced by an OR operation. Therefore, an SOP expression can be implemented
by AND-OR logic in which the outputs of a number (equal to the number of product terms in the expression)
of AND gates connect to the inputs of an OR gate. A standard SOP expression is one in which all the
variables in the domain appear in each product term. E.g.: Standard SOP expressions are important in
constructing truthtables and in Karnaugh map simplification method. The SOP expression is equal to 1 only
if one or more of the product terms in the expression is equal to 1.
Product of Sums (POS): When two or more sum terms are multiplied, the resulting expression is a product
of sums (POS). E.g.: Implementing a POS expression simply requires ANDing the outputs of two or more
OR gates. A sum term is produced by an OR operation, and the product of two or more sum terms is
produced by an AND operation. Therefore, a POS expression can be implemented by logic in which the
outputs of a number (equal to the number of sum terms in the expression) of OR gates connect to the inputs
of an AND gate. A standard POS expression is one in which all the variables in the domain appear in each
sum term in the expression. E.g.: A POS expression is equal to 0 only if one or more of the sum terms in the
expression is equal to 0.
Karnaugh Map: A Karnaugh map provides a systematic method for simplifying Boolean expressions and, if
properly used, will produce the simplest SOP or POS expression possible le, known as the minimum
expression. A Karnaugh map is like a truth table because it presents all of the possible values of input
variables and the resulting output of each valued. Instead of being organized into columns and rows like
truth table, the Karnaugh map is an array of cells in which each cell presents binary value of the input
variables. The cells are arranged in a way so that the simplification of a given expression is simply a matter
of properly grouping the cells. Karnaugh maps can be used for expressions with two, three, four and five
variables. The number of cells in a Karnaugh map is equal to the total number of possible input variable
combinations as is the number of rows in a truth table.
Problem1. A Building has 4 floors which share the same water tank for water supply. To start the motor,
each floor has a designated switch- Ground Floor with switch A, 1st Floor with switch B, 2nd Floor with
switch C and 3rd Floor with switch D. The motor starts if someone presses the switch from the 3rd floor or
from both ground and 2nd floor or from 1st and 2nd floor. Our job is to design the system.
Problem2. For the expression K-MAP and the logic gate diagram. We found the truth-table, reduced
expression using Karnaugh Map/K -Map.
From the K-Map it is seen that there could be three combinations of high inputs. From those combinations
the expressions are:
Output Expression: Y = D + AC + BC
= D + C (A+B)
Apparatus:
Experimental procedure:
1. Using output Y we formed standard SOP expression.
2. We minimized the SOP expression using Boolean algebra and K-Map.
3. Then we performed hardware implementation of the circuit and compared with our truth table output.
Problem 1:
a) A truth table has been drawn to represent the output Y.
b) The truth table outputs have been used to form standard SOP and POS expressions.
c) The SOP expression has been minimized using Boolean algebra and K-Map. Hardware implementation of
the circuit has been performed and compared with the truth table output.
Problem 2:
a) A step-by-step truth table has been drawn to represent the outputs at each gate (1-6) and then the final
output at Y.
b) Output Y has been used to form a standard SOP expression.
c) The SOP expression has been minimized using Boolean algebra and K-Map. Hardware implementation of
the circuit has been performed and compared with the truth table output.
Hardware Implementation:
Problem 1:
Figure: A=1, B=0, C=0, Y=1 Figure: A=0, B=1, C=1, Y=1
Figure: A=0, B=0, C=0, Y=1 Figure: A=1, B=1, C=1, Y=0
Simulations:
Problem 1:
Figure: 1 Figure:2
Figure:3 Figure:4
Figure: 5 Figure:6
Figure:7 Figure:8
Figure:9 Figure:10
Figure: 11 Figure:12
Figure: 13 Figure:14
Figure: 15 Figure:16
Problem 2 :
Answers:
Problem 1:
F = AC+BC+D
= (AC+BC+D)''
F = (AC)” +(BC)” + D”
= ((A’ +C’)’ + (B’+ C’)’ + D)” [Using NOR]
Problem 2:
F=A'+B'C'
=(A'+B'C')''
F = A’ + B’C’
= A’ + (B+C)’
= (A’ + (B+C)’)” [Using NOR]
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).
Answer: The expressions can be simplified as:
Y=ABC+(AB)’C+A’BC+AB’C+A(B’+C)
= C(1+B’) + AB’
= C+ AB’
Truth Table:
A B C Output(Y)
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 0
1 1 1 1
Answer:
Y= (ABC + AB + AC)”
= (ABC)’. (AB)’. (AC)’)’
Result and Discussion: The experiment demonstrated the successful translation of abstract
logic statements into tangible hardware circuits, validating theoretical principles through
practical implementation. Despite encountering challenges such as IC integrity the results
closely aligned with theoretical expectations. Simulation aided in validating circuit
functionality, highlighting the importance of rigorous methodology. We make the circuit
efficiently by reducing the number of gates. The circuit we made connection was not loose,
gates were properly biased, all the output LEDs were working and the ICs that were being
used are not broken. So the practically obtained truth table exactly match the theoretical one.
Conclusion: In this lab we have been introduced with the combination circuits. At first, we
learned to construct a truth table and then to determine SOP or POS. By using logic gates and
other components we built combination circuits. We also used truth table to develop K-map
and by proper grouping in K-map we determined the output expression. The IC contains
protection circuitry to guard against damage due to high static voltages or electric fields.
However, precautions were taken to avoid applications of any voltage higher than maximum
rated voltages. For proper operation, Vin and Vout were constrained to the range GND to VCC.
The ICs were connected according to their pin configuration carefully.
References:
1) www.tutorialspoint.com
2) www.electronics-tutorials.ws
3) “Digital Fundamentals” by Thomas L. Floyd