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
out = f(in)mirror, in = f(out)
coarse model run aloneone coarse step from the read state
How it maps
| Piece of a coarse-graining | Here |
|---|---|
| Fine level | One 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 rule | No 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 below | The 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. |
| Domain | Gain 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 bound | The 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.