Showing posts with label john ousterhout. Show all posts
Showing posts with label john ousterhout. Show all posts

Thursday, November 19, 2026

ALIGN's Layout for a NAND Std-Cell is 35x as Large as What the Library Has

ALIGN is an open-source generator that turns a SPICE netlist into a layout. We have been porting it to SkyWater’s sky130 PDK, driven from Xschem. Our port turns a four-transistor NAND2 into a sky130 layout that passes every DRC and LVS check in about seven seconds. The layout is 130 µm², 35 times the 3.75 µm² of the PDK’s own nand2_1. One of its four transistor cells, at 8.76 µm², is larger than the whole standard cell.

This post takes that layout apart and traces each lost micron to the code that costs it, and to the reason that code exists.

Friday, November 13, 2026

GF180MCU Device Cheat Sheet (But Which Flavor?:)

GlobalFoundries 180 nm MCU, variant D (open_pdks gf180mcuD, BSIM4). Corner typical / res_typical; mismatch via sw_stat_mismatch=1 (per-instance ΔVT and Δβ in the fets_mm wrappers). Every number below is simulated from the vendored models with plain ngspice decks, typical corner, 27 °C; the Monte-Carlo columns use the PDK's own per-device mismatch model with 30 samples. Click a column header to sort (first click ascending, second descending); click the # header to restore the original order. Devices marked † could not be simulated at the standard 10/0.5 and 0.5/2 geometries; the geometry used is listed under the table.

FETs

#DeviceTypeLmin (µm)Wmin (µm)VDS max (V)VGS max (V)Vth (V)7gm,in (µS)1gm,mir (µS)2AVT (mV·µm)3fT (GHz)4σ ΔI/I mirror (%)5σ Vos pair (mV)6
1nfet_03v33.3 V NMOSNMOS0.280.223.603.600.711617.07.42.035.13.3
2pfet_03v33.3 V PMOSPMOS0.280.223.603.60-0.791103.56.90.992.43.2
3nfet_05v0†5 V NMOS (same model as 06v0)NMOS0.600.305.505.500.711556.519.02.466.37.5
4pfet_05v05 V PMOSPMOS0.500.305.505.50-0.821102.914.11.532.76.5
5nfet_06v0†6 V NMOSNMOS0.700.306.506.500.721446.516.81.976.36.3
6pfet_06v06 V PMOSPMOS0.500.306.506.50-0.821102.914.11.552.76.5
7nfet_06v0_nvt†6 V native NMOSNMOS1.800.806.506.50-0.09175n/an/a2.02n/an/a
8nfet_03v3_dss3.3 V NMOS, drain salicide blockNMOS0.280.223.603.600.711607.07.42.025.13.3
9pfet_03v3_dss3.3 V PMOS, drain salicide blockPMOS0.280.223.603.60-0.791103.56.90.992.43.2
10nfet_06v0_dss†6 V NMOS, drain salicide blockNMOS0.600.306.506.500.711586.519.02.566.37.5
11pfet_06v0_dss6 V PMOS, drain salicide blockPMOS0.500.306.506.50-0.821102.914.11.552.76.5

† Geometry actually simulated (W/L in µm) where the standard 10/0.5 and 0.5/2 devices are not allowed: nfet_05v0: input-pair device 10/0.6 (Lmin / Wmin); nfet_06v0: input-pair device 10/0.7 (Lmin / Wmin); nfet_06v0_nvt: input-pair device 10/1.8, mirror device 0.8/2 (Lmin / Wmin); nfet_06v0_dss: input-pair device 10/0.6 (Lmin / Wmin).

Notes

  1. gm of one input-pair device, W = 10 µm, L = 0.5 µm (the geometry listed under † where the model does not allow that), ID = 10 µA, VDS = half the nominal supply of the device's gate class (1.65 V, 2.5 V, 3 V), VSB = 0, 27 °C; dID/dVGS from a 1 mV dc sweep.
  2. gm of one current-mirror device, W = 0.5 µm, L = 2 µm (or the † geometry), diode-connected, ID = 1 µA. Blank when the device cannot work as a diode-connected mirror (zero-VT or depletion device: VDS = VGS leaves it in triode).
  3. Pelgrom coefficient for the threshold: σ(ΔVT) of two input-pair devices (geometry of note 1) times √(W·L), from 30 Monte-Carlo mismatch samples (ΔVT read from the model's operating-point vth). With 30 samples a σ carries about ±13 % (1σ) statistical error; the last section compares the samples with the model's own mismatch parameters.
  4. Transit frequency of the input-pair device at the bias of note 1: frequency where |id/ig| = 1 in a small-signal sweep (drain at fixed VDS, source and bulk on the rail).
  5. Current-mirror error: two 0.5/2 devices at 1 µA (the "gm·ΔVGS" of a mirror), master diode-connected, slave at the same VDS; σ of (Islave − Imaster) / Imaster over 30 mismatch samples.
  6. Input offset: σ(ΔVGS) of two input-pair devices at 10 µA each (geometry of note 1), the number a differential pair of this size would show as random offset.
  7. Threshold voltage as the model reports it at the operating point of note 1 (BSIM4 / PSP vth of the 10/0.5 device, VSB = 0, so it includes the model's drain-induced shift at that VDS); PMOS values are given with their negative sign, a negative NMOS value marks a depletion-mode device.

Resistors

#ResistorRsh (Ω/sq)aTC (ppm/K)fWmin (µm)Density (kΩ/µm²)bσ ΔR/R, 1×10 µm (%)cAR (%·µm)dRend (Ω)e
1nplus_uN+ diffusion, unsalicided59.613790.800.0931n/an/a3.67
2pplus_uP+ diffusion, unsalicided18714060.800.291n/an/a10.0
3npolyf_uN+ poly, unsalicided311-13270.800.486n/an/a8.03
4ppolyf_uP+ poly, unsalicided352-650.800.550n/an/a12.0
5ppolyf_u_1khigh-res poly 1k1001-8531.001.00n/an/a16.8
6ppolyf_u_2khigh-res poly 2k2002-15441.002.00n/an/a43.9
7ppolyf_u_3khigh-res poly 3k3004-15441.003.00n/an/a62.6
8nwelln-well105126151.200.730n/an/a50.3
9ppolyf_sP+ poly, salicided7.3632370.800.0115n/an/a1.00
10rm1metal 10.090633080.230.0017n/an/a0

Notes

  1. Sheet resistance from the model: R at W = 10 µm for L = 20 and 40 µm, Rsh = ΔR·W/ΔL, 27 °C, typical corner. A device at Wmin reads higher by the model's width bias (ΔW), up to +30 % for the n-well resistor.
  2. Resistance per unit body area at the minimum width: Rsh / Wmin² (ends, contacts and spacing not included). Highest = densest.
  3. Mismatch of two identical resistors, W = 1 µm (or Wmin), L = 10 µm, σ of ΔR/R over 30 Monte-Carlo mismatch samples.
  4. Area-normalised matching: the σ of note c times √(W·L), so σ(ΔR/R) ≈ AR/√(W·L) for another size. Lowest = best matching.
  5. End resistance per device from the same two lengths: R(L) ≈ Rsh·L/W + Rend (heads, contacts, salicide transitions).
  6. Span temperature coefficient of the sheet resistance, (Rsh(125 °C) − Rsh(−40 °C)) / (Rsh(27 °C) · 165 K), from the same wide devices; the models carry a quadratic term, so the local slope is lower at the cold end and higher at the hot end.

Ratings, sizes and what is not here

  • Voltages: nominal 3.3 V and 5 V / 6 V supplies with a 10 % overshoot allowance; the design manual caps the DC gate-to-any-node voltage at 3.63 V for thin oxide and 6.5 V for the thick-gate devices. The table lists nominal + 10 % (3.6 / 5.5 V) and 6.5 V for the 6 V devices.
  • Lmin/Wmin are the model binning limits (lmin/wmin in the vendored BSIM4 bins): 0.28 / 0.22 µm (3.3 V), 0.6 / 0.3 µm (5 V NMOS), 0.7 / 0.3 µm (6 V NMOS), 0.5 / 0.3 µm (5 V and 6 V PMOS), 1.8 / 0.8 µm (native). nfet_05v0/pfet_05v0 share the 6 V models (Appendix A of the design manual); they differ by the V5_XTOR mark and the shorter allowed L.
  • _dss = the same FET with a salicide-block (SAB) drain extension (3.78 µm NMOS / 2.78 µm PMOS on the drain, 0.28 µm on the source) for drain-voltage robustness; electrically identical here except the series drain resistance. The 10 V LDMOS (nfet_10v0_asym) has a symbol but no model in the vendored set and is not characterised. The native has no mismatch model, and its mirror cells are blank because a diode-connected depletion device (VT ≈ −0.1 V) sits in triode.
  • Mismatch parameters: the fets_mm wrappers put σ(VT) = par_vth/√(Leff·Weff) with Leff = L − 0.15 µm (0.4 µm for the 5 V / 6 V FETs) and Weff = W + 0.1 µm (0.5 µm), par_vth 7.1 / 6.7 mV·µm (3.3 V n / p), 11.6 / 10.5 (5 V and 6 V n / p). Normalised to drawn W·L that predicts AVT 8.5 / 7.9 (3.3 V) and 19.5 / 17.2 / 16.3 (5 V n, 6 V n, p); the 30-sample values sit 3–13 % below. The 0.4 µm length offset is why the same 6 V model reads 19.0 at L 0.6 and 16.8 at L 0.7.
  • Resistor Wmin: PRES.1 / LRES.1 = 0.8 µm (unsalicided P+/N+ poly), HRES.2 = 1.0 µm (1k/2k/3k high-res poly); for the diffusion, n-well, salicided poly and metal resistors no device rule was found and the PDK symbol default (0.8 / 1.2 / 0.8 / 0.23 µm) is used. GF180's vendored models carry no resistor mismatch model (the mis_r hook is never set), only global process σ: that column is empty.

Wednesday, November 11, 2026

In Case it Helps - Randomized Results in TT with SKY130nm and ngspice

Why my sky130 bandgap gave a different answer every run

One test in our xschem fork failed two of our last four full regression runs. On its own it always passed, so for weeks it was filed as "the known flaky one". This week we found the cause, and it is not a test problem at all. Every ordinary run of a tt_mm sky130 bench is a fresh Monte Carlo trial.

What we saw

The symptom

The test simulates the bandgap testbench that ships with the open_pdks sky130 examples. Sometimes ngspice ran for about 13 seconds, exited with code 1, and wrote no results file. The failing check moved from run to run.

It looked like a load problem, because it only failed inside a full test run. It wasn't.

The evidence

We copied the exact deck the test used and ran it with ngspice directly, 24 times. One run failed:

doAnalyses: TRAN:  Timestep too small; time = 1.63211e-07,
  timestep = 5e-20: trouble with node "v4#branch"
tran simulation(s) aborted

The surprise was earlier in the output. ngspice prints its starting solution before the transient begins, and no two runs printed the same one. Most started near 0 V, with noise from 1e-12 down to 1e-53. The failing run started at a non-physical point, with one node at −1.96×108 V.

Same deck, same binary, a different answer every time. Forcing ngspice onto one thread changed nothing, so it wasn't multithreading.

The cause

tt_mm means "typical, with mismatch"

The bench's corner symbol says corner=tt_mm. In the sky130 model library, that section sets MC_MM_SWITCH=1, so every transistor draws a random mismatch offset when the netlist is loaded. Plain tt sets it to 0.

ngspice has no separate Monte Carlo analysis. Monte Carlo in ngspice means "run again with a different seed". These runs set no seed, so ngspice used a different one every time. Every run was a new random sample of the circuit.

Seven of the bundled sky130 example benches use tt_mm, including the two bandgaps, the comparator, lvnand and srlatch.

The proof

Adding one line before the .control block:

.option seed=1

Six concurrent runs then found the same starting solution, and their results files matched byte for byte once ngspice's date line was removed.

Is ngspice broken?

No. ngspice and the sky130 models are doing what they were designed to do. The bundled sky130_mismatch example even calls setseed 12 when it wants a repeatable run.

The bug is the gap between that design and what a Cadence user expects. In Spectre, mismatch only applies inside a Monte Carlo analysis, so an ordinary run gives the same numbers every time. Our ADE-style front end, ASE-L, handed ngspice the deck without pinning a seed. So pressing Run on a tt_mm bench quietly ran one Monte Carlo trial instead of a repeatable simulation. On this bandgap, about one trial in 24 also failed to converge.

What we're changing

Ordinary runs get a fixed seed

ASE-L will pin the random seed for every run that isn't a Monte Carlo run, so a tt_mm bench gives the same answer each time you press Run.

Keep one subtlety in mind. A fixed seed gives you one particular mismatch sample, repeatably. It is not the mismatch-free typical device you get from tt. If you want typical numbers, use tt. If you want to see mismatch, run Monte Carlo.

If you use ngspice with sky130 today

Check your corner

If your corner ends in _mm and you aren't running Monte Carlo, either switch to the plain corner or put .option seed=1 in your deck. Otherwise two runs of the same schematic can disagree, and you'll chase a change you never made.

If you work with Claude Code: prompts that found this

A flaky test hides its cause until someone keeps the evidence. These are the requests that got us from "known flaky" to a root cause:

  • "Don't re-run it again. Find out why the simulator exits with error 1."
  • "Copy the exact deck the test simulates, and run ngspice on it directly, many times, keeping the output of any run that fails."
  • "Compare a failing run's output with a passing one, and tell me where they first differ."
  • "Before fixing anything, give me the background: where did this come from, and is the tool itself broken?"

The third one cracked it. The difference was before the transient even started, and that pointed straight at the models instead of at the test.

Does ngspice STB Work? Is ASE-L Geared to Use it?

HRH Claude Opus:

I didn't need any documentation, and native stb in ver_53 works. The ngspice session left a user guide (README.stb), a spec of what it built, three example decks and its review notes in the tree, and I had our own acceptance kit.

- Acceptance kit: accepted, with 323 checks passing, 0 failing and 0 skipped. Older binaries skipped the 32 native checks; on ver_53 all of them now run and pass.
- Your sky130 OTA demo: native gives the same loop gain as ASE-L's current method, to rounding (8e-14). The margins match the walkthrough: UGB 13.20 MHz, phase margin 56.3°, gain margin 44.6 dB at 267 MHz.
  - No probe element needed: naming a pin works, which is the extracted-view case you wanted. rm1:1 breaks the loop at the metal resistor's pin, and x1:inn at the OTA's own input; both give the same margins.
- Speed:
  - On the demo there is no difference, because loading the sky130 models (about 2.5 s) dominates.
  - On a large netlist, with a 20,000-node RC network added to the bench, the stb part takes about 0.2 s natively against about 1.5 s for ASE-L's two-sweep method.
- Monte Carlo: the shipped Monte Carlo example runs 100 samples cleanly, each within 0.002° of the analytic answer.
- Switching from v_52: ver_53 is ver_52 plus the stb work. ASE-L's demo suite prints identical numbers on both, so switching changes no existing ASE-L result.

What native stb doesn't do yet:

- No transistor as the probe: you name one of its pins instead.
- No differential or common-mode loops, the same as ASE-L's stb today.
- Frequency sweeps only: Monte Carlo runs through a loop in the deck.
- Not checked against another simulator: the margins have been checked against textbook closed forms and now ASE-L's own engine, but not against Spectre.

Two other findings:
- ASE-L doesn't use native stb yet. It still runs its own two-sweep method on every binary. Switching is the unbuilt plan in our private notes (CLIENT_NOTES.md §3). It would also let you pick any pin as the loop break, extracted views included.
- ver_53 isn't in your simulator list, which has only v_50 and v_52. Adding it is up to you, in Setup > Simulators.
- Unrelated to ver_53: the demo walkthrough's Monte Carlo table was measured on ver_51. On your v_52, and on ver_53, 3 of its 28 numbers differ in the last digit. The regression suite runs ver_51, so it stays green.



Why is Xschem Refusing to Annotate OP Info?

I pressed 6 on a sky130 schematic and xschem answered, in the console:

These symbol types have no operating-point values to show: capacitor, high_precision_poly_resistor, nmos, pmos and more.

Read quickly, that says the sky130 FETs cannot show operating-point annotation. My message to Claude was more or less "No kidding?". The IHP cells in the same project annotate fine. Same tool, same build, same simulator. Why would one process be a second-class citizen?

It was not. The feature is table-driven, and the table for sky130 had never been loaded into that xschem session. This post is about how we found that out, what we changed, and the handful of lessons that are worth more than the fix.

How the annotation knows a FET

To put gm or vth next to a transistor, the tool has to know two things that are different for every process: how the simulator spells that device in the results (for a sky130 wrapper it is @m.x1.xm1.msky130_fd_pr__nfet_g5v0d10v5, for IHP's PSP model it is @n.x1.xm1.nsg13_hv_nmos), and which quantities to ask for. Each PDK workarea ships a small descriptor that answers both, keyed by the symbol type (nmos, pmos), and registers it when the workarea's rc file is sourced. The same descriptor is what puts the device requests into the simulation deck, so without it a run saves nothing per device either.

Two details made the symptom confusing. First, the key is the symbol type, and both PDKs use nmos. So the registry holds one descriptor per type, and registering a second PDK replaces the first. The tool's own spec calls this out as "one interpreter per PDK", and it degrades to blank rather than to wrong numbers, which is the right failure. Second, a descriptor only claims cells whose name matches its PDK's library glob. Our project's startup script sourced the IHP workarea rc and nothing from sky130. The IHP descriptor looked at a sky130_fd_pr cell, declined it, and the annotator reported the type as one with nothing to show. Which, in that session, was true.

The tool had said so already. The run log in the console carried this line, printed at netlist time, before anyone pressed a key:

ASE: no device below this cell produced an OP save card — no registered op_annot PDK descriptor matched, or nothing below it is annotatable. The deck asks for no device parameters.

Nobody read it. Two sentences in a console pane, between a hundred others.

The fix I did not want

Claude's first proposal was an environment variable, with the PDK inferred from the schematic path when the variable was absent: a cell under lib/hdo_sky130/ would get a sky130 session, anything else IHP. Reasonable on paper. I turned it down. A setting that decides what a whole session can do should not be inferred from where a file happens to live, and a wrong guess here fails silently: the editor works, the simulation works, and the FETs quietly stop annotating. We already had the right model in the xschem repo: a small Tk launcher where you pick a PDK and press Launch. So:

Make it a minimal GUI like the pdk_launcher.sh thing in the Xschem repo. I'll pick the PDK when I run the launcher.
The project launcher. The Command field is a rendering of the list the dialog executes, so what you read is what runs, and it pastes into a terminal unchanged.

The dialog is about a hundred lines of Tcl. It exports the choice as two environment variables, the project's rc file resolves the matching workarea and switches the fresh-state simulation defaults with it, and the startup script sources that workarea's rc instead of a hard-coded one. One session, one PDK, chosen on purpose and visible in the command line.

Proving it, and the proxies that lied

The first three attempts to verify the fix all drew the six-row block with every value blank. Each attempt was a shortcut: run the bench headless, then load the cell and call the annotation. The deck and results were right. The shortcut was wrong twice over. The annotator finds its results file through the simulation session that owns the sheet, and a run started outside such a session left it looking for a file the simulator never writes. And the annotation has to be issued in the design window the simulation environment opens, not after a bare load into the main one. Only the user's own path proved anything: open the state in the simulation environment, Netlist and Run, open the design window, descend into the cell, press 6.

Before: a shortcut run. The block is drawn, every value is blank.
After: the real flow in a sky130 session. M1 at 5.2 µA has gm 100.6 µS and gds 245.6 nS; the tail switch drops 21.5 mV.
The whole cell. The console sentence now names only the capacitor, the resistor and the probe, which is what it should say.

One more thing the verification turned up, and it would have fooled a deck-grepping check forever: on this ngspice build the device numbers never appear as .save cards in the deck at all. The simulation environment measures that the simulator can dump every device's operating point in one go, asks for that instead, and the values land in a small .opinfo file beside the raw. The deck looked empty of device requests and was fine.

What three reviewers found

Before calling it done we ran three independent reviews: one on the launcher code, one on the tool-side assumptions against the xschem source, one on the write-up against the evidence. None of the three found the fix wrong. All three found something the author's tests could not:

  • The launcher did not change into the project directory before starting xschem, so the project's own operating-point parameter lists, which the tool reads from ./.xschem, were silently skipped unless you happened to start from the project root.
  • Return with the keyboard focus on Quit launched xschem instead of quitting. Inherited from the launcher we copied.
  • The project's parameter-list settings carried rows spelled for IHP's model, unscoped, so a sky130 session would have asked BSIM4 for quantities it does not publish. One section header fixed it.

The lessons

  1. A "cannot" from a tool is usually a "was not told". Before concluding that a feature does not support something, find who was supposed to register, configure or load it, and check whether that happened in this session.
  2. Read the console at run time. The cause was printed before the question was asked. A notice you do not read is a notice the tool did not print.
  3. Session-wide settings get an explicit choice, not an inference. One click in a dialog, with the resulting command visible, beats a clever rule whose failure mode is silence.
  4. Verify through the user's path, not a proxy. Three shortcuts produced blank values and looked exactly like a broken feature. The feature was fine; the probes were not the user.
  5. A table-driven feature has a scope. Here the scope is one xschem process, one registry, one PDK. Know the scope before you ask why something is missing from it.
  6. Independent review earns its cost on infrastructure. A launcher that every session goes through is worth three readers. A two-component schematic edit is not.

Total time, from the question to the memory note: about ninety minutes, then the review. The fix itself was a day's worth of understanding compressed into a dialog with two radio buttons.

Tuesday, November 10, 2026

Since the Waveform Viewer - in Xschem Free


The waveform viewer arrived on 21 July 2026. Six of these landed in the last few days; four are the big ones since July.

New this week

1. DC sweep of a design variable

ngspice cannot do this on its own. Its .dc sweeps only a source, a resistor or temperature, and a parameter is fixed once the circuit is loaded.

ASE-L now does it for you. Choose Design variable in the DC form, pick the variable, and give the range. ASE-L re-runs the operating point at each value and returns one DC curve with the variable on the X axis.

Why it helps: you can plot output voltage against a bias current, a W/L or any other design variable, the same way you would in ADE-L, without hand-writing a sweep loop.

2. Check and Save

Press Shift+X, or pick it from the File menu. It checks the schematic, saves it, and lists what it found:

  • pins that don't match the cell's own symbol (missing, extra, or wrong direction);
  • unconnected device pins;
  • nets with only one connection, and labels that touch nothing;
  • shorted labels and missing symbols.

Click a line in the report to jump to the problem.

Why it helps: mistakes that used to surface as a confusing simulation result are caught at save time. On its first real run it found an unconnected PMOS gate in my buffer.

3. q edits one, Alt-Shift-Q edits all

With the Cadence profile loaded, q always opens Edit Properties on Only Current. Alt-Shift-Q always opens it on All Selected.

Before, the form remembered the last scope you used. A q after an all-selected edit could quietly change every selected device.

Why it helps: the key you press decides the scope, so you never change twenty devices when you meant to change one.

4. AC plots that read like a Bode plot

AC results now open on a log frequency axis. Y values are labelled in dB or degrees, depending on the expression plotted.

Right-click any axis's numbers to switch that axis between linear and log.

Why it helps: no more squinting at a linear 0–1 GHz axis, or opening a dialog just to change the scale.

5. Dragging a label off a pin keeps it connected

In a connected drag, a net label sitting directly on a device pin now pulls a wire behind it, back to the pin.

Why it helps: tidying a schematic no longer silently disconnects a net.

6. sky130 5 V standard cells

The 69 sky130_fd_sc_hvl cells are now a library of their own, with their SPICE models in the repository.

Why it helps: 5 V logic is placed and simulated like any other cell, with nothing extra to install.

Tip: VNB is the NMOS body (tie it to ground) and VPB is the PMOS body (tie it to the supply).

The big ones since July

7. A Calculator that measures

Rise time, delay, duty cycle, frequency, phase margin, gain margin and bandwidth. Pick nets straight off the schematic.

8. A ViVA-style waveform viewer

Subwindows, markers, drag-and-drop strips, and a Signal Browser linked to the schematic.

9. ASE-L grows up

Eleven analyses instead of four. Outputs are computed after the run, and results are saved by name.

10. Operating points on the schematic

gm, vdsat and region next to each device after an OP run.

Sunday, November 1, 2026

Which FOSSi PDK Can Truly Hack It? (Hint : Not GF or SKY :)

Monte Carlo in ngspice on three open PDKs: sky130, GF180MCU and IHP SG13G2 What is real, what is broken, and how to get usable statistics out of each
Date
2026-10-30
Simulators
ngspice 45.2 (distribution build), and an ngspice-46+ development build carrying a resistor temperature-coefficient fix
Method
200-seed loops of small test decks per PDK, with every draw read back and compared against the PDK's own constants and, where they exist, its published measurements
Verdict
IHP SG13G2 is the most complete; sky130 is real for mismatch but not for process; GF180MCU is real for transistors but has no resistor mismatch

A common belief in the open-source analog community is that "sky130 Monte Carlo doesn't work in ngspice". We needed a definite answer, because we are building Monte Carlo support into an open-source schematic and simulation environment, and its first real use is trim-and-sim on a bandgap: one test finds a trim code for each Monte Carlo sample, and a second test runs that sample with its trim code under stress. A bandgap's spread is dominated by resistor-ratio and bipolar mismatch, as well as transistor offsets, so a PDK that leaves any of those out gives a falsely tight answer.

So we measured all three open PDKs the same way, rather than relying on folklore.

How we measured

Each PDK got the same kinds of test circuit: diode-connected transistor pairs at several sizes, resistor pairs, MIM capacitor pairs and bipolar devices. Each deck ran 200 samples inside a single ngspice process, using a loop that we had already validated for repeatability:

.control
foreach k 1 2 3 ... 200
  setseed $k
  reset
  op
  echo "ROW $k $&v(a) $&v(b) ..." >> rows.txt
  destroy all
end
.endc

Two details matter here:

  • destroy all in every sample is essential. Without it, reset slows down with every stored plot, and a 5000-sample run takes more than three times as long.
  • Each test directory had its own explicit .spiceinit. Otherwise one in $HOME can leak into the run and silently change the draws: ngbehavior=hsa changes the random sequence on sky130.

From each run we computed the per-device and pair-difference standard deviation, checked the Pelgrom scaling (σ·√(W·L) should be roughly constant across sizes), checked that two "identical" devices draw independently, and checked that sample k gives the same answer in a loop and in a fresh process. For every PDK the stock 45.2 binary and the development build gave bit-identical draws.

The summary

sky130GF180MCUIHP SG13G2
MOS mismatchreal, plausiblereal, matches PDK docsreal, plausible
Process (die-to-die)broken as shipped; workaround gives VT onlyreal, combines with mismatchreal, but section order matters
Resistor mismatchrealnone (zero in the model)real; centred upstream since 2026-03-02 (58d1f3d, on main too); the copy measured before 2026-10-30's update predates it and was about one local σ high
Resistor temperature coefficientcorrect only with a patched ngspicecorrectcorrect
Bipolar mismatchpnp realpnp real, npn nonereal, scaled by size since PR #1234 (not scaled in the copy measured before 2026-10-30's update)
Capacitor mismatchrealnonereal
Speed, 200 samplesslowest (2.5 s just to parse the library)about 1 s for 20 FETsabout 2 s for 12 PSP FETs

sky130

Mismatch: real

With the tt library and MC_MM_SWITCH=1, local mismatch is per device, Pelgrom-scaled and repeatable. tt with the switch on is bit-identical to the tt_mm section.

Pair (W/L, µm)σ(ΔVth)σ·√(WL)
nfet_01v8 1/0.1530.4 mV11.8 mV·µm
nfet_01v8 2/0.56.3 mV6.3 mV·µm
nfet_01v8 10/11.5 mV4.8 mV·µm
pfet_01v8 2/0.57.9 mV7.9 mV·µm
pfet_01v8 10/12.7 mV8.5 mV·µm

The PDK's own constants give a pair AVT of 4.75 mV·µm (n) and 8.28 mV·µm (p), which is plausible for a 130 nm process. Only VT varies: the mobility and oxide mismatch lines in the model are commented out. Minimum-size nfets come out about 2.4× wider than the constant suggests, because in nfet_01v8 the mismatch term sits inside a geometry multiplier. That looks unintended, and it makes small nfets pessimistic. We found no published SkyWater mismatch measurement to compare with.

Resistors (res_xhigh_po, res_high_po), MIM capacitors and the pnp_05v5 all vary, by amounts consistent with the PDK constants. For example, a res_xhigh_po 1×20 µm pair shows 1.4% σ in its ratio, and a 10×10 µm MIM pair shows 0.07%.

Process variation: broken as shipped

The .lib mc section cannot be used under ngspice. We found four separate defects:

  • 69 GAUSS(0, rel, 1) sites apply relative variation to a nominal of 0, so they never vary.
  • sw_nw_rs_mult uses 1+EXP(AGAUSS), which adds where it should multiply.
  • Every reference to a global agauss parameter draws it again, so devices on the same die are not correlated.
  • VT and oxide process variation are hard-coded to 0.

What remains spread is uncorrelated between identical devices, so it behaves like extra mismatch, not like die-to-die variation.

Workaround: draw the die-level VT yourself. The sw_vth0_*_mc parameters are plain constants, so alterparam can set them per sample. The standard deviations below come from the PDK's own (commented-out) Spectre vary block:

setseed $k
let zn = sgauss(0)
let zp = sgauss(0)
let vn = 0.006*zn
let vp = 0.009*zp
alterparam sw_vth0_sky130_fd_pr__nfet_01v8_mc = $&vn
alterparam sw_vth0_sky130_fd_pr__pfet_01v8_mc = $&vp
reset

This gives genuine die-to-die VT variation, fully correlated across all devices of a type, with n and p independent. It combines correctly with mismatch. It is VT only: there is no oxide, critical-dimension, mobility, resistor or capacitor process variation, and it needs one line per device family. For resistors and capacitors only the discrete corners work.

Resistor temperature coefficient

ngspice converts res_xhigh_po's voltage-dependent body into a B-source, and in doing so drops the model and with it the temperature coefficient. In stock ngspice the body is flat with temperature; it should be +17% at −40 °C and −22% at 125 °C. That alone flips the sign of a bandgap's output slope over temperature. Our patched ngspice build gets it right. Do not also apply the "three-line PDK edit" fix to a patched build, or the coefficient is applied twice.

GF180MCU

Mismatch and process: both real, but off by default

design.ngspice ships with sw_stat_global=0 and sw_stat_mismatch=0; mismatch was switched off by default after an upstream issue in 2022. To get real statistics, use the statistical sections instead of the typical ones, and turn the switches on afterwards:

.include design.ngspice
.lib sm141064.ngspice statistical
.lib sm141064.ngspice res_statistical
.lib sm141064.ngspice bjt_statistical
.lib sm141064.ngspice cap_mim
.lib sm141064_mim.ngspice mimcap_statistical
.param sw_stat_global=1
.param sw_stat_mismatch=1

Replace typical and res_typical with these; do not add them alongside. Including res_typical and res_statistical together fails with subcircuit redefinition and formula errors.

Pair (W/L, µm)σ(ΔVth) measuredPDK formula
nfet_03v3 1/0.2817.4 mV18.9 mV
pfet_03v3 1/0.2818.1 mV17.6 mV
nfet_03v3 10/12.5 mV2.4 mV
nfet_03v3 20/50.73 mV0.72 mV

These match both the model's formula and the measured mismatch plot in the GF180MCU documentation (about 9 mV·µm for n and 8.6 mV·µm for p). Global variation is a genuine die-wide draw: with mismatch off, a pair's difference is exactly zero. With both switches on, single-device σ is the root-sum-square of the two. The ff and ss corners sit about 5σ from typical, wider than a "3σ corner" would be.

What is missing or wrong

  • No resistor, MIM or npn mismatch. They vary only globally. The resistor mismatch term exists in the model only as a comment, although the PDK documentation shows measured resistor mismatch of up to about 0.85%. For a bandgap this is serious: the resistor-ratio spread is simply absent.
  • The resistor body has no thermal noise. The same B-source conversion that costs sky130 its temperature coefficient costs GF180 its noise: a 10.5 kΩ ppolyf_u_1k produced 1.7 nV/√Hz instead of 13.2. Only the two head resistors are noisy. The temperature coefficient survives, because it is written into the expression itself.
  • m= overstates mismatch by √m. The per-instance draw ignores m: an m=4 pair gave 19.5 mV instead of about 8.7. Use par= for matched arrays, which the formula does scale by. (xschem's GF180 symbols emit m=.)

The pnp mismatch (0.035 mV ΔVeb for 10×10 µm) matches the documentation. GF180 is also by far the fastest PDK to parse.

IHP SG13G2

Update, 2026-10-30. We re-measured against IHP-Open-PDK dev at dcb03b1 (2026-10-30), which includes the resistor-statistics restructure of 2026-10-17 (1d12af5). Our previous copy dated from February 2026, so the update brings in several upstream fixes made since then. Most of them are already on the main branch (last updated 2026-09-01): the resistor centring (58d1f3d, 2026-03-02), the pmos muew fix (bc94a21, 2026-05-18) and the mm_ok changes. Only the HBT size scaling and the 2026-10-17 restructure (with res_stat_mismatch) are on dev alone. We used the same decks and 200 seeds, on both ngspice builds. What the update fixes:
  • Resistor mismatch is centred. In res_typ_mismatch with mm_ok=1, the mean of a 1×10 µm resistor equals its typical value within sampling error: rsil −0.01%, rppd −0.01%, rhigh +0.02%, against +0.15%, +0.26% and +1.39% before. With mm_ok=0, a resistor now sits exactly at nominal. The pair scatter is about what it was (0.75%, 0.93%, 2.17%).
  • The pmos muew process parameter varies (σ 0.024 on 1.052). It was frozen before.
  • HBT mismatch scales with size (dev only). ΔVbe σ is 1.52 mV for one emitter and 0.66 mV for four, against about 4 mV for both before.
  • A combined resistor section exists (dev only): res_stat_mismatch gives resistor process and mismatch together. MOS still has no combined section, and the stat-then-mismatch order trap below is still there.
What to watch for in the new release:
  • Mismatch is mostly off by default. The MOS, HBT, resistor, varactor and MIM capacitor (cap_cmim, cap_rfcmim) subcircuits now default to mm_ok=0 (for the MIM caps this is new: the old copy defaulted them to 1 in the mismatch section, and a hand-written 10×10 µm cap_cmim went from a 0.09% capacitance sigma to 0), so a hand-written instance of those gets zero mismatch. The MOS capacitors (sg13_moscap_n/_p) are the exception: they default to mm_ok=1 and still vary in moscap_tt_mismatch without it. IHP's own symbols put mm_ok=1 on each instance, so a schematic drawn from them is fine. A hand-written netlist needs mm_ok=1 on every device line that should vary.
  • The plain sections are no longer mismatch-free. The HBT model now carries its mismatch itself, so hbt_typ and hbt_typ_stat also draw HBT mismatch for an mm_ok=1 device, and every schematic HBT is one. An ordinary typical simulation of an HBT schematic is therefore random: with no seed set, three runs of the same hbt_typ deck gave Vbe 0.72713, 0.72710 and 0.72660 V, while an instance without mm_ok stayed at 0.72656 V. A nominal or process-only run must set mm_ok=0 on the HBTs to stay one.
  • res_typ_stat is renamed res_stat. Three of IHP's own example benches still use the old name and stop with "section definition res_typ_stat not found". num_sigmas no longer scales the resistors' process spread.
  • Typical resistance moved: at 1×10 µm, rsil +0.9%, rppd +0.6% and rhigh −4.1%. The global spreads are now rsil 4.4%, rppd 3.5% and rhigh 5.4%, where they were 4.2%, 3.1% and 8.3%.
The rest of this section describes the copy measured before 2026-10-30's update, unless it says otherwise.

Running PSP

The SG13G2 MOS model is PSP 103, which ngspice runs through OSDI. The PDK ships only the Verilog-A sources, so the modules have to be compiled. The workarea carries them prebuilt: psp103.osdi (PSP 103.8.2), psp103_nqs.osdi, r3_cmc.osdi, mosvar.osdi, cap_cmomi.osdi and cap_cmomf.osdi, the set upstream's own build script makes, compiled with OpenVAF-Reloaded v24.0.2mob for generic x86-64. They load with pre_osdi on both ngspice 45.2 and the development build. You need OpenVAF only to rebuild them. Moving from PSP 103.6 to 103.8.2 left the MOS numbers here unchanged: the Id check point and the 5.52 mV mismatch pair agree to the printed digit.

Mismatch: real, for every device type

The corner libraries have a _mismatch twin of each section (mos_tt_mismatch, res_typ_mismatch, and so on). Local variation is written on the instance line inside each subcircuit, so every instance draws independently, controlled by the mm_ok instance parameter.

Pair (W/L, µm)nmos σ(ΔVgs)pmos σ(ΔVgs)
0.5/0.1321.5 mV (5.5 mV·µm)12.8 mV (3.3 mV·µm)
1/15.7 mV (5.7 mV·µm)3.6 mV (3.6 mV·µm)
4/41.4 mV (5.7 mV·µm)0.8 mV (3.3 mV·µm)

Pelgrom scaling holds very well, m=2 is applied correctly, and the values were reworked upstream in late 2025 to match measurement. IHP's process specification does not publish an AVT figure, so the cross-check is the upstream rework rather than a datasheet.

Resistor, 1×10 µmpair ΔR/R σ (local)R σ (global)
rsil0.66%4.2%
rppd0.82%3.1%
rhigh2.23%8.3%

MIM capacitors show 1%/√(area in µm²) local mismatch and 3.3% global. The npn13G2 HBT varies both locally and globally. Resistor temperature behaviour is correct (rsil +3100 ppm/K, rhigh −2300 ppm/K), because the resistor model is an OSDI device and is not converted to a B-source.

Process variation, and the order trap

mos_tt_stat gives genuine die-to-die variation (nmos 1×1 Vgs σ 34 mV). But the PDK has no section combining process and mismatch, and combining the two existing ones depends on their order:

Trap: .lib … mos_tt_stat followed by .lib … mos_tt_mismatch gives no variation of any kind. The only sign is a redefinition of .subckt … ignored warning. The first, non-mismatch subcircuit wins, and the second section's fixed parameters overwrite the global draws. The opposite order works.

A cleaner fix is a small wrapper section of your own that leaves the PDK files untouched: the _norm parameter values from mos_tt_stat, followed by the stat and mismatch model files.

.LIB mos_tt_stat_mm
  .param sg13g2_lv_nmos_vfbo_norm = 1.0
  .param sg13g2_lv_nmos_ctl_norm  = 1.2080
  * ... the rest of the *_norm parameters, copied from mos_tt_stat ...
  .include <pdk>/models/sg13g2_moslv_stat.lib
  .include <pdk>/models/sg13g2_moslv_mismatch.lib
  .include <pdk>/models/sg13g2_moslv_mod_mismatch.lib
.ENDL mos_tt_stat_mm

With it, a sample gets the same global draw as the stat-only section plus independent per-device mismatch (34 mV global, 5.3 mV pair difference at 1×1 µm).

Defects in the copy measured before 2026-10-30's update

  • One pmos process parameter never varies. In sg13g2_moslv_stat.lib the pmos muew line reads gauss(…_muew_norm, 0.0235  num_sigmas), with a missing comma. It is fixed upstream, and the update varies it (MEASURED 2026-10-30).
  • Resistor mismatch is biased. See the next section. It is fixed in the update.
  • HBT mismatch does not scale with size. ΔVbe σ is about 4 mV for both one and four emitters, so large devices are too pessimistic. It is fixed upstream (PR #1234, October 2026): 1.52 mV for one emitter and 0.66 mV for four in the update.
  • Global spreads are only indicative. The nmos spread is about twice what the process specification's min/max implies, the pmos spread about 0.7×, and the corners sit at 1–1.6σ (n) and 4–5σ (p) from typical.

Resistor mismatch: right spread, wrong centre (before 2026-10-30's update)

Resistor mismatch should be "nominal plus z × σ", where z is a random number with mean 0 and standard deviation 1, and σ is the local mismatch for that resistor's size. In the copy we measured, the draws are written gauss(1, 1, …): z has mean 1 instead of 0. Every resistor therefore gets "nominal plus (1 + random) × σ". The scatter is the right size, but it is centred about one local σ too high. That is σ of the small random scatter between neighbouring resistors, not the much larger die-to-die variation.

Resistor, 1×10 µmlocal σ (one resistor)mean shift
rsil0.47%+0.15%
rppd0.58%+0.26%
rhigh1.63%+1.39% (14,943 Ω → about 15,150 Ω)

The shift is not exactly one σ for every type, because each resistor model applies the draw through its own parameters (sheet resistance, width and length). Turning mismatch off with mm_ok=0 removes the scatter but not the offset: every resistor then sits at its shifted value instead of nominal.

Why it mostly does not matter for matching: two resistors of the same size and type get the same upward shift, so their ratio is unaffected. Only the random part differs between them, and that part is correct; the rhigh pair's 2.23% ratio scatter above is right.

Where it does matter:

  • Absolute resistance comes out slightly high, so for example a bandgap's bias current is slightly off. Trim usually absorbs this.
  • Ratios between resistors of different sizes or types are biased slightly, because the shift differs between them. For a 1×10 µm rhigh against a 1×10 µm rsil that is about 1.2%.

Fix: load a copy of the resistor mismatch file with mean 0 instead of 1 from a wrapper section, as for the MOS wrapper above, leaving the PDK files untouched. Alternatively, update the PDK: upstream corrected the mean on 2026-03-02 (58d1f3d, on both main and dev), and we measured it centred on 2026-10-30 (see the update above). The wrapper is only needed for a copy older than that.

When updating the PDK: since May 2026 upstream sets the MOS subcircuit default to mm_ok=0. A newer copy therefore gives zero transistor mismatch in mos_tt_mismatch unless each instance sets mm_ok=1. Measured on the 2026-10-30 copy: a plain 1/1 µm nmos pair gives a ΔVgs σ of 0, and with mm_ok=1 it gives 5.52 mV, the same as before. The update applies the same default to resistors, HBTs, varactors and the MIM capacitors (which defaulted to 1 before), but not to the MOS capacitors. Check for this before trusting a run after a PDK update.

Which PDK for bandgap trim-and-sim?

  • IHP SG13G2 varies everything that matters for a bandgap: transistors, resistors, bipolars and capacitors, locally and globally, with correct temperature behaviour in stock ngspice. Its defects are known and can be worked around, and upstream has fixed the resistor centre and the pmos muew (both on main) and the HBT area scaling (dev only). In return, mismatch now has to be switched on per instance (mm_ok=1). This is the one we are building on.
  • sky130 is fine for mismatch, including resistors and the pnp, but its process variation is VT-only by workaround, and temperature sweeps need a patched ngspice.
  • GF180MCU is excellent for transistors but has no resistor mismatch, so it would understate a bandgap's spread.

Whichever you use, read back a few draws before trusting a run. In every one of these PDKs a plausible-looking simulation can quietly have zero variation in one device class, and the only way to know is to look.

Monte-Carlo with ngspice and Xschem

How our Monte Carlo drives ngspice Which ngspice we use, what it adds to stock ngspice, and how one process runs many samples
Date
2026-11-01
Simulator
ngspice-46+, built from our development fork (branch ver_51)
Context
The Monte Carlo engine behind ASE-Integrator, our open-source take on an ADE-Assembler-style test bench manager on top of xschem
Short answer
Several long-lived ngspice processes in parallel, each looping over a list of seeds it is handed. ngspice never knows it is doing an N-sample Monte Carlo.

Which ngspice

We run an ngspice-46+ build from our own fork, branch ver_51. It reports itself as ngspice-46+. The distribution's ngspice 45.2 can simulate the same decks, but our Monte Carlo refuses to use it. That refusal is on purpose; the next section explains why.

What the fork adds to stock ngspice

  1. A draw log (set rnddraws=<file>). This is the essential one. It records every random number drawn while the netlist is read: which parameter, which device, and what value. That lets us see each sample's per-device mismatch rather than only its outputs. Stock 45.2 has nothing like it. Our Monte Carlo refuses 45.2 with a clear message (mc_ngspice_min: "Monte Carlo needs an ngspice that writes the draw log") rather than run blind.
  2. Seeding fixes:
    • The startup random stream is seeded from rndseed, not from the process id.
    • The draw log is closed properly when the circuit is reset.
    • A warning is printed once when .option seed= silently overrides setseed.
  3. Resistor fixes: the resistor model survives ngspice's internal conversion of a resistor to a B-source. Without this, sky130's high-value resistor loses its temperature coefficient.
  4. Many smaller fixes: case handling of node names, .save name lookup, the exit status of a batch run, an .op card with no netlist, and others. Several have been offered upstream.

One process per sample? No.

We do not launch a new ngspice per sample. One ngspice process, which we call a lane, handles a whole range of samples. Inside its .control block it loops over the seeds it has been given. For each sample:

set rnddraws=<sample dir>/draws   * where this sample's draw log goes
setseed <seed>                     * this sample's own, literal seed
reset                              * re-read the netlist: mismatch is drawn fresh
set temp=<T>
op                                 * write this sample's raw file and measures
echo ASEMC_DONE s=<seed> ...       * tell the supervisor this sample is finished
unset rnddraws
destroy all                        * drop this sample's results from memory

The order matters, and each step is there because a measurement showed it was needed:

  • setseed has to come before reset, because the mismatch values are drawn while the netlist is read.
  • destroy all keeps memory flat over hundreds of samples.
  • The ASEMC_DONE line is how the outside world learns that a sample has finished.

Several lanes in parallel

A small Python worker sits between the GUI and ngspice:

  • It splits the N samples into contiguous ranges across L lanes. L is the smallest of the setup's job limit, the number of CPUs and N.
  • Lane 1 also runs the nominal sample (sample 0), with mismatch switched off.
  • For example, 200 samples on a 20-core machine can be 20 ngspice processes of about 10 samples each, all running at once.

The worker supervises the lanes:

  • It reads each lane's log as it is written, and it records a sample (raw file, measures and draw log) the moment that sample's ASEMC_DONE line appears.
  • A sample that errors is marked as a simulation failure, and the lane carries on.
  • A lane that stops making progress is killed. Its stalled sample is marked as timed out, and a fresh lane restarts from the next sample.
  • The Stop button kills every lane. Unfinished samples are left pending, not half-written.

Does ngspice know it is doing Monte Carlo?

No. ngspice has no "run N Monte Carlo samples" command, and we don't need one. Each lane receives a deck whose seeds are written out as a literal list. There is no arithmetic and no counter inside ngspice. It runs the loop it has been handed, without knowing that it is a Monte Carlo or how big the whole run is.

Everything Monte Carlo-specific lives in the worker:

  • N, and the seed for each sample.
  • The split into lanes, and which sample is which.
  • The nominal run.
  • Retries, stop and progress.
  • The results database the GUI reads (yield, histograms, re-evaluation).

Why it is built this way

  • Speed: the netlist is redrawn inside one long-lived process, so there is no start-up cost per sample.
  • Reproducibility: every seed is explicit, and every draw is logged. Any single sample can be re-run on its own and give exactly the same numbers.
  • Robustness: one bad sample costs one sample, not the run. A stalled lane costs one sample, then the work continues on a fresh process.
  • Simplicity: ngspice does what it is good at, simulating one circuit. The bookkeeping lives in ordinary code that can be tested.

Tuesday, October 27, 2026

Simulation Plans - High Speed Interfaces

Analog Sim-Plan Finder: High-Speed & AI Hardware is a free search app over simulation plans for analog IC blocks. For every row of a block's Electrical Characteristics table it names the simulation that produces the number, with testbench, stimulus, load, PVT corners or Monte Carlo setup, measurement expression, quantitative pass criteria and the pitfalls that give a wrong number or a false pass. This edition covers the analog and mixed-signal blocks of AI training and inference hardware at a 5 nm-class FinFET profile: 224G PAM4 wireline SerDes (TX driver, CTLE/VGA, ADC-based receiver, CDR, DFE, pad/ESD network), UCIe die-to-die links, HBM4 and GDDR7 memory PHYs, 200G optical front ends (TIA, MZM/EML and micro-ring drivers), a low-jitter LC PLL and clock distribution, on-die power delivery (multiphase buck IVR, switched-capacitor converter, digital LDO, power gates, droop detector), temperature, aging and telemetry monitors, and a compute-in-memory readout. 26 blocks · 751 characteristic rows · 504 simulations · 20 methods pages; simulator-agnostic (ngspice, Spectre, HSPICE).

Simulation plans in this edition

Oscillators & Clocking: Clock Distribution Spine with Duty-Cycle Correction and Quadrature Generation (26.5625 GHz, 8 lanes) · Low-Jitter LC PLL Clock Multiplier (53 GHz LC VCO, 26.5625 GHz quadrature output for a 224G PHY).

High-Speed Wireline: ADC-Based Receiver Sampler Array (32 × 7-bit SAR slices, 106.25 GS/s) · Clock-and-Data Recovery: Phase Interpolator and Baud-Rate Loop · Decision-Feedback Equaliser Summer and Quarter-Rate PAM4 Slicers (106.25 GBd, speculative tap 1, analog taps 2–4, 26.5625 GHz slicers) · Forwarded-Clock Receiver, Duty-Cycle Correction and DLL De-skew (16–32 GHz half-rate clock for die-to-die and memory PHYs) · High-Speed Pad Network: Termination, ESD and T-coil (106.25 GBd PAM4 bump interface, 120 fF pad, ≤ 1 dB at 53 GHz) · PAM4 Transmitter Output Stage with FFE (106.25 GBd, DAC-based / SST, T-coil ESD) · Receiver Analog Front End: CTLE and VGA (56 GHz, 0–12 dB peaking) · UCIe-Class Die-to-Die Lane (single-ended, forwarded clock, 32–64 GT/s).

Memory Interfaces: DQS Strobe Path, Gating and Per-Byte De-skew (HBM4 read-strobe receiver, duty-cycle correction, DLL-referenced delay line, 2 GHz quadrature sampling phases, write-strobe launch) · GDDR7 PAM3 Transceiver (32 Gb/s per pin, 21.33 GBd single-ended, 40 Ω driver with 1-tap FFE, 48/60 Ω ODT, two-threshold receiver with AGC and data-dependent 1-tap DFE) · HBM4 DQ Transceiver (8 Gb/s single-ended NRZ over an unterminated 2–6 mm interposer channel, VDDQ 0.75 V, Vref DAC, offset cancellation, 1-tap DFE) · ZQ Impedance Calibration Engine and On-Die Termination Control (7-bit codes against an external 240 Ω resistor; 40 Ω driver and 60/120 Ω ODT for an HBM4 PHY).

Optical Front Ends: Linear MZM / EML Driver with Bias Control (200G/lane, 2.0 Vppd into 50 Ω, 65 GHz) · Linear PAM4 Transimpedance Amplifier with AGC (200G/lane, 106.25 GBd, 60 GHz) · Micro-Ring Modulator Driver and Thermal Wavelength-Lock Servo (106.25 GBd PAM4, 1.0 Vppd, 10-bit heater DAC).

Power Delivery & Monitors: 2:1 Switched-Capacitor Converter (1.2 V → 0.6 V, 2 A, 8-phase interleaved, 150 nF flying capacitance) · Digital / Hybrid LDO for PHY and Core Domains (0.90 → 0.75 V, 2 A, 1 A in 1 ns) · Multiphase Buck Integrated Voltage Regulator Tile (16 × 25 A, 100 MHz, TSV inductors, 1.8 V → 0.75 V) · On-Die Temperature Sensor (BJT Front End with Zoom ΔΣ ADC, ±1 °C after One-Point Trim at 85 °C, 0.1 °C in 10 µs) · On-Die Voltage Droop Detector with Programmable Thresholds and Hardware Trigger (0.60–0.80 V, 5 mV steps, two flags, T_DET ≤ 2 ns) · Power-Gate Header Network with Staged Wake-up (50 A domain, R_ON ≤ 0.2 mΩ, wake ≤ 1 µs) · Ring-Oscillator Aging and Process Monitor with VT-Shift Readout (BTI / HCI, stressed-versus-reference pair, 0.1 % resolvable degradation) · Telemetry ΔΣ ADC with Current-Sense Front End (12-bit incremental, 16 channels at 1 kS/s, 2 % at 25 A / 5 % at 2.5 A, ±2 mV rails).

Analog Compute (research): Compute-in-Memory Column Readout (SRAM charge-domain 8 × 8-bit MAC, 64-row accumulation, 8-bit column SAR ADC at 100 MS/s).

What each plan contains

Summary, topologies covered and design notes; ports and operating conditions; a datasheet-style table of 20–35 electrical characteristics with conditions, min/typ/max, unit and the producing simulation; and 15–22 simulations (functional, characterisation, robustness, statistical), each with purpose, testbench, stimulus, load, conditions, sweep, measures, pass criteria, pitfalls, runtime and methods references. Any block's table downloads as CSV, and the whole plan as a self-contained HTML datasheet or a PDF print.

How to use it

Click “Open Analog Sim-Plan Finder: High-Speed & AI Hardware ↗”: the finder opens in a new window. It is built from data embedded in this page, so there is nothing to install and no account; it needs a current browser (Chrome, Edge, Firefox or Safari from 2023 on). Type a symbol (PSRR, VOS, TC, PN_1M), a question (startup, settling, mismatch, jitter) or a block name, then narrow with the drop-downs for type, category, block, analysis, kind and priority. Back and Forward work, and every view can be bookmarked.

Source: GitHub repository (the plans as YAML under an MIT licence, the generated site and this finder) · hosted site and finder with the whole library. The companion edition, “Analog Sim-Plan Finder: Core Analog Blocks”, is a separate post and covers the rest of the library.

Getting a Useful VcXsrv Crash Dump

Winner of the first Nobel Prize in Physics ❯ tell me how to do the VcXsrv shortcut that I currently have in my Startup folder so that we get...