https://github.com/hackerminds/7SEM/blob/master/vlsi_codes.md
https://minhaskamal.github.io/DownGit/#/home?url=https://github.com/hackerminds/7SEM/blob/master/VLSI_LAB/Analog_Design.jelib
![layout](/hackerminds/7SEM/raw/master/VLSI_LAB/invl.JPG)
-
Spice Code
Vdd Vdd 0 DC 5
*DC Analysis
Vin Vin 0 DC 5
.dc Vin 0 5 1m
*Transient Analysis
Vin Vin 0 PULSE(0 5 0 1n 1n .5m 1m)
.tran 2m
.include C:\Electric\C5_models.txt
![cd](/hackerminds/7SEM/raw/master/VLSI_LAB/cdl.jpg)
-
Spice Code
Vdd Vdd 0 dc 5
Vb Vb 0 dc 0.8
Vin Vin 0 dc 2
.dc Vin 0 5 0.01
Vin Vin 0 sin(4 1 1K 0 0 0 50)
.tran 0 5m
Vin Vin 0 ac sin(4 1 1K 0 0 0 50)
.ac dec 100 100 10G
.include C:\Electric\C5_models.txt
![cs](/hackerminds/7SEM/raw/master/VLSI_LAB/csl.JPG)
-
Spice Code
Vdd Vdd 0 dc 5
**DC ANALYSIS
Vin Vin 0 DC 5
.dc Vin 0 5 0.1
**
Vin Vin 0 sin(0.9 0.005 1K 0 0 50)
.tran 0 5m
Vin Vin 0 ac sin(0.9 0.005 1K 0 0 50)
.ac DEC 100 100 10G
.include C:\Electric\C5_models.txt
![opamp](/hackerminds/7SEM/raw/master/VLSI_LAB/opamp.JPG)
![diffamp](/hackerminds/7SEM/raw/master/VLSI_LAB/diffamp.jpg)
-
Spice Code
vdd vdd 0 dc 1.8
vss vss 0 dc -1.8
vinp vinp 0 dc 1.8
.dc vinp -1.8 1.8 0.1
vinp vinp 0 ac sin(0.7 0.5m 1k)
vinn vinn 0 dc 0.7
.tran 0 5m
vinp vinp 0 ac sin(0.7 0.5m 1k)
vinn vinn 0 dc 0.7
.ac dec 100 100 10g
.include C:\Electric\C5_models.txt
![dacop](/hackerminds/7SEM/raw/master/VLSI_LAB/dacop.JPG)
-
Spice Code
vdd vdd 0 dc 5
vss vss 0 dc -5
v1 d0 gnd pulse(5 0 0 1n 1n 1m 2m)
v2 d1 gnd pulse(5 0 0 1n 1n 2m 4m)
v3 d2 gnd pulse(5 0 0 1n 1n 4m 8m)
v4 d3 gnd pulse(5 0 0 1n 1n 8m 16m)
.tran 32m
.include C:\Electric\C5_models.txt
![dac](/hackerminds/7SEM/raw/master/VLSI_LAB/dac.JPG)
NMOS Values
Voltage source:
Vname N1 N2 Type Value
N1 is the positive terminal node
N2 is the negative terminal node
Type can be DC, AC or TRAN, depending on the type of analysis (see Control Statements)
Value gives the value of the source
The name of a voltage and current source must start with V and I, respectively.
Vname N1 N2 PULSE(V1 V2 TD Tr Tf PW Period)
V1 - initial voltage; V2 - peak voltage; TD - initial delay time; Tr - rise time; Tf - fall time; pwf - pulse-wise; and Period - period.
.AC DEC ND FSTART FSTOP
in which LIN stands for a linear frequency variation, DEC and OCT for a decade and octave variation respectively. NP stands for the number of points and ND and NO for the number of frequency points per decade and octave. FSTART and FSTOP are the start and stopping frequencies in Herz
.DC SRCname START STOP STEP
in which SRC name is the name of the source you want to vary; START and STOP are the starting and ending value, respectively; and STEP is the size of the increment.
.TRAN TSTEP TSTOP <TSTART <TMAX>> <UIC>
TSTEP is the printing increment.
TSTOP is the final time
TSTART is the starting time (if omitted, TSTART is assumed to be zero)
TMAX is the maximum step size.
UIC stands for Use Initial Condition and instructs PSpice not to do the quiescent operating point before beginning the transient analysis. If UIC is specified, PSpice will use the initial conditions specified in the element statements (see data statement) IC = value.