Digital System Design Lab Manual
Digital System Design Lab Manual
B.TECH
(2nd Year; 3rd Semester)
Sub Code: EC392
9. Individual and team work: Function effectively as an individual, and as a member or leader
in diverse teams, and in multidisciplinary settings.
10. Communication: Communicate effectively on complex engineering activities with the
engineering community and with society at large, such as, being able to comprehend and
write effective reports and design documentation, make effective presentations, and give
and receive clear instructions.
11. Project management and finance: Demonstrate knowledge and understanding of the
engineering and management principles and apply these to one's own work, as a member
and leader in a team, to manage projects and in multidisciplinary environments.
12. Life-long learning: Recognize the need for, and have the preparation and ability to engage
in independent and life-long learning in the broadest context of technological change.
2. Implement different Boolean Functions and construct arithmetic circuits using logic gates.
3. Implement decoder, encoder, multiplexer circuits in breadboard using logic gates and in
VHDL.
4. Realize RS, JK, D and T flip flops using universal logic gates.
5. Realize different types of shift registers and counters using digital ICs as well as using
VHDL.
Do’s Don’ts
Maintain Discipline and follow the Guidelines of
Do not exceed the voltage Rating of the equipment.
the Laboratory.
Understand the theory behind the experiment before Do not interchange the components while doing the
starting the experiment. experiment without consent of the Faculty/TA.
Bring lab copy& manual. Avoid loose connections and short circuits.
Do not use a pen Drive or similar kind devices
All should perform experiments in assigned places.
without permission.
Do not change computer preference settings or
Keep the working table clean.
endeavor to hack into unauthorized areas.
Arrange the chairs/tools and equipment properly
Do not install any programs without permission.
before leaving the lab.
All users of the laboratory are to follow the Do not create any user accounts without
directions of the faculty/Technical Assistants. Faculty/TA permission
Before leaving the lab, you should save your Avoid stepping on electrical wires or any other
programs, and collect your belongings. computer cables.
Shut down the computer after completion of the Do not touch, connect or disconnect any plug or
experiment. cable without your Faculty/ TA’s permission.
MAKAUT SYLLABUS
the Data Sheet, Concept of Vcc and Ground, Verification of the Truth Tables of Logic Gates
2. Implementation of the Given Boolean Function using Logic Gates in Both Sop and Pos
Forms.
3. Verification of State Tables of Rs, J-k, T and D Flip-Flops using NAND & NOR Gates
10. Simulation of CMOS Inverter for different parameters Kn, Kp as a design variable in
suitable
13. Design of a 3-input NAND gate and its simulation using suitable logic simulator
EXPERIMENT NO: - 1, 2
TITLE: - Introduction to Digital Electronics Lab- Nomenclature of Digital ICs,
Specifications, Study of the Data Sheet, Concept of Vcc and Ground, Verification of the
Truth Tables of Logic Gates using TTL ICs.
Implementation of the Given Boolean Function using Logic Gates in Both SOP and POS
Forms.
OBJECTIVES: -
THEORETICAL APPROACH: - NAND and NOR gates have the important properties that
using only NAND or only NOR gates repeatedly one can get the logic functions of OR, AND,
NOT, X-OR and X-NOR gates. That is why they are called universal gates. NAND is a
combination gate in which a NOT gate follows an AND gate. NOR is also combination gate in
which a NOT gate follows an OR gate.
Ex-OR
EX-
NOR
CIRCUIT DIAGRAM: -
NAND AS NOT:-
NAND AS AND:-
NAND AS OR:-
NAND AS X-OR:-
NAND AS X-NOR:-
NOR AS NOT:-
NOR AS OR:-
NOR AS AND:-
NOR AS X-OR:-
NOR AS X-NOR:-
In the laboratory we use the combinations of different types of gates to make the circuits. Each
gate has an individual IC number. The following chart gives the IC number of the individual
gates
NUMBER OF
GATE IC NUMBER DESCRIPTION
GATES IN IC
NAND 7400 QUAD TWO INPUT NAND GATE 4
Some times for Ex-NOR gate we use the combination of two gates. As Ex-NOR= Ex-OR+NOT
then for Ex-NOR gate we use the combination of Ex-OR & NOT gate (shown in the following
figure).
Fig: - Ex-Nor gate with the combination of Ex-Or & NOT gate
The schematic diagrams of ICs for all of the above gates are same except 7402, 7404, 7410
&7411. Again the 7410 & 7411 have the same IC configuration. We first give a look to the IC
diagram which is same for 7400, 7408, 7432, 7486 and 74266.
Now we move to the IC diagram of 7402 and 7404. The following figures shows the IC
diagram of 7402 and 7404
7410 and 7411 have the same IC configuration as both consists of 3 inputs gates.
1. Breadboard
2. DC Regulated Power Supply
3. Multimeter
4. Logic Gates
5. Connecting Wires
RESULTS/EXPERIMENTAL OBSERVATIONS: -
INPUT OUTPUT
A B Y
LOGIC LED LOGIC LED LOGIC LED
STATE STATUS STATE STATUS STATE STATUS
• Make similar tables for realization of NAND as AND, NOT, X-OR, X-NOR gates and
NOR as OR, AND, NOT, X-OR and X-NOR gate.
• Take a sample Boolean Expression and design that uses Basic gates and Universal
gates. Verify their truth table.
CONCLUSION: -
EXPERIMENT NO: - 3
TITLE: - Verification of State Tables of R-S, J-K, T and D Flip-Flops using NAND and
NOR Gates
OBJECTIVES: -
1. To verify the state tables of RS, JK, T and D flip-flops using NAND and NOR gates.
THEORY: - In the case of sequential circuits, the effect of all previous inputs on the outputs is
represented by a state of the circuit. Thus, the output of the circuit at any time depends upon its
current state and the input. These also determine the next state of the circuit. The relationship
that exists among the inputs, outputs, present states, and next states can be specified by either
the state table or the state diagram.
State Table: - The state table representation of a sequential circuit consists of three sections
labeled present state next state and output. The present state designates the state of flip-flops
before the occurrence of a clock pulse. The next state shows the states of flip-flops after the
clock pulse, and the output section lists the value of the output variables during the present
state.
Flip-Flop:- The basic one bit digital memory circuit is known as flip-flop. It can store either 0
or 1. Flip-flops are classified according to the number of inputs.
R-S flip- flop:- The circuit is similar to SR latch except enable signal is replaced by clock
pulse.
Fig:- Block diagram of R-S flip-flop Fig:- State table of R-S Flip-flop
J-K flip-flop:- - In a RS flip-flop the input R=S=1 leads to an indeterminate output. The R-S
flip-flop circuit may be re-joined if both inputs are 1 than also the outputs are complement of
each other.
Fig:- Block diagram of J-K flip-flop Fig:- State table of J-K Flip-flop
D flip-flop:- The modified clocked SR flip-flop is known as D-flip-flop. From the truth table of
SR flip-flop we see that the output of the SR flip-flop is in unpredictable state when the inputs
are same and high. In many practical applications, these input conditions are not required.
These input conditions can be avoided by making them complement of each other.
CIRCUIT DIAGRAM: -
R-S FLIP-FLOP:-
Fig:- R-S flip-flop using NOR gate Fig:- R-S flip-flop using NAND gate
J-K FLIP-FLOP:-
Fig:- J-K flip-flop using NOR gate Fig:- J-K flip-flop using NAND
T FLIP-FLOP:-
D FLIP-FLOP:-
1. Breadboard
2. DC Regulated Power Supply
3. Multimeter
4. Logic Gates
5. Connecting Wires
RESULTS/EXPERIMENTAL OBSERVATIONS: -
INPUT OUTPUT
A B Qn Qn+1
CONCLUSION: -
EXPERIMENT NO:- 4
TITLE: Implementation and Verification of Decoder/De- Multiplexer and Encoder
using Logic Gates
OBJECTIVES:-
To design and implement a decoder, de-multiplexer and an encoder using logic gates.
To verify the truth tables of the decoder, de-multiplexer and encoder using logic gates.
THEORY:-
Decoder: A decoder is a combinational logic circuit that converts a binary code into a set of
outputs.
E A1 A0 Y3 Y2 Y1 Y0
0 X X 0 0 0 0
1 0 0 0 0 0 1
1 0 1 0 0 1 0
1 1 0 0 1 0 0
1 1 1 1 0 0 0
De-multiplexer: a de-multiplexer is a combinational logic circuit that takes a single input and
distributes it to one of several possible outputs.
S1 S0 Y3 Y2 Y1 Y0
0 0 0 0 0 1
0 1 0 0 1 0
1 0 0 1 0 0
1 1 1 0 0 0
Encoder: An encoder is a combinational logic circuit that converts a set of inputs into a binary
code. It is the reverse of a decoder function. It has 2n input and n output lines.
Inputs Outputs
Y3 Y2 Y1 Y0 A1 A0
0 0 0 1 0 0
0 0 1 0 0 1
0 1 0 0 1 0
1 0 0 0 1 1
CIRCUIT DIAGRAM:-
Fig: 4 x 2 encoder
Breadboard
Logic Gates
Connecting wires
RESULT:-
E A1 A0 Y3 Y2 Y1 Y0
LOGIC LED LOGIC LED LOGIC LED LOGIC LED LOGIC LED LOGIC LED LOGIC LED
STATE STAT STATE STAT STATE STAT STATE STAT STATE STAT STATE STAT STATE STAT
US US US US US US US
CONCLUSION:-
EXPERIMENT NO:- 5
OBJECTIVES:- The main objective of this lab is to provide students with hands-on
experience in designing and constructing a 4x1 multiplexer using basic logic gates. This lab
will enhance your understanding of multiplexers, logic gate behavior, and combinational
circuit design. By the end of this lab, you should be able to construct a functional 4x1
multiplexer circuit and verify its operation.
THEORY:-
A 4x1 multiplexer is a device that can select one of four input signals and transmit it to the
output. The selection is done by two control signals, S0 and S1, which can be either 0 or 1.
The output of the multiplexer depends on the combination of S0 and S1, as shown in the truth
table1.
S0 S1 Y
0 0 A0
0 1 A1
1 0 A2
1 1 A3
This means that the output is equal to A0 when S0 and S1 are both 0, A1 when S0 is 0 and S1
is 1, A2 when S0 is 1 and S1 is 0, and A3 when S0 and S1 are both 1.
The logic expression can be implemented using logic gates, such as AND, OR, and NOT
gates. The circuit diagram for the implementation is shown below:
The circuit consists of four AND gates, one OR gate, and two NOT gates. Each AND gate
have three inputs: one from the data inputs (A0, A1, A2, or A3), and two from the control
inputs (S0, S1, or their complements). The outputs of the AND gates are connected to the
inputs of the OR gate, which produces the final output.
The multiplexer can be used for various purposes, such as data selection, data routing,
parallel-to-serial conversion, function generation, etc. For example, a multiplexer can be used
to implement any Boolean function by assigning the data inputs to different combinations of
0s and 1s. A multiplexer can also be used to construct higher-order multiplexers by using
lower-order multiplexers as building blocks.
DEVICE AND COMPONENTS USED IN THIS EXPERIMENTS:-
Breadboard
power supply
logic gate ICs (7408, 7432, 7404)
LEDs
connecting wires
OBSERVATION: Record the output LED status for each combination of data and select
inputs in a table.
RESULT:-
Verify the results with that of the truth table.
CONCLUSION:-
EXPERIMENT NO:- 6
OBJECTIVE: The objective of this lab experiment is to implement a 4-bit parallel adder
circuit using the 7483 Integrated Circuit (IC). This experiment aims to demonstrate the addition
of two 4-bit binary numbers using hardware components.
THEORY: The 7483 IC is a 4-bit binary full adder which can add two 4-bit binary numbers A
and B along with a carry input (Cin). It performs addition using XOR and AND gates
internally. The IC has four binary inputs (A3, A2, A1, A0), four binary inputs (B3, B2, B1, B0),
a carry input (Cin), four sum outputs (S3, S2, S1, S0), and a carry output (Cout).
COMPONENTS REQUIRED:
2. Breadboard
3. Connecting wires
PROCEDURE:
2. Connect the power supply's positive terminal (+5V) to the Vcc pin (pin 16) of the IC.
3. Connect the ground terminal (GND) of the power supply to the GND pin of the IC.
4. Connect the binary inputs A0, A1, A2, and A3 to any four available pins on the
breadboard.
5. Connect the binary inputs B0, B1, B2, and B3 to any four available pins on the
breadboard.
7. Connect the sum outputs S0, S1, S2, and S3 to LEDs via current-limiting resistors.
9. Set the input switches for A and B to represent the desired 4-bit binary numbers to be
added.
11. Observe the output LEDs to note down the sum of the binary numbers and the carry out.
OBSERVATIONS:
3. Observe and record the output binary sum (S0, S1, S2, S3) and carry out (Cout).
RESULTS AND DISCUSSION: Compare the obtained results with the expected results based
on binary addition rules. Analyze any discrepancies if present. Ensure the connections are
correct and there are no loose connections or shorts.
CONCLUSION:
EXPERIMENT NO: - 7
OBJECTIVES: -
THEORY: - A synchronous counter is a type of digital circuit that uses a clock signal to
synchronize the state changes of its flip flops. In a 4-bit synchronous counter, four J-K flip
flops are connected in a cascade configuration, with the output of each flip flop connected to
the clock input of the next flip flop. The clock signal is applied to the clock input of the first
flip flop, and the output of each flip flop represents a single bit of the counter. The counter
can count from 0000 to 1111, and the output of the counter can be used for frequency
division.
CIRCUIT DIAGRAM: -
PREPARED BY: DWAIPAYAN GHOSH (ASSISTANT PROFESSOR OF ECE)
KALYANI GOVERNMENT ENGINEERING COLLEGE
RESULTS/EXPERIMENTAL OBSERVATIONS: -
OUTPUT
Q3 Q2 Q1 Q0
Clock
LOGIC LED LOGIC LED OGIC LED LOGIC LED
STATE STATUS STATE STATUS STATE STATUS STATE STATUS
CONCLUSION: -
EXPERIMENT NO: 8
TITLE:- Design and Verify the 4-Bit Asynchronous Counter
OBJECTIVES:-
THEORY:-
An asynchronous counter is a digital circuit that counts the number of clock pulses applied to
its input. It is also known as a ripple counter because the output of each flip-flop ripples through
to the next flip-flop. In this lab, we will design and implement a 4-bit asynchronous counter
using J-K flip-flops. The circuit will count from 0 to 15 and then repeat.
CLOCK Q3 Q2 Q1 Q0
1 0 0 0 0
2 0 0 0 1
3 0 0 1 0
4 0 0 1 1
5 0 1 0 0
6 0 1 0 1
7 0 1 1 0
8 0 1 1 1
9 1 0 0 0
10 1 0 0 1
11 1 0 1 0
12 1 0 1 1
13 1 1 0 0
14 1 1 0 1
15 1 1 1 0
16 1 1 1 1
CIRCUIT DIAGRAM:-
CONCLUSION:-
EXPERIMENT NO: 9
TITLE: Simulation of MOS Inverter with Different Loads Using PSPICE Software
3. Resistors
4. Power supply
CIRCUIT DIAGRAM: The circuit diagram for the MOS inverter with a load resistor is as
follows:
PROCEDURE:
1. Launch PSPICE Software: Turn on the computer and launch the PSPICE software.
2. Create New Project: Start a new project in PSPICE and name it appropriately.
Using the schematic editor in PSPICE, design the MOS inverter circuit as per
the provided circuit diagram.
Choose different values for the load resistor (R) to simulate various
load conditions.
7. Analyze Results:
Observe the voltage transfer characteristic curve for different load resistor
values.
Note any changes in the output voltage (Vo) concerning the input voltage
(VDD) under various load conditions.
Interpret the results and discuss the impact of load resistance on the
performance of the MOS inverter.
Safety Precautions:
Ensure that the circuit connections are correct to prevent any short circuits or damage
to the components.
CONCLUSION:
EXPERIMENT NO: 10
1. Computer with a suitable circuit simulator software installed (e.g., LTspice, Cadence
Virtuoso, etc.)
3. Resistors
4. Power supply
CIRCUIT DIAGRAM: The circuit diagram for the CMOS inverter is as follows:
PROCEDURE:
1. Launch Circuit Simulator Software: Turn on the computer and launch the circuit
simulator software installed on your system.
2. Create New Project: Start a new project in the circuit simulator software and name it
appropriately.
Place NMOS and PMOS transistors, load resistors (R), a voltage source
(VDD), an input signal source, and ground (GND) components onto the
workspace.
Specify the transconductance values (Kn and Kp) for the NMOS and PMOS
transistors respectively.
Specify the input voltage (Vin), supply voltage (VDD), and ground (GND)
potentials.
Run the simulation in the circuit simulator software to obtain the output
characteristics of the CMOS inverter.
7. Analyze Results:
Note any changes in the switching behavior, propagation delay, and noise
margin with varying parameter values.
Interpret the results and discuss the impact of transconductance values on the
performance of the CMOS inverter.
Safety Precautions:
Ensure that the circuit connections are correct to prevent any short circuits or damage
to the components.
CONCLUSION:
EXPERIMENT NO: 11
OBJECTIVE: The objective of this experiment is to design a 4-bit multiplexer using VHDL
(VHSIC Hardware Description Language). The multiplexer will select one of the four input
data streams based on the select lines and output it as a single stream. This experiment aims
to provide hands-on experience in designing digital circuits using VHDL and understanding
the concept of multiplexers.
1. Computer with VHDL simulation and synthesis tools (e.g., Xilinx ISE, Vivado,
ModelSim, etc.)
PROCEDURE:
2. Circuit Design:
Design the 4-bit multiplexer circuit using VHDL. The multiplexer should have four
data input lines (D0-D3), two select lines (S0, S1), and a single output line (Y).
Determine the logic expression for the output (Y) based on the select lines (S0, S1)
and input data lines (D0-D3).
3. VHDL Coding:
Write the VHDL code for the 4-bit multiplexer based on the design specifications.
Implement the logic for selecting the appropriate input data based on the select lines.
4. Simulation:
Create testbench files to provide input stimuli and verify the functionality of the
multiplexer.
Run the simulation and observe the output waveform to ensure that the multiplexer
operates correctly under different input conditions.
5. Synthesis:
Use synthesis tools provided by the FPGA vendor (e.g., Xilinx Vivado, Intel Quartus
Prime) to synthesize the VHDL code and generate the appropriate output files.
If access to FPGA hardware is available, program the synthesized design onto the
FPGA board.
Verify the functionality of the multiplexer on the FPGA by providing input signals
and observing the output.
Document the VHDL code for the 4-bit multiplexer, including the entity declaration,
architecture, and any necessary comments.
Discuss any challenges faced during the design and implementation process, along
with solutions and recommendations for improvement.
Safety Precautions:
Ensure proper ventilation and temperature control for the FPGA hardware if
implemented on hardware.
Follow all safety guidelines provided by the FPGA manufacturer and laboratory
supervisor.
CONCLUSION:
EXPERIMENT NO: 12
OBJECTIVE: The objective of this experiment is to design a decade counter using either
VHDL (VHSIC Hardware Description Language) or Verilog. A decade counter is a digital
circuit that counts sequentially from 0 to 9 and then resets to 0, producing a 4-bit output
representing the current count. This experiment aims to provide hands-on experience in
designing sequential circuits and programming in VHDL/Verilog.
1. Computer with VHDL/Verilog synthesis and simulation tools (e.g., Xilinx Vivado,
Intel Quartus Prime, ModelSim, etc.)
PROCEDURE:
Familiarize yourself with the concept of a decade counter. A decade counter is a type
of asynchronous counter that counts sequentially from 0 to 9 and then resets to 0,
producing a 4-bit output representing the current count.
2. Circuit Design:
Design the decade counter circuit using VHDL or Verilog. The decade counter should
have a clock input (CLK) and a reset input (RESET), and it should produce a 4-bit
output representing the current count (Q3-Q0).
Determine the logic for incrementing the count and resetting the counter when it
reaches 9.
3. VHDL/Verilog Coding:
Write the VHDL/Verilog code for the decade counter based on the design
specifications.
Implement the logic for incrementing the count and resetting the counter.
4. Simulation:
Create testbench files to provide clock pulses and verify the functionality of the
decade counter.
Run the simulation and observe the output waveform to ensure that the counter
operates correctly, counting from 0 to 9 and then resetting to 0.
5. Synthesis (Optional):
If desired, proceed to synthesis to generate the hardware description file (e.g., .bit,
.bitstream) for implementation on FPGA (Field-Programmable Gate Array) devices.
Use synthesis tools provided by the FPGA vendor (e.g., Xilinx Vivado, Intel Quartus
Prime) to synthesize the VHDL/Verilog code and generate the appropriate output
files.
If access to FPGA hardware is available, program the synthesized design onto the
FPGA board.
Verify the functionality of the decade counter on the FPGA by providing clock pulses
and observing the output.
Document the VHDL/Verilog code for the decade counter, including the entity
declaration, architecture, and any necessary comments.
Discuss any challenges faced during the design and implementation process, along
with solutions and recommendations for improvement.
Safety Precautions:
Ensure proper ventilation and temperature control for the FPGA hardware if
implemented on hardware.
Follow all safety guidelines provided by the FPGA manufacturer and laboratory
supervisor.
CONCLUSION:
TITLE: Design of a 3-input NAND Gate and Simulation Using Logic Simulator
OBJECTIVE: The objective of this experiment is to design a 3-input NAND gate and
simulate its behavior using a suitable logic simulator. A NAND gate is a fundamental digital
logic gate that produces an output logic low (0) only when all of its input signals are logic
high (1). This experiment aims to provide hands-on experience in designing combinational
logic circuits and simulating their behavior using a logic simulator.
1. Computer with a suitable logic simulator software installed (e.g., Logisim, Proteus,
Digital Works, etc.)
PROCEDURE:
Familiarize yourself with the truth table and logic symbol of a 3-input NAND gate.
Understand its behavior, where the output is low only when all of its inputs are high.
2. Circuit Design:
Design the circuit for a 3-input NAND gate using AND gates and a NOT gate. Use
the De Morgan's theorem to express the NAND function as a combination of AND
and NOT operations.
Determine the logic expression for the output of the NAND gate based on its three
input signals.
4. Circuit Implementation:
Implement the designed 3-input NAND gate circuit using the logic simulator.
Place AND gate components and a NOT gate component onto the workspace.
Connect these components according to the circuit diagram of the 3-input NAND
gate.
Configure the input switches to generate all possible input combinations for a 3-input
NAND gate (000, 001, 010, 011, 100, 101, 110, 111).
6. Simulation:
Run the simulation in the logic simulator to observe the behavior of the 3-input
NAND gate.
Verify that the output of the NAND gate corresponds to the truth table of a 3-input
NAND gate.
Test different input combinations to ensure that the NAND gate operates correctly
under all scenarios.
Record the simulation results, including the output waveform and truth table for the 3-
input NAND gate.
Analyze the behavior of the NAND gate and verify that it functions as expected
according to its truth table.
Document the circuit design for the 3-input NAND gate, including the logic
expression and circuit diagram.
Discuss any discrepancies between the expected behavior and simulation results,
along with possible explanations and solutions.
Safety Precautions:
Ensure proper ventilation and temperature control for the electronic components.
Follow all safety guidelines provided by the logic simulator software and laboratory
supervisor.
CONCLUSION: