IC HDL Lab Manual
IC HDL Lab Manual
IC HDL Lab Manual
OF
VISION of Institute
To be a premier institute in the country and region for the study of engineering,
technology and management by maintaining high academic standards which promote
the analytical thinking and independent judgment among the prime stakeholders
enabling them to function responsibly in the globalized society.
MISSION of Institute
1. To impart quality professional education that meets the needs of present and
emerging technological world.
2. To strive for student achievement and success, preparing them for life and
leadership with ethics.
3. To provide a scholarly and vibrant learning environment that enables faculty,
staff and students achieve personal and professional growth.
4. To contribute to advancement of knowledge, in both fundamental and applied
areas of engineering, technology & management.
5. To undertake research and development works by forging alliances with
research institutes, government organizations, industries and alumni and
become a centre of excellence for quality professional educations and
research.
To educate graduates in the basic principles underlying the field of Electronics &
Communication Engineering and train our students to think independently in terms to
master systematic approach to problem solving and to have a keen awareness of the
role of engineering in the modern society.
LAB INSTRUCTIONS
List of Experiments
Experiment/ PAGE
NAME OF PROGRAM
week NO
ADDITIONAL EXPERIMENTS
2. THEORY:
Adder: Op-amp can be used to design a circuit whose output is the sum of several
input signals. Such acircuit is called a summing amplifier or an adder. Summing
amplifier can be classified as inverting & non-inverting summer depending on the
input applied to inverting & non-inverting terminals respectively. Circuit Diagram
shows a non-inverting adder with n inputs. Here the output will be the linear
summation of input voltages. The circuit can be used either as summing amplifier,
scaling amplifier, or as averaging amplifier.
From the circuit of adder, it can be noted that at pin3
I1+I2+I3+.In=0
+ + + =0
=0
Va=
Vo Va
Vo ( )
Vo = (1+ )( )
(1+ (n-1))
) =n
Vo= V1+V2+V3++Vn
This means that the output voltage is equal to the sum of all the input voltages.
Subtractor: A subtractor is a circuit that gives the difference of the two inputs,
Vo=V2-V1, Where V1and V2 are the inputs. By connecting one input voltage V1 to
inverting terminal and another input voltage V2 to the non inverting terminal, we
get the resulting circuit as the Subtractor. This is also called as differential or
difference amplifier using op-amps.
Output of a differential amplifier (subtractor) is given as
Vo = (-Rf/R1) (V1-V2)
If all external resistors are equal in value, then the gain of the amplifier is equal to -1.
The output voltage of the differential amplifier with a gain of -1 is
Vo = (V2-V1)
Thus the output voltage Vo is equal to the voltage V2 applied to the non
inverting terminal minus the voltage V1 applied to the inverting terminal. Hence the
circuit is called a Subtractor.
3. CIRCUIT DIAGRAM:
Adder:
Subtractor:
Comparator:
4. PROCEDURE:
Adder:
1. Connect the components/equipment as shown in the circuit diagram.
2. Switch ON the power supply.
3. Apply dc voltages at each input terminal for V1 and V2 from the dc supply
and check the output voltage Vo at the output terminal.
4. Tabulate 3 different sets of readings by repeating the above step.
5. Compare practical Vo with the theoretical output voltage Vo =V1+V2.
Subtractor:
1. Connect the components/equipment as shown in the circuit diagram.
Comparator:
1. Connect the components/equipment as shown in the circuit diagram.
2. Switch ON the power supply.
3. Apply 1 KHz sine wave with 5 Vpp at the non-inverting input terminal of
IC741 using a function generator.
4. Apply 1V dc voltage as reference voltage at the inverting terminal of IC741.
5. Connect the channel-1 of CRO at the input terminals and channel-2 of CRO
at the output terminals.
6. Observe the input sinusoidal signal at channel-1 and the corresponding output
square wave at channel-2 of CRO. Note down their amplitude and time
period.
7. Overlap both the input and output waves and note down voltages at positions
on sine wave where the output changes its state. These voltages denote the
Reference voltage.
8. Plot the output square wave corresponding to the sine input with Vref = 1V.
5. TABLE:
Adder:
S.No. V1 V2 Theoretical Practical Vo
Volts Volts Vo=V1+V2 Volts
Subtractor:
S.No. V1 V2 Theoretical Practical Vo
Volts Volts Vo=V2-V1 Volts
Comparator:
Theoretical Reference
voltage (from circuit)
Practical Reference
voltage (from output
waveforms)
6. EXPECTED WAVEFORMS:
COMPARATOR INPUT & OUTPUT WAVEFORMS
7. RESULT:
8. VIVA QUESTIONS:
1. Draw the circuit diagram of 3 input adder.
2. What is the other name for adder?
3. Draw the circuit diagram of a Subtractor.
4. Which amplifier acts as a Subtractor?
5. How many basic input parameters are required for a comparator?
6. Draw the circuit diagram of a non-inverting comparator and inverting
comparator.
7. What is the output of a non-inverting comparator and inverting
comparator if the input is sinusoidal?
8. What are the differences between the Inverting and NonInverting
comparator?
9. What is the name of the comparator if the reference voltage is 0V?
3.THEORY:
Integrator:
A circuit in which the output voltage is the integration of the input voltage is
called an integrator.
In the practical integrator to reduce the error voltage at the output, a resistor
RF is connected across the feedback capacitor CF. Thus, R F limits the low-frequency
gain and hence minimizes the variations in the output voltage.
The frequency response of the integrator is shown in the fig. 2.1. fb is the
frequency at which the gain is 0 dB and is given by
fb = 1/2 R1Cf.
In this fig. there is some relative operating frequency, and for frequencies
from f to fa the gain RF/R1 is constant. However, after fa the gain decreases at a rate
of 20 dB/decade. In other words, between fa and fb the circuit of fig. 2.1 acts as an
HOLY MARY INSTITUTE OF TECHNOLOGY&SCIENCE , BOGARAM,KEESARA. 12
IC Applications and HDL Simulation Lab Manual
integrator. The gain-limiting frequency fa is given by
fa = 1/2 RfCf.
If fin<fa - circuit acts like a simple inverting amplifier and no integration results,
If fin = fa - integration takes place with only 50% accuracy results,
If fin = 10fa - integration takes place with 99% accuracy results.
Differentiator:
As the name suggests, the circuit performs the mathematical operation of
differentiation, i.e. the output voltage is the derivative of the input voltage.
Both the stability and the high-frequency noise problems can be corrected by
the addition of two components: R1 and Cf, as shown in the circuit diagram. This
circuit is a practical differentiator.
The input signal will be differentiated properly if the time period T of the
input signal is larger than or equal to RfC1. That is, T>= RfC1
Differentiator:
Integrator:
1. Connect the components/equipment as shown in the circuit diagram.
2. Switch ON the power supply.
3. Apply sine wave at the input terminals of the circuit using function Generator.
4. Connect channel-1 of CRO at the input terminals and channel-2 at the output
terminals.
o
5. Observe the output of the circuit on the CRO which is a cosine wave (90
phase shifted from the sine wave input) and note down the position, the
amplitude and the time period of Vin& Vo.
6. Now apply the square wave as input signal.
7. Observe the output of the circuit on the CRO which is a triangular wave and
note down the position, the amplitude and the time period of Vin& Vo.
8. Plot the output voltages corresponding to sine and square wave inputs.
Differentiator:
1. Connect the components/equipment as shown in the circuit diagram.
2. Switch ON the power supply.
3. Apply sine wave at the input terminals of the circuit using function Generator.
4. Connect channel-1 of CRO at the input terminals and channel-2 at the output
terminals.
o
5. Observe the output of the circuit on the CRO which is a cosine wave (90
phase shifted from the sine wave input) and note down the position, the
amplitude and the time period of Vin& Vo.
6. Now apply the square wave as input signal.
7. Observe the output of the circuit on the CRO which is a spike wave and note
down the position, the amplitude and the time period of Vin& Vo.
8. Plot the output voltages corresponding to sine and square wave inputs.
6. EXPECTED WAVEFORMS:
Differentiator:
7. RESULT:
8. VIVA QUESTIONS:
1. What is an Integrator?
2. Draw the circuit of the Integrator using op-amp IC741.
3. Write down the expression for Vo of an Integrator.
4. Draw the frequency response of the Integrator and explain.
5. Draw the output waveform of the Integrator when the input is a Square wave.
6. What is the purpose behind the connection of Rf in the feedback path of
Integrator?
7. What are the applications of Integrator?
8. Why Rcomp is used in both Integrator and Differentiator circuits?
9. What is a Differentiator?
10. Draw the circuit of the Differentiator using op-amp IC741.
11. Write down the expression for Vo of a Differentiator.
12. Draw the output waveform of the Differentiator when the input is a Sine
wave.
13. Why R1 and Cf are connected in the circuit of the Differentiator?
14. What are the applications of Differentiator?
WEEK:3
EXPERIMENT NO: 3
st
a) 1 Order LOW PASS FILTER
1.AIM: To plot the frequency response of Butterworth LPF (First order) and
find the high cut-offfrequency.
3.THEORY:
Filters are classified as follows:
Based on components used in the circuit
Active filters Use active elements like transistor or op-amp(provides
gain)
in addition to passive elements
Passive filters Use only passive elements like resistors, capacitors
and
inductors, hence no gain here.
A first Order Low Pass Butterworth filter uses RC network for filtering.
Note that the op-amp is used in the non-inverting configuration; hence it does not
load down the RC network. Resistors R1 and RF determine the gain of the filter.
The gain magnitude equation of the Low Pass filter can be obtained by
converting equation
into its equivalent polar form, as follows.
2
| Vo / Vin | = AF/1+ (f / fH)
Where 1
fH = -------------------- = high cut-off frequency of the filter.
2 RC
The operation of the low pass filter can be verified from the gain magnitude equation.
1. At very low frequencies, that is f <fH
| Vo/Vin | = AF
2. At f = fH, | Vo/Vin | = AF/2 = 0.707 AF
3. At f >fH | Vo/Vin | < AF
Thus the Low Pass filter has a constant gain AF from 0 Hz to the almost
high cut-off frequency, fH, it has the gain 0.707AF at exactly fH, and after fH it
decreases at a constant rate with an increase in frequency. The gain decreases 20 dB
(= 20 log 10) each time the frequency is increased by 10. Hence the rate at which the
gain rolls off after fH is 20 dB/decade. The frequency f = fH is called the cut-off
frequency because the gain of the filter at this frequency is down by 3 dB (=20log
0.707) from 0 Hz. Other equivalent terms for cut-off frequency are -3dB frequency,
break frequency, or corner frequency.
4.DESIGN:
1. Choose a value for high cut-off frequency, fH(1 KHz) and a value for gain,
AF (2)
2. Assume a value of C 1F (0.1 F)
3. Calculate the value of R using the equation
4. Finally, select values of R1 and RF dependent on the desired pass band gain
AF using
AF = 1+ RF/R1 2 = 1+ RF/R1 RF = R1
5.CIRCUIT DIAGRAM:
6.PROCEDURE:
TABLE:
Vin = 1V
S.No. Input Frequency Output Voltage Gain Magnitude Gain in dB =
f(Hz) Vo (V) | Vo/Vin | 20log| Vo/Vin |
7.CALCULATIONS:
8.EXPECTED GRAPH:
9.RESULT:
8. VIVA QUESTIONS:
1. How filters are classified? Give one example for each classification.
2. What is an active filter and why it is called so?
3. How an active filter differs from a passive filter?
4. What are the advantages of active filters over passive filters?
5. Draw the circuit diagrams of active filters LPF and HPF.
st
b) 1 Order HIGH PASS FILTER
1.AIM: To plot the frequency response of Butterworth HPF (First order) and find the
low cut-offfrequency.
3.THEORY:
First Order High Pass Filter consists of RC network for filtering. First Order
High Pass filter can be constructed from a First Order Low Pass filter simply by
interchanging frequency determining components R & C . Op-Amp is used in the non
inverting configuration. Resistor R1 and RF determine the gain of the Filter.
The voltage gain magnitude equation of the second order High-pass filter is
V0 A F(f/fL)
----- = ----------------
2
Vin [1+(f/fL) ]
where AF = 1 + RF / R1
1
fL = -------------------- = Low cut-off frequency of the filter.
2RC
This is the frequency at which the magnitude of the gain is 0.707 times its
pass band value. Obviously, all frequencies higher than fL are Pass Band frequencies,
with the highest frequency determined by the closed-loop bandwidth of the OP-Amp.
The operation of the highpass filter can be verified from the gain
magnitude equation. 1. At very low frequencies, that is f <fL
| Vo/Vin | < AF
3. At f >fL, | Vo/Vin | = AF
For example, in the first order High Pass filter the gain rolls off or
increases at the rate of 20dB/decade in stop band, that is for input signal frequency
HOLY MARY INSTITUTE OF TECHNOLOGY&SCIENCE , BOGARAM,KEESARA. 21
IC Applications and HDL Simulation Lab Manual
lesser than Low cut-off frequency (fL ) ;
High Pass filter has constant gain AF, after the Low cut-off frequency
onwards (fL).
5.CIRCUIT DIAGRAM:
6.PROCEDURE:
1. Connect the components/equipment as shown in the circuit diagram.
2. Switch ON the power supply.
TABLE:
Vin = 1V
S.No. Input Frequency Output Voltage Gain Magnitude Gain in dB =
f(Hz) Vo (V) | Vo/Vin | 20log| Vo/Vin |
7.CALCULATIONS:
8.EXPECTED GRAPH:
9.RESULT
1. Draw the frequency response of all filters (LPF, HPF, BPF, BRF and All-pass).
st nd
2. What is the gain roll off rate for a 1 order and 2 order filter?
3. What is the formula for cut-off frequency?
4. What is a 3 dB frequency and why it is called so?
5. What are the other names for 3 dB frequency?
WEEK-4:
EXPERIMENT NO:4
3.THEORY:
5.CIRCUIT DIAGRAM:
Sine Wave Generator (Wien Bridge Oscillator):
6.PROCEDURE:
4. Connect the input to the channel-1 of CRO and output to the channel-2 of
CRO.
5. Observe the triangular wave output at channel-2 and note down the amplitude
and time period, T of the wave form.
6. Verify that the frequency of oscillation of both the input and the output waves
o
is same. Also verify that the output wave is inverted i.e. 180 phase shift from
the input wave.
7. Plot the output waveform in accordance with the input waveform.
7.CALCULATIONS:
THEORETICAL
Frequency of
Oscillation fo =1/2RC
=
PRACTICAL
Frequency of
Oscillation fo =
1/T=
8.EXPECTED WAVEFORMS:
9.RESULT:
10.VIVA QUESTIONS:
1. What is a Function Generator?
2. What are the different stages in a Function Generator and how they are
connected?
3. Draw the output waveforms at different stages of Function Generator.
4. What is the relationship among the frequencies of output waveforms at
different stages of Function Generator?
5. Will there be any phase shift between the input and the output of any stage in
the Function Generator and what factor it depends on?
6. Why is Rcomp used in the circuit of Triangular wave generator?
7. Why is potentiometer used in the circuit of Wien Bridge Oscillator?
a) MonostableMultivibrator
2. APPARATUS: Bread
Board.
CRO Probes
Connecting
wires
555 Timer, Resistors, Capacitors
3. THEORY:
Monostablemultivibrator is also called as oneshot Multivibrator. When the
output is low, the circuit is in stable state, transistor T1 is ON and Capacitor C is
shorted to the ground. However, upon application of a negative trigger pulse to Pin
2, transistor T1 is turned OFF, which releases short circuit across the external
capacitor and drives the output High. The capacitor C now starts charging up toward
VCC through R. However when the voltage across the external capacitor equals 2/3
VCC, upper comparators output switches from low to high which in turn derives the
output to its low state. And the output of the flip flop turns transistor T1 ON, and
hence the capacitor C rapidly discharges through the transistor. The output of the
Monostable remains low until a trigger pulse is again applied. Then the cycle repeats.
The time during which the output remains high is given by
tp = 1.1 R C
Once triggered, the circuits output will remain in the high state until the set
time tp elapses. The output will not change its state even if an input trigger is applied
again during this time interval t p.
4. DESIGN:
1. Choose a desired pulse width, say tp =1.1 ms.
2. Choose a value for capacitor C (0.1 F) and then calculate the value of R by
using the equation for tp.
5. CIRCUIT DIAGRAM:
6. PROCEDURE:
1. Connect the components/equipment as shown in the circuit diagram.
2. Switch ON the power supply.
3. Connect function generator at the trigger input.
4. Connect channel-1 of CRO to the trigger input and channel-2 of CRO to the
output (Pin 3).
5. Using Function Generator, apply 1 KHz square wave with amplitude of
approx. equal to 9 Vpp at the trigger input.
6. Observe the output voltage with respect to input and note down the pulse
width and amplitude.
7. Now connect channel-2 of CRO across capacitor and observe the voltage
across the capacitor and note it down.
8. Compare the practical pulse width noted in the step above with its theoretical
value (tp=1.1 RC)
7. CALCULATIONS:
8. EXPECTED WAVEFORMS:
9. RESULT:
(b) AstableMultivibrator
3.THEORY:
An Astablemultivibrator, often called a free-running Multivibrator, is a rectangular-wave-
generating circuit. Unlike the Monostablemultivibrator, this circuit does not require an external
trigger to change the state of the output, hence the name free running. However, the time during
which the output is either high or low is determinate by the Two resistors and a capacitor, which
are externally connected to the 555 timer.
Figure 1 shows the 555 timer connected as an Astablemultivibrator. Initially, when the output is
high, capacitor C starts charging towards Vcc through RA and RB. However as soon as voltage
across the capacitor equals 2/3 Vcc, comparator 1 triggers the flip-flop, and the output switches
low. Now the capacitor C starts discharging through RB and the transistor Q 1. When the voltage
across C equals 1/3 Vcc, comparator 2s output triggers the flip-flop, and the output goes high.
Then the cycle repeats. The output voltage and the capacitor voltage waveforms are shown in the
following figures.
As shown in this figure, the capacitor is periodically charged and discharged between 2/3 Vcc and
1/3 Vcc, respectively. The time during which the capacitor charges from 1/3 Vcc to 2/3 Vcc is
equal to the time the output is high and is given by
Similarly, the time during which the capacitor discharges from 2/3 Vcc to 1/3 Vcc is equal to the
time the output is low and is given by
td = 0.69 (RB)C (2)
Thus the total time period of the waveform is
T = tc + td = 0.69(RA + 2RB) (3)
Therefore the frequency of oscillation is fo = 1/T = 1.45/(RA + 2RB)C
4.Circuit Diagram:
6. PROCEDURE:
1. Connect the components/equipment as shown in the circuit diagram.
2. Switch ON the power supply.
3. Connect channel-1 of CRO to the output (Pin 3).
4. Observe the output voltage and note down the time period and duty cycle.
5. Now connect channel-2 of CRO across capacitor and observe the voltage across the
capacitor and note it down.
6. Compare the practical time period and duty cycle.
7.CALCULATIONS:
THEORETICAL
time periods tc = 0.69 (RA +
RB) C
td = 0.69 (RB)C
8.RESULT:
9.VIVA QUESTIONS:
1. What is the other name for Astablemultivibrator (AMV)?
2. What is the formula for the time period of the waveform of AMV?
3. What is the formula for the % of Duty cycle?
WEEK-6:
EXPERIMENT NO: 6
1. AIM: To study the Schmitt trigger characteristics by using IC741 and compare
theoretical and practicalvalues of the Upper Threshold voltage, VUT and the Lower
Threshold voltage, VLT.
3. THEORY:
Circuit shows an inverting comparator with positive feedback. This circuit converts an
irregular shaped waveform to square wave or pulse. This circuit is known as Schmitt trigger or
Regenerative comparator or Squaring circuit. The input voltage Vin triggers (changes the state of
) the output Vo every time it exceeds certain voltage levels called Upper threshold voltage, VUT
and Lower threshold voltage, VLT. The hysteresis width is the difference between these two
threshold voltages i.e. VUT VLT. These threshold voltages are calculated as follows.
VUT = (R1/R1+R2) Vsat when Vo= Vsat
VLT = (R1/R1+R2) (-Vsat) when Vo= -Vsat
The output of Schmitt trigger is a square wave when the input is sine wave or triangular wave,
where as if the input is a saw tooth wave then the output is a pulse wave.
4. CIRCUIT DIAGRAM:
5. PROCEDURE:
HOLY MARY INSTITUTE OF TECHNOLOGY&SCIENCE , BOGARAM,KEESARA. 36
IC Applications and HDL Simulation Lab Manual
6. EXPECTED WAVEFORMS:
TABLE:
7. RESULT:
8. VIVA QUESTIONS:
1. Which is type of comparator called Schmitt trigger using IC741?
2. What is the output wave of Schmitt trigger if the input is sine wave?
3. What type of waveform is obtained when triangular or ramp waveforms are applied to
Schmitt trigger circuit?
4. Explain how a square wave is obtained at the output of timer when sine wave input is
given?
5. What is the Threshold voltage?
6. How do you calculate the theoretical values of VUT and VLT in the case of IC741?
7. What is the Hysteresis width?
8. What is the minimum amplitude of the input sine wave in the case of Schmitt trigger
using IC741?
WEEK-7
EXPERIMENT NO: 7
1.AIM:
1. To study the operation of NE565 PLL
2. To use NE565 as a multiplier
2. EQUIPMENT AND COMPONENTS
3.APPARATUS
1. DC power supply 1 No.
2. CRO 1 No.
3. Breadboards 1 No.
4. Function Generator- 1 No.
4.THEORY
The 565 is available as a14-pin DIP package. It is produced by Signatic Corporation. The output
frequency of the VCO can be rewritten as
fo = 0.25 / RT CT Hz.
Where RT and CTare the external resistor and capacitor connected to pin8 and pin9. A value
between 2k and 20k is recommended for RT .The VCO free running frequency is adjusted with RT
and CT to be at the centre for the input frequency range
5.CIRCUIT DIAGRAM
6.PROCEDURE:
i. Connect the circuit using the component values as shown in the figure
ii .Measure the free running frequency of VCO at pin4 with the input signal
Vinset= zero. Compare it with the calculated value=0.25/RTCT
iii. Now apply the input signal of 1Vpp square wave at a1kHz to pin2
st
iv. Connect1 channel of the scope to pin2 and display this signal on the scope.
v .Gradually increase the input frequency till the PLL is locked to the input frequency. This
frequency f1 gives the lower ends of the capture range. Go on increase the input frequency; till
PLL tracks the input signal, say to a frequency f2.This frequency f2 gives the upper end of the
lock range. If the input frequency is increased further the loop will get unlocked.
vi. Now gradually decrease the input frequency till the PLL is a gain locked. This is the
frequency f3, the upper end of the capture range .Keep on decreasing the input frequency until
the loop is unlocked. This frequency f4 gives the lower end of the lock range
vii. The lock range fL=(f2 f4) compare it with the calculated value of (7.8 fo /12)
Also the capture range is fc=(f3 f1). Compare it with the calculated value of capture
3 1/2
range. fc = [fL / (2)(3.6)(10 )C]
viii To use PLL as a multiplier,make connections as show in fig. The circuit uses a 4-bit binary
counter7490 used as a divide-by-5circuit.
ix. Set the input signal at 1Vpp square wave at 500Hz
x..Vary the VCO frequency by adjusting the 20K potentiometer till the PLL is locked.
Measure the output frequency.
xi. Repeat step9 and10 for input frequency of 1kHz and 1.5kHz.
7.OBSERVATIONS:
fO = fL =
fC =
8.CALCULATIONS:
9.GRAPH:
10.RESULT:
11.VIVA QUESTIONS:
WEEK-8
EXPERIMENT No: 8
1.AIM
Limitations :
These variations in dc output voltage may cause inaccurate or erratic operation or even
malfunctioning of many electronic circuits. Eg. In an oscillator, the frequency will shift and in
transmitters, distorted output will result, Therefore, ordinary power supply is unsuited for many
applications and is being replaced by regulated power supply.
For comparison of different types of power supplies, the following terms are commonly used:
1. Voltage regulation : The dc voltage available depends upon load current. If the load current Idc
across the output terminals of a given power supply is increased by decreasing RL as in Fig-
HOLY MARY INSTITUTE OF TECHNOLOGY&SCIENCE , BOGARAM,KEESARA. 42
IC Applications and HDL Simulation Lab Manual
2.There is greater voltage drop in the power supply and hence smaller dc output voltage will be
available . Reverse will happen if the load current decreases. The variation of output voltage
w.r.t.the amount of load current drawn from the power supply is known as voltage regulation and
is expressed by the following relation:
% voltage regulation = (VNL - VFL) / VFL * 100
VNL=dc output voltage at no load.
VFL=dc output voltage at full load
In a well designed power supply, the full load voltage is only slightly less than no -load voltage
I.e. voltage regulation approaches zero. Therefore, lower the voltage regulation, the lesser the
difference between full-load and no-load voltage and better is the power supply. Power supplies
used in practice have a voltage regulation of 1% i.e. full load voltage is within 1% of the no -load
voltage. Fig-3 shows the change of dc output voltage with load current. This is known as voltage
regulation curve.
2. MINIMUM LOAD RESISTANCE : The change of load connected to a power supply varies
the load current and hence the dc output voltage. In order that a power supply gives the rated
output voltage and current, there is minimum load resistance allowed. For instance, I a power
supply is required to deliver a full-load current IFL at full load voltage VFL, then,
A dc power supply which maintains the output voltage constant irrespective of ac mains
fluctuations or load variations is known as regulated dc power supply. A regulated power supply
consists of an ordinary power supply and voltage regulating device an in fig-4. The output of
ordinary power supply is fed to the voltage regulator which produces the final output. The output
voltage (Vdc) remains constant whether the load current changes or there are fluctuations in the
input ac voltage.
NEED : In an ordinary power supply, the voltage regulation is poor i.e dc output voltage
changes appreciably with load current. Moreover, output voltage also changes due to
variations in the input ac voltage. This is due to the following reasons:-
i) In practice, there are considerable variations in ac line voltage caused by outside factors
beyond our control. This changes the dc output voltage. Most of the electronic circuits will
refuse to work satisfactorily on such output voltage fluctuations. This necessitates to use
regulated dc power supply.
ii) The internal resistance of power supply is relatively large (>30W). Therefore, output voltage is
markedly affected by the amount of load current drawn from the supply. These variations in
dc voltage may cause erratic operation of electronic circuits. Therefore, regulated dc
power supply is the only solution in such situations.
4.HARDWARE SPECIFICATIONS
8V - 0 - 8V / 350mA AC sources
3.
5.EXPERIMENTAL PROCEDURE
2. Connect different load resistors available in the front panel, note down the output current and
voltage.
3. Also test the circuit with 12V - 0 - 12V, 16V - 0 - 16V AC sources also.
4.Remove 7805 and connect 7809, 7812 also repeat 2 and 3 steps.
5.Connect the circuit shown in fig - 5.
7.EXPERIMENTAL PROCEDURE
10. Draw a graph between load current Idc& load voltage Vdc regulation.
723 Regulator:
It is a monolithic voltage regulator constructed on a single silicon chip. The device consists of
temperature compensated reference amplifier,, error amplifier, power series pass transistor and
curren limit circuitry. Additional NPN or PNP pass element may be used when output currents
exceedin150mA are required. Provisions are made for adjustable current limiting and remote
shutdown. In Addition to the above the device features low stand by current drain, low
temperature drift and hig ripple rejections. The 723 is intended for use with positive or
negative supplies as a series, shunt , switching or floating regulator. Applications include
laboratory power supplies, air borne system and other power supplies for digital and linear
circuits.
6.CIRCUIT DESCRIPTION
Fig -4 shows the circuit of a variable regulator constructed with 723 IC. Pin is connected to
positive terminal of the supply. 10KW potentiometer connected to pin 4, controls the output
voltage.
Output is available at Pin10. This output is not sufficient to drive loads. So it is passed
through the Darlington pair of transistors (CL100).
8.RESULT:
1. The 7812
regulator IC provides how much voltage?
2. Voltage
regulators keep a constant which output voltage when the input or load varies within
limits?
3. What is the
dropout voltage in a three terminal IC regulator?
4. To get a
maximum output current, IC regulation are provided with which device?
5. Which type
of regulator is considered more efficient?
6. How the
average temperature coefficient of output voltage expressed in fixed voltage
regulator?
WEEK:9
PROGRAM :9(A)
1.AIM:
To develop the source code for logic gates by using VERILOG and obtain the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
3.LOGIC DIAGRAM:
A B Y=AB A B Y=A+B
0 0 0 0 0 0
0 1 0 0 1 1
1 0 0 1 0 1
1 1 1 1 1 1
A B Y=(A+B)
A B
0 0 1
0 1 0 0 0 0
1 0 0 0 1 1
1 1 0 1 0 1
1 1 0
XNOR GATE:
module logicgates1(a, b,
c); input a;
input b;
OUTPUT: [6:0] c;
assign c[0]= a & b;
assign c[1]= a | b;
assign c[2]= ~(a &
b); assign c[3]= ~(a |
b); assign c[4]= a ^ b;
assign c[5]= ~(a ^ b);
assign c[6]= ~ a;
endmodule
Simulation output:
5.RESULT:
Thus the OUTPUTs of all logic gates are verified by simulating the VERILOG code.
6. VIVA QUESTIONS:
1. If a signal passing through a gate is inhibited by sending a low into one of the inputs, and the
output is HIGH, the gate is which one?
2. for which gate the output will be a LOW for any case when one or more inputs are zero ?
3. A single transistor can be used to build which of the following digital logic gate?
4. Exclusive-OR (XOR) logic gates can be constructed from what other logic gates?
PROGRAM :9(B)
1.AIM:
To develop the source code for 2-to-4 decoder by using VERILOG and obtain the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
TRUTH TABLE:
0 0 1 0 1 1 1
0 1 1 1 0 1 1
1 0 1 1 1 0 1
1 1 1 1 1 1 0
5.Simulation output:
6.RESULT:
7.VIVA QUESTIONS:
WEEK:10
PROGRAM :10(A)
1.AIM:
To develop the source code for 8-to-3 encoder by using VERILOG and obtain the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
TRUTH TABLE:
D0 D1 D2 D3 D4 D5 D6 D7 X Y Z
1 0 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0 0 0 1
0 0 1 0 0 0 0 0 0 1 0
0 0 0 1 0 0 0 0 0 1 1
0 0 0 0 1 0 0 0 1 0 0
0 0 0 0 0 1 0 0 1 0 1
0 0 0 0 0 0 1 0 1 1 0
0 0 0 0 0 0 0 1 1 1 1
moduleencoderbehav(d, a,b,c);
input [7:0] d;
output x; output y; output z;
rega,b,c;
always @ (d [7:0])
begin a= d[4] | d[5] | d[6] | d[7];
b= d[2] | d[3] | d[6] | d[7];
c= d[1] | d[3] | d[5] | d[7];
end
endmodule
5.Simulation output:
HOLY MARY INSTITUTE OF TECHNOLOGY&SCIENCE , BOGARAM,KEESARA. 53
IC Applications and HDL Simulation Lab Manual
6.RESULT:
7.VIVA QUESTIONS:
1. How many 3-line-to-8-line decoders are required for a 1-of-32 decoder?
2. How many data select lines are required for selecting eight inputs?
3. The TTL 74LS148 is an 8-to-3 bit priority encoder has how many active low inputs?
4. when an input with a higher priority is present, then what happens to the all other inputs with a
lower priority?
PROGRAM :10(B)
1.AIM:
To develop the source code for 8x1 multiplexer and demultiplexer by using VERILOG and
obtain the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
4. TRUTH TABLE:
6. Simulation output:
8.RESULT:
9. VIVA QUSETIONS:
1. How many number of control lines for a 8 to 1 multiplexer?
2. The device which changes from serial data to parallel data is called?
3. The commercially available 8-input multiplexer integrated circuit in the TTL family is ?
WEEK:11
PROGRAM :11(A)
1. AIM:
To develop the source code for 4 bit binary to gray converter by using VERILOG and
obtained the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
BCD GRAY
0000 0000
0001 0001
0010 0011
0011 0010
0100 0110
0101 0111
0110 0101
0111 0100
1000 1100
1001 1101
4. LOGIC DIAGRAM:
5.Behavioral Modeling:
module b2g_behv(b,g);
input [3:0] b;
output [3:0] g; reg [3:0] g;
always@(b) begin
g[3]=b[3];
g[2]=b[3]^b[2];
g[1]=b[2]^b[1];
g[0]=b[1]^b[0];
end
endmodule
6. Simulation output:
7. RESULT:
8. VIVA QUESTIONS:
1. Gray code is which type of code?
2. The M.S.B. of the gray code will be exactly equal to the first bit of the given binary number?explain?
3. 4 bit gray code can be converted into how many bits?
4. Gray to binary conversion can be implemented with what?
5.gray code belongs to a class of codes called as?
Program11(B):
1.AIM:
To develop the source code for 4-Bit comparator by using VERILOG and obtained the
simulation .
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
5. Simulation output:
6.RESULT:
7. VIVA QUESTIONS:
1. A circuit which converts some binary code into a singular active output representing its numerical value is ?
1.AIM:
To develop the source code for full adder using three modeling styles by using VERILOG
and obtained the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
3.FULL ADDER:
A B C SUM CARRY
0 0 0 0 0
0 0 1 1 0
0 1 0 1 0
0 1 1 0 1
1 0 0 1 0
1 0 1 0 1
1 1 0 0 1
1 1 1 1 1
Dataflow Modeling:
Behavioral Modeling:
Structural Modeling:
modulefa_struct(a, b, c, sum, carry);
input a;
input b;
input c;
output sum;
output carry;
wire t1,t2,t3,s1
xor x1(t1a,b),
x2(sum,s1,c);
and a1(t1,a,b),
a2(t2,b,c),
a3(t3,a,c);
or o1(carry,t1,t2,t3);
endmodule
5.Simulation output:
6.RESULT:
7.VIVA QUESTIONS:
4. What are the fundamental inputs assigned or configured in the full adder circuit ?
Program 12 (B):
1.AIM:
To develop the source code for FLIP FLOPS by using VERILOG and obtained the
simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
3. SR FLIPFLOP:
Q(t) S R Q(t+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 X
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 X
Behavioral Modeling:
q=q;
qbar=qbar;
end
else if(s==1'b0 && r==1'b1)
begin
q= 1'b0; qbar= 1'b1;
end
else if(s==1'b1 &&r==1'b0)
begin
q= 1'b1;
qbar= 1'b0;
end
else
begin
q=1'bx;
qbar=1'bx;
end
end
endmodule
5.Simulation output:
. JK FLIPFLOP:
Q(t) J K Q(t+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 0
Behavioral Modeling:
Simulation output:
D FLIPFLOP:
LOGIC DIAGRAM: TRUTH TABLE:
Q(t) D Q(t+1)
0 0 0
0 1 1
1 0 0
1 1 1
Behavioral Modeling:
Simulation output:
T-FLIP FLOP
LOGIC DIAGRAM: TRUTH TABALE:
Simulation output:
6.RESULT:
7.VIVA QUESTIONS:
1. How many flip-flops are required to make a MOD-32 binary counter?
2. How is a J-K flip-flop made to toggle?
3. How many flip-flops are in the 7475 IC?
4. How many flip-flops are required to produce a divide-by-128 device?
5.On a master-slave flip-flop, when is the master enabled?
WEEK: 13
PROGRAM 13:
1.AIM:
To develop the source code for 4-bit binary counter and BCD counter by using VERILOG
and obtained the simulation.
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
3.LOGIC DIAGRAM
output [3:0]
dout ; input clk
;
input reset ;
initialdout = 0;
always @ (posedge (clk))
begin if (reset)
dout<= 0;
else
dout<= dout + 1;
end
endmodule
5.Simulation output:
BCD COUNTER
LOGIC DIAGRAM
Simulation output:
6.RESULT:
7.VIVA QUESTIONS:
WEEK: 14
PROGRAM 14:
1.AIM:
To develop the source code for finite state machine design by using VERILOG and
obtained the simulation
1. XILINX 9.2i
2. FPGA-SPARTAN-3E
modulefsm_using_function (
clock , // clock
reset , // Active high, syn reset
req_0 , // Request 0
req_1 , // Request 1
gnt_0 , // Grant 0
gnt_1
);
//-------------Input Ports-----------------------------
input clock,reset,req_0,req_1;
//-------------Output Ports----------------------------
output gnt_0,gnt_1;
//-------------Input ports Data Type-------------------
//-------------Output Ports Data Type------------------
reg gnt_0,gnt_1;
//-------------Internal Constants--------------------------
parameter SIZE = 3 ;
parameter IDLE = 3'b001,GNT0 = 3'b010,GNT1 = 3'b100 ;
//-------------Internal Variables---------------------------
reg [SIZE-1:0] state ;// Seq part of the FSM
//----------Code startes Here------------------------
assignnext_state = fsm_function(state, req_0, req_1);
//----------Function for Combo Logic-----------------
function [SIZE-1:0] fsm_function;
input [SIZE-1:0] state ;
input req_0 ;
input req_1 ;
case(state)
IDLE : if (req_0 == 1'b1) begin
fsm_function = GNT0;
end else if (req_1 == 1'b1) begin
fsm_function= GNT1;
end else begin fsm_function =
IDLE;
end
GNT0 : if (req_0 == 1'b1) begin fsm_function
= GNT0;
4.RESULT:
5.VIVA QUESTIONS:
1. Number of states require to accept string ends with 10 are?
2.How many tuples are in finite state machine?
3. Finite automata requires minimum how many number of stacks?
4. Number of final state require to accept in minimal finite automata?
5. Is FSM with output capability can be used to add two given integer in binary representation?
LEAD EXPERIMENTS
EXPERIMENT: 1
1. AIM:
To Design a RC Phase Shift Oscillators that the output frequency is 200 Hz.
(i). APPARATUS
1. CRO (Dualchannel) - 1 No
2. BreadBoard 1 No
3. DualChannelPower Supply 1 No
3.COMPONENTS:
4. THEORY:
The PhaseShift Oscillator consist of an operational amplifier as the amplifying stage and three
RC cascaded networks as the feed back circuits the amplifier will provide 180 degrees phaseshift.
The feed back network will provide another phase shift of 180 degrees.
5. CIRCUIT DIAGRAM:
6. PROCEDURE:
7. OBSERVATIONS:
CALCULATIONS:
i.e., (Ro/R1)*29
iii.fo=200Hz
LetC=0.1f
Then
8. GRAPH:
9. RESULT:
EXPERIMENT: 2
1.AIM:
To Design Wein Bridge Oscillator so that the output frequency is 965 Hz.
1.CRO (Dualchannel) - 1 No
2. BreadBoard 1 No
3. DualChannelPower Supply 1 No
3.COMPONENTS:
4.THEORY:
In this oscillator the Wein Bridge Circuit is connected between the amplifier input terminals and
the output terminal. The bridge has a series RC network in one arm and parallel RC network in
the adjoining arm. In the remaining two arms of the bridge resistors R1 and RF are connected.
The total phase-shift around the circuit is 0o when the bridge is balanced.
5.CIRCUIT DIAGRAM:
R= 3.3K
C= 0.1F
R1= 33K
6. PROCEDURE:
7. OBSERVATIONS:
CALCULATIONS:
i.e., (Ro/R1)*29
iii.fo=200Hz
LetC=0.1f
HOLY MARY INSTITUTE OF TECHNOLOGY&SCIENCE , BOGARAM,KEESARA. 81
IC Applications and HDL Simulation Lab Manual
Then
8. GRAPH:
9. RESULT:
2. For an Op-amp based wien Bridge Oscillator , if the oscillations stops after a few cycles, then
the cause is?
3. A Wien Bridge Oscillator circuit is required to generate a sinusoidal waveform of how much
frequency?
4. The Voltage gain of the amplifier must be?
5. The output resistance of the amplifier must be?