0% found this document useful (0 votes)
50 views13 pages

Vlsi Device Modelling ENP 302 Assignment-04

1) The document summarizes simulations of various analog circuits like a differentiator, integrator, high pass filter, band pass filter, band stop filter, inverting summer and non-inverting summer using NGSPICE. 2) For each circuit, the code for the simulation is provided along with the output plot and observations. 3) Key results are noted, such as cut-off frequencies calculated by the simulation tool matching theoretical calculations based on component values. 4) It is concluded that the simulations verify the expected behavior of the different circuits.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views13 pages

Vlsi Device Modelling ENP 302 Assignment-04

1) The document summarizes simulations of various analog circuits like a differentiator, integrator, high pass filter, band pass filter, band stop filter, inverting summer and non-inverting summer using NGSPICE. 2) For each circuit, the code for the simulation is provided along with the output plot and observations. 3) Key results are noted, such as cut-off frequencies calculated by the simulation tool matching theoretical calculations based on component values. 4) It is concluded that the simulations verify the expected behavior of the different circuits.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

VLSI

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

*for sine wave as input

V n0 0 SIN(0 1 120)

*for square wave as input

*V n0 0 PULSE(0 1 1us 0us 0us 5ms 10ms)

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

tran 1us 50ms

Set Xbrushwidth=2

plot V(6) V(n0)

.endc

.end
Output: Differentiator with Sine wave as input

Differentiator with Square wave as input


Q2)
Problem Statement : Simulate the Integrator using the NGSPICE
(a)Sine wave as input (b)Square wave as input
Code:

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

Integrator with Square Wave as input


Q3)Problem Statement : 3.Simulate the following using NGSPICE
(a)High Pass Filter (b)BandPass Filter (c)BandStop Filter(Notch Filter)
Code3a:
High pass filter
.include LF356.MOD
XU1 3 6 7 4 6 LF356/NS

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

● Cut-off frequency by hand i.e formula,fc = 1/(2πRC) = 1.591KHz

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:

Observation and Conclusion:


● Cut-off frequency by tool, approximately around 31.22Hz & 1605.3Hz

● Cut-off frequency calculated by hand i.e formula,fc = 1/(2πRC) = 31.82Hz &


1591.54Hz
Code3c:

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

XU2 in2 out2 7 4 out2 LF356/NS


R2 in2 0 10k
C2 1 in2 10n
*summer
XU3 0 in 7 4 out LF356/NS
R3 out1 in 1k
R4 out2 in 1k
Rf in out 1k
Vp 7 0 10
Vm 4 0 -10
.control
AC oct 101 10 100k
plot db(V(out)/V(1))
.endc
.end
Output:

Observation & Conclusion:


● Cut-off frequency by tool, approximately around 30.4322Hz & 1605.3Hz

● Cut-off frequency calculated by hand i.e formula,fc = 1/(2πRC) = 31.82Hz &


1591.54Hz

● 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

TRAN 0.1m 100m

Set Xbrushwidth=3

plot V(n1) V(n2) V(6)

.endc

.end
Code:

non inverting summer

.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

TRAN 0.01m 80ms

Set Xbrushwidth=3

plot V(n1) V(n2) V(6)

.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.

You might also like