← Research Topic 01

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. ADC Output xₘ[n] 2. Sample Selection vₘ[k,i] 3. Sample Accumulation Aₘ[k] 4. Channel Mean Estimation μₘ[k] 5. Common Mean Estimation μ̄[k] 6. Relative Offset Estimation rₘ[k] 7. Optional IIR Filtering cₘ[k] 8. Offset Compensation yₘ[n] Individual channel means Full-rate ADC data path
Complete offset estimation and compensation algorithm. Blue highlights the accumulation stage targeted for hardware optimisation. Green highlights the optional IIR stage.

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.

xm [n] = sm [n] + bm + em [n]
m: ADC channel index (0–7).
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).

Ideal signal Positive offset Negative offset +b −b
Conceptual illustration of channel-dependent DC offsets.

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.

vm [k,i] = xm [ n m, k,i ]
k: calibration window index, starting from zero.
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:

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.

Am [k] = ∑ i=0 N−1 vm [k,i]
Am[k]: accumulated sum of the N selected samples from channel m during window k.

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.

μm [k] = Am [k] N
μm[k]: estimated mean of channel m during window k.

In the current design:

N= 217 =131072

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.

μ¯ [k] = 1M ∑ j=0 M−1 μj [k]
M: total number of ADC channels (8).
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.

rm [k] = μm [k] − μ¯ [k]
rm[k]: raw relative offset estimate for channel m during window k.

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:

rm [k] ≈ bm − 1M ∑ j=0 M−1 bj

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 0108
ADC 1−3−5
ADC 253
ADC 3−5−7
ADC 486
ADC 50−2
ADC 664
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] = cm [k−1] + α ( rm [k] − cm [k−1] )
rm[k]: current raw offset estimate from Step 6.
cm[k−1]: previous filtered coefficient.
cm[k]: updated filtered coefficient.
α: smoothing coefficient.

The first valid estimate initialises the filter:

cm [0] = rm [0]

For subsequent updates, the current design uses:

α= 132 = 2 −5

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.

7+ 132 (8−7) =7.03125

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:

cm [k] = rm [k]

Output: eight offset compensation coefficients.


8. Offset Compensation

Subtract the latest available coefficient from Step 7 from every original ADC sample.

ym [n] = xm [n] − cm [k]
ym[n]: corrected ADC output.
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.

Original ADC samples Corrected samples − Offset coefficient Full-rate compensation: 4 GS/s
Every ADC sample is compensated, including samples not selected for estimation.

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 →