
Altera Corporation
 3
FS 1: FIR Filters
Parameters
The following FIR filter parameters can be defined by the user: 
I
I
Data Width 
Coefficient Precision 
for the FIR filter, independent of the data width setting.
Internal Precision 
(
internal_p
internal calculations in the FIR filter.
Output Precision 
(
output_p
output data. This value can be different from the internal 
precision.
Pipelined/Non-Pipelined Design 
choose between a fully pipelined or non-pipelined design, the 
main filter design program, FIRGEN, creates the 
accordingly. A fully pipelined design results in the maximum 
operating frequency with no extra device area usage.
Symmetrical/Antisymmetrical Filters 
Designers can specify whether the filter is symmetric or 
antisymmetric. Symmetrical FIR filters implement even 
functions with symmetric tap adders. Designers can create an 
antisymmetric FIR filter that implements an odd function by 
using symmetric tap subtractors. FIRGEN allows the designer to 
specify symmetrical or antisymmetrical coefficients. 
Coefficients
—FIRGEN automatically generates an AHDL 
Include File (
coef.inc
)
that specifies vector table representations 
of filter coefficients. Designers specify the original file 
containing coefficients to FIRGEN, which then computes the 
vector tables and adds them to 
coef.inc
coefficients are specified at compilation, they are not parameters 
because they are defined by constants in the 
than one filter exists in the design, modify a copy of the top-level 
Text Design File (
.tdf
) file (e.g., 
fir_08tp.tdf
name of the Include File (
coef.inc
(
width
)—The width (in bits) of incoming data.
(
rom_p
)—The width of the coefficients used 
I
)—The precision (in bits) of 
I
)—The precision (in bits) of the 
I
(
pipelined
)—When designers 
coef.inc
 file 
I
("
sym
"
or
"
anti
")—
I
. Although the 
coef.inc
 file. If more 
) and change the 
).
Parameters vs. Ports
Parameters, which are variables established at design time, 
determine the configuration of the filter. Parameters cannot be 
changed once the filter has been designed and is operating in-circuit. 
In contrast, ports refer to the in-circuit I/ O ports, including the I/ O 
data, Clock, and Reset.