Single-Rate FIR - Single-Rate FIR - 7.2 English - PG149

FIR Compiler LogiCORE IP Product Guide ( PG149)

Document ID
PG149
Release Date
2025-12-17
Version
7.2 English

The coefficient file for the single-rate FIR filter is straightforward and consists of a one-line header followed by the filter coefficient data. For example, the filter coefficient file for an 8-tap filter using a base-10 representation for the coefficient values is shown in the following code example.

radix=10;
coefdata=20,-256,200,255,255,200,-256,20;

Irrespective of the filter possessing positive or negative symmetry, the coefficient file must contain the complete set of coefficient values. The following code example shows a filter coefficient file for the non-symmetric impulse response presented next to the following figure.

radix=10;
coefdata=255,200,-180,80,220,180,100,-48,40;
Figure 1. Non-Symmetric Impulse Response

The following code example shows a coefficient file for the negative-symmetric filter characterized by the impulse response next to the following figure.

rarid=10;
coefdata=30,-40,80,-100,-200,200,100,-80,40,-30;
Figure 2. Negative Symmetric Impulse Response