Skip to content

Instantly share code, notes, and snippets.

@bangonkali
Created August 31, 2012 08:00
Show Gist options
  • Save bangonkali/3550051 to your computer and use it in GitHub Desktop.
Save bangonkali/3550051 to your computer and use it in GitHub Desktop.
LAB 7 - ECE 196
cascode_jo
.option post probe
.lib 'C:\synopsys\rf018.l' TT
M1 nx nin 0 0 nch w=2u l=0.5u
M2 nout nb1 nx 0 nch w=2u l=0.5u
M3 nout nb2 ns1 ndd pch w=1u l=0.5u
M4 nref nb2 ns2 ndd pch w=1u l=0.5u
M5 ns1 nref ndd ndd pch w=0.5u l=0.5u
M6 ns2 nref ndd ndd pch w=0.5u l=0.5u
Iref nref 0 2u
Cload nout 0 1p
Vin nin 0 dc=0.5 ac=1
Vb1 nb1 0 0.52
Vb2 nb2 0 1.25
Vdd ndd 0 1.8
.dc Vin 0 1.5 0.001
.ac dec 100 10 1G
.meas ac gb when vdb(nout)=0
.post v(nout)
.probe vdb(nout)
.op
.end
cascode_jo1
.option post probe
.lib'C:/synopsys/rf018.l' TT
M1 nx nin 0 0 nch w=1.5u l=0.5u
M2 nout nb nx 0 nch w=1.5u l=0.5u
M3 nout nref ndd ndd pch w=3u l=0.5u
M4 nref nref ndd ndd pch w=3u l=0.5u
Iref nref 0 2u
Cload nout 0 10p
Vin nin 0 dc=0.5 ac=1
Vb nb 0 dc=1.2
Vdd ndd 0 1.8
.dc Vin 0 1.8 0.001
.ac dec 100 10 1G
.post v(nout)
.probe vdb(nout)
.meas ac gb when v(nout)=0
.op
.end
cascode_jo2
.option post probe
.lib'C:/synopsys/rf018.l' TT
M1 nx nin 0 0 nch w=1.5u l=0.5u
M2 nout nb nx 0 nch w=1.5u l=0.5u
M3 nout nref ndd ndd pch w=3u l=0.5u
M4 nref nref ndd ndd pch w=3u l=0.5u
Iref nref 0 2u
Cload nout 0 1p
Vin nin 0 dc=0.5 ac=1
Vb nb 0 dc=1.2
Vdd ndd 0 1.8
.dc Vin 0 1.8 0.001
.ac dec 100 10 1G
.post v(nout)
.probe vdb(nout)
.meas ac gb when vdb(nout)=0
.meas ac v_max max vdb(nout)
.meas ac f3db when vdb(nout)="v_max-3"
.fft start=0 stop=10.24ms np=16384
.tran 625ns 10.24ms
.tf v(nout) vin
.alter
Cload nout 0 20p
.alter
Cload nout 0 30p
.op
.end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment