Digital Signal Processing Basics

In an FIR filter computation, products of 16-bit fixed-point data and coefficients are represented in 32 bits, and 256 of these products are added up. Which of the following is the minimum accumulator width that guarantees no overflow during the computation?

  1. A32 bits
  2. B33 bits
  3. C40 bits
Show answer and explanation

Answer: C. 40 bits

Adding two 32-bit products can increase the magnitude by up to 1 bit, and adding 256 = 2⁸ of them by up to 8 bits. An accumulator of 32 + log₂256 = 32 + 8 = 40 bits therefore cannot overflow even in the worst case. Some typical 16-bit fixed-point DSPs have 40-bit accumulators, with 8 guard bits added to the 32-bit product. When the result is finally brought back to 16 bits, rounding and saturating arithmetic keep it within range.

  • A. With the same 32 bits as the product, adding just two products can overflow.
  • B. A 1-bit margin guarantees only the sum of two products.
  • C. Correct. 256 = 2⁸, so 8 guard bits are added for 40 bits.
Practice this topic Back to topic

Books on Digital Signal Processing Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Digital Signal Processing Basics questions

  1. A 6 kHz sine wave is sampled at a sampling frequency of 48 kHz. Which of the following is the normalized angular frequency ω (the phase advance per sample) of the resulting discrete-time signal?
  2. Which of the following is the fundamental period (the smallest positive integer N such that x[n + N] = x[n] for every integer n) of the discrete-time signal x[n] = cos(0.3πn)?
  3. Which of the following signals takes the same value as the discrete-time signal x[n] = cos(1.75πn) for every integer n?
  4. Which of the following correctly relates the unit impulse δ[n] (1 at n = 0, 0 elsewhere) and the unit step u[n] (1 for n ≥ 0, 0 for n < 0)?
  5. Which of the following is the energy E = Σ|x[n]|² of x[n] = (0.5)ⁿu[n] (0.5 to the power n for n ≥ 0, 0 for n < 0)?