Finite wordlength effects
Finite wordlength effects are errors and distortions in digital signal processing that arise when signals and filter coefficients are represented with a limited number of bits, with severity depending on wordlength, arithmetic format, filter structure, and signal statistics.
What Are Finite Wordlength Effects?
Finite wordlength effects are the errors and distortions that arise in digital signal processing systems when signals and filter coefficients are represented with a limited number of binary digits. Because any practical digital implementation stores numbers in registers of fixed bit width rather than with infinite precision, the continuous range of real values must be mapped to a discrete set of representable numbers, and this mapping introduces errors that propagate through all subsequent arithmetic. The severity of these effects depends on the wordlength (number of bits), the arithmetic format (fixed-point versus floating-point), the filter structure, and the signal statistics.
Understanding finite wordlength effects is fundamental to designing digital filters, digital control systems, and signal processing hardware. A design that appears optimal in an infinite-precision theoretical analysis may perform poorly or even become unstable when implemented in fixed-point arithmetic on a microcontroller, DSP processor, or FPGA. Engineers working in these domains must quantify and manage three principal categories of error: coefficient quantization, round-off noise, and overflow and limit cycle behavior.
Coefficient Quantization
Filter coefficients derived during the design phase are real-valued numbers that must be rounded to the nearest representable value in the chosen number format when implemented. This rounding shifts the poles and zeros of the filter's transfer function from their designed positions to nearby but distinct locations in the complex plane, altering the frequency response and, in the case of IIR filters, potentially moving poles outside the unit circle and causing instability. The sensitivity of pole locations to coefficient quantization depends strongly on the filter structure: direct-form structures are notoriously sensitive when poles are closely spaced, as in narrow-band or high-order designs, while cascade and parallel decompositions break the filter into lower-order sections whose poles are less sensitive to individual coefficient perturbations. Quantitative analysis of coefficient sensitivity is covered in Bomar's chapter on finite wordlength effects in the DSP Handbook, a standard reference for practicing DSP engineers.
Round-off Noise
Every arithmetic operation inside a digital filter (multiplication, addition) produces results that may not be exactly representable in the finite wordlength format and must be rounded or truncated. This rounding error is modeled statistically as additive white noise, an approximation valid when the input signal has sufficient amplitude variation to decorrelate the error sequence from the signal. Under this model, each multiplication contributes noise with variance proportional to the square of the quantization step size, and the total output noise is the sum of contributions from all multiplication sites, scaled by the filter's noise gain at each point. Longer wordlengths reduce the quantization step size exponentially: each additional bit reduces the noise variance by a factor of four (6 dB of signal-to-noise ratio). Analog Devices provides a practical treatment of how wordlength and dynamic range interact in their technical article on data word size and signal quality.
Overflow and Limit Cycles
When the result of an arithmetic operation exceeds the representable range, overflow occurs. In two's complement arithmetic, overflow causes wraparound, producing large-amplitude errors that are qualitatively different from the small round-off noise described above. Scaling, the deliberate reduction of signal amplitude before accumulation, is the primary countermeasure, though it reduces the effective signal-to-noise ratio. Even in the absence of overflow, recursive (IIR) filters can exhibit limit cycles: low-amplitude periodic oscillations that persist at the output when the input is zero or constant, caused by the nonlinear interaction between rounding and feedback. Zero-input limit cycles and overflow oscillations are analyzed using describing function methods and Lyapunov-based stability theory. The Springer chapter on effects of finite wordlength in digital filters addresses both phenomena and describes filter structures specifically designed to suppress them.
Applications
Finite wordlength effects are a central concern in the following domains:
- Fixed-point DSP processor and FPGA implementation of digital filters
- Digital control systems where coefficient sensitivity affects closed-loop stability
- Audio processing hardware, where quantization noise determines the achievable dynamic range
- Software-defined radio receivers implementing narrow-band channelizers
- Medical instrumentation requiring low-noise signal acquisition and filtering