Professional Documents
Culture Documents
List of Experiments
ITM Gwalior
Experiment No. # 1 The 5V supply MUST NOT BE EXCEEDED since this will damage the ICs (Integrated circuits)
the experiments. Incorrect connection of power to the ICs could result in them
used during
Title: Study of basic components and ICs used in digital electronics lab. the people
exploding or becoming very hot with the possible serious injury occurring to
and all components
Objective: The objective of this lab exercise is to study of basic electronic components i.e. working on the experiment! Ensure that the power supply polarity
bread board, multi-meter, power supply and various digital ICs. and connections are correct before switching on power.
will build your circuits on the terminal strips by inserting the leads of circuit components breadboard.
plece of hook-up wire between
into the contact receptacles and making connections with 22-26 gauge wire. There are wire 6. Select a connection on your schematic and place a is better to make the short
cutter/strippers and a spool of wire in the lab. It is a good practice to wire +5V and OV corresponding pins of the chips on your breadboard. It
connections before the longer ones. Mark each connection on your schematic as you
power supply connections to separate bus strip5
later stage.
go, so as not to try to make the same connection again at a
7. Get one of your group members to check the connections, before you turn the power
S on.
8. If an error is made and is not spotted before you turn the power on. Turn the power off
Somesh Kumar)
Department of Electronics and communication Engineering
(Dr.
Department of Electronics and communication Engineering (Dr. Somesh Kumar)
Digital Electronics Lab Manual ABV-IlITM Gwalior Digital Electronics Lab Manual ABV-IIUTM Gwalior
you damage a chip, inform a
demonstrator, don't put it back in the box of chips for ALVT- Low-voltage -2.5-3.3 V, 5 V tolerant inputs, high current s 64 mA, TPD <3 ns at
somebody else to use.
2.5 V.
Same LVX
technology as 74AS but with the
Low-voltage-3.3Vwith 5 Vtoterant inputs.
speed/power tradeoff of the 74LS.
VHCVery-high-speed CMoS-74S performance in CMOS
technologY and power.
74F- Fast.
CMOS based ICs
Many parts in the CMOS HC, AC, and FC families are also offered in "T" versions
C-CMOS 4-15 V operation. and FCT) which have
(HCT, ACT,
input thresholds that are compatible with both TL and 3.3 V CMOS
signals. The non-T parts have conventional CMOS input thresholds.
HC-High-speed CMOs, similar performance to 74LS.1
NOT Gate (7404)
HCT-High speed, compatible logic levels to bipolar parts.
AC-Advanced CMOSperformance generallybetween74S and 74F
ACT-Advanced CMOS, performance generally between 74S and 74F. Compatible logic
levels to bipolar parts. o r
ACQ Advanced CMOS with Quiet
outputs.
AHC Advanced high-speed
input.
CMOS, three times as
L
IC7408 (AND Gate)
IC7402 (NOR Gate)
IC 7402
AND
7403 Quad 2 Input
IC 7486
ww.o
PL
7411 Triple 3 Input AND
Procedure: The truth table and output Boolean functions for the basic gates are given
1.
8ates using switches, diodes and BJTs explained Fig.
is in
below. Implementation of these AND gate using switchs OR gate uslng switchea
circuits on breadboard. For standard imputes
Using the given information, implement the
and verify the truth tables for these logic
(A & B), obtain the corresponding output (Y) sIA
3v
gates.
for two input AND gate are
(a) AND Gate: The truth table and output expression a
given below:
Function
LogicSymbol 1- 7S11TruthTable
AND
TTTTM GWalOT
Y=A.B
(b) OR Gate: The truth table and output expression for a two input OR gate are given
below:
AND gate nsing diocdes
NOT gato using a switch
VDD« VV
3V Ra 1kn
**** R : 1kf
A (nput 01
A
Input D2
B
ED
VOD-3V
InputR 1k D1
1k
Input Re 1 02
BoW
LED
lnput Ra1k
LEQ
A PH
Result: At the end of this lab exercise, one should be able to perform logic operations using
switches, diodes and transistors and verify their respective truth tables.
1. Can we implement NOT gate using the diodes. If not give reasons.
ww
2. How would you implement AND and OR logic gates úsinig-8)Ts?
Reference: M. Morris Mano, "Digital Logic and Computer Design", Pearson Prentice Hall,
2008.
IITM Gwalior
Experiment No. # 3
Title: Study of universal gates and implementation of Boolean functions using NAND and Procedure: The logic circuits for gates using NAND and NOR gates in tables 2 and3
NOR gates. respectively. Implement these circuits using the respective ICs (TTL IC 74LSOO for NAND and
TTL IC 74LSO2 for NOR). Using this information, implement the circuits and obtain the
Objective: The objective of this lab exercise is to verify whether NAND and NOR can be
corresponding outputs for different combinations of inputs. Also verify the truth tables for
Used to implement any Boolean function. Here we will implement the basic as well as
the circuits.
parity logic gates using the universal gates and verify their respective truth tables.
Components and equipment: TTL ICs 74LS00, 74LSO2, LEDS, power supply and standard Function Logic Symbol Circuit
experimental setup.
Introduction: The NAND and NOR gates
circuit
NOR
can be implemented with it.
gates.
Table 1 gives the symbols and truth tables for the NAND and NOR
gates.
SymboB Truth Table
AND
input Output
3
Y YA B
Y=A-B 1 1
-Y A Y
OR B
B-
A- Input Output
A
B IITM ar
A -
Y=A+B Y B
0 EXOR B
1
Y = A B =
Aß+
Table 1: Logic symbols and truth tables for NAND and NOR
gates
EXOR
Y
EXNOR
Y =
AB = AB +AB
DDO Y= AB = AB + AAB
D
Y =A® B AB+AB
NOT
A- - Y
YA
Table 3: Circuits for logic gates using NOR
Result: At the end of this lab exercise, one should be able to implement all the logic gates
A- using the NAND and NOR gates.
AND
B B-
Post lab design questions:
1. How can we implement the half/full adder and subtractor circuits using universal
Y = A B
gates?
2. Can, we implemient any Boolean exprèsslon iusing onlythe universal gates? If yes,
try to implement the few expressions.
Reference: M. Morris Mano, "Digital Logic and Computer Design", Pearson Prentice Hall,
DD|
2008.
T M GWallo
OR
Y=A +B
Department of Electronics and communication Engincering (or. Somesh Kuimar) 14 Department of Electronics and communication Engineering (or.Somash Kumar) 15
Digital Electronics Lab Manual ABV-IIITM Gwalior
Digital Electronics Lab Manual ABV-IUTM Gwalior
Experiment No. # 4 Inputs Outputs
Cin Cor
Title: implementation of 1-bit Full Adder/Subtractor using logic gates. O
Objective: The objective of this lab exercise is to perform addition and subtraction of
binary digits using combinational circuits. In this lab exercise we will design and implement 1 0
Adder and Subtractor circuits for 2/3-bit arithmetic operation.
Components and equipment: TTL ICs 74LS08, 74LS32, 74LS86, 74LS04, LEDs, power supply
and standard experimental setup
Introduction: The basic arithmetic operations performed by the computer are addition of
n-bit numbers. A combinational circuit that performs the addition of two bits is called a half
adder. The higher significant bit produced after the addition of any two digits is called a Half Subtractor: The truth table and the Boolean functions for the outputs
C.
carry. When the numbers contain mare sienificant digits, the carry obtained from the
addition of two bits is added to the ext higher order pair of significant bits. A
Difference (D) and Borrow (B) aregivenbelow:
combinational circuit that performs the addition of three bits (two significant bits and a
previous carry) is a full adder. Likewise, a combinational circuit that performs subtraction
Inputs Outputs
B D
of two bits is called as half-subtractor. While performing the subtraction operation, if the D AB+ = A ®B
minuend bit is smaller than the subtrahend bit 1 is borrowed from the next significant
B AB
position. A combinational circuit which performs the subtraction of two bits, taking into
account the borrow of the pervious stage, is called as full-subtractor
Procedure: The truth tables and Simplified Booleanfunctions for adder and subtractor
circuits are given below. Implementation of these circuits using logic gates is explained in D. Full Subtractor: The truth table and the Boolean functions for the outputs
Fig. 1. Using this information, implement the circuits. For given combination of inputs, Difference (D) and Borrow (BoUT) are given below:
obtain the corresponding outputs and verify the truth tables for the circuits.
A. Half Adder: The truth table and the Boolean functions for the outputs Sum (S) and Inputs Outputs
Carry (C) are given below: B Bin Bo D + B En +A B Bn +A B Bin
0 AB
=
Bin
Inputs Outputs S Bo AB Bn + En + Bin + AB Bin
S = AB + A =A 9 B = AB+ (A B)Bin
CAB
Vwalior
Full Adder: The truth table and the Boolean functions for
the outputs Sum (S) and
Carry (CouT) are given
below
S =AB Cin + BCn t+ ABCn +AB Cin A DB
ARC AR RG
below:
SAB Cn +ABCn tABCn +ABCn =A9B
Cout AB Cin +A B CGn t ABCn +A BCin = AB
Full Adder
Half Adder
D
D
Cout
Cin
Full Subtractor
Half Subtractor
D
U
Somesh Kumar)
18
communication Eng1neering (Dr.
Department of Electronics and
Digital Electronics Lab
Manual ABV-IIITM Gwalior
Digital Electronics Lab Manual ABV-IITM Gwalior
Experiment No. # 5
Title: Implementation of 2-bit binary ripple adder using logic eates. HALF-ADDER FULL-ADDER
combinations of inputs A and B is shown in table 1. Using this information, implement the
circuit. For the two 2-bit inputs AA1, and B,B1 obtain the 3-bit final output Cou: S:S: 1
O 0
A B2 As 1
FA
|Cin? Coutl
HA 0
Cout?
Table 1: Truth table for 2-bit ripple adder
Figure 1: Block diagram for 2-bit binary ripple adder
Resut: At the end ofthis lab exercise, one shoud be able to perform addition of any wO
Reference: M. Morris Mano, "Digital Logic and Computer Design", Pearson Prentice Hall,
2008.
Digital Electronics Lab Manual ABV-IIITM Gwalior Digital Electronics Lab Manual ABV-IIITM Gwalior
Experiment No. # 6
Title: Implementation of 2x2 bit binary multiplier using logic gates.
B2
Objective: The objective of this lab exercise is to perform multiplication of two 2-bit
numbers. The 2-bit multiplier is to be designed using the AND gates and half adders.
Components and equipment: TTL ICs 74LSO8, 74LS86, LEDs, power supply and standard
experimental setup.
ntroduction: A binary multiplier is used for the multiplication of two binary numbers. The
multiplication of binary numbers is performed in the same way as in decimal numbers. The
HA1
multiplicand is multiplied by each bit of the mutiplier starting from the least significant bit. HA2
Each such mutiplication forms a partial product, successive partial products are shifted one
position to the left. The final product is obtained from the sum of the partial products.
Consider the multiplication of two 2-bit numbers A (multiplicand) and B (multiplier) as
shown in Figure 1. The multiplicand bits are Az and A, the multiplier bits are B2 and B1 and
the product is PaPaP2Pi. Initialy, Bi is multiplied with
As and
Az, generating the partial
product AB: and AzB1. Then Bz is multiplied with As and Az and generates partial product
A:B2 and AzB2 which are shifted by one bit to the left. Then sum of these partial products Figure 1:Block diagram for 2*2 bitbinary multiplier
produces the result of multiplication.
Az A1
B2 B1 P
HALADDER 1
Az B1 A1 B1
P2
Bz
2 Bz A Bz
Pa Par Pa
a Bure 1: 2-bitmultiplication
Procedure: The patial products are implemented with AND gates and the sum is
A and B is
inputs in given table 1. Using this information, implement
the circuit and obtain the 4-bit
multiplication output PaPaPzP1. HALFADDER 2
Az Ai B2 B1 Pa
P Pa P2 P1
0 0
0 0 1 0 0
0 1 0 0
0 1 0 0
0 0
1 1
0 1
1 0 0
0 1 0
0 1 0.
1 0
wwwww
0
0
01 1
TMGwalior
Experiment No. # 7
Title: Design and Implementation of gray to binary and binary to gray code converters. 1
Objective: The objective of this iab exercise is to design code converters to convert 4-bit
1
binary numbers to 4-bit gray code and vice-versa.
Components and equipment: TTL IC 74LS86, LEDS, power supply and standard
experimental setup.
Introduction: Code convertors are logic circuits whose inputs are bit patterns of one code
and output patterns are representations in a different code. The binary-to-gray code
convertor has binary inputs and it 1
outputs the corresponding
gray code words. The Gray
code is a cyclic code, in which successivecode words differ in one bit position. Hence, it is a
unit distancenumber
code. Another property
of graycode is that the code word corresponding to
(20- 1) for any differsfrom the code word for 0 by 1-bit position. It is
the decimal n
also a reflective code, as the n least significant bits of 2" through (2n1-1) are mirror images
of those for 0 through (2-1). The reason for the popularity of gray codes is the ease of
conversion to and from binary, due to the unit distance difference property.
Procedure: The logic diagram for 4-bit binary-to-gray convertor is shown in
figure 1. The
truth table for various combinations of binary input bits BaBaB2B1 and Table 1: Truth table for 4-bit Binary to Gray code convertor
correspondin8 gray
code bits G4G3G261 is shown in table 1. Using this
information, implement the circuit. The
same table is to be used to implement the 4-bit gray-to-binary convertor shown in figure 2.
G4 B4
B4 G4
B3
G3
G3
B3
B2
G2
G2
B2
G1
ior G1
B1
B1
B4B B
Output
B G G3 G2 G1 Post lab desjgn questions
put u n D e t o us 4-DIt
gray COde ntatic
represent
B4 Ba B2 B1 G4 G3 G2 G1 Post lab design questions:
1. Can we further extend this lab exercise to implement BCD to bit XS-3 code?
2. How can we design a parity bit generator using XOR gates?
favaftaHTH sTHH
ITM Gwalior
Experiment No. # 8 Do
Components and equipment: TTL ICs 74LS153, 74LS151, LEDs, power supply and standard
experimental setup.
Introduction: Multiplexer (MUX) is a logic circuit that accepts several data inputs and
allows only one of them to get to the outout in other words, the MUX selects 1-out-of-N
data inputs and transmits the selected data to the single output channel. The digital code
applied to the SELECT inputs decides gets routed to the output. The logic
which input
circuit for basic 4:1 MUX is shown in figure 1 - thas four data inputs namely, Do, Di, Dz, Da
and two select inputs So and S1. The input combination at the select input determines
The Figure 1: togic diagram.tor41MUX
which AND gate gets enabled, so that its data input passes through the OR gate.
function table (shown in table 1) can be used toderive the expression for the output Z as,
is shown in table 2.
ZSSDo +SSoD +S,SoD +S19oDa Procedure: The truth tables for the adder and subtractor circuit
the function equal to 1.
Connect logic 1 to thedata inputs for which the truth table shows
Select inputs Output
Connect 0 to rest of the inputs. For example, the input of the half adder is equal to 1,
sum
Z to D1 will get
for the input combination 01. So, when SSo 01, the data input connected half-adder
Do selected. Thus, 1 will be routed to the output. Hence
connect Dito 1.
Implement
two 8:1
Di
and h -subtractor using 4:1 MUX and full-adder and full-subtractor by connecting
D3 and observe the output at the output pin.
MUX ICs. Connect the inputs to the select lines
D4
Di MUX
MUX
Logic
Logtc O
Half-subtractor
Half-adder
Rnllsuhtrartor
Full-adder Full-subtractor
Inputs Outputs Inputs Outputs
OEIC
S Cout A B Bin Bo
Loie 3 Cin
0 0 0 0
D
1
8:1 D 0
MUX MUX
0
Do
1
L
MUX MUX
Result: We have implemented the adder and subtractor circults using the multiplexer.
Full-adder Reference: A. Anand Kumar, "Fundamentals of Digital Circuits", Prentice Hall, 2008.
Full-subtractor
Half-adder Half-subtractor
Inputs
B
Outputs nputs Outputs
D B IITM Gwalior
1
Departincnt of Electronics and communication Engineering (Dr. Somsh Kumar) 30 Department of Electronics and communication Engineering (or Soune 31
Digital Electronics Lab Manual ABV-IIITM Gwalior Digital Electronics Lab Manual ABV-IIITM Gwalior
Experiment No. # 9
clocked flip-flops. Thefigure shows positive edge triggered flip-flops, for which the
Title: Study of sequential circuits and implementation of transition takes place only
Flip-Flops. at the positive going edge
(0 to 1 or LOW to HIGH) of the clock
Objective: The objective of this lab exercise is to pulse. The working of edge triggered S-R flip-flop is similar to that of the latch,
implement the basic sequential circuit except the
element called flip-flop using the logic gates. In this lab Outputs change at the positive edge of the clock. The D flip-flop is constructed
exercise we will design and using an S-R
implement four types of flip-flops namely S-R, J-K, D and T flip-tlop, and the input given at D gets stored in flip-flop at the positive edge. The J-k flip-
flip-flops. flop is similar to the S-R flip-flop, except it has no invalid state. On the other hand when J=1
Components and equipment: TTL ICs 74LS00, 74LS02, 74LS11, 74LS04, LEDs, power supply and K=1, the flip-flop toggles (goes to the
opposite state) at the positive edge of the clock.
and standard
experimental setup. The T flip-flop can be constructed using the JK
flip-flop, by connecting both the inputs
together and labelling it as T. When T-0, it remains in its previous state, but when T=1, it
Introduction: The switching circuits
maybe combinational or sequential circuits. The toggles on every clock pulse.
sequential circuits are those whose
output depends on the present inputs as well on prior
input conditions. Thus, we can say
that the sequential circuits are made up of
combinational circuits and memory
elements. The most important memory element is flip- S-R flip-flop
flop, which is made up of logic gates. Logic gates have no J-K flip-flop
storage capacity by themselves,
but when connected in
arrangements, they can be used to store information. A ilip-flop
can have one or more
inputs and has two outputs, namely Q and Q.Qis the normal state
of the flip-flop and Q is its inverted state.
D flip-flop T flip-flop
D-
7, lior
L
Figure 1: S-R latch
D flip-flop T flip-flop
Procedure: The diagrams for various edge triggered flip-flops is shown in figure 2.
Implement the same using the logic gates and apply the positive going clock pulse directly
from the kit. For various combinations of inputs, verify the truth tables shown in table 1.
Result: Thus, we
have implemented, the circuits for various types of flip-flops using logiC
gates.
Objective: The objective of this lab exercise is to design an asynchronous mod-10 counter
After Outputs
using J-K flip-flops.
pulses Qs
Components and equipment: TTL IC 74LS7473, 74LS0O, power supply and standard 0
experimental setup. 1
Introduction: A digital counter is a set of flip-flops whose states change according to the
pulses appied at the input. The flip-flops are so connected that their combined output is
thebinary equivalent of the total number of pulses that have been applied to ittillthat 1
time. A counter can also be used as a frequency divider that gives the waveforms whose
frequencies are specific fractions of clock frequency. Counters may be asynchronous or 1
synchronous. Asynchronous counters are also called as ripple counters in which the flip- 1
flops are not made to change the states at exactly the same time. The clock does not
directly control the time at which each stage changes state. Usually T flip-flops (1-K flip
flops in togele mode) are used to construct such counters. D flip-flops may also be used. 10
00
Q2
0
CLK-
Department .of13leotono v
Digital Electronics Lab Manual ABV-IIITM Gwalior
ITM Gwalior
ABV-IIITM Gwalior
MUN codo for AND OR NAND NOR. FX-OR and NOT gates in Behavioral style
Digital Electronics Lab Manual ABV 1ITMGwalior
1. Write a VHDL code for AND, OR, NAND, NOR, EX-OR and NOT gates in Behavioral style
of modeling.
22. Write a VHDL code for AND, OR, NAND, NOR, EX-OR and NOT
gates in Structural style of
modeling.
Reference:
1. M. Morris Mano, "Digital Logic and Computer Design", Pearson Prentice Hall, 2008.
2. Jayaram Bhasker, "A VHDL Primer", Prentice Hal, 3rdedition, 2009.
fagaft4 I-HH
A