E9.1.1 Which Parameter Bent the Curve

MediumVerifyngspice 42 + SKY130 · serverReview the topic

Write the bench that accepts or rejects a monitor transistor. It must read the threshold, the current factor and the DIBL separately, because one drain current cannot tell them apart.

Circuit context: A monitor transistor on every wafer, a SKY130 NMOS 4/0.3, measured through its four terminals at tt and 27 °C. Write the wafer-acceptance bench that names which device quantity drifted.

Every wafer carries a monitor transistor, a 4/0.3 µm NMOS. A lot is accepted only if three device quantities are inside their windows: the threshold, the current factor and the DIBL.

The old acceptance bench read one drain current at VGS = VDS = 0.9 V. It rejected good lots whose threshold had moved a little. It accepted a lot with too much DIBL, and the leakage of that lot failed later.

The subcircuit pcm in the netlist below is the monitor transistor (ports d, g, s, b). Write the bench that measures the three quantities of the spec and prints a verdict.

The grader swaps each device it tests into your pcm block and runs your bench. This device and two hidden good devices must get pass = 1. Four hidden drifted devices must not. Each one is outside exactly one window.

What the Grader Measures

Your bench, with each of these designs swapped into pcm; it must print pass = 1 on the good ones and not on the faulty ones.

Requirement your bench checksLimit
Threshold: V_GS at I_D = 1 µA, V_DS = 0.1 V0.57 V to 0.63 V
Current factor: largest dI_D/dV_GS, V_DS = 0.1 V290 µS to 345 µS
DIBL: threshold change from V_DS = 0.1 V to 1.8 V, per volt≤ 28 mV/V
DesignYour verdict must be
The monitor transistor in your netlist (NMOS 4/0.3)PASS
A good device with a threshold 20 mV higherPASS
A good device: threshold lower, slightly wider, a little more DIBLPASS
4 hidden faulty designsFAIL
Full specification
QuantityHow it is readWindow
ThresholdVGS at ID = 1 µA, with VDS = 0.1 V0.57 V to 0.63 V
Current factorthe largest slope dID/dVGS for VGS from 0 to 1.8 V, with VDS = 0.1 V290 µS to 345 µS
DIBL(threshold at VDS = 0.1 V − threshold at VDS = 1.8 V) / 1.7 V≤ 28 mV/V
The verdict, at the end of your .control block
let pass = ...   * 1 if all three quantities are inside their windows, 0 if not
print pass

The source and the body are at ground for every reading. The threshold at VDS = 1.8 V is read the same way, at ID = 1 µA.

A device for which your bench prints no verdict, or whose run stops with an error, counts as FAIL. The grader writes .lib sky130 tt itself and runs at 27 °C.

Examples

Example 1

The Monitor Transistor in the Netlist
Setup
two gate sweeps, at V_DS = 0.1 V and 1.8 V
Measured
threshold = 0.5986 V
largest slope = 318.1 µS
DIBL = 15.4 mV/V
pass = 1

All three quantities sit near the middle of their windows. The drain current at V_{GS} = V_{DS} = 0.9 V is 109.6 µA.

Example 2

A Good Device with a Threshold 20 mV Higher
Setup
the same bench
Measured
threshold = 0.6186 V
largest slope = 318.1 µS
DIBL = 15.4 mV/V
pass = 1

The threshold is inside its window. The current at 0.9 V falls by 14 % to 94.7 µA, yet the largest slope does not move at all.

Example 3

A Drifted Device
Setup
the same bench
Measured
threshold = 0.5966 V
largest slope = 318.1 µS
DIBL = 35.4 mV/V
pass = 0

At V_{DS} = 0.1 V this device looks like the reference. Only the second sweep, at 1.8 V, shows it: the threshold falls by 60 mV between the two sweeps.

Constraints and Contract

  • Keep exactly one .subckt pcm d g s b ... .ends block. The grader replaces it with each device it tests, so changes inside it are not graded.
  • The bench sees the device only through its four ports. It may not use @device parameters, nodes inside x instances, show, showmod or altermod.
  • Print the verdict as pass. Any value of at least 0.5 counts as PASS.

Hints

Hint 1

A threshold shift moves the whole curve along VGS. It changes the drain current at a fixed bias, but it does not change the largest slope of the curve.

Hint 2

deriv() differentiates a vector against the sweep. After dc VG ..., let gm = deriv(id) is dID/dVGS, and meas ... MAX gm reads its peak.

Hint 3

alter VD dc=1.8 changes the drain voltage between two sweeps. Each sweep makes a new plot. Read a value of the first sweep as dc1.name.

What the grader checks: The grader runs your bench on this device, two hidden good devices and four hidden drifted ones at tt, 27 °C. It compares your printed verdict with the right one for each device. It grades the decisions, not the numbers you print. Engine: ngspice 42 (libngspice0 42+ds-3build1) with the lean SKY130 library, measured 2026-11-12 with tools/spice-judge.mjs. The drifted devices are the SKY130 model with a shifted gate voltage, another size or a drain-to-gate coupling. They are models of drift and not measured wafers.

Run simulates your netlist as written, with your own analyses and measurements. Submit sends it to the grader, which keeps only your bench and makes 7 ngspice runs, one per design. The numbers come from ngspice and the SKY130 models the site pins; they prove the measured cases, not every condition a chip meets.

See all 1 steps and the final capstone

Report a problem with this page

Your netlist SPICESaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs
Not run yet
Run your netlist to see its measurements and the ngspice log here.
ngspice 42 + SKY130 · server