pub struct Mos2Model {Show 40 fields
pub nmos: bool,
pub vto: Option<f64>,
pub kp: Option<f64>,
pub gamma: Option<f64>,
pub phi: Option<f64>,
pub lambda: f64,
pub rd: Option<f64>,
pub rs: Option<f64>,
pub cbd: Option<f64>,
pub cbs: Option<f64>,
pub is: f64,
pub pb: f64,
pub cgso: f64,
pub cgdo: f64,
pub cgbo: f64,
pub rsh: Option<f64>,
pub cj: Option<f64>,
pub mj: f64,
pub cjsw: Option<f64>,
pub mjsw: f64,
pub js: f64,
pub tox: Option<f64>,
pub ld: f64,
pub u0: Option<f64>,
pub fc: f64,
pub nsub: Option<f64>,
pub tpg: Option<f64>,
pub nss: Option<f64>,
pub delta: f64,
pub uexp: f64,
pub ucrit: f64,
pub vmax: f64,
pub xj: f64,
pub neff: f64,
pub nfs: f64,
pub kf: f64,
pub af: f64,
pub nlev: i64,
pub gdsnoi: f64,
pub tnom: Option<f64>,
}Expand description
.model … nmos(level=2 …)/pmos(level=2 …) parameters, 3f5 names
and defaults (mos2.c keyword table; defaults from mos2set.c).
Option marks parameters whose given-ness changes the
preprocessing, as in crate::Mos1Model.
Fields§
§nmos: boolNMOS (+1) or PMOS (−1).
vto: Option<f64>VTO/VT0, default 0, or computed from NSUB/NSS/TPG.
kp: Option<f64>KP, default U0·COX.
gamma: Option<f64>GAMMA, default 0, or computed from NSUB.
phi: Option<f64>PHI, default 0.6, or from NSUB.
lambda: f64LAMBDA, default 0 (0 enables the depletion-layer
channel-length modulation when NSUB is given).
rd: Option<f64>RD/RS, default 0.
rs: Option<f64>§cbd: Option<f64>CBD/CBS, default 0.
cbs: Option<f64>§is: f64IS, default 1e-14.
pb: f64PB, default 0.8.
cgso: f64CGSO/CGDO/CGBO, default 0.
cgdo: f64§cgbo: f64§rsh: Option<f64>RSH, default 0.
cj: Option<f64>CJ, per m²; the 3f5 computes a default from NSUB but the
zero-bias capacitances still key off the given flag, so the
computed default never reaches them.
mj: f64MJ, default 0.5.
cjsw: Option<f64>CJSW, per meter, default 0.
mjsw: f64MJSW, default 0.33 (not 0.5 as in MOS1).
js: f64JS, per m², default 0.
tox: Option<f64>TOX, default 1e-7 m (MOS2 always has an oxide).
ld: f64LD, default 0.
u0: Option<f64>U0/UO, cm²/V·s, default 600.
fc: f64FC, default 0.5.
nsub: Option<f64>NSUB, 1/cm³.
tpg: Option<f64>TPG, default 1 when NSUB is given.
nss: Option<f64>NSS, 1/cm².
delta: f64DELTA: width effect on threshold, default 0.
uexp: f64UEXP: critical-field exponent for mobility degradation,
default 0.
ucrit: f64UCRIT: critical field, V/cm, default 1e4.
vmax: f64VMAX: maximum carrier drift velocity, m/s, default 0 (off).
xj: f64XJ: metallurgical junction depth, default 0.
neff: f64NEFF: total channel charge coefficient, default 1.
nfs: f64NFS: fast surface state density, 1/cm², default 0.
kf: f64KF/AF (noise only).
af: f64§nlev: i64NLEV (ngspice-47 only, default 2): noise equation selector
— < 3 channel thermal 4kT·(2/3)|gm|, 3 the
GDSNOI-scaled form; for the MOSFETs also the flicker form
(0/1/2–3).
gdsnoi: f64GDSNOI (ngspice-47 only, default 1): channel noise
coefficient of NLEV = 3.
tnom: Option<f64>TNOM in kelvin.