Reading a Model Card and an Operating Point
Read the model card behind a SKY130 transistor and the operating point ngspice prints, and place the square-law hand model inside them.
You Will Be Able To
- Print a device's model card with
showmodand its operating point withshow. - Name the card that a W and an L select, and predict when a new size selects another.
- Separate a threshold, mobility, velocity or DIBL change with readings at two drain voltages.
- Check a square-law estimate against the printed
vth,vdsatandgm.
- Lesson
- E9.1
- Time
- 30 min
- Runs on
- ngspice
- Check
- 5 questions
A designer needs 100 µA from a 1/0.15 µm NMOS. The model card gives a threshold vth0 of 0.562 V and a mobility u0, and the square law turns them into VGS = 0.892 V. The simulator gives 32.3 µA there.
- full model
- square law from the card
- Gate-source voltage VGS 892 mVfull model = 32.27 µA · square law from the card = 100.1 µA
The hand model promises 100.1 µA. The full model gives 32.27 µA.
- Gate-source voltage VGS 1.085 Vfull model = 99.91 µA · square law from the card = 251.3 µA
The device needs 1.085 V for 100 µA.
- Gate-source voltage VGS 1.8 Vfull model = 432.3 µA · square law from the card = 1.407 mA
At 1.8 V the hand model says 1.41 mA. The device carries 432 µA.
Read the plot as a table
| Gate-source voltage VGS | full model | square law from the card |
|---|---|---|
| 0 V | 1.115 pA | 0 A |
| 200 mV | 19.88 pA | 0 A |
| 400 mV | 3.287 nA | 0 A |
| 600 mV | 419.4 nA | 1.328 µA |
| 800 mV | 12.71 µA | 52.08 µA |
| 892 mV | 32.27 µA | 100.1 µA |
| 1 V | 66.95 µA | 176.3 µA |
| 1.085 V | 99.91 µA | 251.3 µA |
| 1.2 V | 148.9 µA | 373.8 µA |
| 1.4 V | 240.7 µA | 644.9 µA |
| 1.6 V | 336 µA | 989.3 µA |
| 1.8 V | 432.3 µA | 1.407 mA |
One run. The hand curve is a behavioural source in the same netlist.
The card is not wrong: it holds far more than the two numbers the square law uses.
A Compact Model Is Equations Plus a Card
- File
- Constraint
- Source
- Model
- Result
- Measure
- Data
- The card
The foundry measured real transistors and fitted these numbers.
showmodprints them. - The equations
The equations turn the card, the size and the bias into currents and charges.
- The printout
The equations also give small-signal values at the bias.
showprints them.
Read the diagram as text
- Model card: fitted numbers
- Size: W and L pick a card
- Bias: VGS, VDS, VBS, T
- BSIM4 equations: the same for every card
- Currents and charges: used to solve the circuit
- Operating point: vth, vdsat, gm, gds, cgg
- Model card → BSIM4 equations
- Size → BSIM4 equations
- Bias → BSIM4 equations
- BSIM4 equations → Currents and charges
- BSIM4 equations → Operating point
The lab runs both commands.
A compact model is a fixed set of equations for a transistor's currents and charges. A model card is the list of numbers fitted to those equations. SKY130 cards use the BSIM4 equations, version 4.5.
| Parameter | What it sets | Card of the 1/0.15 device |
|---|---|---|
vth0 | Threshold at zero body bias | 0.5617 V |
u0 | Mobility at low field | 0.03307 m2/(V·s) |
vsat | Top speed of the carriers | 165412 m/s |
eta0 | DIBL: threshold drop per volt of VDS | −0.7482 |
toxe | Oxide thickness, so Cox | 4.148 nm |
Five of the 350 values in this card. From showmod in the lab.
DIBL is drain-induced barrier lowering: a high drain voltage lowers the threshold of a short device. E9.2 measures it.
One Parameter, One Signature
altermod changes one card parameter between runs. The figure shows the card as shipped and three altered copies.
- card as shipped
- vth0 + 0.1 V
- u0 − 30 %
- vsat − 30 %
- Gate-source voltage VGS 900 mVcard as shipped = 46.8 µA · vth0 + 0.1 V = 18.47 µA · u0 − 30 % = 31.62 µA · vsat − 30 % = 43.62 µA
Threshold:
vth0+ 0.1 V slides the whole curve right by 100.7 mV. - Gate-source voltage VGS 1.3 Vcard as shipped = 224.6 µA · vth0 + 0.1 V = 172.6 µA · u0 − 30 % = 170.1 µA · vsat − 30 % = 193.3 µA
Mobility:
u0scales the current everywhere above the threshold. - Gate-source voltage VGS 1.8 Vcard as shipped = 475.6 µA · vth0 + 0.1 V = 416.1 µA · u0 − 30 % = 385 µA · vsat − 30 % = 394.2 µA
Velocity:
vsatcosts 17.1 % at full drive and almost nothing near the threshold.
Read the plot as a table
| Gate-source voltage VGS | card as shipped | vth0 + 0.1 V | u0 − 30 % | vsat − 30 % |
|---|---|---|---|---|
| 0 V | 2.046 pA | 1.828 pA | 1.959 pA | 2.042 pA |
| 200 mV | 39.98 pA | 4.769 pA | 25.82 pA | 39.35 pA |
| 400 mV | 5.999 nA | 477 pA | 3.774 nA | 5.9 nA |
| 600 mV | 697 nA | 69.35 nA | 439.1 nA | 684.7 nA |
| 800 mV | 18.77 µA | 4.639 µA | 12.23 µA | 17.99 µA |
| 900 mV | 46.8 µA | 18.47 µA | 31.62 µA | 43.62 µA |
| 1 V | 85.25 µA | 45.98 µA | 59.69 µA | 77.37 µA |
| 1.2 V | 176.1 µA | 126.7 µA | 130.5 µA | 153.7 µA |
| 1.3 V | 224.6 µA | 172.6 µA | 170.1 µA | 193.3 µA |
| 1.4 V | 274.1 µA | 220 µA | 211.4 µA | 233.4 µA |
| 1.6 V | 374.5 µA | 317.4 µA | 297.2 µA | 313.9 µA |
| 1.8 V | 475.6 µA | 416.1 µA | 385 µA | 394.2 µA |
The run repeats the sweep at VDS = 0.1 V for the table.
| Change | Vth shift, VDS = 0.1 V | Vth shift, VDS = 1.8 V | ID at VGS = 1.8 V, VDS = 0.1 V | ID at VGS = VDS = 1.8 V |
|---|---|---|---|---|
vth0 + 0.1 V | 100.8 mV | 100.7 mV | −9.9 % | −12.5 % |
u0 − 30 % | 23.9 mV | 22.0 mV | −30.1 % | −19.1 % |
vsat − 30 % | 0.6 mV | 0.8 mV | −1.9 % | −17.1 % |
eta0 + 0.05 | −1.2 mV | −20.1 mV | 0.1 % | 2.4 % |
toxe + 10 % | 85.7 mV | 79.2 mV | −10.8 % | −14.6 % |
Vth here is the VGS at ID = 667 nA, the constant-current method of E2.2. The shipped card reads 680 mV and 597.9 mV.
A threshold change shifts the curve equally at both drain voltages. A DIBL change shifts it only at high VDS. Mobility shows most in the triode current, and velocity in the saturated current.
A single reading of ID cannot tell these apart. Readings at two drain voltages can.
Bins: 48 Cards Under One Name
No single card fits every size. The foundry fits one card for each range of W and L, called a bin. This NMOS has 48 cards, and ngspice picks one from the W and L of each instance.
| W/L (µm) | Card selected | L range | W range | vth0 in the card | vth printed |
|---|---|---|---|---|---|
| 1/0.15 | nshort_model.40 | 0.15 to 0.18 µm | 0.55 to 1 µm | 0.562 V | 0.77 V |
| 1/1 | nshort_model.37 | 0.5 to 1 µm | 0.55 to 1 µm | 0.642 V | 0.616 V |
| 10/8 | nshort_model.2 | 4 to 8 µm | 7 to 1010 µm | 0.513 V | 0.526 V |
| 2/1 | nshort_model.29 | 0.5 to 1 µm | 1 to 3 µm | 0.566 V | 0.606 V |
From the lab, at VGS = VDS = 1 V.
Inside a bin, each parameter still changes with size. The card stores a base value P0 and three size terms: P = P0 + PL/Leff + PW/Weff + PP/(Leff·Weff).
So vth0 and eta0 in a card are base values. For the 1/0.15 device, eta0 is −0.748, and a negative DIBL would make no physical sense. The size terms make up the difference.
Sizes on two sides of a bin edge use different cards. The 2/1 device carries 2.157 times the current of the 1/1 device.
The Operating Point, Line by Line
- gm
gmis the change of drain current per volt of gate voltage.gm·vgs
- gds
gdsis the change of drain current per volt of drain voltage. Its inverse is ro. - cgg
cggis the total capacitance seen at the gate.
Read the circuit as text
- gate port: terminal →
n1 - C_gg capacitor (0.797 fF): pin 1 →
n1, pin 2 →0 - gm·vgs current source (377.6 µS): + →
n2, − →0 - r_o resistor (41.27 kΩ): pin 1 →
n2, pin 2 →0 - drain port: terminal →
n2
E3.1 splits Cgg into its parts.
Line of show | 1/0.15 | 1/1 | 10/8 |
|---|---|---|---|
vth | 0.77 V | 0.616 V | 0.526 V |
vdsat | 0.169 V | 0.333 V | 0.397 V |
id | 66.95 µA | 18.79 µA | 32.58 µA |
gm | 377.6 µS | 86.21 µS | 130.1 µS |
gds | 24.23 µS | 1.241 µS | 0.4366 µS |
cgg | 0.7974 fF | 5.595 fF | 465.2 fF |
All three at VGS = VDS = 1 V.
vth is the model's own threshold at this bias, with every size and bias term included. It is not an extracted threshold. The 1/0.15 device prints 0.77 V, while the constant-current method reads 0.622 V at the same VDS.
vdsat is the drain voltage at which the model enters saturation. Compare it with VDS to name the region.
Where the Square Law Sits
The square law keeps three numbers: one threshold, one current factor µ·Cox·W/L, and one λ. Feed it the printed values and compare.
| At VGS = VDS = 1 V | 10/8 printed | 10/8 square law | 1/0.15 printed | 1/0.15 square law |
|---|---|---|---|---|
ID, from the card's vth0 and u0 | 32.58 µA | 39.74 µA | 66.95 µA | 176.3 µA |
gm = 2ID/(VGS − vth) | 130.1 µS | 137.5 µS | 377.6 µS | 583.1 µS |
VDsat = VGS − vth | 0.397 V | 0.474 V | 0.169 V | 0.23 V |
Cox = 3.9·ε0/toxe = 8.325 fF/µm2.
For the long, wide device the hand current is 22 % high and the hand gm is 6 % high. For the short device the hand current is 2.6 times too large.
The full model adds what the square law leaves out. Mobility falls with the gate field, and carriers reach a velocity limit. The threshold moves with size and drain voltage.
Asked in interviews
What is a compact model, and what is a model card?
A compact model is a fixed set of equations for a device's currents and charges, such as BSIM4. A model card is the list of numbers a foundry fitted to those equations, for one device type and one size range.
What is binning?
One card cannot fit every W and L, so the foundry fits a card for each range of sizes. The simulator picks the card from the instance size. Here a 1/1 device and a 2/1 device use different cards, and the current rises 2.157 times.
Which operating-point values do you read first?
Read
vdsatagainst VDS for the region. Then readgmandgdsfor the gain, andcggfor the load on the stage before. Readvthonly as the model's internal value.
Try It
The save lines keep six operating-point values of each device. The three-point sweep then gives meas a middle point to read.
Part 2 reads the card of each device. @xm1:nshort_model.40[vth0] is one parameter of the card that XM1 selected. The card names are fixed in these lines, so they match these four sizes only.
Part 3 prints the same facts in the log, as a designer usually reads them. showmod also names the card of each device.
Predict before each change. Set XM2 to W=1.2: which card does showmod name now? Set VD to 0.2: which devices still have VDS above vdsat?
Run the netlist to draw its plots here.
vth_1 = 7.703535e-01 vdsat_1 = 1.692331e-01 id_1 = 6.695303e-05 gm_1 = 3.776094e-04 gds_1 = 2.422936e-05 cgg_1 = 7.974000e-16 vth_2 = 6.155600e-01 vdsat_2 = 3.326711e-01 id_2 = 1.879459e-05 gm_2 = 8.620974e-05 gds_2 = 1.241425e-06 cgg_2 = 5.594736e-15 vth_3 = 5.260026e-01 vdsat_3 = 3.973791e-01 id_3 = 3.257909e-05 gm_3 = 1.300898e-04 gds_3 = 4.366313e-07 cgg_3 = 4.652203e-13 vth_4 = 6.057846e-01 id_4 = 4.054021e-05 lmin_1 = 1.500000e-07 lmax_1 = 1.800000e-07 wmin_1 = 5.500000e-07 wmax_1 = 1.000000e-06 vth0_1 = 5.617438e-01 u0_1 = 3.307353e-02 lmin_2 = 5.000000e-07 lmax_2 = 1.000000e-06 wmin_2 = 5.500000e-07 wmax_2 = 1.000000e-06 vth0_2 = 6.421817e-01 u0_2 = 2.380725e-02 lmin_3 = 4.000000e-06 lmax_3 = 8.000000e-06 wmin_3 = 7.000000e-06 wmax_3 = 1.010000e-03 vth0_3 = 5.128170e-01 u0_3 = 3.217780e-02 lmin_4 = 5.000000e-07 lmax_4 = 1.000000e-06 wmin_4 = 1.000000e-06 wmax_4 = 3.000000e-06 vth0_4 = 5.660596e-01 u0_4 = 2.799000e-02Check Yourself
Common Mistakes
Wrong Take vth0 from the card as the threshold of the device.
The card value is a base term, and size and bias terms move the real threshold.
Fix Read vth at your bias with show. The 1/0.15 device prints 0.77 V against 0.562 V in the card.
Wrong Put two parameters on one altermod line.
In ngspice 42 that line changes only its first parameter, and it gives no warning.
Fix Write one altermod line for each parameter, then run again.
altermod xm1:nshort_model.40 vth0=0.60 u0=0.04altermod xm1:nshort_model.40 vth0=0.60
altermod xm1:nshort_model.40 u0=0.04Wrong Diagnose a device from one drain current at one bias.
A threshold, mobility, velocity or DIBL change can each give the same current at one point.
Fix Read the threshold at low and high VDS, then the triode and the saturated current.
Remember
- A compact model is a set of equations. A model card is the foundry's fitted numbers for one range of sizes.
- W and L select the card. A size across a bin edge uses another card with other numbers.
- Card values such as
vth0are base terms. The printedvth,vdsat,gm,gdsandcggdescribe the device at its bias. - Two drain voltages separate a threshold change from a DIBL change. Triode and saturated currents separate mobility from velocity.
- The square law is close for a long, wide device and wrong by 2.6 times for the 1/0.15 device here.