📄 b3.c
字号:
/**** BSIM3v3.2.4, Released by Xuemei Xi 12/14/2001 ****//********** * Copyright 2001 Regents of the University of California. All rights reserved. * File: b3.c of BSIM3v3.2.4 * Author: 1995 Min-Chie Jeng and Mansun Chan * Author: 1997-1999 Weidong Liu. * Author: 2001 Xuemei Xi * Modified by Paolo Nenzi 2002 and Dietmar Warning 2003 **********/#include "ngspice.h"#include "devdefs.h"#include "bsim3def.h"#include "suffix.h"IFparm BSIM3pTable[] = { /* parameters */IOP( "l", BSIM3_L, IF_REAL , "Length"),IOP( "w", BSIM3_W, IF_REAL , "Width"),IOP( "m", BSIM3_M, IF_REAL , "Parallel multiplier"),IOP( "ad", BSIM3_AD, IF_REAL , "Drain area"),IOP( "as", BSIM3_AS, IF_REAL , "Source area"),IOP( "pd", BSIM3_PD, IF_REAL , "Drain perimeter"),IOP( "ps", BSIM3_PS, IF_REAL , "Source perimeter"),IOP( "nrd", BSIM3_NRD, IF_REAL , "Number of squares in drain"),IOP( "nrs", BSIM3_NRS, IF_REAL , "Number of squares in source"),IOP( "off", BSIM3_OFF, IF_FLAG , "Device is initially off"),IOP( "nqsmod", BSIM3_NQSMOD, IF_INTEGER, "Non-quasi-static model selector"),IP( "ic", BSIM3_IC, IF_REALVEC , "Vector of DS,GS,BS initial voltages"),OP( "gmbs", BSIM3_GMBS, IF_REAL, "Gmb"),OP( "gm", BSIM3_GM, IF_REAL, "Gm"),OP( "gds", BSIM3_GDS, IF_REAL, "Gds"),OP( "vdsat", BSIM3_VDSAT, IF_REAL, "Vdsat"),OP( "vth", BSIM3_VON, IF_REAL, "Vth"),OP( "id", BSIM3_CD, IF_REAL, "Ids"),OP( "vbs", BSIM3_VBS, IF_REAL, "Vbs"),OP( "vgs", BSIM3_VGS, IF_REAL, "Vgs"),OP( "vds", BSIM3_VDS, IF_REAL, "Vds"),};IFparm BSIM3mPTable[] = { /* model parameters */IOP( "capmod", BSIM3_MOD_CAPMOD, IF_INTEGER, "Capacitance model selector"),IOP( "mobmod", BSIM3_MOD_MOBMOD, IF_INTEGER, "Mobility model selector"),IOP( "noimod", BSIM3_MOD_NOIMOD, IF_INTEGER, "Noise model selector"),IOP( "acm", BSIM3_MOD_ACMMOD, IF_INTEGER, "Area calculation method selector"),IOP( "paramchk", BSIM3_MOD_PARAMCHK, IF_INTEGER, "Model parameter checking selector"),IOP( "binunit", BSIM3_MOD_BINUNIT, IF_INTEGER, "Bin unit selector"),IOP( "version", BSIM3_MOD_VERSION, IF_STRING, " parameter for model version"),IOP( "tox", BSIM3_MOD_TOX, IF_REAL, "Gate oxide thickness in meters"),IOP( "toxm", BSIM3_MOD_TOXM, IF_REAL, "Gate oxide thickness used in extraction"),IOP( "cdsc", BSIM3_MOD_CDSC, IF_REAL, "Drain/Source and channel coupling capacitance"),IOP( "cdscb", BSIM3_MOD_CDSCB, IF_REAL, "Body-bias dependence of cdsc"), IOP( "cdscd", BSIM3_MOD_CDSCD, IF_REAL, "Drain-bias dependence of cdsc"), IOP( "cit", BSIM3_MOD_CIT, IF_REAL, "Interface state capacitance"),IOP( "nfactor", BSIM3_MOD_NFACTOR, IF_REAL, "Subthreshold swing Coefficient"),IOP( "xj", BSIM3_MOD_XJ, IF_REAL, "Junction depth in meters"),IOP( "vsat", BSIM3_MOD_VSAT, IF_REAL, "Saturation velocity at tnom"),IOP( "at", BSIM3_MOD_AT, IF_REAL, "Temperature coefficient of vsat"),IOP( "a0", BSIM3_MOD_A0, IF_REAL, "Non-uniform depletion width effect coefficient."), IOP( "ags", BSIM3_MOD_AGS, IF_REAL, "Gate bias coefficient of Abulk."), IOP( "a1", BSIM3_MOD_A1, IF_REAL, "Non-saturation effect coefficient"),IOP( "a2", BSIM3_MOD_A2, IF_REAL, "Non-saturation effect coefficient"),IOP( "keta", BSIM3_MOD_KETA, IF_REAL, "Body-bias coefficient of non-uniform depletion width effect."),IOP( "nsub", BSIM3_MOD_NSUB, IF_REAL, "Substrate doping concentration"),IOP( "nch", BSIM3_MOD_NPEAK, IF_REAL, "Channel doping concentration"),IOP( "ngate", BSIM3_MOD_NGATE, IF_REAL, "Poly-gate doping concentration"),IOP( "gamma1", BSIM3_MOD_GAMMA1, IF_REAL, "Vth body coefficient"),IOP( "gamma2", BSIM3_MOD_GAMMA2, IF_REAL, "Vth body coefficient"),IOP( "vbx", BSIM3_MOD_VBX, IF_REAL, "Vth transition body Voltage"),IOP( "vbm", BSIM3_MOD_VBM, IF_REAL, "Maximum body voltage"),IOP( "xt", BSIM3_MOD_XT, IF_REAL, "Doping depth"),IOP( "k1", BSIM3_MOD_K1, IF_REAL, "Bulk effect coefficient 1"),IOP( "kt1", BSIM3_MOD_KT1, IF_REAL, "Temperature coefficient of Vth"),IOP( "kt1l", BSIM3_MOD_KT1L, IF_REAL, "Temperature coefficient of Vth"),IOP( "kt2", BSIM3_MOD_KT2, IF_REAL, "Body-coefficient of kt1"),IOP( "k2", BSIM3_MOD_K2, IF_REAL, "Bulk effect coefficient 2"),IOP( "k3", BSIM3_MOD_K3, IF_REAL, "Narrow width effect coefficient"),IOP( "k3b", BSIM3_MOD_K3B, IF_REAL, "Body effect coefficient of k3"),IOP( "w0", BSIM3_MOD_W0, IF_REAL, "Narrow width effect parameter"),IOP( "nlx", BSIM3_MOD_NLX, IF_REAL, "Lateral non-uniform doping effect"),IOP( "dvt0", BSIM3_MOD_DVT0, IF_REAL, "Short channel effect coeff. 0"),IOP( "dvt1", BSIM3_MOD_DVT1, IF_REAL, "Short channel effect coeff. 1"),IOP( "dvt2", BSIM3_MOD_DVT2, IF_REAL, "Short channel effect coeff. 2"),IOP( "dvt0w", BSIM3_MOD_DVT0W, IF_REAL, "Narrow Width coeff. 0"),IOP( "dvt1w", BSIM3_MOD_DVT1W, IF_REAL, "Narrow Width effect coeff. 1"),IOP( "dvt2w", BSIM3_MOD_DVT2W, IF_REAL, "Narrow Width effect coeff. 2"),IOP( "drout", BSIM3_MOD_DROUT, IF_REAL, "DIBL coefficient of output resistance"),IOP( "dsub", BSIM3_MOD_DSUB, IF_REAL, "DIBL coefficient in the subthreshold region"),IOP( "vth0", BSIM3_MOD_VTH0, IF_REAL,"Threshold voltage"),IOP( "vtho", BSIM3_MOD_VTH0, IF_REAL,"Threshold voltage"),IOP( "ua", BSIM3_MOD_UA, IF_REAL, "Linear gate dependence of mobility"),IOP( "ua1", BSIM3_MOD_UA1, IF_REAL, "Temperature coefficient of ua"),IOP( "ub", BSIM3_MOD_UB, IF_REAL, "Quadratic gate dependence of mobility"),IOP( "ub1", BSIM3_MOD_UB1, IF_REAL, "Temperature coefficient of ub"),IOP( "uc", BSIM3_MOD_UC, IF_REAL, "Body-bias dependence of mobility"),IOP( "uc1", BSIM3_MOD_UC1, IF_REAL, "Temperature coefficient of uc"),IOP( "u0", BSIM3_MOD_U0, IF_REAL, "Low-field mobility at Tnom"),IOP( "ute", BSIM3_MOD_UTE, IF_REAL, "Temperature coefficient of mobility"),IOP( "voff", BSIM3_MOD_VOFF, IF_REAL, "Threshold voltage offset"),IOP( "tnom", BSIM3_MOD_TNOM, IF_REAL, "Parameter measurement temperature"),IOP( "cgso", BSIM3_MOD_CGSO, IF_REAL, "Gate-source overlap capacitance per width"),IOP( "cgdo", BSIM3_MOD_CGDO, IF_REAL, "Gate-drain overlap capacitance per width"),IOP( "cgbo", BSIM3_MOD_CGBO, IF_REAL, "Gate-bulk overlap capacitance per length"),IOP( "xpart", BSIM3_MOD_XPART, IF_REAL, "Channel charge partitioning"),IOP( "elm", BSIM3_MOD_ELM, IF_REAL, "Non-quasi-static Elmore Constant Parameter"),IOP( "delta", BSIM3_MOD_DELTA, IF_REAL, "Effective Vds parameter"),IOP( "rsh", BSIM3_MOD_RSH, IF_REAL, "Source-drain sheet resistance"),IOP( "rdsw", BSIM3_MOD_RDSW, IF_REAL, "Source-drain resistance per width"), IOP( "prwg", BSIM3_MOD_PRWG, IF_REAL, "Gate-bias effect on parasitic resistance "), IOP( "prwb", BSIM3_MOD_PRWB, IF_REAL, "Body-effect on parasitic resistance "), IOP( "prt", BSIM3_MOD_PRT, IF_REAL, "Temperature coefficient of parasitic resistance "), IOP( "eta0", BSIM3_MOD_ETA0, IF_REAL, "Subthreshold region DIBL coefficient"),IOP( "etab", BSIM3_MOD_ETAB, IF_REAL, "Subthreshold region DIBL coefficient"),IOP( "pclm", BSIM3_MOD_PCLM, IF_REAL, "Channel length modulation Coefficient"),IOP( "pdiblc1", BSIM3_MOD_PDIBL1, IF_REAL, "Drain-induced barrier lowering coefficient"), IOP( "pdiblc2", BSIM3_MOD_PDIBL2, IF_REAL, "Drain-induced barrier lowering coefficient"), IOP( "pdiblcb", BSIM3_MOD_PDIBLB, IF_REAL, "Body-effect on drain-induced barrier lowering"), IOP( "pscbe1", BSIM3_MOD_PSCBE1, IF_REAL, "Substrate current body-effect coefficient"), IOP( "pscbe2", BSIM3_MOD_PSCBE2, IF_REAL, "Substrate current body-effect coefficient"), IOP( "pvag", BSIM3_MOD_PVAG, IF_REAL, "Gate dependence of output resistance parameter"), IOP( "js", BSIM3_MOD_JS, IF_REAL, "Source/drain junction reverse saturation current density"),IOP( "jsw", BSIM3_MOD_JSW, IF_REAL, "Sidewall junction reverse saturation current density"),IOP( "pb", BSIM3_MOD_PB, IF_REAL, "Source/drain junction built-in potential"),IOP( "nj", BSIM3_MOD_NJ, IF_REAL, "Source/drain junction emission coefficient"),IOP( "xti", BSIM3_MOD_XTI, IF_REAL, "Junction current temperature exponent"),IOP( "mj", BSIM3_MOD_MJ, IF_REAL, "Source/drain bottom junction capacitance grading coefficient"),IOP( "pbsw", BSIM3_MOD_PBSW, IF_REAL, "Source/drain sidewall junction capacitance built in potential"),IOP( "mjsw", BSIM3_MOD_MJSW, IF_REAL, "Source/drain sidewall junction capacitance grading coefficient"),IOP( "pbswg", BSIM3_MOD_PBSWG, IF_REAL, "Source/drain (gate side) sidewall junction capacitance built in potential"),IOP( "mjswg", BSIM3_MOD_MJSWG, IF_REAL, "Source/drain (gate side) sidewall junction capacitance grading coefficient"),IOP( "cj", BSIM3_MOD_CJ, IF_REAL, "Source/drain bottom junction capacitance per unit area"),IOP( "vfbcv", BSIM3_MOD_VFBCV, IF_REAL, "Flat Band Voltage parameter for capmod=0 only"),IOP( "vfb", BSIM3_MOD_VFB, IF_REAL, "Flat Band Voltage"),IOP( "cjsw", BSIM3_MOD_CJSW, IF_REAL, "Source/drain sidewall junction capacitance per unit periphery"),IOP( "cjswg", BSIM3_MOD_CJSWG, IF_REAL, "Source/drain (gate side) sidewall junction capacitance per unit width"),IOP( "tpb", BSIM3_MOD_TPB, IF_REAL, "Temperature coefficient of pb"),IOP( "tcj", BSIM3_MOD_TCJ, IF_REAL, "Temperature coefficient of cj"),IOP( "tpbsw", BSIM3_MOD_TPBSW, IF_REAL, "Temperature coefficient of pbsw"),IOP( "tcjsw", BSIM3_MOD_TCJSW, IF_REAL, "Temperature coefficient of cjsw"),IOP( "tpbswg", BSIM3_MOD_TPBSWG, IF_REAL, "Temperature coefficient of pbswg"),IOP( "tcjswg", BSIM3_MOD_TCJSWG, IF_REAL, "Temperature coefficient of cjswg"),IOP( "acde", BSIM3_MOD_ACDE, IF_REAL, "Exponential coefficient for finite charge thickness"),IOP( "moin", BSIM3_MOD_MOIN, IF_REAL, "Coefficient for gate-bias dependent surface potential"),IOP( "noff", BSIM3_MOD_NOFF, IF_REAL, "C-V turn-on/off parameter"),IOP( "voffcv", BSIM3_MOD_VOFFCV, IF_REAL, "C-V lateral-shift parameter"),IOP( "lint", BSIM3_MOD_LINT, IF_REAL, "Length reduction parameter"),IOP( "ll", BSIM3_MOD_LL, IF_REAL, "Length reduction parameter"),IOP( "llc", BSIM3_MOD_LLC, IF_REAL, "Length reduction parameter for CV"),IOP( "lln", BSIM3_MOD_LLN, IF_REAL, "Length reduction parameter"),IOP( "lw", BSIM3_MOD_LW, IF_REAL, "Length reduction parameter"),IOP( "lwc", BSIM3_MOD_LWC, IF_REAL, "Length reduction parameter for CV"),IOP( "lwn", BSIM3_MOD_LWN, IF_REAL, "Length reduction parameter"),IOP( "lwl", BSIM3_MOD_LWL, IF_REAL, "Length reduction parameter"),IOP( "lwlc", BSIM3_MOD_LWLC, IF_REAL, "Length reduction parameter for CV"),IOP( "lmin", BSIM3_MOD_LMIN, IF_REAL, "Minimum length for the model"),IOP( "lmax", BSIM3_MOD_LMAX, IF_REAL, "Maximum length for the model"),IOP( "xl", BSIM3_MOD_XL, IF_REAL, "Length correction parameter"),IOP( "xw", BSIM3_MOD_XW, IF_REAL, "Width correction parameter"),IOP( "wr", BSIM3_MOD_WR, IF_REAL, "Width dependence of rds"),
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -