RESEARCH TOPIC 01 / PART II — HARDWARE-LEVEL EVALUATION
Theory-Driven Fixed-Point Arithmetic Design and Verification
Derive hardware word lengths from exact numerical ranges and deterministic error bounds, then verify the selected precision against floating-point references.
8 channels · 12-bit ADC · 4 GS/s · 500 MHz target clock · N = 131,072 samples per channel
1. Key Results
Both architectures retain their floating-point calibration accuracy in the tested scenarios. The selected formats are frozen for RTL implementation within this research scope; silicon timing and power remain to be evaluated.
2. Common Exact Integer Arithmetic
All arithmetic up to the exact raw offset is lossless. Integer widths are derived from legal ADC input extrema, not measured typical offsets.
| Node | Exact range | I | F | W |
|---|---|---|---|---|
| 01 ADC code | −2048 … 2047 | 12 | 0 | 12 |
| 02 Channel sum | −268435456 … 268304384 | 29 | 0 | 29 |
| 03 Global sum | −2147483648 … 2146435072 | 32 | 0 | 32 |
| 04 Numerator | ±3757178880 | 33 | 0 | 33 |
| 05 Exact offset | ±3583.125 LSB | 13 | 20 | 33 |
I includes the sign bit; F is fractional precision; W = I + F. Signed range: −2I−1 to 2I−1 − 2−F.
01–02 · ADC input and accumulation: why 29 bits?
m = channel (0–7); n = selected sample index within the window; x = signed 12-bit code; N = 217. Multiplying the minimum and maximum codes by N gives the exact accumulator bounds above. A 28-bit signed value cannot represent the minimum; 29 bits suffice for every partial sum. Sign-extend each input before addition. A uses eight parallel accumulators; C selects one channel at a time and shares an adder across eight stored sums.
03 · Global summation: why 32 bits?
S is the sum of all eight channel accumulations. Its extrema are eight times the channel extrema. Three additional integer bits are necessary. A parallel tree may use 30-, 31- and 32-bit stages; serial sharing is an RTL design option, not yet frozen.
04 · Offset numerator: why 33 bits?
D is the integer numerator of the relative offset; j indexes the seven other channels. Its maximum magnitude is 7N(212−1) = 3,757,178,880, which exceeds the signed 32-bit range. Extend A to 32 bits before shifting left by three, then extend both subtraction operands to 33 bits.
05 · Exact offset: division without quantisation
r is the relative channel offset estimate in ADC LSB. Since 8N = 220, the same 33-bit integer represents the exact result with 20 fractional bits. No divider or separate rounding of the channel and global means is needed.
3. Architecture A — Direct Quantisation
Round the exact offset directly to 10 fractional bits. There is no recursive state and no intermediate rounding.
A05 · Signed rounding and coefficient error
FA = 10; C = Round(D / 220−FA) is the stored integer coefficient. The represented value is C·2−FA. Round means nearest, ties away from zero: for a signed integer v and shift L > 0, RoundShift(v,L) = sign(v) floor((|v|+2L−1)/2L). For L = 0 it returns v unchanged. The error eA is the represented coefficient minus r; its magnitude cannot exceed half a quantisation step.
A06 · Full-rate compensation: why 24 bits?
x is the ADC code, C the stored coefficient, Y the integer output and y its LSB value. The aligned ADC uses 22 bits; sign-extend both operands to 24 bits before subtraction. The output range is −5631.125 to +5630.125 LSB, requiring 14 integer bits. The subtraction adds no rounding error. This datapath is shared conceptually by both architectures.
4. Architecture C + IIR — Mixed Precision
Retain higher precision inside the low-rate feedback loop, but use the same 23-bit compensation coefficient as Architecture A.
C05–C08 · Raw estimate, difference, adjustment and state
k indexes coefficient updates; r is the exact raw estimate; c is the IIR state; hats denote fixed-point values. FIIR = 16, q = 2−16 LSB and α = 1/32.
Raw rounding introduces at most q/2 error. The difference d has range ±7166.25 and needs 14 integer bits. Division by 32 yields an exact adjustment with 9 integer and 21 fractional bits; rounding to 16 fractional bits gives 25 bits and adds at most q/2 error. The rounded adjustment never overshoots the target, so the state remains within ±3583.125 and requires only 13 integer bits. Addition introduces no new quantisation error.
Recursive error propagation: why the factor 16.5?
E is fixed minus floating IIR state; er and eu are raw and adjustment rounding errors, each bounded by q/2. Both references use the same input sums and α. First-estimate initialization gives |E[0]| ≤ q/2.
The geometric sum bounds error for every update, not merely steady state. At FIIR = 16, this is 0.00025177001953125 LSB.
Quantisation deadband: why 15 internal steps?
When |d| < 16q, the rounded adjustment is zero. Since d is an integer multiple of q and ties round away from zero, the largest nonzero stalled difference is 15q = 0.0002288818359375 LSB. This is the residual relative to a constant quantised target, not a bound on total physical offset estimation error.
C09–C10 · Final coefficient and compensation
Round the 29-bit IIR state to FC = 10, removing six fractional bits. This introduces at most 2−11 LSB. Adding the recursive bound gives the total bound above. The final 23-bit coefficient feeds the same 24-bit subtraction as A. If FC equals FIIR, this final rounding is exact.
5. Performance-Constrained Precision Selection
Choose the minimum high-rate precision satisfying the conservative error budget, then choose the internal IIR precision. This is a design priority, not a proof of globally minimum silicon power.
| Design input | A | C + IIR |
|---|---|---|
| Representative float SFDR (dBc) | 94.049 | 95.257 |
| SNDR loss budget (dB) | 0.1 | 0.1 |
| SFDR loss budget (dB) | 0.5 | 0.5 |
| Limiting error budget (LSB, approx.) | 0.000963 | 0.000838 |
| Selected fractional bits | 10 | 16 / 10 |
From periodic channel error to SNDR and SFDR budgets
Within a fixed-coefficient snapshot, em is the additional channel coefficient error, bounded by ε. Its normalized 8-point DFT is El = (1/8)Σm=07 em exp(−j2πlm/8), where l is the spectral index and j is the imaginary unit. Parseval bounds mean-square error by ε²; each one-sided spur peak is at most 2ε. DC and Nyquist need no doubling.
εSFDR = (A0/2)(10δS/20−1)
σ0 = 1/√12 LSB is an ideal quantisation-noise RMS reference; δN = 0.1 dB and δS = 0.5 dB are chosen loss budgets. A0 = Asig·10−S0/20, where Asig = 1638.4 LSB is the nominal tone peak and S0 the representative floating SFDR. Triangle inequalities allow coherent addition of existing and new errors. These estimates assume unchanged fundamental amplitude, consistent peak conventions and fixed coefficients. The representative reference is not a worst-case bound across all signals.
Analytical selection and neighbouring candidates
A requires 2−FA−1 ≤ 0.000963, giving FA = 10. C requires 16.5·2−FIIR + 2−FC−1 ≤ 0.000838. First select FC = 10, then FIIR ≥ ceil(log₂(16.5/(0.000838−2−11))) = 16.
| F IIR / F C | Bound (LSB) | Budget |
|---|---|---|
| 16 / 9 | 0.001228333 | Fail |
| 15 / 10 | 0.000991821 | Fail |
| 16 / 10 | 0.000740051 | Selected |
| 15 / 11 | 0.000747681 | Pass |
The 15/11 alternative also meets the budget. The chosen 16/10 format prioritizes the eight full-rate subtractors over low-rate state arithmetic (approximately 238 updates/s per channel). No new parameter sweep is required.
6. Experimental Verification
6.1 Arithmetic correctness
Observed maximum as percentage of analytical bound
Numerical results and test coverage
| Metric | Observed (LSB) | Bound (LSB) |
|---|---|---|
| A coefficient | 0.0004882812 | 0.0004882812 |
| C raw | 0.0000076294 | 0.0000076294 |
| C state | 0.0002350577 | 0.0002517700 |
| C final rounding | 0.0004882812 | 0.0004882812 |
| C total | 0.0007067466 | 0.0007400513 |
| C deadband | 0.0002288818 | 0.0002288818 |
Tests use legal accumulated sums: all-minimum and all-maximum codes, opposite channel extrema, static fractional offsets, slow drift, abrupt changes and 10,000 random full-range vectors. Signed width, compensation and state invariance checks passed. This bypasses sample scheduling and is not exhaustive RTL verification.
6.2 System-level performance
Two static offset scenarios, 128 snapshots each, two architectures and two numerical representations: 1,024 spectral evaluations and 512 paired comparisons. Every pair passed the predefined loss limits.
Maximum SNDR loss Scale: 0–0.1 dB
Maximum SFDR loss Scale: 0–0.5 dB
6.3 Calibration accuracy retained
| Scenario / architecture | Float RMSE | Fixed RMSE |
|---|---|---|
| Integer / A | 0.02303801 | 0.02307277 |
| Integer / C + IIR | 0.01842911 | 0.01841708 |
| Fractional / A | 0.02342648 | 0.02343463 |
| Fractional / C + IIR | 0.01915887 | 0.01915594 |
Mean residual relative-offset RMSE in LSB over the last 32 snapshots. C + IIR retains approximately 20.2% and 18.3% lower RMSE than A in the respective fixed-point scenarios.
Full acceptance results and reproducibility
| Scenario / architecture | Max ENOB loss (bit) | Max coefficient RMSE (LSB) | Passed |
|---|---|---|---|
| Integer / A | 0.000112 | 0.0003779427 | 128/128 |
| Integer / C + IIR | 0.000481 | 0.0003925391 | 128/128 |
| Fractional / A | 0.000082 | 0.0003862793 | 128/128 |
| Fractional / C + IIR | 0.000499 | 0.0003805221 | 128/128 |
ENOB loss limit: 0.1/6.02 bit. Coefficient RMSE is checked against the per-channel bound as a necessary condition, not a substitute for a maximum-error check.
RF tone: 3.5173 GHz; alias: 482.7 MHz; amplitude: 0.8 full scale; 40,000 samples per snapshot; LFSR seed 0xACE1. Integer offsets: [8, −5, 3, −7, 6, −2, 4, −7]. Fractional offsets: [8.37, −5.23, 3.71, −7.46, 6.18, −2.83, 4.52, −7.26]. Relative offsets subtract the vector mean.
Scripts: verify_analytical_fixed_point.py, verify_system_performance.py, experiment_word_length.py. System verification run: 20261202_103628_549179. Output: verification_history.csv, verification_summary.csv and source_files.csv. Values shown are transcribed from the reported terminal results; raw CSV files are not embedded. Legacy Low/Balanced/High summary rows displayed NaN because those configurations were not run; the dedicated Analytical comparisons passed.
7. Frozen Arithmetic Specification v1.0
| Node | A (I + F = W) | C + IIR (I + F = W) |
|---|---|---|
| ADC input | 12+0=12 | 12+0=12 |
| Accumulator | 29+0=29 | 29+0=29 |
| Global sum | 32+0=32 | 32+0=32 |
| Numerator | 33+0=33 | 33+0=33 |
| Exact offset | 13+20=33 | 13+20=33 |
| Rounded raw | 13+10=23 | 13+16=29 |
| IIR difference | — | 14+16=30 |
| Exact adjustment | — | 9+21=30 |
| Rounded adjustment | — | 9+16=25 |
| IIR state | — | 13+16=29 |
| Compensation coefficient | 13+10=23 | 13+10=23 |
| Aligned input | 12+10=22 | 12+10=22 |
| Corrected output | 14+10=24 | 14+10=24 |
Signed two’s complement; nearest rounding with ties away from zero; no saturation required for valid inputs under the derived ranges. Eight samples per cycle: 96-bit input, 192-bit output. Rounding intermediate magnitudes and additions must use adequate temporary widths. Register sharing, coefficient commit latency and pipeline timing remain RTL decisions.
8. Scope and Next Milestone
The arithmetic bounds apply to legal input sums and the specified rounding and initialization. System-level evidence is limited to two static offset vectors, one tone and amplitude, and frozen-coefficient snapshots. Dynamic spectral performance, other mismatch mechanisms, continuous coefficient transitions, bit-exact RTL and silicon power/timing are not yet established. The 500 MHz clock is a design target, not a measured SMIC 180 nm result.
Next: RTL microarchitecture, SystemVerilog implementation, bit-exact verification, synthesis, timing and power evaluation.
← Research Topic 01