DVD ML leakage models: 16nm LP transistor terminal currents

Four scikit-learn models that predict the four terminal currents (id, ig, is, ib) of a single transistor in the 16nm LP BSIM4 (PTM) card, one per case: nmos_on, nmos_off, pmos_on, pmos_off.

Inputs (12): vdd, temp, w, vd, vs, vg, vb, vth0, toxe, ndep, u0, xj (volts, ยฐC, metres, and the five varied process parameters).

Code, training scripts and full documentation: https://github.com/Pavani1256/DVD_ML_Project

Results (single-transistor models composed into gates and a circuit)

Validation Mean accuracy
Part B: INV/NAND2/NOR2/AND2/OR2, all 18 input cases ร— 200 PVT corners vs SPICE 99.94 %
Part C: 8-bit parity checker (28 NAND2), 256 vectors ร— 200 corners vs full-netlist SPICE 99.98 %

Mean accuracy = mean of (100 โˆ’ |relative error| %), clipped at 0.

How the models work

  • General regressors (per-terminal MLPs and tree ensembles, chosen per terminal on validation) on the raw inputs plus BSIM4-style physics features (effective threshold, EKV channel current, gate-tunnelling estimates), predicting log10|I|.
  • Operating-point sub-models: at the exact bias points of static CMOS (drain/source at a rail, or one at a rail and one at an internal node), polynomial ridge or MLP sub-models trained on extra single-transistor SPICE samples replace the general prediction where they validate better.
  • Single-device Kirchhoff's law for some OFF-device drain/source currents.

All training data are single-transistor ngspice simulations. No gate or circuit simulation was used for training or model selection.

Usage

The files are joblib pickles of TransistorModel objects defined in the project's src/transistor_ml.py, so they need that code and the exact package versions below.

git clone <project repo> && cd <project>
pip install -r requirements.txt
./run.sh models        # downloads the pinned revision of this repo, checks SHA-256
./run.sh validate      # Part B and Part C against the cached SPICE results
import sys, joblib, numpy as np
sys.path.insert(0, "src")
model = joblib.load("saved_models/nmos_off.joblib")["model"]
X = np.array([[0.9, 27, 32e-9, 0.9, 0.0, 0.0, 0.0, 0.68191, 1.2e-9, 7e18, 0.028, 5e-9]])
id_, ig, is_, ib = model.predict(X)[0]      # amperes, current into each terminal

Environment the models were saved with

  • scikit-learn 1.9.1, numpy 2.5.4, Python 3.12.13
  • Source commit: 6624406c57516fdcd0b66ec028401c8cac32a15a

A joblib model only loads with the scikit-learn version that saved it.

Limitations

  • One technology card (16nm LP), widths 1โ€“8 ร— Lmin, VDD 0.81โ€“0.99 V, โˆ’40 to 125 ยฐC, ยฑ10 % process variation. Outside that range the predictions are extrapolations.
  • Devices with both drain and source at internal nodes (deep stacks) use the general models only.
  • Loading a pickle runs code: only load these files from a source you trust.
Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support