BORES logo

Introduction to DSP

Programming a DSP processor: A simple FIR filter

The simple FIR filter equation:

can be implemented quite directly in C language:

y[n] = 0.0;
for (k = 0; k < N; k++)
y[n] = y[n] + c[k] * x[n-k];

But this naive code is inefficient:

The code is inefficient because:

go back to previous module go back to previous page go to next page go to next module

Copyrite:Bores Signal Processing