The saddle the stepping lands on
Assumes: The answer that is perfect and absurd · What a network answers, and how the answer is checked
The conductance added so it would invert looked at the small conductance a circuit simulator puts from every node to ground so that a singular matrix will invert, and it sorted the numbers that conductance makes possible into three kinds: real ones, ones that are its reciprocal, and ones that are a ratio of two conductances nobody built. Everything in it was linear, as was the netlist in the answer that is perfect and absurd before it. It closed by naming the other use the same element is put to, in circuits that are not linear. A simulator that cannot get Newton’s method to converge on a hard circuit adds a large conductance from every node, which makes the circuit nearly linear and its solution nearly obvious, and then takes the conductance away a step at a time, starting each solve from the last answer. This is gmin stepping. It is a continuation method — a walk from an easy problem to the real one — and it is usually the first thing a simulator tries when a plain solve fails.
The open question was what that walk does on a circuit with more than one answer. The circuit with three bias points built one, a cross-coupled pair with two latched states and a symmetric point between them, and found that Newton started from nought lands on the symmetric point — the one root the circuit can never sit at. It named continuation as the honest alternative, one of the systematic methods by which a simulator reports that a circuit has several states. That turns out to be an optimistic description of the continuation simulators actually run.
A ring of two inverters
The circuit is the smallest that has the property in question. Each inverter is a transconductance stage whose output, with nothing else connected, sits at for an input , on a supply of 5 V, with V. That transfer is a smooth inverter: 5 V out for an input well below the middle, nought for one well above, and a slope of at the midpoint. Each output drives its node through a conductance of 100 µS, a 10 kΩ output resistance. The threshold offset is the mismatch: it is the amount by which the inverter driving node a switches later than the one driving node b. Two of these in a ring, a drives b and b drives a, make a latch.
At direct current with no added conductance, the node voltages satisfy and , and a ring whose loop gain at the midpoint is a hundred has three solutions. Two are the latch’s states, one node at 5.000 V and the other at nought. The third is the point where both sit at the midpoint, 2.5 V. That point solves the circuit exactly as well as the other two do, and it is not a place the circuit can stay: linearised there, the ring has a loop gain of a hundred around it, and its Jacobian has one positive eigenvalue, for a node capacitance . A disturbance in the difference between the nodes grows; one in their sum decays. It is a saddle, and no real latch rests on a saddle for longer than the time it takes noise to push it off.
The stepping adds a conductance from each node to ground. With at S, ten times , each node is held mostly by the added conductance, both nodes sit at 0.45 V, and there is only one solution: the loop gain round the ring is then less than one. As falls, the loop gain rises, and somewhere near S it passes one and the two latched states appear.
The walk ends on the saddle
The first figure is the walk at a decade a step, the classic schedule and the coarsest a simulator would plausibly try. With the inverters identical, the two nodes follow one path and end at 2.5000 V. That is not a near miss. Newton’s method on a system that is symmetric under swapping a and b, started from a point that is also symmetric, produces iterates that are symmetric to the last bit, because every operation applied to a is applied to b in the same order with the same numbers. There is no rounding asymmetry to break it. The walk cannot leave the diagonal, and the only solution on the diagonal at small is the saddle.
That much might be put down to an idealisation, since no two real inverters are identical. So the figure also walks a ring with 10 mV of mismatch, in each direction. The expectation is that the mismatch breaks the symmetry, one state becomes the natural continuation of the single solution at large , and the walk follows it there. It does not. The nodes end 11.1 mV apart, at 2.4990 V and 2.5101 V, which is the saddle moved by the mismatch, not a state. Every step of all three walks meets Kirchhoff’s law to below A. A simulator would report convergence, print the two node voltages, and move on.
Nothing in that report says that something is wrong. The residual is perfect, the iteration counts are small — nine Newton steps at the worst decade, one at the last, where the iterations a table saves counted hundreds for a single diode started cold — and the numbers are plausible as an operating point for a circuit whose designer did not know it was a latch. A circuit with a latch buried in it, such as a flip-flop in a power-on reset or a bias circuit with two states, would be reported in a state it cannot occupy.
What the walk jumps past
The second figure shows why. It draws the two inverters’ transfer curves in the plane of the two node voltages: , and with the mismatched threshold. They cross three times, at the two states and near the middle. On top of them are the walk’s points, one per step, from where the large conductance holds both nodes.
With mismatch, the branch the walk starts on is not the middle one. Solved finely in , the single solution at large is continuous with the state the mismatch favours — node a high, here, because its inverter switches later. The two other solutions, the other state and the saddle, are born together further down, as a pair. That is the textbook unfolding of a symmetric fork by an imperfection, and it is what the circuit with three bias points predicted a mismatched pair would do. The trouble is the shape of the continuous branch near the fork. It runs along the diagonal and then turns sharply towards its state over a small range of , and the sharper the smaller the mismatch.
A step of a decade, from to S or anything like it, does not see the turn. Newton is handed a starting point that was correct for the old — near the diagonal — and asked for the solution at the new , where the branch has already turned. Newton converges to whichever solution’s basin the starting point lies in, and a point near the diagonal lies in the basin of the solution near the diagonal, which is the saddle. From then on every step starts on the saddle branch and follows it faithfully to S. The walk was continuous in every step it took. It changed branch in one of them without any sign of having done so.
The schedule decides
The third figure maps what the walk reports over two things: the mismatch, from 0.1 mV to 100 mV, and the number of steps a decade, from 1 to 2,048. The answer is one of three: the favoured state, the saddle, or the other state.
The pattern is roughly that halving the mismatch doubles the steps needed, though not cleanly: from 16 steps a decade at 100 mV and at 30 mV, to 64 at 10 and 3 mV, 256 at 1 and 0.3 mV, and 1,024 at 0.1 mV. That irregularity is the basin structure showing through, the same basins the circuit with three bias points mapped over starting guesses, here crossed by a walk. Below the threshold, the step lands near the bend in a region where the three basins meet, and which one it falls into depends on the details of the step. Two cells in the map report the state the mismatch does not favour — at 1 mV, 64 steps a decade gives the other state and 128 the saddle again, and at 100 mV two steps a decade gives the other state where one gave the saddle. A walk can therefore be refined and get worse.
A simulator does not walk at a thousand steps a decade, and it would not help if it did. A real circuit’s mismatch is not known in advance — what a pair cancels is the size of what matching leaves — and a walk fine enough for 1 mV is too coarse for 0.1. And at zero mismatch, the identical inverters in every schematic that has not been given a Monte Carlo run, no schedule is fine enough. The saddle is the answer at every step size.
The point, linearised
The fourth figure asks the obvious next question: if the operating point is a saddle, what happens when a transient analysis is started from it, which is the usual reason for computing an operating point in the first place.
The answer depends on how it is disturbed. Linearised about the saddle, the difference between the two nodes grows as with : the loop gain of ten in each inverter, less the one the node’s own conductance takes away. A difference of reaches 2.5 V after , and the march meets that law: 4.37 time constants from V, 1.32 from a millivolt, with each decade less disturbance adding 0.256. That logarithm is metastability, the reason a synchroniser has a failure rate instead of a guarantee and a cousin of the noise-driven decision two thresholds because there is a floor prices, and the open question the three-bias-point essay left as the resolving time.
The case at is the one a simulator meets. A transient started from a perfectly symmetric operating point on a perfectly symmetric circuit is integrated with the same arithmetic on both nodes, and it stays on the saddle. The march here was still there at 200 time constants and would have stayed indefinitely. A designer looking at that output would see a latch that never latches. If the circuit is not quite symmetric, or the integrator’s arithmetic is not, the nodes separate after a few time constants, in a direction set by round-off. In both cases, the state the transient ends in has nothing to do with the circuit, because the starting point was not one the circuit could reach.
What a power-up decides by
Followed finely enough, the stepping does find a state, the one the threshold mismatch favours. Whether that is the right answer is a different question, and only the circuit’s history can settle it. A latch powers up into whichever state the first moments of the supply push it into, and those moments are dynamic: the nodes have capacitance, and the supply rises at a finite rate.
The fifth figure marches the power-up: supply from nought to 5 V in 30 time constants, both nodes starting at nought, and the march run until the latch has decided. With equal node capacitances, the boundary between the two outcomes is at , as it should be by symmetry, and the side each mismatch chooses is the side the finely stepped walk chooses. With unequal capacitances, the boundary tilts. At node a’s capacitance half of node b’s, a mismatch of up to 53.6 mV in favour of node a is outvoted and the latch powers up the other way, and at twice the capacitance the boundary is 58.3 mV the other way. Between the tilted line and the horizontal one is the region where a direct-current solve, however carefully stepped, reports the state the circuit does not reach, and it is 93 of the 425 cells drawn. Stepped a decade at a time, the solve reports neither state anywhere.
The reason is that a node with more capacitance lags behind a rising supply. Each output follows its inverter’s target through its own time constant , and while the supply is rising every target is rising too, so a slow node sits below where a fast one would. Near the moment the ring’s gain passes one, the latch amplifies whatever difference the nodes have, and the difference in lag is one of them.
Slow ramps agree with the solve
The sixth figure turns that into a number. It bisects the boundary for three capacitance ratios against the supply’s ramp time, from three time constants to a thousand.
The boundary falls as one over the ramp time, and on slow ramps it has a closed form. The difference between the two nodes’ lags is the supply’s rate of rise, halved because the midpoint rises at half the rate, times the difference of their time constants: for a ramp of duration . At a capacitance ratio of 1.5 the march gives 1.02 mV on a ramp of a thousand time constants and the formula 1.021. As the ramp slows, the boundary closes on , where the finely stepped solve puts it. That is the sense in which the solve is right: it reports the state of a circuit whose supply rises infinitely slowly, so that every node keeps up with its target and only the static asymmetry votes.
Put in physical units, the slow limit is a long way off. A node of 10 fF driven through 10 kΩ has a time constant of 0.1 ns. A supply that rises in 10 ns is a ramp of a hundred time constants, and a 50 per cent difference in the two nodes’ capacitance then outvotes 10 mV of threshold mismatch — more than a well-matched pair of inverters has. A supply that rises in a microsecond is ten thousand time constants and the boundary is a tenth of a millivolt, still comparable with a careful layout’s mismatch. On a real power-on, the state a latch comes up in is decided by layout as much as by matching, and a direct-current solve sees only the matching.
Why the continuation fails here
The continuation argument behind gmin stepping is sound for a circuit with one solution. If the solution moves smoothly as falls, a small enough step always starts Newton in the basin of the right solution, and the walk is continuous. What breaks it here is that the solution’s path has a feature — the bend before the fork — whose width in shrinks as the mismatch does, and no fixed schedule is fine enough for every mismatch. A simulator’s own error control does not help, because nothing fails: Newton converges at every step, quickly, to a genuine solution of the current equations. Adaptive schedules shorten the step when an iteration fails to converge, and here nothing fails to converge.
Two modifications would catch it, and both are cheap. One is to watch the solution, not the convergence: a step in which the node voltages move far more than the step in would predict from the previous few is a step that changed branch. The other is to look at the answer once it has been found. The determinant of the Jacobian is already available from the last Newton step, and the circuit with three bias points showed that its sign separates a latched state from the symmetric point at no cost. A saddle has a negative determinant here, and a report that said so would turn a silent wrong answer into a warning.
What the circuit leaves out
The inverters are a smooth function, not transistors, and that choice is deliberate. The phenomenon depends on three things only: a fork in the solutions as the added conductance falls, a sharp bend in the continuous branch near it, and Newton’s basins. Any latch has the first, and the bend sharpens as the mismatch shrinks in any of them. The numbers would change with a transistor model — the bend’s location, the steps needed at each mismatch — and the qualitative result would not. A bias point is a solution found the same lesson in a circuit whose several solutions came from temperature instead of feedback, as did the bias point that heats itself: the solver reports a solution, and which one is a property of how it got there.
The added conductance goes to ground from every node. Some simulators add it across each junction instead, and some step the supply voltages up from nought rather than the conductance down — source stepping. Source stepping is a power-up with no capacitance, and so, by the last two figures, it tends to the same answer as fine gmin stepping, with the same dependence on how finely it is stepped. The march here is fourth-order Runge–Kutta at a hundredth of the smaller time constant — the cost the amplitude nothing linear predicts found every nonlinear march pays — and the boundaries were bisected to a microvolt and checked against the lag law on the slowest ramps.
And the node capacitances are fixed. A real inverter’s input capacitance depends on its voltage, and its output current is not a linear function of the difference from its target. Both alter the lag law’s constant without altering its form: the node that charges more slowly is the one that loses the vote.
How the walks were checked
Every walk is a sequence of damped Newton solves with the step limited to half a volt, which is what simulators do to keep an exponential from overflowing, and each converged when its update fell below V. The residual of Kirchhoff’s law was required below A at every step of every walk drawn.
The symmetric walk is checked for exact symmetry, in floating point at every step, not merely to a tolerance. That equality is the claim, and a tolerance would hide a walk that left the diagonal by a part in and came back.
The saddle’s eigenvalue is read from the Jacobian and checked against the departure times of a march, which grow by a decade of disturbance to within two per cent. The power-up boundaries were bisected over ±1 V of mismatch, and the equal-capacitance boundary was required to fall within 0.1 mV of zero.
The number worth carrying
A gmin walk on a latch converges at every step, satisfies Kirchhoff’s law to A, and at a decade a step ends on the saddle between the two states — with identical inverters at any step size, and with 10 mV of mismatch at anything up to 32 steps a decade. Following the branch to the favoured state takes 64 steps a decade at 10 mV and 256 at 1 mV, and two schedules on the way report the wrong state. The state a fine walk finds is the state of an infinitely slow power-up. A real one is decided by the difference between the nodes’ lags as well, which outvotes a threshold mismatch of : 10 mV for a 50 per cent capacitance difference on 0.1 ns nodes and a 10 ns supply ramp. The operating point a simulator prints for a latch is, at best, the answer to a question about a power-up that never happens.
Still open: the walk that watches itself, the latch inside a larger circuit, and noise at the fork
A step control that watches the solution. A walk that compared each step’s change in the node voltages with the change the previous steps predict would catch a branch change in the step that makes it. How fine the schedule then has to be, and whether it can follow the branch at 0.1 mV without a thousand steps a decade, is a property of the curvature of the branch near its bend, which this ring could measure directly.
A latch embedded in a circuit with one answer. A flip-flop in a reset generator sits beside a regulator, a bias network and a dozen other nodes, all of which the walk is also following. Whether the other nodes’ continuation hides the latch’s branch change — a step that is small for the circuit and large for the latch — or makes it more visible, is the question for the circuits where this happens without anyone looking.
Noise at the fork. On a slow ramp the latch passes its fork with only the threshold mismatch and the lag to choose between; the nodes’ thermal noise is a third voter, of order , which for 10 fF is 0.64 mV. Where noise outvotes both, the power-up state is a coin toss, and the probability of each state as a function of mismatch and ramp is the measurement that would tell a designer when a reset circuit needs its own initialisation path.
Part 3 on singular network
One argument about Singular network, and one of 3 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:
The objects named here
The third axis, after the field and the idea: the things themselves, and every essay that touches each one.
BistabilityModel refusalNewton raphsonNumerical errorOperating pointPositive feedbackStability
- The refusal, and what it was protecting model refusal, newton raphson, operating point
- How many readings a maximum takes newton raphson, operating point
- The bias the gain does not set newton raphson, operating point
- The copy, and its two errors newton raphson, operating point
- The floor that outlives the arithmetic model refusal, numerical error
- The gap a derivative needs model refusal, numerical error