Circuits that do a job, and the range they do it over

The threshold that is noisier

A relaxation oscillator's timing and volt-second errors are exactly uncorrelated only while its two thresholds are equally noisy. Give the upper threshold more noise than the lower and a period's covariance with its own duty error becomes (B² − A²)(σ₊² − σ₋²); over N periods it is exactly N times that, so it grows as fast as the two variances do, and over a long burst the correlation tends to (σ₊² − σ₋²)/(σ₊² + σ₋²) — a sum and a difference of unequal spreads, with the hysteresis, the time constant and the rails cancelling out of it. A tenth more noise on one threshold couples the two walks by 0.095; half again by 0.385. Because the failures are two-sided the joint rate grows with the square of that: at 5% failing each way the excess at a tenth's asymmetry is at most 9.5%, and resolving it at three standard errors would take 438,000 bursts. At half again, forty thousand bursts fail both ways 2.05 times as often as the product says.

Assumes: Two thresholds because there is a floor · A boundary in volt-seconds

Every draw shared, and nothing in common found that a relaxation oscillator’s two ways of failing during a burst are independent. The timing walk and the volt-second walk are built from the same threshold draws, but each draw enters one as part of a sum and the other as part of a difference, and with two halves of equal variance a sum and a difference share nothing. That essay named the one assumption the result leaned on hardest: that the two thresholds are equally noisy. It is the assumption a real comparator is most likely to break, and it is worth knowing how badly the independence fails when it does.

The answer turns out to have a shape the symmetric case gave no hint of. With unequal thresholds the coupling is no longer confined to the edges of a burst — it grows with the burst, exactly as fast as the two variances grow, and settles at a correlation set by the two noise levels alone. The hysteresis, the time constant and the rails all drop out of it. What keeps the practical damage small is not the size of that correlation but the shape of the failures it couples: both are two-sided, and a two-sided joint tail feels a correlation only through its square.

Three thousand bursts with the upper threshold 1.5 times as noisy as the lower: the timing and the volt-seconds are correlated by 0.38Seeded: 3,000 bursts of 200 periods of the event map at β = 0.5, the upper threshold's draws 5.88 mV rms and the lower's 3.92 mV, so that σ₊² + σ₋² is the 50 mV² of a 5 mV comparator. Each burst is one dot: its accumulated period error against its accumulated high-minus-low time, each in its own standard deviation (53.3 ns and 26.7 ns). The covariance per period is (B² − A²)(σ₊² − σ₋²) and over 200 periods exactly 200 times it, so the measured correlation, 0.375, is the exact 0.384; the closed form for a long burst is (σ₊² − σ₋²)/(σ₊² + σ₋²) = 0.385. The cloud leans along the diagonal.-3-2-10123-3-2-10123timing after 200 periods, in its own standard deviationsvolt-second imbalance, in its own standard deviationscorrelation, measured0.375exact at 200 periods0.384long-burst limit0.385upper, lower threshold5.88, 3.92 mVseeded, three thousand burstsunequal spreads, a sum and a difference
Fig. 1 Three thousand seeded bursts of two hundred periods at β = 0.5, with the upper threshold’s noise 5.88 mV and the lower’s 3.92 mV, so that the sum of their squares is that of a 5 mV comparator. Each dot is one burst: its accumulated timing error against its accumulated volt-second imbalance, each in its own standard deviation. The measured correlation is 0.375 against the exact 0.384; the cloud leans along the diagonal where the symmetric comparator’s was round.

Three draws, weighed against two noises

The oscillator is the one this family of essays has used from the start: a comparator with thresholds at ±β of its rails, a resistor from its output to a capacitor on its input, and a fresh normal draw added to each threshold when it is armed and held until it is crossed. A draw moves the crossing it was armed for by the draw over the ramp’s slope there, which is B=RC/V(1−β)B = RC/V(1-\beta) per volt, and it leaves the capacitor at the wrong level, so the next half cycle runs long or short by A=RC/V(1+β)A = RC/V(1+\beta) per volt. The decision taken where the ramp is slowest derived both; at β = 0.5, RC = 1 µs and 5 V rails they are 0.133 and 0.400 nanoseconds a millivolt.

A period is a high half and then a low half. It begins at a crossing of the lower threshold, contains one crossing of the upper, and ends at the next crossing of the lower — three draws, of which the outer two come from the lower threshold and the middle one from the upper. Their weights in the period are A, A + B and B, and in the high half less the low half they are A, B − A and −B. Nothing about those weights changes when the thresholds’ noises differ. What changes is the variance each weight multiplies: σ−2\sigma_-^2 for the outer draws and σ+2\sigma_+^2 for the middle one. The covariance is the sum of the weights’ products, each times its own draw’s variance:

cov⁡(P,D)=A2σ−2+(A+B)(B−A) σ+2−B2σ−2=(B2−A2)(σ+2−σ−2).\operatorname{cov}(P, D) = A^2\sigma_-^2 + (A+B)(B-A)\,\sigma_+^2 - B^2\sigma_-^2 = (B^2 - A^2)(\sigma_+^2 - \sigma_-^2).

The symmetric result was the special case σ+=σ−\sigma_+ = \sigma_-, where the middle draw’s B2−A2B^2 - A^2 was paid back exactly by the outer two. With a noisier upper threshold the middle draw outweighs them, and a long period comes with a long high half: the correlation is positive. A noisier lower threshold makes it negative by the same amount.

To hold everything else fixed, the figures here keep σ+2+σ−2\sigma_+^2 + \sigma_-^2 at twice (5 mV)², the total of the comparator the earlier essays used, and vary only the ratio k=σ+/σ−k = \sigma_+/\sigma_-. The walks’ own spreads then barely move, since each is a sum over many draws of both kinds. At k = 1.5 the upper threshold carries 5.88 mV and the lower 3.92 mV, and the hero figure’s cloud of three thousand bursts leans at a correlation of 0.375.

Where the noise on one threshold comes from

It is fair to ask whether a comparator ever has two thresholds of different noise, since an integrated comparator’s input noise does not know which threshold it is being compared with. Three mechanisms give it one.

Two thresholds because there is a floor set the hysteresis as a multiple of the noise without asking where the noise lived. The first and most common place is the rails. The thresholds of this oscillator are β times the output’s two rails, so any noise on the positive rail enters the upper threshold scaled by β, and the negative rail’s noise enters the lower. A circuit whose positive rail comes from a quiet linear regulator and whose negative rail comes from a charge pump has two thresholds whose noises can differ by a factor of several, and nothing in the comparator itself is asymmetric.

The second is the input stage. A comparator’s input noise depends on its common-mode voltage, and the two thresholds sit at opposite ends of the input range — often one close to a rail where the input pair is near the end of its headroom. The third is the hysteresis network: a threshold set by a resistor to one rail and another to ground has two different Thévenin resistances, and the Johnson noise of each sets its own floor. None of these needs a defective part.

The coupling grows with the burst

The per-period covariance is only the beginning, because a burst-level failure is a walk. Summed over N periods, the timing contains every draw, the first with A, the last with B and every interior one with A + B; the imbalance contains the first with A, the last with −B, every interior upper draw with B − A and every interior lower one with A − B. Weighing each by its own variance, the covariance after N whole periods is

cov⁡(∑P,∑D)=N (B2−A2)(σ+2−σ−2),\operatorname{cov}\Big(\sum P, \sum D\Big) = N\,(B^2 - A^2)(\sigma_+^2 - \sigma_-^2),

exactly, with the end draws included. In the symmetric case the per-period lags, +AB and −AB, cancelled term for term and the walks shared nothing however long they ran. Here nothing cancels. Every period adds the same covariance, and the two variances also grow as N, so the correlation settles at a constant.

The coupling grows from one period to the burst and forgets the hysteresis: 0.19 at β = 0.2, 0.34 at β = 0.5, 0.38 at β = 0.8 for one period, 0.385 for all three in a long burst. computed by solving, not by drawing, from the draws' weights, with σ₊/σ₋ = 1.5: the correlation between the timing and the volt-second imbalance summed over n periods, at β = 0.2, 0.5 and 0.8 (lines), with seeded checks at β = 0.5 (dots, 2500 bursts each). One period's correlation depends on β through A and B — 0.192, 0.338, 0.380 — because the end draws, which carry only the lower threshold's noise, weigh differently. Over a long burst every draw but two is interior, the timing becomes (A + B) times the sum of all draws and the imbalance (B − A) times the upper draws less the lower, and the correlation tends to (σ₊² − σ₋²)/(σ₊² + σ₋²) = 0.3846 at every β. Seeded: 0.331 at 1, 0.361 at 5, 0.380 at 20, 0.370 at 100.
Fig. 2 The correlation between the timing and the volt-second imbalance summed over n periods, at σ+/σ−\sigma_+/\sigma_- = 1.5, for three hysteresis settings (lines, from the draws’ weights) with seeded checks at β = 0.5 (dots, 2,500 bursts each). One period reads 0.192, 0.338 and 0.380 for β = 0.2, 0.5 and 0.8; past a few dozen periods all three sit at 0.385.

The figure shows the approach. A single period’s correlation depends strongly on the hysteresis: 0.192 at β = 0.2, 0.338 at β = 0.5, 0.380 at β = 0.8. Over a few dozen periods all three converge on one number, 0.385, and stay there. The seeded bursts follow the exact curve at every length checked, from one period to a hundred.

Why the hysteresis cancels out

The limiting value can be read straight off the weights, and the reading explains why β leaves it. In a long burst every draw but the two at the ends is interior. In the timing each interior draw carries A + B, whichever threshold it came from, so the summed timing is (A+B)(A+B) times the sum of all draws. In the imbalance each interior upper draw carries B − A and each interior lower draw A − B, so the summed imbalance is (B−A)(B-A) times the upper draws less the lower ones. The two walks are, to within the end draws, scaled copies of a sum and a difference:

ρ∞=(A+B)(B−A) (σ+2−σ−2)(A+B)(B−A) (σ+2+σ−2)=σ+2−σ−2σ+2+σ−2=k2−1k2+1.\rho_\infty = \frac{(A+B)(B-A)\,(\sigma_+^2 - \sigma_-^2)}{(A+B)(B-A)\,(\sigma_+^2 + \sigma_-^2)} = \frac{\sigma_+^2 - \sigma_-^2}{\sigma_+^2 + \sigma_-^2} = \frac{k^2 - 1}{k^2 + 1}.

The scale factors that carry β, the rails and RC appear once in the numerator and once under the square root in each spread, and leave together. The walk the core sees found that the imbalance walk is β times the timing walk because (B−A)/(B+A)=β(B - A)/(B + A) = \beta; that ratio sets how large the two walks are relative to each other, and the correlation, which is scale-free, does not see it.

The short-burst dependence on β is the end draws’ doing. At small hysteresis A and B are nearly equal, and the middle draw of a period — the only upper draw in it — has weight B − A in the imbalance, which is nearly nothing. A single period’s imbalance is then almost entirely the two lower draws, and it can hardly correlate with an asymmetry that lives in the upper one. That is why one period reads only 0.192 at β = 0.2. With wide hysteresis B dwarfs A, the outer draws’ A-weights fade, and a single period already looks like the long burst. In every case the interior draws come to dominate as the burst lengthens, and with them the limit.

How the coupling scales with the asymmetry

The law is simple enough to tabulate. A tenth more noise on the upper threshold than on the lower gives (1.21−1)/(2.21)=0.095(1.21 - 1)/(2.21) = 0.095; a quarter gives 0.220; half again 0.385; twice 0.600; three times 0.800.

The coupling against the asymmetry: (k² − 1)/(k² + 1) for a long burst — 0.095 at a tenth, 0.38 at half again, 0.6 at twice. computed by solving, not by drawing, with seeded checks (dots, 2,000 bursts of 200 periods each). With k = σ₊/σ₋ the long-burst correlation between the timing and the volt-second imbalance is (k² − 1)/(k² + 1) — 0.095 at 1.1, 0.220 at 1.25, 0.385 at 1.5, 0.600 at 2, 0.800 at 3 — the same at every β. One period's own correlation at β = 0.5 (lower line) is smaller, 0.080 at 1.1, 0.338 at 1.5, 0.547 at 2, 0.760 at 3, because the two end draws belong to the lower threshold. Seeded at 200 periods: 0.094 at 1.1, 0.384 at 1.5, 0.600 at 2, 0.800 at 3.
Fig. 3 The long-burst correlation (k2−1)/(k2+1)(k^2 - 1)/(k^2 + 1) against k=σ+/σ−k = \sigma_+/\sigma_- (upper line, the same at every β), one period’s own correlation at β = 0.5 (lower line), and seeded bursts of two hundred periods (dots, 2,000 each): 0.094 at k = 1.1, 0.384 at 1.5, 0.600 at 2 and 0.800 at 3.

For small asymmetries it is close to linear: writing k=1+ϵk = 1 + \epsilon, the correlation is ϵ\epsilon to first order, so a ten per cent difference in the spreads is a ten per cent correlation and a two per cent difference is a two per cent one. That is a useful rule for reading a supply’s noise specification. Two rails whose noise densities differ by a quarter, both of them perfectly respectable, couple the timing and the core by a fifth.

The lower line, a single period at β = 0.5, sits under the upper one everywhere, and the seeded dots — taken at two hundred periods — sit on the upper. Anyone measuring the correlation cycle by cycle on a time-interval analyser and reading it as the burst’s would underestimate it, by a factor of two at the light hysteresis a low-jitter design tends to choose.

Forty thousand bursts that fail together

The question that matters is the one the symmetric essay settled in the negative: whether a burst that fails one way is more likely to fail the other. It was answered there by running bursts against twenty-five pairs of limits and comparing the share failing both against the product of the shares failing each. The same test at k = 1.5 is no longer null.

Forty thousand bursts with σ₊/σ₋ = 1.5, judged against twenty-five pairs of limits: the joint failures sit above the product, by 3.4 times at the 98th percentiles. Seeded: 40,000 bursts of 100 periods at β = 0.5, the upper threshold 5.88 mV and the lower 3.92 mV rms. As for the symmetric comparator, a burst fails on timing if its accumulated period error ever leaves ±a and on the core if its accumulated imbalance ever leaves ±h, with each limit at the 50th to 98th percentile of its own peak. The share failing both (dots) against the product of the separate shares (diagonal): the dots sit 9.9 standard errors above it on average, and furthest, proportionally, where both limits are tight — 0.14% against 0.04% at the 98th percentiles. The walks are correlated by 0.38.
Fig. 4 Forty thousand seeded bursts of a hundred periods with σ+/σ−\sigma_+/\sigma_- = 1.5. For limits on the timing and imbalance walks each set at the 50th to 98th percentile of its own peak, the share failing both (dots) against the product of the separate rates (diagonal). The dots sit 9.9 standard errors above it on average; at the two 98th percentiles, 0.14% of bursts fail both ways against the 0.04% the product predicts.

The five pairs with equal percentiles all sit above the diagonal, and the departure grows proportionally where both limits are tight. Where half of all bursts fail each way the excess is a modest share of a large rate; at the 98th percentiles 0.14% do, three and a half times the 0.04% a designer who treated the two as independent would budget. The joint tail is where a correlation shows, because a burst that has wandered far in one walk has done so mostly through its sum of draws, and that sum is also most of the other walk when one threshold dominates.

The burst length here is a hundred periods where the symmetric test used two hundred, which changes nothing that matters: the coupling has reached its limit by then, as the count figure showed, and the shorter burst lets forty thousand of them be run at the same cost.

Why the damage is squared

At a small asymmetry the coupling is small, but it does not follow that the joint failure rate moves in proportion. Both failures are two-sided. A timing walk that leaves its band low counts the same as one that leaves high, and so does the core. A positive correlation makes “both high” and “both low” more likely, and it makes “one high, one low” less likely by the same amount to first order. Summed over the four corners, the first-order terms cancel, and the joint rate moves with the square of the correlation.

The joint failure over the product, with 5% failing each way: at most 1.09 at a tenth of asymmetry and 2.05 measured at half again — and seeing the tenth would take 438 thousand bursts. The lift — the share of bursts failing both ways over the product of the separate rates — with each limit set where 5% of bursts fail it (solid line) or 1% (the higher line), for two normals correlated by (k² − 1)/(k² + 1) and read at the end of the burst (computed by solving, not by drawing). Dots: the peaks of seeded bursts, 40,000 of 100 periods at each asymmetry with 5% limits, with one standard error: 0.93 at 1, 1.07 at 1.1, 1.37 at 1.25, 2.05 at 1.5, 4.39 at 2, 8.32 at 3 — measurably below the endpoint law at 1.5 and 2, because two walks can set their peaks at different times. The two-sided tails are even in the correlation, so the lift grows as its square at first: at a tenth more noise on one threshold the excess is 9.5% at 5% and 25.3% at 1%, and resolving it at three standard errors takes 438 thousand and 1.8 million bursts, against 3700 at σ₊/σ₋ = 1.5.
Fig. 5 The joint failure rate over the product of the separate rates, against σ+/σ−\sigma_+/\sigma_-, with each limit set where 5% of bursts fail it (solid line) and where 1% do (the higher line), for two normals at the long-burst correlation, read at the end of the burst. Dots: the peaks of forty thousand seeded bursts at 5%, with one standard error — 1.07 at a tenth of asymmetry, 2.05 at half again, 4.39 at twice.

The lines are a clean calculation: two normal variables, correlated by (k2−1)/(k2+1)(k^2 - 1)/(k^2 + 1), each judged against a two-sided limit set at the stated rate. With 5% failing each way the joint rate is 1.095 times the product at a tenth’s asymmetry and 2.57 times at half again. With 1% failing each way the tail is further out and the lift larger: a tenth’s asymmetry adds 25% to the joint rate, rather than 9.5%.

The dots are the real thing — the peaks of the two walks, not their end values — and they sit below the lines, measurably so at k = 1.5 and 2. A peak is set at whatever moment a walk is furthest out, and the two walks need not be furthest out at the same moment; the correlation of two peaks is weaker than the correlation of the two end values from which the line is computed. The endpoint calculation is therefore a ceiling on the lift, and a convenient one: it needs no simulation, and it errs on the side a margin budget should.

The data sheet a designer would need

This was the question the symmetric essay left: how large must the asymmetry be before the joint failure departs measurably from the product, for a burst of stated length? The arithmetic has three parts. The excess joint rate is (lift−1) p2(\text{lift} - 1)\,p^2; its standard error over N bursts is about lift⋅p2/N\sqrt{\text{lift}\cdot p^2/N}; and to see it at three standard errors needs

N≈9 lift(lift−1)2 p2.N \approx \frac{9\,\text{lift}}{(\text{lift} - 1)^2\,p^2}.

At 5% failing each way and a tenth’s asymmetry that is about 438,000 bursts; at 1% each, 1.8 million. At half again it is 3,700. The square law is what makes the gap so wide: a correlation four times smaller gives an excess some sixteen times smaller and needs over a hundred times as many bursts to see.

Read as a specification, the result is reassuring in the same way the symmetric one was, with a stated limit. A comparator whose two thresholds carry noise within ten or fifteen per cent of each other — which covers most designs where both rails come from the same kind of regulator — couples its two failures by a correlation of the same size, and the margin that coupling double-counts is a few per cent of a few per cent. Budgeting the two failures separately remains right. A design that takes its positive rail from a linear regulator and its negative rail from a charge pump with three times the noise is a different design: at k = 3 the two walks are correlated by 0.8, the joint failures are eight times the product at 5% each, and the failure budget should be written as one event with two faces.

Asymmetry of another kind

The other asymmetry the symmetric essay named is in the ramps rather than the noise. Unequal rails give the two halves different slopes at their thresholds, and with them different A and B in each half. The calculation is the same one with four sensitivities instead of two, and it leaves the same structure: every interior draw weighed by the sum of its two sensitivities in the timing and by their difference in the imbalance. The long-burst correlation is then the covariance of ∑(Ai+Bi)ni\sum (A_i + B_i) n_i with ∑(Bi−Ai)ni\sum (B_i - A_i) n_i over the two kinds of draw, and in general it is non-zero even with equal noise, because the two kinds of draw now carry different ratios of difference to sum.

A comparator skew of the kind the delay that is two delays measured is not this. It shifts each half by a constant and adds no variance, so it ramps the imbalance walk, as the count a core survives found, and leaves the covariances untouched. The drift and the coupling are two separate effects, and a burst can have both.

What the leak does to the coupling

A real core has a winding resistance, and the spread a winding resistance holds showed that it turns the imbalance walk into a stationary spread: the flux forgets an imbalance after a few L/R times. Under that leak the imbalance is an exponentially weighted sum of recent draws, while the timing is still a plain sum of all of them. The covariance between the two then stops growing once the burst outlasts the leak’s memory, and the correlation, divided by a timing spread that keeps growing, falls as one over the square root of the burst length.

So the coupling found here is strongest exactly where the symmetric result was most comfortable: an ideal or nearly ideal core, whose imbalance remembers the whole burst. With a short leak the asymmetry still couples each L/R window’s worth of the timing to the flux, but a long burst’s timing failure is decided mostly by periods the flux has forgotten. How quickly that dilutes the joint tail is a march with the leak and the asymmetry together, and is the natural next measurement.

The numbers worth keeping

The per-period covariance is (B2−A2)(σ+2−σ−2)(B^2 - A^2)(\sigma_+^2 - \sigma_-^2), and over N periods it is exactly N times that. The long-burst correlation is (k2−1)/(k2+1)(k^2 - 1)/(k^2 + 1) with k=σ+/σ−k = \sigma_+/\sigma_-, the same at every hysteresis: 0.095 at a tenth, 0.385 at half again, 0.600 at twice. One period reads less, by a factor that depends on β — 0.192, 0.338 and 0.380 at β = 0.2, 0.5 and 0.8 for k = 1.5. Forty thousand bursts at k = 1.5 fail both ways 2.05 times as often as the product at 5% each, against a ceiling of 2.57 from the end values, and at the 98th percentiles 0.14% against 0.04%. The excess joint rate grows as the square of the asymmetry, so seeing a tenth’s asymmetry at 5% would take some 438,000 bursts, and 3,700 at half again. The window the square-root law has made the general point: what the long run sees is decided by which covariances grow with the count, and here, unlike in the symmetric oscillator, one of them does.

Still open: the leaking core, a noise with memory, and the rails measured

The coupling under a leak. With winding resistance the imbalance forgets and the timing does not, so the burst-level correlation should fall as the burst outruns L/R. The rate at which the joint failure tail returns to the product, as a function of L/R in periods, would say which cores can ignore a comparator’s asymmetry and which cannot. The walk that stops has the leak’s own arithmetic.

A noise with memory. A comparator whose input noise is correlated over more than a half cycle carries part of each draw into the next, so consecutive draws from opposite thresholds are no longer independent. That couples the sum and the difference even with equal spreads, and whether its effect on the burst grows with the count, as the asymmetry’s does, or stays bounded, as the symmetric lags did, is the next comparison on the same weights.

The rails as measured. The rail mechanism puts the asymmetry on a supply’s noise density, integrated over the comparator’s input bandwidth and scaled by β. Taking a linear regulator’s and a charge pump’s real spectra would put a number on k for a common pair of supplies, and say whether the joint tail of a typical burst-mode drive is an independent pair of failures or one failure seen twice.

Part 9 on hysteresis

One argument about Hysteresis, and one of 9 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.

ComparatorDuty cycleMonte carloPeriod jitterRandom walkRelaxation oscillatorSeeded generatorVolt-seconds