← Research Topic 01

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

Architecture A10 bitsCompensation fractional precision
Architecture C + IIR16 / 10Internal / compensation fractional bits
System verification512/512All comparisons passed
Worst observed SNDR loss0.003003dB · limit 0.1 dB
Worst observed SFDR loss0.144123dB · limit 0.5 dB
Common corrected output24 bitsSigned · 10 fractional bits

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.

Range analysis
→
Error propagation
→
Performance budget
→
Python verification
→
RTL specification

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.

ADC input12x
→
Accumulator29A
→
Global sum32S
→
Numerator33D
→
Exact offset13 + 20r
Signed word lengths in bits. The final conversion only reinterprets the binary point.
NodeExact rangeIFW
01 ADC code−2048 … 204712012
02 Channel sum−268435456 … 26830438429029
03 Global sum−2147483648 … 214643507232032
04 Numerator±375717888033033
05 Exact offset±3583.125 LSB132033

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?
Am = Σn=0N−1 xm[n]

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 = Σm=07 Am

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?
Dm = 8Am − S = Σj≠m(Am − Aj)

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
rm = Am/N − S/(8N) = Dm/220

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.

Exact offset3313 + 20
→
Round2313 + 10
→
Subtract from ADC2414 + 10
|eA| ≤ 2−FA−1 = 0.00048828125 LSB
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?
Y = (x ≪ 10) − C,   y = Y·2−10

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.

Raw rounding29 bitsDifference30 bits÷32 + round25 bitsState addition29 bitsState register29 bitsFinal rounding23 bitsPrevious registered state feedback500 MHz compensation
Logical arithmetic dependency, not a cycle-accurate RTL schedule. First update bypasses the recursion and initializes the state from the rounded raw estimate.
|Etotal| ≤ 16.5·2−FIIR + 2−FC−1 = 0.00074005127 LSB
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.

r̂ = q Round(r/q)   →   d = r̂ − ĉprev   →   û = q Round(d/(32q))   →   ĉ = ĉprev + û

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[k] = (1−α)E[k−1] + αer[k] + eu[k]

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.

|E[k]| ≤ (1−α)kq/2 + (1+α)q[1−(1−α)k]/(2α) ≤ 16.5q

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 inputAC + IIR
Representative float SFDR (dBc)94.04995.257
SNDR loss budget (dB)0.10.1
SFDR loss budget (dB)0.50.5
Limiting error budget (LSB, approx.)0.0009630.000838
Selected fractional bits1016 / 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.

εSNDR = σ0(10δN/20−1)
ε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 CBound (LSB)Budget
16 / 90.001228333Fail
15 / 100.000991821Fail
16 / 100.000740051Selected
15 / 110.000747681Pass

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

12,578Update vectors
100,624Channel evaluations
PASSAll range and error checks

Observed maximum as percentage of analytical bound

A coefficient
100.00%
C raw offset
100.00%
C IIR state
93.36%
C final rounding
100.00%
C total error
95.50%
C deadband
100.00%
100% denotes the theoretical limit, not a failure. The recursive bound is closely approached in the tested sequence.
Numerical results and test coverage
MetricObserved (LSB)Bound (LSB)
A coefficient0.00048828120.0004882812
C raw0.00000762940.0000076294
C state0.00023505770.0002517700
C final rounding0.00048828120.0004882812
C total0.00070674660.0007400513
C deadband0.00022888180.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

Integer · A
0.000675 dB
Integer · C + IIR
0.002896 dB
Fractional · A
0.000493 dB
Fractional · C + IIR
0.003003 dB

Maximum SFDR loss Scale: 0–0.5 dB

Integer · A
0.104543 dB
Integer · C + IIR
0.068292 dB
Fractional · A
0.075757 dB
Fractional · C + IIR
0.144123 dB
Blue: A; green: C + IIR. Each track represents the corresponding acceptance limit.

6.3 Calibration accuracy retained

Scenario / architectureFloat RMSEFixed RMSE
Integer / A0.023038010.02307277
Integer / C + IIR0.018429110.01841708
Fractional / A0.023426480.02343463
Fractional / C + IIR0.019158870.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 / architectureMax ENOB loss (bit)Max coefficient RMSE (LSB)Passed
Integer / A0.0001120.0003779427128/128
Integer / C + IIR0.0004810.0003925391128/128
Fractional / A0.0000820.0003862793128/128
Fractional / C + IIR0.0004990.0003805221128/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

IIR state · 29 bits (C only)
13 integer16 fractional
Compensation coefficient · 23 bits (both)
13 integer10 fractional
Corrected output · 24 bits (both)
14 integer10 fractional
Integer fields include the sign bit. The common output format enables a consistent architecture comparison.
NodeA (I + F = W)C + IIR (I + F = W)
ADC input12+0=1212+0=12
Accumulator29+0=2929+0=29
Global sum32+0=3232+0=32
Numerator33+0=3333+0=33
Exact offset13+20=3313+20=33
Rounded raw13+10=2313+16=29
IIR difference—14+16=30
Exact adjustment—9+21=30
Rounded adjustment—9+16=25
IIR state—13+16=29
Compensation coefficient13+10=2313+10=23
Aligned input12+10=2212+10=22
Corrected output14+10=2414+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