Final Manual
Final Manual
Mandal’s
Deogiri Institute of Engineering and Management Studies, Chhatrapati
Sambhajinagar
Approved by AICTE, Recognized by Govt. of Maharashtra and Affiliated to Dr. B. A. T. University Lonere
(M.S.)
Accredited 'A' Grade by NAAC and NBA
Digital Electronics
Laboratory Manual
BTETL306
Prepared By
Prof. S. A. Karmude
Assistant Professor
Department of Electronics and Telecommunication Engineering
Deogiri Institute of Engineering and Management Studies, Chhatrapati
Sambhajinagar
DEPARTMENT OF ELECTRONICS AND TELECOMMUNICATION ENGINEERING
PSO1: Apply knowledge to use modern tools and techniques for Electronics and
Telecommunication Engineering
PSO2: Identify, Design, and Test Analog, Digital Communication Systems and
Signal Processing using software and hardware tools.
PSO3: Design and develop computing systems while using best practices for
software and hardware implementations.
PSO4: Create social and professional skills awareness for lifelong learning.
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
Lab Overview
Lab Objectives
• The student, after successful completion of the course, will be able to Analyze basics of gates, to construct
combinational and sequencial circuits.
Prerequisites
• Basic Electrical & Electronics Engineering practices Lab
Base Course
• Digital electronics
Resources Required
• Breadboard, Digital IC’s.
• Xilinx software or edaplayground.com online simulator for VHDL code.
Reference Material
• R.P. Jain, ―Modern digital electronics‖, 3rd edition, 12threprint Tata McGraw Hill
• Publication,2007.
• 2. M. Morris Mano, ―Digital Logic and Computer Design‖ 4th edition, Prentice Hall of
• India,2013.
• 3. Anand Kumar, ―Fundamentals of digital circuits‖ 1st edition, Prentice Hall of India,
• 2001.
• 4. Pedroni V.A., “Digital Circuit Design with VHDL”, Prentice Hall India, 2nd 2001
• Edition.
Page 2
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
PO2 Problem analysis: Identify, formulate, review research literature, and analyze complex
engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
PO3 Design/development of solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate
consideration for the public health and safety, and the cultural, societal, and environmental
considerations
PO4 Design/development of solutions: Design solutions for complex engineering problems and
design system components or processes that meet the specified needs with appropriate
consideration for the public health and safety, and the cultural, societal, and environmental
considerations
PO5 Modern tool usage: Create, select, and apply appropriate techniques, resources, and
modern engineering and IT tools including prediction and modeling to complex
engineering activities with an understanding of the limitations.
PO6 The engineer and society: Apply reasoning informed by the contextual knowledge to
assess societal, health, safety, legal and cultural issues and the consequent responsibilities
relevant to the professional engineering practice.
PO7 Environment and sustainability: Understand the impact of the professional engineering
solutions in societal and environmental contexts, and demonstrate the knowledge of, and
need for sustainable development.
PO8 Ethics: Apply ethical principles and commit to professional ethics and responsibilities and
norms of the engineering practice.
PO9 Individual and team work: Function effectively as an individual, and as a member or
leader in diverse teams, and in multidisciplinary settings.
PO10 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.
PO11 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.
PO12 Life-long learning: Recognize the need for, and have the preparation and ability to engage
in independent and lifelong learning in the broadest context of technological change.
Page 3
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
List of Experiments
Page
Sr. No Title of Experiment No.
Page 4
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
EXPERIMENT NO 1
Aim: To study & perform Logic Gates
Component Required:-
PROCEDURE: -
Place the IC on breadboard.
Make circuit connection as per diagram
Connect Vcc and Ground to respective pins on breadboard
Connect the outputs to the LEDs
Apply all the possible combinations of inputs according to truth table and observe
conditions on LEDs
Theory:
An electronic computer is a system which processes and stores very large amounts of data and
which solves scientific problem of numerical calculations of high complexity with tremendous
speed. The digital computer consists of logic circuits. These logic circuits are tiny electronic
devices, which work according to certain rules in conformity with Boolean or switching algebra.
A building is made from bricks and Mortar. Similarly a digital computer is made from "Logic
Circuits” which are bricks and "connecting wires" which acts as a mortar. These logic
circuits or gates can be interconnected to construct a variety of computer configurations depending
upon the service required. These logic circuits are not only essential for computer operation but they
have practically unlimited field of applications. Logic gates are the basic building blocks in digital
electronics. They are classified as follows.
OR GATE: -
The OR gate has two or more input signals but only one output signal. If any input signal is high,
the output is high.
NOR GATES: -
The NOR gate has two or more input signals but only one output signal. All inputs must be low to
get a high output. In other words, the NOR gate recognizes only the input word whose bits are all
zeros. NOR gate are OR gates followed by an NOT gate (inverter).
NAND GATE: -
The NAND gate has two or more input signals but only one output signal. All input signal must be
high to get a low output. It is an AND gate followed by an NOT gate (inverter). Therefore final
output is NOT - AND gate. The circuit is now referred to as NAND gate. If one or more inputs are
low the result of the anding is low; therefore, the final inverted output is high.
EX-OR GATES: -
An OR gate recognizes words with one or more 1s. The Exclusive OR gate is different. It
recognizes only words that have an odd number of 1s. For two input EX-OR gate, the output is high
when one or the other input is high but not both. This is why the circuit is known as an Exclusive
OR gate. In other words, the output is 1 only when the inputs are different.
Page 5
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
NOTE: -
1] LED ON indicates LOGIC 1 while LED OFF indicates LOGIC 0.
2] Circuit uses a TTL IC and hence any input if left open will assume a high logic level input and
only when shorted with ground will assume a low logic level input.
Conclusion:
EXPERIMENT NO 2
Page 6
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
PROCEDURE: -
Place the IC on breadboard.
Make circuit connection as per diagram
Connect Vcc and Ground to respective pins on breadboard
Connect the outputs to the LEDs
Apply all the possible combinations of inputs according to truth table and observe
conditions on LEDs
Theory:
If we assume A and B as the two bits whose addition is to be performed, a truth table for half adder
with A, B as inputs and Sum, Carry as outputs can be tabulated as follows.
The sum output of the binary addition carried out above is similar to that of an Ex-OR operation
while the carry output is similar to that of an AND operation. The same can be verified with help of
Karnaugh Map.
Page 7
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
The truth table and K Map simplification for sum output is shown below.
The truth table and K Map simplification for carry is shown below.
Page 8
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
Carry = AB
If A and B are binary inputs to the half adder, then the logic function to calculate sum S is Ex – OR
of A and B and logic function to calculate carry C is AND of A and B. Combining these two, the
logical circuit to implement the combinational circuit of half adder is shown below.
As we know that NAND and NOR are called universal gates as any logic system can be
implemented using these two, the half adder circuit can also be implemented using them. We know
that a half adder circuit has one Ex – OR gate and one AND gate.
Five NAND gates are required in order to design a half adder. The circuit to realize half adder using
NAND gates is shown below.
Page 9
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
Five NOR gates are required in order to design a half adder. The circuit to realize half adder using
NOR gates is shown below.
2)Full Adder
Full adder is a digital circuit used to calculate the sum of three binary bits which is the main
difference between full adder and half adder. Full adders are complex and difficult to implement
when compared to half adders. Two of the three bits are same as before which are A, the augend bit
and B, the addend bit. The additional third bit is carry bit from the previous stage and is called
'Carry' – in generally represented by CIN. It calculates the sum of three bits along with the carry.
Page 10
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
The block diagram of a full adder with A, B and CIN as inputs and S, COUT as outputs is shown
below.
Based on the truth table, the Boolean functions for Sum (S) and Carry – out (COUT) can be derived using K
– Map.
Page 11
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
Conclusion:
Page 12
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
EXPERIMENT NO 3
PROCEDURE: -
Place the IC on breadboard.
Make circuit connection as per diagram
Connect Vcc and Ground to respective pins on breadboard
Connect the outputs to the LEDs
Apply all the possible combinations of inputs according to truth table and observe
conditions on LEDs
Theory:
1) Half Subtractor
The half-subtractor is a combinational circuit which is used to perform subtraction of two bits. It has
two inputs, X (minuend) and Y (subtrahend) and two outputs D (difference) and B (borrow). The
logic symbol and truth table are shown below.
Page 13
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
From the above truth table we can find the boolean expression.
D=X⊕Y
B = X' Y
From the equation we can draw the half-subtractor circuit as shown in the figure 3.
2) Full Subtractor
A full subtractor is a combinational circuit that performs subtraction involving three bits, namely
minuend, subtrahend, and borrow-in . It accepts three inputs: minuend, subtrahend and a borrow bit
and it produces two outputs: difference and borrow. The logic symbol and truth table are shown
below.
From the above truth table we can find the boolean expression.
D = A ⊕ B ⊕ Bin
B = A' Bin + A' B + B Bin
From the equation we can draw the Full-subtractor circuit as shown in the figure 6.
Page 15
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
EXPERIMENT NO 4
Aim: To study & perform binary to gray and gray to binary code conversion
PROCEDURE: -
Place the IC on breadboard.
Make circuit connection as per diagram
Connect Vcc and Ground to respective pins on breadboard
Connect the outputs to the LEDs
Apply all the possible combinations of inputs according to truth table and observe
conditions on LEDs
Theory:
Binary Numbers is default way to store numbers, but in many applications binary numbers are
difficult to use and a variation of binary numbers is needed. This is where Gray codes are very
useful.
Gray code has property that two successive numbers differ in only one bit because of this property
gray code does the cycling through various states with minimal effort and used in K-maps, error
correction, communication etc.
In computer science many a times we need to convert binary code to gray code and vice versa. This
conversion can be done by applying following rules :
1. The Most Significant Bit (MSB) of the gray code is always equal to the MSB of the given
binary code.
2. Other bits of the output gray code can be obtained by Ex-ORing binary code bit at that index
and previous index.
There are four inputs and four outputs. The input variable are defined as B3, B2, B1, B0 and
the output variables are defined as G3, G2, G1, G0. From the truth table, combinational
circuit is designed.The logical expressions are defined as :
B3 = G3
B2 ⊕ B3 = G2
B1 ⊕ B2 = G1
B0 ⊕ B1 = G0
Page 16
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
1.The Most Significant Bit (MSB) of the binary code is always equal to the MSB of the given
binary number.
2.Other bits of the output binary code can be obtained by checking gray code bit at that index. If
current gray code bit is 0, then copy previous binary code bit, else copy invert of previous binary
code bit.
There are four inputs and four outputs. The input variable are defined as G3, G2, G1, G0 and the
output variables are defined as B3, B2, B1, B0. From the truth table, combinational circuit is
designed.The logical expressions are defined as :
G0 ⊕ G1 ⊕ G2 ⊕ G3 = B0
G1 ⊕ G2 ⊕ G3 = B1
Page 17
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
G2 ⊕ G3 = B2
G3 = B3
Page 18
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
EXPERIMENT NO 5
PROCEDURE: -
Place the IC on breadboard.
Make circuit connection as per diagram
Connect Vcc and Ground to respective pins on breadboard
Connect the outputs to the LEDs
Apply all the possible combinations of inputs according to truth table and observe
conditions on LEDs
Theory:
The function of a multiplexer is to select the input of any ‘n’ input lines and feed that to one output
line. The function of a de-multiplexer is to inverse the function of the multiplexer and the shortcut
forms of the multiplexer. The de-multiplexers are mux and demux. Some multiplexers perform both
multiplexing and de-multiplexing operations.
1) Multiplexer
Multiplexer is a device that has multiple inputs and a single line output. The select lines determine
which input is connected to the output, and also to increase the amount of data that can be sent over
a network within certain time. It is also called a data selector.
4x1 Multiplexer has four data inputs I3, I2, I1 & I0, two selection lines S1 & S0 and one output Y.
The block diagram of 4x1 Multiplexer is shown in the following figure.One of these 4 inputs will be
connected to the output based on the combination of inputs present at these two selection lines.
Truth table of 4x1 Multiplexer is shown below.
Page 19
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
Conclusion:
Page 20
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
EXPERIMENT NO 6
PROCEDURE: -
Place the IC on breadboard.
Make circuit connection as per diagram
Connect Vcc and Ground to respective pins on breadboard
Connect the outputs to the LEDs
Apply all the possible combinations of inputs according to truth table and observe
conditions on LEDs
Theory:
De-multiplexer
De-multiplexer is also a device with one input and multiple output lines. It is used to send a signal
to one of the many devices. The main difference between a multiplexer and a de-multiplexer is that
a multiplexer takes two or more signals and encodes them on a wire, whereas a de-multiplexer does
reverse to what the multiplexer does.
1x4 De-Multiplexer has one input I, two selection lines, S1 & S0 and four outputs Y3, Y2, Y1 &
Y0. The block diagram of 1x4 De-Multiplexer is shown in the following figure.
Page 21
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
Conclusion:
Page 22
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
EXPERIMENT NO 7
PROCEDURE: -
Place the IC on breadboard.
Make circuit connection as per diagram
Connect Vcc and Ground to respective pins on breadboard
Connect the outputs to the LEDs
Apply all the possible combinations of inputs according to truth table and observe
conditions on LEDs
Theory:
A flip flop is an electronic circuit with two stable states that can be used to store binary data. The
stored data can be changed by applying varying inputs. Flip-flops and latches are fundamental
building blocks of digital electronics systems used in computers, communications, and many other
types of systems.
Page 23
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
2) D flip flop
A D flip flop has a single data input. This type of flip flop is obtained from the SR flip flop by
connecting the R input through an inverter, and the S input is connected directly to data input. The
modified clocked SR flip-flop is known as D-flip-flop and is shown below. 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.
Page 24
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
In a RS flip-flop the input R=S=1 leads to an indeterminate output. The RS flip-flop circuit may be
re-joined if both inputs are 1 than also the outputs are complement of each other as shown in
characteristics table below.
Page 25
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
4) T flip flop
T flip-flop is known as toggle flip-flop. The T flip-flop is modification of the J-K flip-flop. Both the
JK inputs of the JK flip – flop are held at logic 1 and the clock signal continuous to change as
shown in table below.
Page 26
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
Conclusion:
EXPERIMENT NO 8
Page 27
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
entity or_gate is
port(
a: in std_logic;
b: in std_logic;
q: out std_logic);
end or_gate;
entity halfadd is
port ( a,b : in bit;
sum, carry : out bit);
end halfadd;
architecture equation of halfadd is
begin
sum <= ((not a)and b)or(a and(not b));
carry <= a and b;
end equation;
entity fulladd is
port ( a, b, c : in bit;
sum, carry : out bit);
end fulladd;
architecture equation of fulladd is
begin
sum<=(((not a)and(not b)and c)or((not a)and b and(not c))or(a and(not b)and(not c))or(a and b and
c));
carry<=(a and b)or(b and c)or(a and c);
end equation;
Page 28
Lab Manual / Semester 3th
Electronics and Telecommunication Engineering Department, DIEMS, Chh. Sambhajinagar
entity fullsub is
port ( a, b, c : in bit;
diff, borrow : out bit);
end fullsub;
diff <= (((not a)and(not b)and c)or((not a)and b and(not c))or(a and(not b)and(not c))or(a and b and
c));
borrow <= ((not a) and b)or(b and c)or((not a) and c);
end equation;
Conclusion:
Page 29