********************************************************************.TITLE 'Vt for CNFET'****************************************************For optimal accuracy, convergence, and runtime***************************************************.options POST.options AUTOSTOP.options INGOLD=2 DCON=1.options GSHUNT=1e-12 RMIN=1e-15 .options ABSTOL=1e-5 ABSVDC=1e-4 .options RELTOL=1e-2 RELVDC=1e-2 .options NUMDGT=4 PIVOT=13.param TEMP=27****************************************************Include relevant model files***************************************************.lib 'CNFET.lib' CNFET*******************************************************************************************************Beginning of circuit and device definitions****************************************************Some CNFET parameters:.param Ccsd=0 CoupleRatio=0.param m_cnt=1 Efo=0.6 .param Wg=0 Cb=40e-12.param Lg=100e-9 Lgef=100e-9.param Vfn=0 Vfp=0.param m=19 n=0 .param Hox=4e-9 Kox=16
.param Lsd=32e-9
.param Lsdp=32e-9
************************************************************************ Define power supply********************************************************************Vdd1 4 0 0.9
vgbias1 2 12 dc 0.35
vacbias 12 0 ac 1 sin(0 20.61u 1000 )
cL 3 0 10p
id 6 0 50ua
vi 1 0
viref 5 6
vimir 7 3
************************************************************************ Main Circuits************************************************************************ nFETXmn1 3 2 1 1 NCNFET Lch=90e-9 Lgeff='Lgef' Lss=Lsd Ldd=Lsd + Kgate='Kox' Tox='Hox' Csub='Cb' Vfbn='Vfn' Dout=0 Sout=0 Pitch=20e-9 n1=m n2=n tubes=35 Wgate=6.4e-9
* pFET
XP1 5 5 4 4 PCNFET Lch=90e-9 Lgeff='Lgef' Lss=Lsdp Ldd=Lsdp
+ Kgate='Kox' Tox='Hox' Csub='Cb' Vfbp='Vfp' Dout=0 Sout=0 Pitch=20e-9 n1=m n2=n tubes=26 Wgate=6.4e-9
* pFET
XP2 7 5 4 4 PCNFET Lch=90e-9 Lgeff='Lgef' Lss=Lsdp Ldd=Lsdp
+ Kgate='Kox' Tox='Hox' Csub='Cb' Vfbp='Vfp' Dout=0 Sout=0 Pitch=20e-9 n1=m n2=n tubes=26 Wgate=6.4e-9
*********************************************** Measurements***********************************************************************.op
*.dc vgbias1 0.4 0.8 0.01
.ac dec 1 10 1000 *sweep data=rval
.print ac gaindb=par('20*(log10(v(3)/v(2)))')
.print ac gain=par('(v(3)/v(2))')
*.tran .001m 5m sweep data=rval
*.DC vdd2 0 0.9 0.01
.data rval vx
0.67 0.68
.enddata.print AC VDB(3) VP(3)
*.print vgs2=par('(v(1)-v(0))')
**********************************************************************.print AC power
.print dc i(vimir)
.print dc v(7)
.tran .1m 5m *sweep data=rval
.fft v(3) start=1m stop=3m np=20 freq=1k fmin=10 fmax=10meg
*.fft v(2) start=1m stop=3m np=20 freq=1k fmin=10 fmax=10meg
*.OPTION FFTOUT=v(3)
*.OPTION FFTOUT=v(2)
.print AC VDB(3) VP(3)
*.print dc i(vid) v(4)
.print par('(i(4)/i(2))')
*.plot I(vids)
*.print dc p(vdd)
*.print DC power
.MEAS TRAN inputPP PP V(2) FROM=1ms TO=3ms
.MEAS TRAN outputPP PP V(3) FROM=1ms TO=3ms
.end