微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > RFIC设计学习交流 > 请教 tsmc 18RF spice 仿真问题

请教 tsmc 18RF spice 仿真问题

时间:10-02 整理:3721RD 点击:
现在用tsmc 18RF spice 仿真,一直提示**error** model name pch_rf.1 in the element, **error** reference0:pch_rf not found**error** model name pmos_rf in the element换了三个mos管的名字 结果都不对 请教?
下边是库文件
.lib'e:\hspice\rf018.l' tt_rfmos

.param a1n_rf=0 a1p_rf=0 a2np_rf=0 a3np_rf=0 a4np_rf=0
+vthnmis_rf=agauss(0,1,1) dlnmis_rf=agauss(0,1,1) dwnmis_rf=agauss(0,1,1) toxnmis_rf=agauss(0,1,1)
+vthpmis_rf=agauss(0,1,1) dlpmis_rf=agauss(0,1,1) dwpmis_rf=agauss(0,1,1) toxpmis_rf=agauss(0,1,1)
+ fac_n_rf ='0.3766*2.4'
+ fac_p_rf ='0.3766*2.1'
+ du0n_rf='a1n_rf*fac_n_rf*(-0.2e-2)'
+ dlu0n_rf='a1n_rf*fac_n_rf*(-0.5e-9)'
+ dwu0n_rf='a1n_rf*fac_n_rf*(-0.00e-9)'
+ dpu0n_rf='a1n_rf*fac_n_rf*(-0.0e-16)'
+ dvthn_rf='a1n_rf*fac_n_rf*0.0205'
+ dlvthn_rf='a1n_rf*fac_n_rf*2.9e-9'
+ dwvthn_rf='a1n_rf*fac_n_rf*6.60e-9'
+ dpvthn_rf='a1n_rf*fac_n_rf*3.0e-15'
+ toxn_rf='4.08e-09+a4np_rf*fac_n_rf*1.33e-10*0.5'
+ dxln_rf='a2np_rf*fac_n_rf*1.33e-8*0.5'
+ dxwn_rf='a3np_rf*fac_n_rf*2.2e-8*0.5'
+ dk2n_rf='a1n_rf*fac_n_rf*0.008'
+ dlk2n_rf='a1n_rf*fac_n_rf*0.4e-8'
+ dvsatn_rf= '-a1n_rf*fac_n_rf*0.4e4'
+ dwvsatn_rf= '-a1n_rf*fac_n_rf*0.0e-3'
+ deta0n_rf='0.0*a1n_rf*fac_n_rf'
+ dleta0n_rf='-0.35e-9*0.5*(a1n_rf*fac_n_rf-sqrt(a1n_rf*fac_n_rf*a1n_rf*fac_n_rf+1e-8))'
+ dweta0n_rf='0'
+ dpeta0n_rf='-1.5e-16*0.5*(a1n_rf*fac_n_rf-sqrt(a1n_rf*fac_n_rf*a1n_rf*fac_n_rf+1e-8))'
+ dnfactorn_rf='a1n_rf*fac_n_rf*0'
+ dlnfactorn_rf='a1n_rf*fac_n_rf*5e-8'
+ dwnfactorn_rf='a1n_rf*fac_n_rf*0'
+ dpnfactorn_rf='a1n_rf*fac_n_rf*0.0e-15'
+ dvoffn_rf='-a1n_rf*fac_n_rf*0.003'
+ dlvoffn_rf='-a1n_rf*fac_n_rf*1.0e-9'
+ dwvoffn_rf='-a1n_rf*fac_n_rf*0.7e-9'
+ dpvoffn_rf='-a1n_rf*fac_n_rf*1.0e-15'
+ du0p_rf='a1p_rf*fac_p_rf*(-0.007e-2)'
+ dlu0p_rf='a1p_rf*fac_p_rf*(-0.1e-9)'
+ dwu0p_rf='a1p_rf*fac_p_rf*(-0.025e-9)'
+ dpu0p_rf='a1p_rf*fac_p_rf*(-0.0e-16)'
+ dvthp_rf='a1p_rf*fac_p_rf*(-0.030)'
+ dlvthp_rf='a1p_rf*fac_p_rf*(-5.00e-9)'
+ dwvthp_rf='a1p_rf*fac_p_rf*(-1.5e-9)'
+ dpvthp_rf='a1p_rf*fac_p_rf*(-1.5e-15)'
+ toxp_rf='4.08e-09+a4np_rf*fac_p_rf*1.33e-10*0.5'
+ dxlp_rf='a2np_rf*fac_p_rf*1.33e-8*0.5'
+ dxwp_rf='a3np_rf*fac_p_rf*2.2e-8*0.5'
+ drdswp_rf='0'
+ dk2p_rf='a1p_rf*fac_p_rf*0.007'
+ dlk2p_rf='a1p_rf*fac_p_rf*0.15e-8'
+ dvsatp_rf= '-a1p_rf*fac_p_rf*0.00e4'
+ dwvsatp_rf= '-a1p_rf*fac_p_rf*0.0e-3'
+ deta0p_rf='0'
+ dleta0p_rf='-6e-10*0.5*(a1p_rf*fac_p_rf-sqrt(a1p_rf*fac_p_rf*a1p_rf*fac_p_rf+1e-8))'
+ dweta0p_rf='0'
+ dpeta0p_rf='-0.6e-16*0.5*(a1p_rf*fac_p_rf-sqrt(a1p_rf*fac_p_rf*a1p_rf*fac_p_rf+1e-8))'
+ dnfactorp_rf='a1p_rf*fac_p_rf*0'
+ dlnfactorp_rf='-a1p_rf*fac_p_rf*0.5e-8'
+ dwnfactorp_rf='-a1p_rf*fac_p_rf*0'
+ dpnfactorp_rf='0'
+ dvoffp_rf='-a1p_rf*fac_p_rf*0.000'
+ dlvoffp_rf='-a1p_rf*fac_p_rf*0.2e-8'
+ dwvoffp_rf='-a1p_rf*fac_p_rf*0.0e-8'
+ dpvoffp_rf='-a1p_rf*fac_p_rf*0.0e-15'
+cjn_rf= 0.001000266cjswn_rf= 2.040547e-10
+cjswgn_rf= 3.340547e-10 cgon_rf= 3.665e-10
+hdifn_rf= 2e-07
+rshn_rf= 6.8

+dk1n_rf
= 0
drdswn_rf
= 0
+cjp_rf= 0.001121cjswp_rf= 2.481e-10
+cjswgp_rf= 4.221e-10cgop_rf= 3.28e-10
+hdifp_rf= 2e-07
+rshp_rf= 7.2
.lib 'rf018.l' rf_mos

.subckt nmos_rf d g s b lr=18.e-08 nr=64 wr=1.5e-6
.param lspace=0.54u
.param ledge=2.6u
.param ledgeeff=0.97u
.param lsti=1.84u
.param wsti=3.37u
.param rod=2570
.param rsti=4597
.param ns='int(nr/2+1)'
.param nd='int((nr+1)/2)'
.param lod='nr*(lr+lspace)+2*ledge-lspace'
.paramrb='(rod*lod/12+rsti*lsti/2)*(rod*wr/12+rsti*wsti/2)/(lod*(rod*lod/12+rsti*lsti/2)+wr*(rod*wr/12+rsti*wsti/2))'
.paramrdb='rod*lr/(wr*nr*2)'
*********************
rgg gir='(0.539*wr/nr/lr+0.146/nr/(lr*1e6)+17.86/nr+584.9*lr/nr/wr+3.48)'
rss sir='(0.0325*(lr*1e6+0.54)*(2*ns+1/ns-3) +8.666/ns + 0.4485)/(wr*1e6)'
rdd dir='0.005417*(lr*1e6+0.54)*(nd+2/nd) + 0.0929*(wr*1e6+2.94)/nd + 1.625/(1.43+(nd-1)*(lr*1e6+0.54))'
*********************
cgs_m gi sic='(1.649*nr*(lr*1e6+0.54)/(0.1*wr*1e6+4)+0.158*wr*1e6+0.737)*1e-15'
cgd_m gi dic='(0.181*nr*lr*1e6+0.153*nr+0.331)*1e-15'
cds_m si dic='(0.0713+0.0842*nr*wr*1e6/(lr*1e6+0.9)+1.051*nr*(lr*1e6+0.54)/(wr*1e6+9.8))*1e-15'
***** diodes****************
dsssbsindio_rf_f area = '(ns-2)*wr*lspace+2*wr*ledgeeff+(nr-int(nr/2)*2)*wr*(lspace-ledgeeff)'
+
pj='(ns-2)*lspace*2+2*(2*ledgeeff+wr)+(nr-int(nr/2)*2)*(2*(lspace-ledgeeff)-wr)'
ddddbdindio_rf_f area = 'int(nr/2)*wr*lspace+(nr-int(nr/2)*2)*wr*ledgeeff'
+
pj='int(nr/2)*lspace*2+(nr-int(nr/2)*2)*(2*ledgeeff+wr)'
dsgsbsindio_rf_garea = 1e-15 pj = 'wr*nr'
ddgdbdindio_rf_garea = 1e-15 pj = 'wr*nr'
*****************************************************************************
rbbbir='rb'
cbbbic='159f/rb'
rdbdbbir='rdb'
cdbdbbic='159f/rdb'
rsbsbbir='rdb'
csbsbbic='159f/rdb'
******* mosfet *******
m0di gi si bi nch_rf l = lr w = wr m = nr ad = 0 as = 0 pd = 0 ps = 0
.model nch_rf.1 nmos
(
lmin= 1.8e-007lmax= '5.001e-07'
+wmin= '1.5000e-06'wmax= '8.001e-06'
+level= 49tnom= 25.0version= 3.24
+tox= 'toxn_rf'
+toxm= 4.08e-09
+xj= 1.6000000e-07
+nch= 3.9000000e17lln= -1lwn= 1.0000000
+wln= 1.0000000wwn= -1lint= 1.0000000e-08
+ll= 0.00lw= 0.00lwl= 0.00
+wint= 3.0000000e-09wl= 0.00ww= 0.00
+wwl= 0.00mobmod= 1binunit= 2
+xl= '-0.02e-6+dxln_rf'xw= '0.0+dxwn_rf'dwg= 0.00
+dwb= 0.00acm= 12ldif= 9.00e-08
+hdif= 'hdifn_rf'rsh= 'rshn_rf'rd= 0
+rs= 0
+vth0= '0.4751966+dvthn_rf'
+lvth0= '5.3743360e-09+dlvthn_rf'
+wvth0= '3.4482360e-10+dwvthn_rf'
+pvth0= '4.5089380e-15+dpvthn_rf'k1= 'dk1n_rf+0.4007356'lk1= 4.9634880e-08
+wk1= 8.8686750e-08pk1= -6.3891820e-15
+k2= '6.3188600e-02+dk2n_rf'
+lk2= '-2.3847164e-08+dlk2n_rf'
+wk2= -3.8768180e-08pk2= 5.0552590e-15
+k3= 0.00dvt0= 0.00dvt1= 0.00
+dvt2= 0.00dvt0w= 0.00dvt1w= 0.00
+dvt2w= 0.00nlx= 0.00w0= 0.00
+k3b= 0.00vsat= '8.4294280e04+dvsatn_rf'
+lvsat= -2.0140363e-04
+wvsat= '1.4459029e-03+dwvsatn_rf'
+pvsat= 1.5350395e-12
+ua= -9.0172960e-10lua= 3.5887640e-18wua= 4.2784730e-16
+pua= -4.6390690e-23ub= 2.7527719e-18lub= 5.9103390e-27
+wub= -9.4519130e-25pub= -3.5064990e-33uc= 1.2291169e-10
+luc= 4.3605990e-18wuc= -6.1268420e-17puc= -2.2654354e-24
+rdsw= 'drdswn_rf+1.7000000e02'prwb= 0.00prwg= 0.00
+wr= 1.0000000u0= 'du0n_rf+4.3840840e-02'
+lu0= '1.2758692e-09+dlu0n_rf'
+wu0= '-4.8608560e-09+dwu0n_rf'
+pu0= '-2.4055863e-16+dpu0n_rf'
+a0= 0.5262308
+la0= 8.2795080e-08wa0= 1.4537927e-07pa0= -7.3379640e-14
+keta= -4.4118840e-02lketa= 3.2284670e-09wketa= 2.2941933e-08
+pketa= -2.7027957e-15a1= 0.00a2= 0.9900000
+ags= -2.7693154e-02lags= 1.0727657e-09wags= 7.7723050e-08
+pags= -1.0838496e-14b0= 0.00b1= 0.00
+voff= '-0.1247105+dvoffn_rf'
+lvoff= '-1.4487617e-09+dlvoffn_rf'
+wvoff= '1.6054964e-09+dwvoffn_rf'
+pvoff= '-9.7541500e-16+dpvoffn_rf'
+nfactor= '1.0000000+dnfactorn_rf'
+pnfactor = '0+dpnfactorn_rf'
+wnfactor = '0+dwnfactorn_rf'
+lnfactor = '0+dlnfactorn_rf'
+cit= 2.7498236e-04
+lcit= 1.0350804e-10wcit= -3.0914837e-11pcit= 1.4220811e-17
+cdsc= 0.00cdscb= 0.00cdscd= 0.00
+eta0= '-2.9405078e-04+deta0n_rf'
+leta0= '1.8126334e-10+dleta0n_rf'
+weta0= '3.0046217e-12+dweta0n_rf'
+peta0= '-1.3821218e-18+dpeta0n_rf'
+etab= 1.3878694e-03letab= -6.8441990e-10
+wetab= -3.6866540e-12petab= 1.6959704e-18dsub= 0.00
+pclm= 1.1010191lpclm= 3.8489530e-08wpclm= 6.6560680e-08
+ppclm= 4.0427110e-14pdiblc1= 1.0000000e-06pdiblc2= -6.1190130e-03
+lpdiblc2 = 5.0530930e-09wpdiblc2 = 1.8349379e-09ppdiblc2 = -2.2121929e-16
+pdiblcb= 1.0000000e-02drout= 0.00pscbe1= 4.0000000e08
+pscbe2= 1.0000000e-06pvag= 0.00delta= 1.0000000e-02
+alpha0= 0.0alpha1= 0.448150714beta0= 11.59263
+kt1= -0.2269240lkt1= 5.0937890e-09wkt1= -2.2583577e-09
+pkt1= -1.7512235e-15kt2= -2.9338669e-02lkt2= 5.9558730e-10
+wkt2= -1.9897783e-09pkt2= 7.3825670e-17at= 2.0000000e04
+ute= -2.1610963lute= 8.2097990e-08wute= 7.8818350e-07
+pute= -1.1786150e-13ua1= 1.2174792e-09lua1= 9.1298580e-19
+wua1= 7.7858620e-18pua1= -1.0901051e-24ub1= -3.8124500e-18
+lub1= 4.2482470e-25wub1= 2.8560549e-24pub1= -4.2389140e-31
+uc1= -1.5406690e-10luc1= 3.2328220e-17wuc1= 1.5903152e-16
+puc1= -2.7204607e-23kt1l= 0.00prt= 0
*
* capacitance parameters
*
+cj= 0mj= 0.3595262pb= 0.6882682
+cjsw= 0mjsw= 0.2003879pbsw= 0.6882682
+cjswg= 0mjswg= 0.43879pbswg= 0.6882682
+tpb= 1.554306e-03tpbsw= 1.554306e-03tcj= 1.040287e-03
+tcjsw= 6.45489e-04js= 8.38e-06jsw= 1.60e-11
+nj= 1.0xti= 3.0cgdo= 1.92e-10
+cgso= 1.92e-10
+cgbo= 1.0e-13capmod= 3
+nqsmod= 0elm= 0xpart= 0
+cf= 0tlev= 1tlevc= 1
+calcacm = 1
+wwc=-0.0225
+dlc=2.68e-8
+dwc=-2.833e-8
+noff=2lnoff=5e-8
+acde=1
+moin=10
+voffcv= -0.05 lvoffcv= 1.114e-8
+cgsl=1.31e-10
+cgdl=1.31e-10
+wcf= 2.82e-18
*
* noise parameters
*
+noimod = 2noia= 2.0e+19noib=1.2e4noic= 2.5e-13
+em= 3.0e+07ef=0.874
)

自己顶先 请教高人

pmos_rf,是子电路模式。
调用这样的复杂单元 用 X开头,子电路的调用。
电路由 几个基本单元构成,基本测pch-rf管M开头 电容 C 电阻 R 电感 L ,二极管 。

.model nch_rf.1 nmos 改成.model nch_rf nmos 试试看吧

真么专业!

真么专业 顶先

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top