RESEARCH TOPIC 01 / ALGORITHM
Offset Calibration Algorithm
Estimate and remove relative offset mismatch between ADC channels through statistical estimation and digital compensation.
8 channels · 12-bit resolution · 4 GS/s sampling rate · 500 MHz digital clock
Complete Algorithm Data Flow
1. Signal Model
Considering offset mismatch as the only analogue non-ideality, the output of each ADC channel consists of the ideal sampled signal, a channel-dependent offset and quantisation error.
n: sample index within a channel.
xm[n]: observed ADC output.
sm[n]: ideal sampled signal.
bm: unknown channel offset.
em[n]: quantisation error.
All signal quantities are expressed in units of the least significant bit (LSB).
The true offset is unknown. Only the ADC output is observable, so the offset must be estimated statistically.
Output: observed ADC samples.
2. Sample Selection
Select N samples from each ADC channel during each calibration window. These samples are used for offset estimation.
i: selected sample index (0 to N−1).
N: selected samples per channel per window (131,072).
nm,k,i: original sample index of the selected sample.
vm[k,i]: selected ADC sample.
Three sampling strategies are considered:
- Full-rate: select every sample.
- Fixed-interval: select samples at regular intervals.
- Pseudo-random: vary the selection intervals using a pseudo-random scheduler.
Sparse sampling reduces the number of observations used for estimation without reducing the ADC output sampling rate.
Output: N selected samples per channel.
3. Sample Accumulation
Add the selected samples from Step 2 independently for each ADC channel.
Each channel maintains an independent accumulated sum. Sparse sampling allows multiple channels to share a single accumulation adder.
This is the primary target of the proposed hardware optimisation.
Output: eight accumulated sums.
4. Channel Mean Estimation
Divide each accumulated sum from Step 3 by the number of selected samples to obtain the corresponding channel mean.
In the current design:
Division by a power of two can be implemented using binary scaling, provided sufficient fractional precision is retained.
Each channel mean contains both the underlying signal mean and the channel offset. The common signal component must therefore be removed.
Output: eight channel means.
5. Common Mean Estimation
Average the eight channel means obtained in Step 4 to calculate the common mean.
j: channel summation index.
μ̄[k]: common channel mean during window k.
The common mean provides a shared reference against which the offset of each channel can be estimated.
Output: one common mean.
6. Relative Offset Estimation
Subtract the common mean from Step 5 from each individual channel mean obtained in Step 4.
If the underlying signal means and mean quantisation errors are approximately equal across channels, subtracting the common mean removes these shared components.
The remaining quantity approximates the channel offset relative to the average offset of all channels:
Only relative offset mismatch is identifiable. An absolute offset shared by all channels cannot be distinguished from the common input DC component.
Numerical Example
Consider the following estimated channel means, expressed in LSB.
| Channel | Mean | Relative Offset |
|---|---|---|
| ADC 0 | 10 | 8 |
| ADC 1 | −3 | −5 |
| ADC 2 | 5 | 3 |
| ADC 3 | −5 | −7 |
| ADC 4 | 8 | 6 |
| ADC 5 | 0 | −2 |
| ADC 6 | 6 | 4 |
| ADC 7 | −5 | −7 |
| Average | 2 | 0 |
The common mean is 2 LSB. Subtracting this value from every channel mean produces the relative offset estimates.
By construction, the sum of all relative offset estimates is zero.
Output: eight raw relative offset estimates.
7. Optional IIR Filtering
Finite observation windows may produce fluctuating offset estimates, particularly when sparse sampling is used.
A first-order infinite impulse response (IIR) filter is introduced to smooth successive estimates.
cm[k−1]: previous filtered coefficient.
cm[k]: updated filtered coefficient.
α: smoothing coefficient.
The first valid estimate initialises the filter:
For subsequent updates, the current design uses:
At each update, the filtered coefficient moves by one thirty-second of the difference between the new estimate and the previous coefficient.
Numerical Example
Suppose the previous filtered coefficient is 7 LSB and the new raw estimate is 8 LSB.
Instead of immediately changing from 7 to 8 LSB, the coefficient changes gradually to 7.03125 LSB.
This suppresses estimation fluctuations but reduces the tracking speed of time-varying offsets.
Since the filter operates only when new coefficients are available, it does not require additional high-speed accumulation adders. The power-of-two coefficient also permits a shift-based implementation.
For architectures without IIR filtering, use the raw estimate directly:
Output: eight offset compensation coefficients.
8. Offset Compensation
Subtract the latest available coefficient from Step 7 from every original ADC sample.
xm[n]: original ADC output.
cm[k]: latest available compensation coefficient.
k: most recent coefficient update available when sample n is processed.
Before the first valid coefficient update, compensation is zero.
Sparse sampling is applied only to offset estimation. Compensation operates continuously at the full ADC sampling rate.
Output: calibrated ADC samples at 4 GS/s.
Next: Hardware Architecture →