DLD Lab Manual
DLD Lab Manual
Name:
Roll No:
Section:
Page | 1
Lab Manual of ‘Digital Logic Design’
Page | 2
Lab Manual of ‘Digital Logic Design’
Table of Contents
Sr. No. Description Page No.
1 List of Equipment 4
2 List of Experiments 5
Introduction to Trainer Board and Logic Probe
3 6
Introduction to Integrated Circuit (IC’s)
4 12
Boolean Expression Implementation
5 19
Universal Gates NAND/NOR Implementation
6 22
Half Adder and Subtractor using Logic Gates
7 25
Boolean Expression Simplification with K Map
8 27
Two Bit Magnitude Comparator
9 30
Encoder & Decoder
10 32
Multiplexer and De-multiplexer
11 36
7 segment Display & sequential Circuits
12 40
Universal Shift Register
13 45
14 Counters 48
Page | 3
Lab Manual of ‘Digital Logic Design’
List of Equipment
Sr. No. Description
2 Bread Board
4 Logic Probe
5 2N2222 Transistors
6 Jumper Wires
7 Wire Cutters
Page | 4
Lab Manual of ‘Digital Logic Design’
List of Experiments
Sr. # Title of Experiment
01 Introduction to Trainer Board and Logic Probe
02 Introduction to Integrated Circuit (IC’s)
03 Boolean Expression Implementation
04 Boolean Expression Simplification with K Map
05 Universal Gates NAND/NOR Implementation
06 Half Adder and Subtractor using Logic Gates
07 Two Bit Magnitude Comparator
08 Encoder & Decoder
09 Multiplexer and De-multiplexer
10 7 segment Display & sequential Circuits
11 Universal Shift Register
12 Counters
Page | 5
Lab Manual of ‘Digital Logic Design’
1.2 EQUIPMENT:
Trainer Board
Bread Board
Logic Probe
1.3 BACKGROUND:
Trainer Board:
Page | 6
Lab Manual of ‘Digital Logic Design’
Page | 7
Lab Manual of ‘Digital Logic Design’
12. Two 7-segment displays with BCD input sockets are provided on the trainer board. When
binary inputs are provided at the input sockets below each display, the decimal equivalent
of the BCD input is displayed. The Lamp Test (! LT) input socket is for checking the
display: when this input is low (0) all the segments of the display will glow indicating that
the display is functioning properly.
13. Adopter
14. Two pulse switches
15. Removable breadboard for patching digital circuits is provided on the trainer board. As
each
16. circuit has to be implemented on the breadboard, so a detail description of the breadboard
structure is given below.
17. Speakers
Breadboard:
In general, the breadboard consists of two terminal strips and two bus strips (often broken in the
center). Each bus strip has two rows of contacts. Each of the two rows of contacts is a node. That
is, each contact along a row on a bus strip is connected together (inside the breadboard). Bus
strips are used primarily for power supply connections, but are also used for any node requiring a
large number of connections. Each terminal strip has 60 rows and 5 columns of contacts on each
side of the center gap. Each row of 5 contacts is a node.
You will build your circuits on the terminal strips by inserting the leads of circuit components
into the contact receptacles and making connections with wire. It is a good practice to wire +5V
and 0V power supply connections to separate bus strips.
Page | 8
Lab Manual of ‘Digital Logic Design’
The points in ABCDE (and FGHIJ) grid are vertically connected as indicated by red circle. So all
5 points on are actually the same point. It makes No difference whether you connect a wire on
any one of these points. The next vertical strip is a different point and so on.
It should be noted that upper and lower grids are horizontally connected indicated below. Each
grid consists of 4 such separate horizontal strips:
Page | 9
Lab Manual of ‘Digital Logic Design’
A logic probe can be very handy for troubleshooting and analysis of a digital logic circuit. As
compared to a DC voltmeter or an oscilloscope, it needs to distinguish between the states of LOW
and HIGH, and so it can be very simple and inexpensive. Its features include two LED indicators:
HI (red LED) and LO (green LED).
Specifications:
Model:
GLP-1A Logic Probe (50MHz Frequency Displayable)
Operation:
1. Connect the black alligator clip to ground or common of the circuit under test.
2. Connect the red alligator clip to Vcc (4V DC minimum to 18V DC maximum) of the
circuit under test.
3. Touch the probe tip to the circuit point under test. The probe’s LEDs indicate the
logic level or signals present when the circuit node is probed.
The LED response is noted below:
Input signal LEDs
Task 1:
Make connections of logic probe and verify if all the switches are working Properly.
Page | 10
Lab Manual of ‘Digital Logic Design’
Task 2:
Connect input switches with LEDs and verify their proper operation.
Task 3:
Connect Logic Probe with Pulse switches and observe their operation.
Page | 11
Lab Manual of ‘Digital Logic Design’
Datasheets:
Datasheets are available for most ICs giving detailed information about their ratings and functions.
consumption
IC Placement on Breadboard
A typical 14 pin IC placement on such a bread board is shown below: The upper and lower
horizontal strips are normally served for power (+5V) and ground (0V) respectively. But it is not
necessary to do so.
Note:
Never place any IC such that its opposite pins are within (connected to) the same Node on the same
grid.
Page | 14
Lab Manual of ‘Digital Logic Design’
Plug the chips you will be using into the breadboard. Point all the chips in the same
direction with pin 1 at the lower-left corner. (Pin 1 is often identified by a dot or a notch
next to it on the chip package)
Connect +5V and GND pins of each chip to the power and ground bus strips on the
bread board.
Select a connection on your schematic and place a piece of hook-up wire between
corresponding pins of the chips on your breadboard. It is better to make the short
connections before the longer ones. Mark each connection on your schematic as you go,
so as not to try to make the same connection again at a later stage.
Get one of your group members to check the connections, before you turn the power on.
If an error is made and is not spotted before you turn the power on. Turn the power off
immediately before you begin to rewire the circuit.
At the end of the laboratory session, collect hook-up wires, chips and all equipment and
return them.
Tidy the area that you were working in and leave it in the same condition as it was before you
started.
Symbol
IC Pin Configuration
Page | 15
Lab Manual of ‘Digital Logic Design’
Symbol
X Y Output (Z)
0 0
0 1
Truth Table
1 0
1 1
IC Pin Configuration
Symbol
X Y Output (Z)
0 0
0 1
Truth Table
1 0
1 1
Page | 16
Lab Manual of ‘Digital Logic Design’
IC Pin Configuration
Gate OR Gate
Symbol
X Y Output (Z)
0 0
0 1
Truth Table
1 0
1 1
IC Pin Configuration
Symbol
X Y Output (Z)
0 0
0 1
Truth Table
1 0
1 1
Page | 17
Lab Manual of ‘Digital Logic Design’
IC Pin Configuration
Symbol
X Y Output (Z)
0 0
0 1
Truth Table
1 0
1 1
IC Pin Configuration
Symbol
X Y Output (Z)
0 0
0 1
Truth Table
1 0
1 1
Page | 18
Lab Manual of ‘Digital Logic Design’
IC Pin Configuration
Page | 19
Lab Manual of ‘Digital Logic Design’
Z= X Y or XY
NAND Gate
OR Gate Z=X+Y
Z=X+Y
NOR Gate
Z=XY
XNOR Gate
Page | 20
Lab Manual of ‘Digital Logic Design’
Any digital circuit can be implemented using basic gates and can be represented as a mathematical
equation. For example,
Z = A + B. C’
Will be implemented as follows:
F=
A B C F
Page | 21
Lab Manual of ‘Digital Logic Design’
2) For the given function, draw equivalent circuit diagram, draw the truth tables and verify the
output.
F = X + (Y’+ Z) . Z’
Circuit Diagram:
A B C F
Page | 22
Lab Manual of ‘Digital Logic Design’
In the product of max-terms canonical form, 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 a+b·c = (a+b) · (a+c) to distribute the product 𝐵. 𝐵̅
Page | 23
Lab Manual of ‘Digital Logic Design’
Simplified Expression:
F=
Circuit Diagram:
Draw the circuit diagram above mentioned function.
Page | 24
Lab Manual of ‘Digital Logic Design’
Task 2: Simplify following function using K map and implement simplified function
F (A, B, C, D) = ∑ (2,3,6,9,10,11,14)
K-Map Simplification:
Simplified Expression:
F=
Circuit Diagram:
Draw the circuit diagram above mentioned function.
Page | 25
Lab Manual of ‘Digital Logic Design’
5.4LAB TASKS
Task 1: XOR gate implementation using NAND Gate
XOR gate Boolean Function: F=
Step # 1: Draw and implement the given logic function with AND, OR and NOT gates
Step # 2: Replace AND, OR and NOT gates with equivalent NAND gate circuit
Page | 26
Lab Manual of ‘Digital Logic Design’
Step # 3: Simplify the circuit to get the final NAND equivalent circuit and implement using NAND
gate.
Step # 2: Replace AND, OR and NOT gates with equivalent NOR gate circuit.
Step # 3: Simplify the circuit to get the final NOR equivalent circuit and implement using NOR
gate.
Page | 27
Lab Manual of ‘Digital Logic Design’
Page | 28
Lab Manual of ‘Digital Logic Design’
Carry =
Circuit Diagram:
Draw the circuit diagram for Half adder using Boolean equations of Sum and Carry.
Page | 29
Lab Manual of ‘Digital Logic Design’
Input Output
A B diff Borrow
Sum =
Carry =
Circuit Diagram:
Draw the circuit diagram and truth table of Half subtractor using Boolean equations of Difference
and Borrow.
Page | 30
Lab Manual of ‘Digital Logic Design’
Page | 31
Lab Manual of ‘Digital Logic Design’
Page | 32
Lab Manual of ‘Digital Logic Design’
Page | 33
Lab Manual of ‘Digital Logic Design’
74 LS 138
D0
D1
D2
D3
D4
D5
D6
D7
INPUTS OUTPUTS
A0 A1 A2 D0 D1 D2 D3 D4 D5 D6 D7
0 0 0
1 0 0
Page | 34
Lab Manual of ‘Digital Logic Design’
0 1 0
1 1 0
0 0 1
1 0 1
0 1 1
1 1 1
74LS 148
Page | 35
Lab Manual of ‘Digital Logic Design’
Truth Table:
Inputs Outputs
EI I0 I1 I2 I3 I4 I5 I6 I7 GS A2 A1 A0 EO
1 X X X X X X X X
0 1 1 1 1 1 1 1 1
0 X X X X X X X 0
0 X X X X X X 0 1
0 X X X X X 0 1 1
0 X X X X 0 1 1 1
0 X X X 0 1 1 1 1
Page | 36
Lab Manual of ‘Digital Logic Design’
0 X X 0 1 1 1 1 1
0 X 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1 1
Page | 37
Lab Manual of ‘Digital Logic Design’
9.3INTRODUCTION:
A multiplexer is a combinational circuit that selects binary information from one of many input lines
and directs the information to a single output line. The selection of a input line is controlled by a set
of input variables, called selection input. Normally, there are 2n input lines and n selection inputs
whose bit combination determines which input is selected.
A de-multiplexer is doing the opposite function of multiplexer. It takes input on a single input line
and the select lines determines one of the 2 n output lines and the input contents is visible on that
output.
Pin Configuration of 74LS151 (8 to 1 Mux):
74LS 151
Fig 1: 8 × 1 Multiplexer IC
Page | 38
Lab Manual of ‘Digital Logic Design’
Page | 39
Lab Manual of ‘Digital Logic Design’
74 LS 138
Page | 40
Lab Manual of ‘Digital Logic Design’
Truth Table:
Inputs Outputs
D S0 S1 S2 O0 O1 O2 O3 O4 O5 O6 O7
0 X X X
1 0 0 0
1 1 0 0
1 0 1 0
1 1 1 0
1 0 0 1
1 1 0 1
1 0 1 1
1 1 1 1
Page | 41
Lab Manual of ‘Digital Logic Design’
Trainer board and its outputs are the 7 lines to the 7-segment LED Display showing the state of the
segments. The 7448 is a BCD decoder so it only works for counter states between 0000 and 1001,
i.e. decimal numbers 0 through 9.
Pin Configuration of 74LS48(BCD to 7-Segment Decoder):
Page | 43
Lab Manual of ‘Digital Logic Design’
Page | 44
Lab Manual of ‘Digital Logic Design’
Task 2:
Construct a SR latch using NAND Gates and fill the given table.
Task 3:
Connect a JK Flip Flop IC and Record observations and given table.
Inputs Outputs
Operating Mode
SD RD CP J K Q Q’
0 1 X X X
1 0 X X X
0 0 X X X
1 1 ↓ 1 1
1 1 ↓ 0 1
1 1 ↓ 1 0
1 1 ↓ 0 0
1 1 1 X X
Task 4:
Page | 45
Lab Manual of ‘Digital Logic Design’
Inputs Outputs
Operating Mode
SD RD CP D Q Q’
0 1 X X
1 0 X X
0 0 X X
1 1 ↑ 1
1 1 ↑ 0
1 1 1 X
Page | 46
Lab Manual of ‘Digital Logic Design’
11.1 OBJECTIVES:
Getting familiar with the design of sequential circuits on the register transfer level.
Gaining a close insight into the functioning and properties of the universal shift register.
Developing skills in the composition and testing of sequential logic circuits.
11.2 EQUIPMENT:
Trainer Board
74194 4-bit Universal Shift Register
Function Generator
11.3 INTRODUCTION:
Registers:
A register is used to store n-bits of information, where n is number of flip-flops. A register consists
of a set of flip-flops, together with gates that perform data processing tasks. The flip-flops hold data,
and the gates determine the new or transformed data to be transferred into the flip-flops. The
registers have two types, one simple register and other register with parallel load. The register with
parallel load is the register in which we can easily store the value of our own choice. This ability of
register is controlled by a control input, if control input is 1 then the data which we want to enter is
stored on the register, and when the value is 0 then the data which was stored in the register remain
stored in the register.
Shift Registers:
Another type of register is known as shift register. The shift register is capable of shifting its stored
bits laterally in one or both direction. The logical configuration of a shift register consists of a chain
of flip-flops in cascade, with the output of one flip-flop connected to the input of the next flip flop.
All flip-flops receive a common clock pulse, which activates the shift from each stage to the next.
Page | 47
Lab Manual of ‘Digital Logic Design’
Mode Selection
Register Operations
S1 S0
0 0 No Change
0 1 Shift Right
1 0 Shift Left
1 1 Parallel Load Data
Table 1: 4-bit Universal Shift Register Mode Selection
Procedure:
Connect the trainer with the power supply
For clock, connect function generator with the power supply. Keep frequency knob on
minimum, press the button for function of square wave and keep the frequency range on
minimum, rotate the amplitude knob to max and get the output from it. Connect the red
alligator clip with the CP pin of the IC and ground the black alligator clip.
Mount the IC 74LS194 on the trainer board
Supply the VCC and GND to the pin 16 and 8 respectively
Wire the pins of IC, refer to the pin configuration.
Drive the D’s, Dsr, Dsl, S0 & S1 inputs with input switches on the trainer board and CP input
from the clock on the trainer board. Connect output Q’s to LEDs.
Connect the Mater Reset (MR) to input switch. When low will reset the register.
Apply different combinations on S1, S0 and verify the corresponding function.
Observe and record the output on the LEDs.
Task:
Page | 49
Lab Manual of ‘Digital Logic Design’
Connect 4-bit Shift Register IC and verify the operations of Shift Register.
Page | 50
Lab Manual of ‘Digital Logic Design’
Counters
12.1 OBJECTIVES:
To become familiar with the operation of Dual 4-bit Counter IC 74393.
To understand the difference between Synchronous and Asynchronous Counters.
To become familiar with the State Excitation Table.
To develop skills of constructing Counters with JK Flip Flops.
12.2 EQUIPMENT:
Trainer Board.
7 segment BCD Display.
74XX gate ICs.
74112 –ve edge triggered JK-Flip Flop.
Dual 4-bit Counter IC 74393.
12.3 INTRODUCTION:
A register that goes through a prescribed sequence of states upon the application of input pulses is
called a counter. The input pulses may be clock pulses or may originate from some other source, and
they may occur at fixed intervals of time or random intervals. The sequence of states may follow the
binary number sequence or any other sequence of states: A counter that follows the binary number
sequence is called a binary counter.
Counters are available in two categories: ripple counters and synchronous counters. In a ripple
counter, the flip-flop output transition serves as a source for triggering other flip-flops. In other
words, the clock inputs of some or all the flip-flops are triggered not by the common clock pulses,
but rather by the transition that occurs in other flip-flop outputs. In a synchronous counter, the clock
inputs of all of the flip-flops receive the common clock pulse, and the change of state is determined
from the present state of the counter.
Pin Configuration of 74393:
Page | 51
Lab Manual of ‘Digital Logic Design’
Page | 52
Lab Manual of ‘Digital Logic Design’
Qn Qn+1 J K
Page | 53
Lab Manual of ‘Digital Logic Design’
Page | 54
Lab Manual of ‘Digital Logic Design’
Page | 57
Lab Manual of ‘Digital Logic Design’
In all the Electrical Engineering (EE) labs, with an aim to prevent any unforeseen accidents during
conduct of lab experiments, following preventive measures and safe practices shall be adopted:
Remember that the voltage of the electricity and the available electrical current in EE labs
has enough power to cause death/injury by electrocution. It is around 50V/10 mA that the
“cannot let go” level is reached. “The key to survival is to decrease our exposure to energized
circuits.”
If a person touches an energized bare wire or faulty equipment while grounded, electricity
will instantly pass through the body to the ground, causing a harmful, potentially fatal, shock.
Each circuit must be protected by a fuse or circuit breaker that will blow or “trip” when its
safe carrying capacity is surpassed. If a fuse blows or circuit breaker trips repeatedly while in
normal use (not overloaded), check for shorts and other faults in the line or devices. Do not
resume use until the trouble is fixed.
It is hazardous to overload electrical circuits by using extension cords and multi-plug outlets.
Use extension cords only when necessary and make sure they are heavy enough for the job.
Avoid creating an “octopus” by inserting several plugs into a multi-plug outlet connected to a
single wall outlet. Extension cords should ONLY be used on a temporary basis in situations
where fixed wiring is not feasible.
Dimmed lights, reduced output from heaters and poor monitor pictures are all symptoms of
an overloaded circuit. Keep the total load at any one time safely below maximum capacity.
If wires are exposed, they may cause a shock to a person who comes into contact with them.
Cords should not be hung on nails, run over or wrapped around objects, knotted or twisted.
This may break the wire or insulation. Short circuits are usually caused by bare wires
touching due to breakdown of insulation. Electrical tape or any other kind of tape is not
adequate for insulation!
Electrical cords should be examined visually before use for external defects such as: Fraying
(worn out) and exposed wiring, loose parts, deformed or missing parts, damage to outer
jacket or insulation, evidence of internal damage such as pinched or crushed outer jacket. If
any defects are found the electric cords should be removed from service immediately.
Pull the plug not the cord. Pulling the cord could break a wire, causing a short circuit.
Plug your heavy current consuming or any other large appliances into an outlet that is not
shared with other appliances. Do not tamper with fuses as this is a potential fire hazard. Do
not overload circuits as this may cause the wires to heat and ignite insulation or other
combustibles.
Keep lab equipment properly cleaned and maintained.
Ensure lamps are free from contact with flammable material. Always use lights bulbs with
the recommended wattage for your lamp and equipment.
Be aware of the odor of burning plastic or wire.
ALWAYS follow the manufacturer recommendations when using or installing new lab
equipment. Wiring installations should always be made by a licensed electrician or other
qualified person. All electrical lab equipment should have the label of a testing laboratory.
Be aware of missing ground prong and outlet cover, pinched wires, damaged casings on
electrical outlets.
Inform Lab engineer / Lab assistant of any failure of safety preventive measures and safe
practices as soon you notice it. Be alert and proceed with caution at all times in the
laboratory.
Conduct yourself in a responsible manner at all times in the EE Labs.
Page | 58
Lab Manual of ‘Digital Logic Design’
Follow all written and verbal instructions carefully. If you do not understand a direction or
part of a procedure, ASK YOUR LAB ENGINEER / LAB ASSISTANT BEFORE
PROCEEDING WITH THE ACTIVITY.
Never work alone in the laboratory. No student may work in EE Labs without the presence
of the Lab engineer / Lab assistant.
Perform only those experiments authorized by your teacher. Carefully follow all
instructions, both written and oral. Unauthorized experiments are not allowed.
Be prepared for your work in the EE Labs. Read all procedures thoroughly before entering
the laboratory. Never fool around in the laboratory. Horseplay, practical jokes, and pranks
are dangerous and prohibited.
Always work in a well-ventilated area.
Observe good housekeeping practices. Work areas should be kept clean and tidy at all times.
Experiments must be personally monitored at all times. Do not wander around the room,
distract other students, startle other students or interfere with the laboratory experiments of
others.
Dress properly during a laboratory activity. Long hair, dangling jewelry, and loose or baggy
clothing are a hazard in the laboratory. Long hair must be tied back, and dangling jewelry
and baggy clothing must be secured. Shoes must completely cover the foot.
Know the locations and operating procedures of all safety equipment including fire
extinguisher. Know what to do if there is a fire during a lab period; “Turn off equipment, if
possible and exit EE lab immediately.”
Page | 59