IC and ECAD Lab
IC and ECAD Lab
IC and ECAD Lab
Apparatus required:
S.No Equipment/Component name Specifications/Value Quantity
1 IC 741 Refer page no 2 1
2 Resistor 1kΩ 4
3 Diode 0A79 2
4 Regulated Power supply (0 – 30V),1A 2
5 Function Generator (.1 – 1MHz), 20V p-p 1
6 Cathode Ray Oscilloscope (0 – 20MHz) 1
7 Multimeter 3 ½ digit display 1
Theory:
Adder: A two input summing amplifier may be constructed using the inverting mode.
The adder can be obtained by using either non-inverting mode or differential amplifier.
Here the inverting mode is used. So the inputs are applied through resistors to the
inverting terminal and non-inverting terminal is grounded. This is called “virtual ground”,
i.e. the voltage at that terminal is zero. The gain of this summing amplifier is 1, any
scale factor can be used for the inputs by selecting proper external resistors.
Subtractor: A basic differential amplifier can be used as a subtractor as shown in the
circuit diagram. In this circuit, input signals can be scaled to the desired values by
selecting appropriate values for the resistors. When this is done, the circuit is referred to
as scaling amplifier. However in this circuit all external resistors are equal in value. So
the gain of amplifier is equal to one. The output voltage Vo is equal to the voltage
applied to the non-inverting terminal minus the voltage applied to the inverting terminal;
hence the circuit is called a subtractor.
1
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Circuit Diagrams:
Fig 1: Adder
Fig 2: Subtractor
2
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Fig 3: Comparator
Procedures:
A) Adder:
1. Connect the circuit as per the diagram shown in Fig 1.
2. Apply the supply voltages of +15V to pin7 and pin4 of IC741 respectively.
3. Apply the inputs V1 and V2 as shown in Fig 1.
4. Apply two different signals (DC/AC ) to the inputs
5. Vary the input voltages and note down the corresponding output at pin 6 of the IC
741 adder circuit.
6. Notice that the output is equal to the sum of the two inputs.
B) Subtractor:
1. Connect the circuit as per the diagram shown in Fig 2.
2. Apply the supply voltages of +15V to pin7 and pin4 of IC741 respectively.
3 Apply the inputs V1 and V2 as shown in Fig 2.
4. Apply two different signals (DC/AC ) to the inputs
5. Vary the input voltages and note down the corresponding output at pin 6 of the IC
741 subtractor circuit.
6. Notice that the output is equal to the difference of the two inputs.
3
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
C) Comparator:
1. A fixed reference voltage Vref is applied to the (-) input, and to the other input a
varying voltage Vin is applied as shown in Fig 3.
2. Vary the input voltage above and below the Vref and note down the output at pin 6 of
741 IC.
3. Observe that,
when Vin is less than Vref, the output voltage is -Vsat ( ≅ - VEE)
when Vin is greater than Vref, the output voltage is +Vsat (≅ +VCC)
Observations:
Adder:
Subtractor:
Comparator:
Model Calculations:
4
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
a) Adder
Vo = - (V1 + V2)
If V1 = 2.5V and V2 = 2.5V, then
Vo = - (2.5+2.5) = -5V.
b) Subtractor
Vo = V2 – V1
If V1=2.5 and V2 = 3.3, then
Vo = 3.3 – 2.5 = 0.8V
c) Comparator
If Vin < Vref, Vo = -Vsat ≅ - VEE
Vin > Vref, Vo = +Vsat = +VCC
Precautions:
Check the connections before giving the power supply.
Readings should be taken carefully.
Result:
For adder, subtractor and comparator circuits, the practical values are compared
with the theoretical values and they are nearly equal.
Inference:
Different applications of opamp are observed.
5
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Apparatus required:
S.No Equipment/Component name Specifications/Value Quantity
1 IC 741 Refer page no 2 1
2 Resistors 10k ohm 3
Variable Resistor 20kΩ pot 1
3 capacitors 0.01μf 1
4 Cathode Ray Oscilloscope (0 – 20MHz) 1
5 Regulated Power supply (0 – 30V),1A 1
6 Function Generator (1Hz – 1MHz) 1
Theory:
a) LPF:
A LPF allows frequencies from 0 to higher cut of frequency, fH. At fH the gain is
0.707 Amax, and after fH gain decreases at a constant rate with an increase in frequency.
The gain decreases 20dB each time the frequency is increased by 10. Hence the rate at
which the gain rolls off after fH is 20dB/decade or 6 dB/ octave, where octave signifies a
two fold increase in frequency. The frequency f=fH is called the cut off frequency
because the gain of the filter at this frequency is down by 3 dB from 0 Hz. Other
equivalent terms for cut-off frequency are -3dB frequency, break frequency, or corner
frequency.
b) HPF:
The frequency at which the magnitude of the gain is 0.707 times the maximum
value of gain is called low cut off frequency. Obviously, all frequencies higher than fL are
pass band frequencies with the highest frequency determined by the closed –loop band
width all of the op-amp.
6
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Circuit diagrams:
Design:
First Order LPF: To design a Low Pass Filter for higher cut off frequency fH = 4 KHz
and pass band gain of 2
fH = 1/( 2πRC )
Assuming C=0.01 µF, the value of R is found from
R= 1/(2πfHC) Ω =3.97KΩ
7
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Procedure:
First Order LPF
1. Connections are made as per the circuit diagram shown in Fig 1.
2. Apply sinusoidal wave of constant amplitude as the input such that op-amp does not
go into saturation.
3. Vary the input frequency and note down the output amplitude at each step as shown
in Table (a).
4. Plot the frequency response as shown in Fig 3 .
8
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
a)LPF b) HPF
Input voltage Vin = 0.5V
Fig (3)
Fig(4)
Frequency response characteristics Frequency response characteristics
of LPF of HPF
Precautions:
Check the connections before giving the power supply.
Readings should be taken carefully.
Result: First order low-pass filter and high-pass filter are designed and frequency
response characteristics are obtained.
9
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Aim: To generate square wave and triangular wave form by using OPAMPs.
Apparatus required:
S.No Equipment/Component name Specifications/Value Quantity
10
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Circuit Diagram:
Design:
Square wave Generator:
T= 2RfC ln (2R2 +R1/ R1)
Assume R1 = 1.16 R2
Then T= 2RfC
Assume C and find Rf
Assume R1 and find R2
Integrator:
11
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Take R3 Cf >> T
R3 Cf = 10T
Assume Cf find R3
Take R3Cf = 10T
Assume Cf = 0.01μf
R3 = 10T/C
= 20KΩ
Procedure:
1. Connect the circuit as per the circuit diagram shown above.
2. Obtain square wave at A and Triangular wave at Vo2 as shown in Fig 1.
3. Draw the output waveforms as shown in Fig 2(a) and (b).
Model Calculations:
For T= 2 m sec
T = 2 Rf C
Assuming C= 0.1μf
Rf = 2.10-3/ 2.01.10-6
= 10 KΩ
Assuming R1 = 100 K
R2 = 86 KΩ
Sample readings:
Square Wave:
Vp-p = 26 V(p-p)
T = 1.8 msec
Triangular Wave:
Vp-p = 1.3 V
T= 1.8 msec
Wave Forms:
12
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Apparatus required:
13
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
14
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Circuit Diagram:
15
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Typical values:
If C=0.1 µF , RA = 10k then tp = 1.1 mSec
Trigger Voltage =4 V
Procedure:
1. Connect the circuit as shown in the circuit diagram.
2. Apply Negative triggering pulses at pin 2 of frequency 1 KHz.
3. Observe the output waveform and measure the pulse duration.
4. Theoretically calculate the pulse duration as Thigh=1.1. RAC
5. Compare it with experimental values.
Waveforms:
Sample Readings:
16
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Precautions:
Check the connections before giving the power supply.
Readings should be taken carefully.
Result: The input and output waveforms of 555 timer monostable Multivibrator are
observed as shown in Fig 2(a), (b), (c).
Inferences: Output pulse width depends only on external components RA and C
connected to IC555.
17
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Apparatus required:
S.No Equipment/Component name Specifications/Value Quantity
1 IC 555 Refer page no 6 1
2 Resistors 3.6kΩ,7.2kΩ Each one
3 Capacitors 0.1μf,0.01μf Each one
4 Diode OA79 1
5 Regulated Power supply (0 – 30V),1A 1
6 Cathode Ray Oscilloscope (0 – 20MHz) 1
Theory:
When the power supply V CC is connected, the external timing capacitor ‘C”
charges towards VCC with a time constant (RA+RB) C. During this time, pin 3 is high
(≈VCC) as Reset R=0, Set S=1 and this combination makes Q =0 which has unclamped
the timing capacitor ‘C’.
When the capacitor voltage equals 2/3 VCC, the upper comparator triggers the
control flip flop on that Q =1. It makes Q1 ON and capacitor ‘C’ starts discharging
towards ground through RB and transistor Q1 with a time constant RBC. Current also
flows into Q1 through RA. Resistors RA and RB must be large enough to limit this current
18
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
and prevent damage to the discharge transistor Q1. The minimum value of RA is
approximately equal to VCC/0.2 where 0.2A is the maximum current through the ON
transistor Q1.
During the discharge of the timing capacitor C, as it reaches VCC/3, the lower
comparator is triggered and at this stage S=1, R=0 which turns Q =0. Now Q =0
unclamps the external timing capacitor C. The capacitor C is thus periodically charged
and discharged between 2/3 VCC and 1/3 VCC respectively. The length of time that the
output remains HIGH is the time for the capacitor to charge from 1/3 VCC to 2/3 VCC.
The capacitor voltage for a low pass RC circuit subjected to a step input of V CC
volts is given by VC = VCC [1- exp (-t/RC)]
Circuit Diagram:
19
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Design:
Procedure:
1. Connect the circuit as per the circuit diagram shown without connecting the diode
OA 79.
2. Observe and note down the waveform at pin 6 and across timing capacitor.
3. Measure the frequency of oscillations and duty cycle and then compare with the
given values.
4. Sketch both the waveforms to the same time scale.
20
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Model calculations:
Given f=1 KHz. Assuming c=0.1μF and D=0.25
∴ 1 KHz = 1.44/ (RA+2RB) x 0.1x10-6 and 0.25 =( RA+RB)/ (RA+2RB)
Solving both the above equations, we obtain RA & RB as
RA = 7.2K Ω
RB = 3.6K Ω
Waveforms:
Sample Readings:
21
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Voltage VPP 5V 5V
Tc=0.8ms Tc = 0.5ms
td=0.2ms td = 0.5ms
Time period T 1 ms 1 ms
Duty cycle 80% 50%
Precautions:
Check the connections before giving the power supply.
Readings should be taken carefully.
Result: Both unsymmetrical and symmetrical square waveforms are obtained and time
period at the output is calculated.
22
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Theory: The VCO is a free running Multivibrator and operates at a set frequency fo
called free running frequency. This frequency is determined by an external timing
capacitor and an external resistor. It can also be shifted to either side by applying a d.c
control voltage vc to an appropriate terminal of the IC. The frequency deviation is directly
proportional to the dc control voltage and hence it is called a “voltage controlled
oscillator” or, in short, VCO.
The output frequency of the VCO can be changed either by R1, C1 or the
voltage VC at the modulating input terminal (pin 5). The voltage VC can be varied by
connecting a R1R2 circuit. The components R1 and C1 are first selected so that VCO
output frequency lies in the centre of the operating frequency range. Now the
modulating input voltage is usually varied from 0.75 VCC which can produce a frequency
variation of about 10 to 1.
23
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Circuit Diagram:
24
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Waveforms:
25
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Sample readings:
VCC=+12V; R1=R3=10KΩ; R2=1.5KΩ; fm=1KHz
Free running frequency, fo = 26.1KHz
fmin = 8.33KHz
∆f= 17.77 KHz
β = ∆f/fm = 17.77
Band width BW ≈ 36 KHz
Precautions:
Check the connections before giving the power supply.
Readings should be taken carefully.
Result:
Frequency modulated waveforms are observed and modulation Index, B.W
required for FM is calculated for different amplitudes of the message signal.
Inferences:
During positive half-cycle of the sine wave input, the control voltage will increase,
the frequency of the output waveform will decrease and time period will increase. Exactly
opposite action will take place during the negative half-cycle of the input as shown in Fig
(b).
26
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Apparatus required:
Theory:
27
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
the required mode of operation. Typical performance parameters are line and load
regulations which determine the precise characteristics of a regulator. The pin
configuration and specifications are shown in the Appendix-A.
Circuit Diagram:
28
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
29
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Model graphs:
Precautions:
Check the connections before giving the power supply.
Readings should be taken carefully.
Results:
Low voltage variable Regulator of 2V to 7V using IC 723 is designed. Load and Line
Regulation characteristics are plotted.
Inferences:
Variable voltage regulators can be designed by using IC 723.
.
31
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Apparatus required:
S.No Equipment/Component Specifications/Value Quantity
name
1 741 IC Refer page no 2 1
2 Resistors 1KΩ,2KΩ,4KΩ, 8KΩ Each one
3 Regulated Power supply 0-30 V , 1A 1
4 Multimeter(DMM) 3 ½ digit display 1
5 connecting wires
6 Digital trainer Board 1
Theory: Digital systems are used in ever more applications, because of their
increasingly efficient, reliable, and economical operation with the development of the
microprocessor, data processing has become an integral part of various systems Data
processing involves transfer of data to and from the micro computer via input/output
devices. Since digital systems such as micro computers use a binary system of ones
and zeros, the data to be put into the micro computer must be converted from analog to
digital form. On the other hand, a digital-to-analog converter is used when a binary
32
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
output from a digital system must be converted to some equivalent analog voltage or
current. The function of DAC is exactly opposite to that of an ADC.
A DAC in its simplest form uses an op-amp and either binary weighted resistors
or R-2R ladder resistors. In binary-weighted resistor op-amp is connected in the
inverting mode, it can also be connected in the non inverting mode. Since the number of
inputs used is four, the converter is called a 4-bit binary digital converter.
Circuit Diagrams:
33
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Design:
1. Weighted Resistor DAC
b b b b
Vo = -Rf
A
+ B + c + D ]
8 R 4R 2R R
Procedure:
1. Connect the circuit as shown in Fig 1.
34
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
2. Vary the inputs A, B, C, D from the digital trainer board and note down the output at
pin 6. For logic ‘1’, 5 V is applied and for logic ‘0’, 0 V is applied.
3. Repeat the above two steps for R – 2R ladder DAC shown in Fig 2.
Observations:
Weighted resistor DAC
S.No D C B A Theoretical Voltage(V) Practical Voltage(V)
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
35
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Model Graph:
Decimal Equivalent of Binary inputs
36
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Precautions:
Check the connections before giving the power supply.
Readings should be taken carefully.
Results:
Outputs of binary weighted resistor DAC and R-2R ladder DAC are observed.
Inferences:
Different types of digital-to-analog converters are designed.
.
37
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
1.D FLIP-FLOP
AIM: To Simulate internal structure of D FLIP FLOP(IC 7474) using VHDL and verify
Its operation.
APPARATUS:
38
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
level-sensitive. The positive transition of clock pulse between 0.8V and 2.0V should be
equal.
PIN DIAGRAM:
TRUTH TABLE:
INPUTS OUTP
UTS
PR CL CL D Q Q*
R K
L H X X H L
H L X X L H
L L X X H H
H H H H L
H H L L H
H H L X Q0 Q0
*
H = HIGH Logic Level X = Either LOW or HIGH Logic Level Clear
L = LOW Logic Level ↑ = Positive-going transition of the clock.
Q0 = The output logic level of Q before the indicated input conditions were and
established.
39
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
INTERNAL DIAGRAM:
D = Qt+1
40
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
VHDL CODE:
INPUTS OUTPUTS
PR CLR CLK D Q Q*
0 1 X X 5V 0V
1 0 X X 0V 5V
0 0 X X 5V 5V
1 1 1 5V 0V
1 1 0 0V 5V
1 1 0 X Q0 Q0*
Q0 = The output logic level of Q before the indicated input conditions were and
established.
41
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
RESULTS (HARDWARE):
INPUTS OUTPUTS
PR CLR CLK D Q LED Q* LED
0 1 X X
1 0 X X
0 0 X X
1 1 1
1 1 0
1 1 0 X
RESULTS (SOFTWARE):
RESULT:
INFERENCE:
Theoretical and Practical Results are according to the expected results both for Software
and Hardware.
PRECAUTIONS (SOFTWARE):
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t Forget to instantiate IEEE Libraries at the starting of
the code
1) Follow Syntax and Semantics of the VHDL code throughout
42
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
PRECAUTIONS (HARDWARE):
1) Apply the voltages to the IC as per the details given in the data
Sheets.
2) Apply the inputs to the respective pins.
3) First decide which one is MSB and LSB.
4)Take the outputs at appropriate pins.
PROCEDURE (SOFTWARE):
PROCEDURE (HARDWARE):
2.DECADE COUNTER
43
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
AIM: To Simulate internal structure of Decade Counter(IC 7490) using VHDL and verify
Its operation.
APPARATUS:
HARDWARE:
SOFTWARE: Active-HDL
THEORY:
7490 is a 4-bit ripple type decade counter.
Features are:
Output QA is connected to input B for BCD count. Output QD is connected
to input A for qi-binary count. This counter has a gated ‘O’ reset. This
counter contains 4 master-slave FF’s and additional gating to provide a
divide by two counter.
TRUTH TABLE:
44
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
COUNT OUTPUT
QD QC QB QA
0 L L L L
1 L L L H
2 L L H L
3 L L H H
4 L H L L
5 L H L H
6 L H H L
7 L H H H
8 H L L L
9 H L L H
H = HIGH; L = LOW
INTERNAL DIAGRAM:
45
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
VHDL CODE:
COUNT OUTPUT
QD QC QB QA
0
1
2
3
4
5
6
7
8
9
L X L X COUNT
L X X L COUNT
X L L X COUNT
46
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
RESULTS (HARDWARE):
COUNT OUTPUT
QD LED QC LED QB LED QA LED
0
1
2
3
4
5
6
7
8
9
RESULTS (SOFTWARE):
RESULT:
INFERENCE:
Theoretical and Practical Results are according to the expected results both for Software
and Hardware.
PRECAUTIONS (SOFTWARE):
47
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t forget to instantiate IEEE Libraries at the starting of
the code.
3) Follow Syntax and Semantics of the VHDL code throughout.
PRECAUTIONS (HARDWARE):
1) Apply the voltages to the IC as per the details given in the data sheets.
2) Apply the inputs to the respective pins.
3) First decide which one is MSB and LSB.
4) Take the outputs at appropriate pins.
PROCEDURE (SOFTWARE):
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t forget to instantiate IEEE Libraries at the starting of the code.
PROCEDURE (HARDWARE):
48
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
3.SHIFT REGISTER
AIM: To Simulate Internal structure of Shift Register(IC 7495) using VHDL and verify
Its operation.
APPARATUS:
49
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
THEORY:
- IC 7495 is a 4-bit shift register with serial and parallel synchronous operating modes.
- It has serial data (DS) and 4 parallel data (D0-D3) inputs and 4 parallel outputs (Q0-
Q3).
TRUTH TABLE:
50
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
INTERNAL DIAGRAM:
51
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
52
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
VHDL CODE:
0 0 0 0
1 0 0 0
1 1 0 0
0 1 1 0
1 0 1 1
0 1 0 1
0 0 1 0
0 0 0 1
0 0 0 0
RESULTS (HARDWARE):
53
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
INFERENCE:
Theoretical and Practical results are according to the expected results both for Software
and Hardware.
PRECAUTIONS (SOFTWARE):
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t forget to instantiate IEEE Libraries At the starting of the code.
3) Follow Syntax and Semantics of the VHDL code throughout.
PRECAUTIONS (HARDWARE):
1) Apply the voltages to the IC as per the details given in the data Sheets.
2) Apply the inputs to the respective pins.
3) First decide which one is MSB and LSB.
4) Take the outputs at appropriate pins.
54
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
PROCEDURE (SOFTWARE):
PROCEDURE (HARDWARE):
55
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
4. 3-to-8 DECODER
AIM: To Simulate the internal structure of a 3- to-8 decoder (IC 74138) using VHDL
and verify its operation.
APPARATUS:
THEORY:
56
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
The “Absolute Maximum Ratings” are those values beyond which the safety of the
device cannot be guaranteed. The device should not be operated at these limits. The
parametric values defined in the Electrical Characteristics tables are not guaranteed at
the absolute maximum ratings. The “Recommended Operating Conditions” table will
define the conditions for actual device operation. An N-bit decoder has 2N outputs, only
one of which may be activated at a given time. If the device is active-HIGH, then only
one output may be HIGH at any time. If the device is active-LOW, then only one output
may be LOW at any time.
DECODER DETAILS:
TRUTH TABLE:
INPUTS OUTPUTS
G1 G2* C B A Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
X L X X X H H H H H H H H
H X X X X H H H H H H H H
L H L L L H L L L L L L L
L H L L H L H L L L L L L
L H L H L L L H L L L L L
L H L H H L L L H L L L L
L H H L L L L L L H L L L
L H H L H L L L L L H L L
L H H H L L L L L L L H L
L H H H H L L L L L L L H
INTERNAL DIAGRAM:
57
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Y1 = X2 ` X1 `X0 Y5 = X2 X1 `X0
Y2 = X2 ` X1 X0` Y6 = X2 X1X0`
Y3 = X2 ` X1X0 Y7 = X2 X1X0
VHDL CODE:
58
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
INPUTS OUTPUTS
C B A Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
RESULTS (HARDWARE):
INPUTS OUTPUTS
G1 G2* C B A Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
LED LED LED LED LED LED LED LED
X L X X X
H X X X X
59
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
L H L L L
L H L L H
L H L H L
L H L H H
L H H L L
L H H L H
L H H H L
L H H H H
RESULTS (SOFTWARE):
RESULT:
INFERENCE:
60
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
Theoretical and Practical results are according to the expected results both for Software
and Hardware.
PRECAUTIONS (SOFTWARE):
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t forget to instantiate IEEE Libraries at the starting of
the code.
3) Follow Syntax and Symantics of the VHDL code throughout.
PRECAUTIONS (HARDWARE):
1) Apply the voltages to the IC as per the details given in the data Sheets.
2) Apply the inputs to the respective pins.
3) First decide which one is MSB and LSB.
4) Take the outputs at appropriate pins.
PROCEDURE (SOFTWARE):
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t forget to instantiate IEEE Libraries at the starting of the code.
PROCEDURE (HARDWARE):
61
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
5. 4 BIT COMPARATOR
AIM: To Simulate internal structure of 4 Bit Comparator(IC 7485) using VHDL and
Verify its operation.
APPARATUS:
62
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
THEORY:
This four-bit magnitude comparator performs comparison of straight binary or BCD
codes. Three fully-decoded decisions about two, 4-bit words {A, B} are made and are
externally available at three outputs. This device is fully expandable to any number of
bits without external gates. Words of greater length may be compared by connecting
comparators in cascade. The A>B, A<B, and A=B outputs of a stage handling less
significant bits are connected to the corresponding inputs of the next stage handling
more-significant bits. The stage handling the least-significant bits must
have a high level voltage applied to the A=B input.
TRUTH TABLE:
63
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
A3=B3 A2>B2 X X X X X X X H L L
A3=B3 A2<B2 X X X X X X X L H L
A3=B3 A2=B2 A1>B1 X X X X X H L L
A3=B3 A2=B2 A1<B1 X X X X X L H L
A3=B3 A2=B2 A1=B1 AO>BO X X X H L L
INTERNAL DIAGRAM:
64
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
65
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
66
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
VHDL CODE:
A3=B3 A2>B2 X X X X X X X
A3=B3 A2<B2 X X X X X X X
A3=B3 A2=B2 A1>B1 X X X X X
A3=B3 A2=B2 A1<B1 X X X X X
A3=B3 A2=B2 A1=B1 AO>BO X X X
67
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
RESULTS (HARDWARE):
68
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
A3=B3 A2>B2 X X X X X X X
A3=B3 A2<B2 X X X X X X X
A3=B3 A2=B2 A1>B1 X X X X X
A3=B3 A2=B2 A1<B1 X X X X X
A3=B3 A2=B2 A1=B1 AO>BO X X X
RESULTS (SOFTWARE):
RESULT:
Four bit Comparator internal structure is Simulated and verified using Active-HDL
Software and in Hardware Lab Respectively.
INFERENCE:
Theoretical and Practical results are according to the expected results both for Software
and Hardware.
69
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
PRECAUTIONS (SOFTWARE):
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t forget to instantiate IEEE Libraries at the starting of
the code.
3) Follow Syntax and Semantics of the VHDL code throughout.
PRECAUTIONS (HARDWARE):
1) Apply the voltages to the IC as per the details given in the data
Sheets.
2) Apply the inputs to the respective pins.
3) First decide which one is MSB and LSB.
4) Take the outputs at appropriate pins.
PROCEDURE (SOFTWARE):
PROCEDURE (HARDWARE):
1) Connect the circuit as per the pin diagram.
2) Give proper VCC voltage to the IC.
3) Supply the inputs according to truth table and verify outputs.
70
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
6. 8X1 MULTIPLEXER
AIM: To Simulate internal structure of 8X1 MULTIPLEXER (IC 74151) using VHDL and
verify its operation.
APPARATUS:
71
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
THEORY:
DETAILS:
TRUTH TABLE:
INPUT OUTPUT
SELECT STROBE W Y
C B A S
X X X H H L
L L L L DO’ DO
L L H L D1΄ D1
L H L L D2΄ D2
L H H L D3΄ D3
H L L L D4΄ D4
H L H L D5΄ D5
H H L L D6΄ D6
H H H L D7΄ D7
72
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
INTERNAL DIAGRAM:
OUTPUT EQUATIONS:
D0 = A`B`C` D1 = AB`C` D2 = A`BC` D3 = ABC` D4 = A`B`C
D5 = AB`C D6 = A`BC D7 = ABC
VHDL CODE:
INPUT OUTPUT
SELECT STROBE
C B A S
W Y
X X X 1
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
73
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
1 1 1 0
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
RESULTS (HARDWARE):
INPUT OUTPUT
SELECT STROBE
C B A S
W Y
X X X 1
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0 `
74
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
1 1 1 0
RESULTS (SOFTWARE):
RESULT:
INFERENCE:
Theoretical and Practical results are according to the expected results both for Software
and Hardware.
PRECAUTIONS (SOFTWARE):
1)Follow Getting Started Procedure for the Software you are using.
2)Don’t forget to instantiate IEEE Libraries at the starting of
the code.
3)Follow Syntax and Semantics of the VHDL code throughout.
75
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
PRECAUTIONS (HARDWARE):
1) Apply the voltages to the IC as per the details given in the data Sheets.
2) Apply the inputs to the respective pins.
3) First decide which one is MSB and LSB.
4) Take the outputs at appropriate pins.
PROCEDURE (SOFTWARE):
1) Follow Getting Started Procedure for the Software you are
using.
2) Don’t forget to instantiate IEEE Libraries at the starting of
the code.
PROCEDURE (HARDWARE):
1) Connect the circuit as per the pin diagram.
2) Give proper VCC voltage to the IC.
3) Supply the inputs according to truth table and verify outputs.
76
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
6. 2X4 DEMULTIPLEXER
AIM: To Simulate internal structure of 2X4 DEMULTIPLEXER (IC 74155) using VHDL
and Verify its operation.
APPARATUS:
THEORY:
The LS155 and LS156 are Dual 1-of-4 Decoder/Demultiplexers with common Address
inputs and separate gated Enable inputs. When enabled, each decoder section accepts
the binary weighted Address inputs (A0, A1) and provides four mutually exclusive active
77
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
LOW outputs (O0–O3). If the Enable requirements of each decoder are not met, all
outputs of that decoder are HIGH.
Each decoder section has a 2-input enable gate. The enable gate for Decoder “a”
requires one active HIGH input and one active LOW input (Ea•Ea). In demultiplexing
applications, Decoder “a” can accept either true or complemented data by using the Ea
or Ea inputs respectively. The enable gate for Decoder “b” requires two active LOW
inputs (Eb•Eb). The LS155 or LS156 can be used as a 1-of-8 Decoder/Demultiplexer by
tying Ea to Eb and relabeling the common connection
as (A2). The other Eb and Ea are connected together to form the common enable.The
LS155 and LS156 can be used to generate all four minterms of two variables. These
four minterms are useful in some applications replacing multiple gate functions.
INTERNAL DIAGRAM:
78
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
OUTPUT EQUATIONS:
VHDL CODE:
79
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
When SELECT = 00
A =1; B = '0'; C = '0'; D = '0';
When SELECT = 01
B =1; A ='0'; C ='0'; D ='0';
when SELECT =10
C <=1; A = 0; B = 0; D = 0;
When SELECT = 11
D =1; A = 0; B = 0; C = 0;
RESULTS (HARDWARE):
RESULTS (SOFTWARE):
80
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
RESULT:
INFERENCE:
Theoretical and Practical results are according to the expected results both for Software
and Hardware.
PRECAUTIONS (SOFTWARE):
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t forget to instantiate IEEE Libraries At the starting of
the code.
3) Follow Syntax and Semantics of the VHDL code throughout.
PRECAUTIONS (HARDWARE):
1) Apply the voltages to the IC as per the details given in the data
Sheets.
2) Apply the inputs to the respective pins.
3) First decide which one is MSB and LSB.
4) Take the outputs at appropriate pins.
PROCEDURE (SOFTWARE):
1. Follow Getting Started Procedure for the Software you are
using.
2) Don’t forget to instantiate IEEE Libraries at the starting of
the code.
PROCEDURE (HARDWARE):
81
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
7. RAM (16x4)
AIM: To Simulate Internal structure of 16X4 RAM(IC 74189) using VHDL and
Verify its operation.
APPARATUS:
THEORY:
The CY7C189 and CY7C190 are extremely high performance 64-bit static RAM’s
organized as 16 words by 4 bits. Easy memory expansion n is provided by an active low
82
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
chip select (CS) input and three- state outputs. The devices are provided with inverting
(CY7C189) and non inverting (CY7C190) outputs. Writing to the device is accomplished
when the chip select (CS) and write enable (WE) inputs are both low. Data on the four
data inputs (D0 through D3) is written into the memory location specified on the address
pins(A0 through A3). The outputs are preconditioned such that the correct data is present
at the data outputs (O0 through O3) when the write cycle is complete. This precondition
operation insures minimum write recovery times by eliminating the “write recovery
glitch.” Reading the device is accomplished by taking chip select (CS) LOW, while write
enable(WE) remains HIGH. Under these conditions, the contents of the memory location
specified on the address pins will appear on the four output pins (O0 through O3) in
inverted (CY7C189) or non-inverted (CY7C190) format. The four output pins remain in
high-impedance state when chip select (CS) is HIGH or write enable (WE) is LOW.
83
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
CS΄ WE΄
L L WRITE HIGH
IMPEDENCE
L H READ COMPLEMENT
OF STORED
DATA
H X INHIBIT HIGH
IMPENDENCE
INTERNAL DIAGRAM:
Write = CS`WE`
READ = CS`WE
84
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
INHIBIT = CS WE
VHDL CODE:
CS΄ WE΄
0v 0v
0v +5v
+5v X
X = don’t care
85
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
RESULTS (HARDWARE):
CS΄ WE΄
0v 0v
0v +5v
+5v X
X = don’t care
86
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
RESULTS (SOFTWARE):
RESULT:
16X4 RAM internal structure is simulated and verified using Active-HDL Software
and in Hardware Lab Respectively.
INFERENCE:
Theoretical and Practical results are according to the expected results both for Software
and Hardware.
PRECAUTIONS (SOFTWARE):
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t forget to instantiate IEEE Libraries at the starting of the code.
3) Follow Syntax and Semantics of the VHDL code throughout.
PRECAUTIONS (HARDWARE):
1)Apply the voltages to the IC as per the details given in the data sheets.
2)Apply the inputs to the respective pins.
3)First decide which one is MSB and LSB.
4)Take the outputs at appropriate pins.
PROCEDURE (SOFTWARE):
87
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING
DEPARTMENT OF ELECTRONICS & COMMUNICATION IC & ECAD LAB
1) Follow Getting Started Procedure for the Software you are using.
2) Don’t forget to instantiate IEEE Libraries at the starting of the code.
PROCEDURE (HARDWARE):
88
V.K.R, V.N.B & A.G.K COLLEGE OF ENGINEERING