Vlsi Device Modelling ENP 302 Assignment-04
Vlsi Device Modelling ENP 302 Assignment-04
DEVICE MODELLING
ENP 302
ASSIGNMENT-04
Submitted by:
Domatoti Vinay Kumar
BT18ECE082
Submitted to:
Sumedh Ramteke (Course Instructor)
Dr. Ganesh C Patil (Course Co-ordinator)
Q1)
Problem Statement : Simulate the Differentiator using the NGSPICE
(a)Sine wave as input (b)Square wave as input
Code:
op amp diff
.INCLUDE LF356.MOD
XU1 0 2 7 4 6 LF356/NS
V n0 0 SIN(0 1 120)
R n0 1 150
C 1 2 0.1uF
Vg 3 0 0
Rf 2 6 1k
Cf 2 6 0.1uF
Vp 7 0 5.9V
Vm 4 0 -5.9V
.control
Set Xbrushwidth=2
.endc
.end
Output: Differentiator with Sine wave as input
op amp integrator
.INCLUDE LF356.MOD
XU1 0 2 7 4 6 LF356/NS
*V n0 0 PULSE(0 1 0us 0us 0us 5ms 10ms)
V n0 0 SIN(0 1 120)
R n0 2 75k
Rf 2 6 270k
Cf 2 6 10nF
Vp 7 0 5.9
Vm 4 0 -5.9
.control
tran 1us 50ms
Set Xbrushwidth=2
plot V(6) V(n0)
.endc
.end
Output: Integrator with Sine wave as input
V1 1 0 ac 1V dc 0V
R1 3 0 1k
C1 1 3 100n
Vp 7 0 10
Vm 4 0 -10
.control
ac oct 101 10 100k
plot db(V(6)/V(1))
.endc
.end
Output:
Observation & Conclusion: Cut-off frequency by tool, approximately around 1.5KHz
Code3b:
Bandpass filter
.include LF356.MOD
XU1 3 6 7 4 6 LF356/NS
V1 1 0 ac 5V dc 0V
C1 1 3 50u
R1 3 0 100
R2 6 out 10k
C2 out 0 10n
Vp 7 0 10
Vm 4 0 -10
.control
AC oct 101 10 100k
plot db(V(out)/V(1))
.endc
.end
Output:
BandStop Filter(Notch )
* Band reject filter
V1 1 0 ac 5V dc 0V
*lpf
.include LF356.MOD
XU1 in1 out1 7 4 out1 LF356/NS
R1 in1 1 100
C1 in1 0 50u
*hpf
● It is observed that both the values are approximately same, and the reason why
tool values are not same with formulae based values is because of observational
error i.e not able to select the exact point on graph where the y co-ordinate is -3dB.
Q4)
Problem Statement : .Simulate the following using NGSPICE
(a) Inverting Summer (b) Non-Inverting Summer.
Code:
inverting summer
.include LF356.MOD
XU1 3 2 7 4 6 LF356/NS
Vp 7 0 12
Vn 4 0 -12
Vg 3 0 0
V1 n1 0 sin(0 1 50hz)
V2 n2 0 sin(0 2 50hz)
R1 n1 2 1k
R2 n2 2 1k
Rf 2 6 1k
.control
Set Xbrushwidth=3
.endc
.end
Code:
.include LF356.MOD
XU1 3 2 7 4 6 LF356/NS
R1 n1 3 1k
R2 n2 3 1k
Ra 2 6 1k
Rb 2 0 1k
Vp 7 0 9
Vm 4 0 -9
V1 n1 0 sin(0 1 50hz)
V2 n2 0 sin(0 2 50hz)
.control
Set Xbrushwidth=3
.endc
.end
Output: Inverting Summer
Non-Inverting Summer
Observation &Conclusion:
● When the two sine waves of amplitudes 1V and 2V are passed into a inverting and
non-inverting summer’s, it can be seen above that an inverted and a non-inverted
sine wave of amplitude 3V is produced.