Coarse-graining a chain of gates

A row of inverters simulated as real voltages with thermal noise (the fine level), read as bits (the lens), and predicted by a bit-and-delay model or a clock-cycle model (the coarse level). The coarse model is only as good as the place where the two agree.

Settings

Presets:

Space and time — stage along →, time down ↓; every inverted wire is drawn flipped, so a bit keeps its colour as it travels

low / 0halfway high / 1not in the coarse model ⚠ lens and coarse model disagree

What the coarse level costs and where it holds

Disagreement by stagefraction of samples where the coarse model, run on its own, gets the bit wrong
Where the voltages sitevery wire at every sample, log count; the shaded band is the region no clean bit may sit in
One inverter's transfer curve, and its mirrorwhere the slope is steeper than −1 the gate amplifies; that gain is what pushes nearby voltages back to the rails
out = f(in)mirror, in = f(out)
Energy per stage per bit, over supply voltagewith the other settings fixed, on 16 stages; log scales; the dashed line is the current supply
Coarse-model error, over supply voltagesame sweep; below the cliff there is no bit level to predict
coarse model run aloneone coarse step from the read state

How it maps

Piece of a coarse-grainingHere
Fine levelOne voltage per wire. Each inverter's two transistors pull it up or down (an EKV-style curve, calibrated like research/SIGNAL_FABRIC.md: 15 ps per gate at 1 V and 1 fF), plus shot noise from the same currents, which settles to the thermal √(kT/C).
Lens (forward map)Read each wire as 1 if it is above half the supply.
Coarse step ruleNo clock: stage i shows the input bit from d₁ + (i−1)·d ago, inverted when i is odd, to within a tenth of a delay. Clocked: each register holds what the register before it held one cycle earlier; the wires between registers are forgotten.
Price from belowThe delay d is measured by running the fine model once, without noise, at the current supply and capacitance. That is what a chip's delay tables are.
DomainGain above 1 (else there are no bits at all), noise well inside the margin, bits longer than a few delays, and, for the clock, a cycle longer than the slowest path.
Error boundThe two disagreement numbers. "Run alone" is the coarse simulation from the input. "One step" is the commuting square: read the fine state, take one coarse step, compare with reading after the fine step.

State commutes almost exactly here, time does not: noise moves every edge a little, and without a clock those shifts add up stage after stage. A register resets them, at the price of waiting a whole cycle.