Filter Coefficient Data - 7.2 English

FIR Compiler (PG149)

Document ID
PG149
Release Date
2022-10-26
Version
7.2 English

The filter coefficients are supplied to the FIR Compiler using a coefficient file with a .coe extension. This is an ASCII text file with a single-line header that defines the radix of the number representation used for the coefficient data, followed by the coefficient values themselves. This is shown in This Figure for an N -tap filter.

Figure 3-36: Filter Coefficient File Format

X-Ref Target - Figure 3-36

pg149-designing00228_pg149.jpg

The filter coefficients can be supplied as integers in either base-10, base-16, or base-2 representation. This corresponds to coefficient_radix =10, coefficient_radix =16, and coefficient_radix =2 respectively. Alternatively, the coefficients can be entered as real numbers (specified to a minimum of one decimal place) in base-10 only. If you enter signed negative symmetric hexadecimal coefficients, each value should be sign-extended to the boundary of the most significant nibble or hex character. This ensures that coefficient structure inference can be performed correctly (this includes Hilbert transform filter types, which are also negative symmetric).

The coefficient values can also be placed on a single line as shown in This Figure .

Figure 3-37: Filter Coefficient File Format – Coefficient Data on a Single Line

X-Ref Target - Figure 3-37

pg149-designing00230_pg149.jpg