Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

N-channel MOSFET (level 1) (nmos)

An n-channel MOSFET whose current follows its gate voltage.

nmos

Component reference · 繁體中文

Group: Switches · Kind: {"kind":"nmos"}

When to use it

Use it where the gate voltage matters, such as linear regulators, amplifiers and SPICE netlists. For a converter leg driven by a logic signal, MOSFET is faster and simpler.

Pins

Pin Domain Meaning
d electrical Drain; current flows from d to s
g electrical Gate; draws no current
s electrical Source; the reference of the gate voltage

Common parameters

  • vto: Gate voltage where it starts to conduct (Default: 1)
  • kp: How strongly the gate controls current (Default: 20u)
  • w: Width of the channel (Default: 100u)
  • l: Length of the channel (Default: 100u)

Parameters

Key Unit Default Typical range Description
vto V 1 Gate voltage where it starts to conduct
kp A/V² 20u How strongly the gate controls current
w m 100u Width of the channel
l m 100u Length of the channel
lambda 1/V 0 How much current grows with drain voltage
level — 1 MOSFET model; 1 is the level-1 square law (vto, kp, w, l, lambda), 2 the SPICE level-2 Grove–Frohman model, 3 the SPICE level-3 short-channel model, vdmos the VDMOS power MOSFET of vendor SPICE models, with its capacitances and body diode
theta 1/V 0 How much the gate voltage lowers the mobility; VDMOS level and level 3
mtriode — 1 Conductance multiplier in the triode region; VDMOS level only
ksubthres V 0.1 Slope of the subthreshold current below vto; 0 for none; VDMOS level only
rd Ω 0 Resistance in series with the drain; VDMOS level and levels 2 and 3
rs Ω 0 Resistance in series with the source; VDMOS level and levels 2 and 3
rg Ω 0 Resistance in series with the gate; VDMOS level only
rds Ω optional (off) Drain-source shunt resistance; VDMOS level only
cgs F 0 Gate-source capacitance, constant; VDMOS level only
cgdmax F 0 Largest gate-drain capacitance; with the gate above the drain; VDMOS level only
cgdmin F 0 Smallest gate-drain capacitance; with the drain far above the gate; VDMOS level only
a 1/V 1 Slope of the gate-drain capacitance; how fast it falls from cgdmax to cgdmin with the drain-gate voltage; VDMOS level only
is A 10f Saturation current of the body diode; VDMOS level and levels 2 and 3
n — 1 Ideality factor of the body diode; VDMOS level only
rb Ω 0 Resistance in series with the body diode; VDMOS level only
cjo F 0 Body diode junction capacitance at zero volts; the drain-source capacitance; VDMOS level and levels 2 and 3
vj V 0.8 Body diode junction potential; at level 2 also the bound on the shortest channel; VDMOS level and levels 2 and 3
m — 0.5 Body diode grading coefficient; how the junction capacitance falls with the reverse voltage; VDMOS level and levels 2 and 3
fc — 0.5 Forward-bias coefficient of the junction capacitance; above fc·vj it continues as a straight line; VDMOS level and levels 2 and 3
tt s 0 Body diode transit time; the stored charge is tt times the diode current; VDMOS level only
bv V optional (off) Drain-source breakdown voltage of the body diode; past it the reverse current grows exponentially, clamping the drain in avalanche; VDMOS level only
ibv A 100p Body diode current at the breakdown voltage bv; VDMOS level only
nbv — 1 Emission coefficient of the body diode breakdown; the current grows e-fold every nbv·k·T/q past bv; VDMOS level only
tnom °C 27 Temperature the model's values belong to; the VDMOS level and levels 2 and 3 are evaluated there
uo m²/V·s 0.06 Surface mobility; gives kp with tox when kp is unset; levels 2 and 3
tox m optional (off) Gate oxide thickness; with it the Meyer gate capacitances are modelled; levels 2 and 3
nsub 1/m³ 0 Substrate doping; sets the depletion width of the short-channel and channel-length effects; levels 2 and 3
gamma √V optional (off) Body-effect coefficient; from nsub and tox when unset; levels 2 and 3
phi V optional (off) Surface potential; from nsub when unset, else 0.6 V; levels 2 and 3
eta — 0 Drain-induced threshold lowering; level 3 only
vmax m/s 0 Saturation velocity of the carriers; 0 for none; levels 2 and 3
kappa — 0.2 Saturation field factor of the channel-length modulation; level 3 only
xj m 0 Metallurgical junction depth, for the short-channel threshold; levels 2 and 3
ld m 0 Lateral diffusion; the channel is l − 2·ld long; levels 2 and 3
wd m 0 Width narrowing; the channel is w − 2·wd wide; level 3 only
delta — 0 Width effect on the threshold; levels 2 and 3
nfs 1/m² 0 Fast surface state density; 0 for no subthreshold current; levels 2 and 3
cgso F/m 0 Gate-source overlap capacitance per metre of width; levels 2 and 3
cgdo F/m 0 Gate-drain overlap capacitance per metre of width; levels 2 and 3
cgbo F/m 0 Gate-body overlap capacitance per metre of length; levels 2 and 3
ucrit V/m 1e6 Critical field of the mobility degradation; level 2 only
uexp — 0 Exponent of the mobility degradation; 0 for none; level 2 only
neff — 1 Channel charge coefficient of the velocity-saturated channel-length modulation; level 2 only

Parameter descriptions are in English in both languages.

Use for: Linear regulators · Amplifier stages · Imported SPICE netlists

Not for: Converter legs driven by a logic signal → mosfet

Formulas

Formula Equation Source
Transconductance parameter β = kp·W/L Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 5 (MOSFET current-voltage characteristics)
Saturation drain current Id = ½·β·(Vgs − vto)²·(1 + λ·Vds) Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 5 (saturation region and channel-length modulation)
Small-Vds on resistance rDS = 1/(β·(Vgs − vto)) Sedra & Smith, Microelectronic Circuits, 7th ed. (2015), ch. 5 (the MOSFET as a voltage-controlled resistance)

Quick check

Inputs:

  • kp: Process transconductance = 20u A/V², kp
  • w: Channel width = 100u m, w
  • l: Channel length = 10u m, l
  • vto: Threshold voltage = 1 V, vto
  • lambda: Channel-length modulation = 20m 1/V, lambda
  • vgs: Gate-source voltage = 5 V
  • vds: Drain-source voltage = 10 V

Outputs:

  • beta: Transconductance parameter = kp*w/l A/V²
  • idsat: Saturation drain current = 0.5*beta*(vgs - vto)^2*(1 + lambda*vds) A
  • rds: On resistance at small Vds = 1/(beta*(vgs - vto)) Ω

Model logic

  • At level 1, beta = kp·w/l and vov = vgs - vto; below the threshold no current flows.
  • In triode (vds below vov) id = beta·(vov·vds - vds²/2)·(1 + lambda·vds), in saturation id = beta/2·vov²·(1 + lambda·vds); drain and source swap when vds is negative.
  • The solver linearizes the law at the operating point and repeats within each step until the point stops moving.
  • Level 1 has no body diode and no capacitances; level 3 and vdmos add short-channel effects, a body diode and capacitances.

Model

Shichman-Hodges level 1 with beta = kp * w / l and vov = vgs - vto. Below the threshold no current flows. In triode (vds < vov), id = beta * (vov * vds - vds^2 / 2) * (1 + lambda * vds). In saturation, id = beta / 2 * vov^2 * (1 + lambda * vds). Drain and source swap roles when vds is negative. The solver linearizes the law at an operating point and repeats within each step until the point stops moving. There is no body effect, capacitance or body diode. To fit beta from a datasheet, use beta = 2 * ID / (VGS - VTO)^2 at one point in saturation, and take lambda as the slope of the output curves divided by their current.

Common mistakes

  • The default kp, with w equal to l, is a small-signal SPICE value. A power MOSFET needs a much larger kp, w and l combination, or it will hardly conduct.
  • A gate connected to nothing floats at 0 V and keeps the part off. There is no body diode, so add a Diode from s to d when the circuit needs one.

Datasheet and sources

vto is the gate threshold on the datasheet. Fit kp, w and l from one point of the transfer curve in saturation, and take lambda from the slope of the output curves.

Example

Open the example with the command file.openExample and the name demo:nmos.


Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.