The integrator that leaks the zero away
Assumes: One bit, and where the noise went · The ideal amplifier, and where it stops being one
Every noise-shaping loop marched so far has had perfect integrators. The loop that is worse at full scale closed by naming the integrator as the part that would make its march a circuit, and the levels the loop cannot shape found the other analogue part of a loop — the levels it feeds back — passing its errors straight through. That leaves the integrator itself.
An integrator in a switched-capacitor loop is an amplifier with a capacitor round it, and the amplifier has a finite gain — the quantity the ideal amplifier, and where it stops being one measured as the first departure from the ideal. Each sample, the charge on the capacitor is not quite held: a part in roughly the amplifier’s gain drains away, so the integrator’s pole sits at rather than at one. The average an integrator can hold measured what that leak does to an integrator used to average noise. In a shaping loop it does something more specific. The integrator’s pole at one is what puts the loop’s noise-transfer zero at zero frequency, and a pole at moves the zero off it. The error that the loop was supposed to drive to nothing at direct current is left with a floor.
The loop, and the leak put into it
The loop is the one the previous essay used: two integrators in a chain with the quantiser fed back into both with weights one and two, so that with perfect integrators its noise transfer is exactly . The quantiser has four bits, sixteen levels, and half a step of dither added at its input — inside the loop, so the dither is shaped with everything else. Both choices are there to make the error white. Undithered, a four-bit loop at half scale settles into patterns that move one record’s measured noise by several decibels from one setting to the next, and a leak’s cost of a decibel or two would be lost in them. Three seeds are averaged for each point, and the error is measured through a squared Hann window, for the reason the previous essay gave.
The leak is put in the simplest way it can be: each integrator’s state is multiplied by before the new sample is added. That is the first-order effect of an amplifier of gain in a switched-capacitor integrator whose two capacitors are equal; with unequal capacitors the pole moves by a multiple of set by their ratio, and in every figure here should be read as that effective gain.
Leaving the line near π times the gain
The hero figure’s ideal curve rises fifteen decibels an octave, the second-order law that one bit, and where the noise went first measured on a one-bit loop. The leaky curves follow it at low ratios and leave it at higher ones, and where each leaves is set by its gain. A gain of a thousand costs four tenths of a decibel at a ratio of 512. A gain of a hundred costs 16.6 decibels there; thirty costs 35.9 and ten costs 53.9. A gain of ten, at the highest ratios, gains only 2.7 decibels an octave, close to the three an octave that an unshaped floor improves at as it is spread over a wider band.
The departure is not gradual in the way a fixed loss would be. It is a change of slope: the leaky loop stops gaining the fifteen decibels an octave that shaping provides and starts gaining only what averaging provides. That is what a floor in the error’s spectrum does. Once the band reaches down past the floor, a wider sample rate spreads the floor over more bandwidth and keeps a smaller share of it in the band — three decibels an octave — while the shaped part above the floor keeps falling. The two meet where the floor’s corner frequency passes the band edge, and that is where each curve bends.
One variable
The corner can be located exactly. A leaky integrator’s noise-transfer zero sits at , and near zero frequency is very nearly with : flat at below and rising as above it. The band reaches to . So the whole effect of the leak depends on one number, the ratio of the corner to the band edge,
and integrating the shaped error over the band with and without the leak gives the loss in closed form. With one leaky integrator the band’s error is against , a ratio of . With two it is against , a ratio of . If only the first of two integrators leaks, against the same, .
Gains from ten to three hundred and ratios from sixteen to 512 collapse onto three curves of alone. That is the strong form of the claim: the leak’s cost is not a function of the gain and the ratio separately but of their quotient, so a loop running at a ratio of 64 with integrators of gain 30 pays what one at 256 with gain 120 pays. The marched points lie within two decibels of the closed forms everywhere up to , and the closed forms overstate the cost a little, most at a gain of ten, where is no longer close enough to one for to be .
The design number comes straight out. For the second-order loop to lose less than a decibel, must stay under , which needs below 0.265 — an amplifier gain of at least , which is 1.2 times the oversampling ratio. A loop at a ratio of 128 needs integrators of gain 154 for a decibel and 490 for a tenth. That rule, “a gain about equal to the oversampling ratio”, is quoted widely and here it has a derivation and a coefficient.
The third curve answers a question designers argue about: which integrator’s gain matters? For the error the loop shapes, the two leaks contribute symmetrically to second order in — each zero’s displacement adds — so the first integrator is no more important than the second. Leaking one of the two costs 4.3 decibels at , both 9.7; the extra is the term, which is the two floors multiplying each other. The first integrator matters more for its own noise and its own nonlinearity, which reach the output unshaped, and those are different questions from the leak. They are the integrator’s version of what two loops, and the mismatch between them found in a cascade: an analogue error placed before the shaping is passed, and one placed after it is shaped.
The floor in the spectrum
The closed form is an integral of a shape, and the shape can be seen directly.
The ideal loop’s error falls without limit toward zero frequency, which is the zero doing its work. The leaky loop’s error falls with it down to line 70 and then stops, flat at minus 170 decibels. Line 70 is the record’s length divided by , the frequency at which , and the flat part is squared — the two displaced zeros together. Above the corner the two curves are one curve, because there the leak is negligible beside the frequency, and that is why the loss depends only on how much of the band lies below the corner: at a ratio of 256 and a gain of 300 it is about a quarter of the band, , and the loss is a decibel.
The dashed curves are for of one and of , scaled once to the ideal loop’s measured level in the middle of the band and otherwise not fitted. Both marched spectra follow them from the bottom of the band to the top. That is the second route to the same number: the hero figure’s loss was read off a ratio, and here the same loss is visible as an area under a curve whose shape was written down before the march.
Where to stop oversampling
The closed form also says when a faster clock stops being worth having. Each doubling of the ratio buys the ideal second-order loop fifteen decibels, two and a half bits. Past the corner, where is above one, the same doubling buys three decibels — half a bit — and costs the same power and the same settling time in every integrator. So the gain of the amplifiers sets a ratio beyond which oversampling is the expensive way to buy resolution.
In numbers: with integrators of gain a hundred the loss is a decibel at a ratio of 83, 7.3 decibels at 256 and 16.6 at 512. The step from 256 to 512 buys the ideal loop 15.1 decibels and the leaky loop 5.8. A designer at that point who wants more resolution gets more of it from a third integrator, whose zero also leaks but adds a power of above the corner, or from a better amplifier, whose gain moves the corner down — not from the clock.
Expressed in bits, a loss of 9.7 decibels at is 1.6 bits, which is the price of running the ratio up to π times the amplifier’s gain; a loss of one decibel, at , is a sixth of a bit. The second figure is the one worth designing to. The word length that is not a threshold went looking for a digital filter’s required coefficient resolution and found no threshold, only a law with a slope; the integrator’s gain is the same kind of quantity, and the closed form is its law — there is no gain at which the loop starts working, only a cost that falls as the square of the gain.
A first-order loop pays twice
A loop of first order with one bit is where leaks were first studied, and there the floor is not the main cost. A first-order one-bit loop driven by a constant input settles into a repeating pattern of plus and minus ones whose mean is the input; with a perfect integrator any input, however small, eventually tips the pattern. With a leak, small enough inputs never do.
The figure is a staircase with long treads. Near zero the output’s mean is zero for every input up to 0.0169, a dead zone. Near a third the output is held at exactly a third for inputs from 0.3336 to 0.3558, near a half at exactly a half from 0.5088 to 0.5251, and there are smaller treads at every other simple fraction. On each tread the input moves and the output does not: the loop has found a pattern it can repeat, and the leak drains the integrator by just enough each cycle to cancel what the input’s small excess adds.
The zone at zero can be solved by hand, which is what makes the figure trustworthy. With the pattern the integrator’s state alternates between two values, and the pattern survives as long as the state goes on changing sign each sample. Writing the two states out and asking when they keep their signs gives a dead zone of half-width exactly , which with is . The bisected edge agrees to every digit printed: 0.01695 at a gain of 30.
These zones are the analogue relatives of the dead band zero in, and not zero out found in a rounded digital filter — a state the arithmetic will not leave because the correction it needs is smaller than what the loop can resolve — and they are the constant-input form of the tones a floor, or five tones measured in the band. A loop held on a tread produces a pure pattern, all of its error in a few lines.
Every zone narrows as the gain, and none closes
The zero zone follows to five figures across two and a half decades of gain, from 0.0526 at ten to 0.000167 at three thousand. The zone about a third is held by the pattern and has half-width ; the zone about a half is held by and has . Read together the three say that a pattern of length holds its value over a half-width close to . A longer pattern is held over a narrower range, which is why the figure’s treads at simple fractions are wide and the ones at complicated fractions are invisible.
Every zone narrows as the inverse of the gain and none closes at any finite gain. That is the practical content. For a measurement converter whose input can sit still — a weighing scale, a thermometer, a slow sensor — a first-order loop with integrators of gain a thousand will not resolve a change of less than a part in two thousand near zero, whatever its oversampling ratio. The second-order loop’s floor and the first-order loop’s dead zone are the same leak; the floor is how it looks to a moving input and the zone is how it looks to a still one.
Why the dither does not hide the zones
The second-order figures use dither and the first-order ones do not, and the difference is deliberate. Dither added inside the loop breaks a pattern by perturbing the state every sample, and enough of it would blur a dead zone into a slope. But the measurement here is of the loop the leak produces, and a one-bit first-order loop with dither is a different circuit with different numbers. What the dead-zone figures say is what a plain loop does; what a dithered one does is a question about how much dither a given leak needs, which this essay leaves open.
What the march leaves out
The leak is one number per integrator, a pole at . A real amplifier’s gain is not constant: it falls with the size of the signal, so a loop whose integrators swing widely has a leak that varies through the cycle, which bends the transfer as a level error does and makes harmonics. The integrators also settle in finite time, and an incomplete settling is a second gain error per sample of the same order as the leak.
The closed form assumes the leak is small beside one. At a gain of ten it overstates the cost by up to two decibels, which the figure shows rather than hides. And the dead-zone figures assume a constant input; a slowly moving input crosses each zone and spends a time in it proportional to the zone’s width over the input’s rate, which is the next measurement for a sensor converter.
The number to keep
An integrator round an amplifier of gain moves the loop’s noise zero to and puts a floor under the band. Its cost depends only on : for one integrator, for two, which the marched loops follow within two decibels. Under a decibel needs a gain of 1.2 times the oversampling ratio. A first-order one-bit loop also holds its output still for inputs within exactly of zero, and within close to of any value its pattern of length can repeat.
Still open: the dither a leak needs, the moving input, and the gain that is not constant
The dither that dissolves a dead zone. Dither inside the loop breaks a pattern, and the question is how much: whether dither of the zone’s own width, of full scale, is enough to turn the staircase into a slope, and what that dither costs in the band at the ratio a sensor converter runs at.
An input that moves through the zones. A slow ramp crosses the zone at zero in a time set by its rate and the zone’s width, and the output stays still for all of it. Marching a ramp through the first-order loop would turn the half-width here into a time and say what resolution a slowly drifting measurement actually gets.
A gain that falls with the signal. An amplifier’s gain is highest near the middle of its range and lower at the ends, so a loop whose integrators swing far has a leak that changes through every cycle. That is a level error made by the integrator rather than by the converter, and whether it shows the same harmonics the previous essay found — and at what swing — is the measurement that would join the two analogue parts of the loop.
Part 6 on Noise-shaping
One argument about Noise-shaping, and one of 6 essays on it so far, each part numbered by how much of the idea it assumes. What sits either side of it:
What links here
Essays that reach for this one mid-argument — the half of a link its own author cannot write down.
The objects named here
The third axis, after the field and the idea: the things themselves, and every essay that touches each one.
Dynamic rangeIdle tonesIntegratorNoise-shapingOversamplingSigma deltaSpectral densityVerification
- Only the real part is warm spectral density, verification
- The bandwidth a bin is not spectral density, verification
- The cross terms that outnumber the sources spectral density, verification
- The resistance colder than the room spectral density, verification
- The rounding a section keeps noise-shaping, oversampling
- The window the square-root law has spectral density, verification