DLD Lab Manual - 240605 - 203418
DLD Lab Manual - 240605 - 203418
DLD Lab Manual - 240605 - 203418
LAB Manual
Instructor Name: Dr. Arifa Mirza
Faculty of Computing & Information Technology
University of the Punjab, Lahore, Pakistan.
The Integrated Circuits (IC) has 14 pins that are being inserted into these dots. The
identification mark indicates its correct insertion side. It has pins from 1 to 14. High
voltage current VCC is applied to pin 14 and pin 7 is being grounded. Remaining pins
are used for input output connections.
-----------------------------------------------------------------------
X = A.B
In IC 7408, pin 1, 2, 4, 5, 9, 10, 12 & 13 are input pins and 3, 6, 8 & 11 are their
corresponding output pins. One can use any one combination of pins for creating
logical AND gate. Input pins are attached with switches using wires and output pins
are with LED. If the LED glows as it should be, the experiment is successful.
In IC 7432, pin 1, 2, 4, 5, 9, 10, 12 & 13 are input pins and 3, 6, 8 & 11 are their
corresponding output pins. One can use any one combination of pins for creating
logical OR gate. Input pins are attached with switches using wires and output pins
are with LED. If the LED glows as it should be, the experiment is successful.
Pin diagram of IC74LS32:
3) NOT GATE:
A NOT gate has only one input and one output. It is also known as “inverter”.
It is a device whose output is always the complement of its input. That is the
output assumes the logic 1 state when its input is in logic 0 state and assumes
the logic 0 state when its input is in logic 1 state. With input variable A the
Boolean expression for output can be written as;
Input Output
A X
0 1
1 0
In IC 7404, pin 1, 3, 5, 9, 11, 13 are input pins and 2, 4, 6, 8, 10, 12 are their
corresponding output pins. One can use any one combination of pins for creating
logical NOT gate. Input pin is attached with switch using wire and output pin is with
LED. If the LED glows as it should be, the experiment is successful.
Pin diagram of IC74LS04:
-------------------------------------------------------------------------
In IC 7400, pin 1, 2, 4, 5, 9, 10, 12 & 13 are input pins and 3, 6, 8 & 11 are their
corresponding output pins. One can use any one combination of pins for creating
logical NAND gate. Input pins are attached with switches using wires and output
pins are with LED. If the LED glows as it should be, the experiment is successful.
NOR gate is universal gate. NOR means NOT OR that is, OR output is
inverted, so NOR gate is combination of an OR gate and a NOT gate. The
output is logic 1 level, only when each of its inputs assumes a logic 0 level.
For any other combination of inputs, the output is logic 0 level. For any other
combination of inputs, the output is logic 1 level. NOR gate is equivalent to a
bubbled AND gate.
In IC 7400, pin 1, 2, 4, 5, 9, 10, 12 & 13 are input pins and 3, 6, 8 & 11 are their
corresponding output pins. One can use any one combination of pins for creating
logical NAND gate. Input pins are attached with switches using wires and output
pins are with LED. If the LED glows as it should be, the experiment is successful.
It often happens on a logic circuit board that a NAND gate and a few
inverters may be available, whereas in reality an NOR function is required.
If this occurs then all is not lost. It is still possible to create an OR function
from an AND / NAND gate and inverters, or an AND gate from a NOR / OR
function. The diagram below gives some of the conversions. As an example,
it can be seen that a NOR gate is the same as an AND gate with two
inverters on the input. It is then possible to add inverters to create the
function that is required.
Exclusive NOR gate is the inverter of Exclusive OR gate. It consists a XOR gate and
a NOT gate in series which is shown below.
Let a two input XNOR gate with the inputs A and B and the output of this gate is Y.
Then the truth table for the Ex-NOR gate with two inputs is as following
A B Y=AB+AˉBˉ
0 0 1
0 1 0
1 0 0
1 1 1
-----------------------------------------------------------------------
---------------------------------------------------------------------------
Objectives
Task 1: A’ . B’ = ( A + B)’
Task LAB 06
Topic: Digital logic circuits analysis and converting Boolean expressions to digital
circuits
Objectives:
To learn how to directly convert a Boolean expression to circuit.
To learn how to analyze a given digital logic circuit by finding the Boolean expression that
represents the circuit
To learn how to analyze a given digital logic circuit by finding the truth table that represents
the circuit.
Task 1: Converting Boolean expressions into circuits:
Z = A + B . C’
The above function is implemented in the following digital logic Circuit:
Now after drawing the circuit we find that its truth table is as shown below:
D=
D=
E=
Task LAB 06 B
According to the circuit above find the equation for X and Y, then fill the truth
table.
X=
Y=
Task LAB 07
Objectives
Draw the simplified and the original Boolean expression and make sure that
they are both equivalent by filling-in the table. Implement in the lab.
Simplify the given Boolean functions. Implement in the lab by using multiple input
gates.
Following ICs are also available in lab in addition to all ICs we have used in previous labs.
X Y C S
0 0 0 0
0 1 0 1
1 0 0 1
1 1 1 0
The C output is 1 only when both inputs are 1. The S output represents the least significant bit of the sum.
Multiplexers:
• A multiplexer does just the opposite of a decoder.
• It selects a single output from several inputs.
• The particular input chosen for output is determined by the value of the multiplexer’s control
lines.
• To be able to select among n inputs, log2n control lines are needed.
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
S R Q Q’
Q 1 0 1 0
0 0 1 0 ( after S = 1, R = 0)
0 1 0 1
0 0 0 1 ( after S = 0, R = 1)
Q’
1 1 0 0
S R Q Q
Q
1 0 0 1
1 1 0 1 ( after S = 1, R = 0)
0 1 1 0
1 1 1 0 ( after S = 0, R = 1)
Q 0 0 1 1