Professional Documents
Culture Documents
VHDL Experiments
Equipments:
Computer Orcad software program.
Introduction to Orcad:
SPICE is a powerful general purpose analog and mixed-mode circuit simulator that is
used to verify circuit designs and to predict the circuit behavior. This is of particular
importance for integrated circuits.
In addition, PSpice has analog and digital libraries of standard components (such as NAND, NOR,
flip-flops, MUXes, FPGA, PLDs and many more digital components ). This makes it a useful tool
for a wide range of analog and digital applications.
All analyses can be done at different temperatures. The default temperature is 300K.
The circuit can contain the following components:
1 Independent and dependent voltage and current sources
2 Resistors
3 Capacitors
4 Inductors
5 Mutual inductors
6 Transmission lines
7 Operational amplifiers
8 Switches
9 Diodes
10 Bipolar transistors
11 MOS transistors
12 JFET
13 MOSFET
14 Digital gates
The values of elements can be specified using scaling factors (upper or lower case):
T or Tera (= 1E12);
G or Giga (= E9);
MEG or Mega (= E6);
K or Kilo (= E3);
M or Milli (= E-3); U or Micro (= E-6);
N or Nano (= E-9);
P or Pico (= E-12)
F of Femto (= E-15)
2) Transient Analysis
1 1. Draw the circuit as shown in figure
2 2. Insert the Vsin source from the library Source. Double click on the source and make the
following changes FREQ = 1000, AMPL = 1, VOFF = 0.
3 3. Set up the Transient Analysis: go to the PSPICE/NEW SIMULATION PROFILE.
4 4. Give it a name (e.g. Transient). When the Simulation Settings window opens, select "Time
Domain (Transient)" Analysis. Enter also the Run Time. Lets make it 5 ms(5 periods since
FREQ = 1000). For the Max Step size, you can leave it blank or enter 10us.
5 5. Run PSpice.
6 6.The results is shown in figure
1.0V
0.5V
0V
-0.5V
-1.0V
0s 0.5ms 1.0ms 1.5ms 2.0ms 2.5ms 3.0ms 3.5ms 4.0ms 4.5ms 5.0ms
V(D1:2) V(V4:+)
Time
3) AC Sweep Analysis:
The AC analysis will apply a sinusoidal voltage whose frequency is swept over a specified range. The
simulation calculates the corresponding voltage and current amplitude and phases for each frequency.
When the input amplitude is set to 1V, then the output voltage is basically the transfer function. In
contrast to a sinusoidal transient analysis, the AC analysis is not a time domain simulation but rather a
simulation of the sinusoidal steady state of the circuit. When the circuit contains non-linear element
such as diodes and transistors, the elements will be replaced their small-signal models with the
parameter values calculated according to the corresponding biasing point.
1 1. Create a new project and build the circuit as shown in figure
2 2. For the voltage source use VAC from the Sources library.
3 3. Make the amplitude of the input source 1V.
4 4. Create a Simulation Profile. In the Simulation Settings window, select AC Sweep/Noise.
5 5. Enter the start and end frequencies and the number of points per decade. For our example we
use 0.1Hz, 10 kHz and 11, respectively.
6 6. Run the simulation
7 7. In the Probe window, add the traces for the output voltage.
8 8. The results is as shown in figure
600mV
400mV
200mV
0V
100mHz 300mHz 1.0Hz 3.0Hz 10Hz 30Hz 100Hz 300Hz 1.0KHz 3.0KHz 10KHz
V(R4:2)
Frequency
4) DC Sweep Analysis:
The DC sweep is used to draw the voltage transfer characteristic
(VTC) between output and input.
1) we connect the circuit as shown in figure
2) from dc sweep analysis we choose primary sweep and we
put the name of the source V1 and start value (0),end value
(12) and increment (0.1).
3) Then choose secondary sweep and put the name of the current source I2 and start
value (-4u),end value (12u) and increment (4u).
4) we put the current marker above R2 as shown.
5) The result will be as shown in the figure 8.
Output Current
2.0mA
1.0mA
0A
-1.0mA
0V 1V 2V 3V 4V 5V 6V 7V 8V 9V 10V 11V 12V
-I(R2)
V_V1
EXPERIMENT :- 1
THEORY:- A BJT inverter is a simple CE switch as shown in Figure 1 (a). When the input voltage
Vi is LOW, the output voltage is VO is HIGH and vice-versa. Its voltage transfer characteristics are
such as shown in Figure 1 (b). The noise margins NM can be determined from the transfer
characteristics as follows: NMH=VOH VIH (Volts)
NML=VIL VOL (Volts)
The higher noise margins, the higher are the immunity of the logic gate to unwanted
signals(noise).
CIRCUIT DIAGRAM:-
R 2
1k
V
V3
5Vdc
Q 1
R 1
1k
V Q 2N 2222
V4
5Vdc
0.5 V 4.996 V
1.0 V 4.616 V
1.5 V 4.141 V
2.0 V 3.656 V
2.5 V 3.168 V
3.0 V 2.679 V
3.5 V 2.616 V
4.0 V 2.770 V
4.5 V 2.931 V
5.0 V 0.094 V
OUTPUT:
CONCLUSION:- Study of transient analysis of BJT Inverter using step input has been done.
EXPERIMENT :-2
AIM: DC Analysis (VTC) of BJT inverter with parameters.
CIRCUIT DIAGRAM:-
R 2
1k
V
V3
5Vdc
Q 1
R 1
1k
V Q 2N 2222
V4
5Vdc
RESULT:-
EXPERIMENT:- 3
The n-type MOSFETs are arranged in a so-called "pull-down network" (PDN) between the
logic gate output and negative supply voltage, while a resistor is placed between the logic gate
output and the positive supply voltage. The circuit is designed such that if the desired output is low,
then the PDN will be active, creating a current path between the negative supply and the output.
CIRCUIT DIAGRAM:-
VDD
10V
M 1
VDD
XMM1
R1 BSS129
10k
0
V
V2
1 M 2 5Vdc
Q1 C1 L2082
20pF V1
V
2 5Vdc
V1 MTD4N20E 0
3.3 V
0
0
Figure 2:-Resistive load NMOS inverter Figure 3:-Depletion type NMOS inverter
OBSERVATIONS:-
Sr.no. Input(V1) in volts Output(Vo) in
volts
1. 0V 9.99 V
2. 1V 9.991 V
3. 2V 9.992 V
4. 3V 9.993 V
5. 4V 1.876mV
6. 5V 936.64uV
RESULT:-
EXPERIMENT:-4
B S S 129
OUTPUT:-
EXPERIMENT:-5
OUTPUT:-
EXPERIMENT:-6
THEORY:-
V1
5Vdc
An inverter circuit outputs a voltage
representing the opposite logic-level to its
input. Inverters can be constructed using a 0
single NMOS transistor or a single PMOS M 1
CIRCUIT DIAGRAM:-
VCC
10V
VCC
R1
1k
Q2 XMM1
3 2N6804
0
1
V1 Q1
5 V
0 MTD4N20E
0
OBSERVATIONS:-
AIM:- Transient Analysis of CMOS inverter using step input with parameters.
CIRCUIT DIAGRAM:-
VCC
XSC1
3.3V
Q3 Ext Trig
+
_
A B
+ _ + _
V2 0.5u
1.25u
5nsec Q1 Vo
C1
500fF
0.5u
1.25u
OUTPUT:-
EXPERIMENT:-8
CIRCUIT DIAGRAM:-
V1
5Vdc
0
M 1
M 2 S J 5 9 8 /N E C
V V
V1 = 0 V2
V2 = 5 M 2
TD =
TR = 1ns
TF = 1ns M 2 S K 3 2 9 5 /N E C
PW = 1m s
PER = 2m s
0
0
OUTPUT:-
EXPERIMENT:-9
AIM:- Transient Analysis of CMOS inverter using pulse input with parameters.
CIRCUITDIAGRAM:-
OUTPUT:-
EXPERIMENT:-10
CIRCUIT DIAGRAM:-
and we put the name of the source V2 and start value 5Vdc M 2
THEORY:-
If logical 1's are associated with high voltages then the function of this gate is called NOR
for negated OR.
Again, there is never a conducting path from the supply voltage to ground.
CIRCUIT DIAGRAM:-
DC Sweep Analysis Procedure:
V1
5Vdc
The DC sweep is used to draw the
voltage transfer characteristic 0
(VTC) between output and input. M4
M TD 2 9 5 5 V /O N
1. Connect the circuit as shown in
figure M5
Result
(A) DC Analysis of NOR gate Inverter.
(B)Transient Analysis of NOR Gate inverter.
Domain (Transient)"
Analysis. V1 = 0
V2 = 5
V2 V M6 M7
blank or enter
10us. Place the Voltage marker on 0
output.
6. Run PSpice. 0
OUTPUT:-
THEORY:-
If logical 1's are associated with high voltages then the function of this
gate is called NAND for negated AND.
Again, there is never a conducting path from the supply voltage to
ground.
M 5
BS S129
V
V6
5Vdc
M 6
M 2N 6759
V
V5
5Vdc
M 7
0 M 2N 6759
OUTPUT:-
CIRCUIT DIAGRAM:- M 5
B S S 129
V 6
5V dc
O F F T IM E = .5 u S D S T M 1 M 6
O N T I M E = . 5 u S CLK
D E LA Y =
S TA R TV A L = 0 M 2VN 6 7 5 9
O P P V A L = 1
O F F T IM E = .5 u S D S T M 2 M 7
O N T I M E = . 5 u S CLK
D E LA Y =
S TA R TV A L = 0 M 2 N V6 7 5 9
O P P V A L = 1
0
RESULT:-