Embedded Target for Texas Instruments C6000 DSPs | ![]() ![]() |
Filter a real input signal using a symmetric real FIR filter
Library
Description
The Symmetric Real FIR block filters a real input signal using a symmetric real FIR filter. This filter is implemented using a direct form structure.
The number of input samples per channel must be even. The filter coefficients are specified by a real vector H, which must be symmetric about its middle element. The number of coefficients must be of the form 16k + 1, where k is a positive integer. This block wraps overflows that occur. The input, coefficients, and output are 16-bit signed fixed-point data types.
Intermediate multiplys and accumulates performed by this filter result in a 32-bit accumulator value. However, the Symmetric Real FIR block only outputs 16 bits. You can choose to output 16 bits of the accumulator value in one of the following ways.
The Symmetric Real FIR block supports discrete sample times and only little-endian code generation.
Dialog Box
Specify via dialog
--Enter the coefficients in the Coefficients parameter in the dialog
Input port
--Accept the coefficients from port H
Specify via dialog
is specified for the Coefficient source parameter. This parameter is tunable in simulation.Match input X
--Sets the coefficients to have the same number of fractional bits as the input
Best precision
--Sets the number of fractional bits of the coefficients such that the coefficients are represented to the best precision possible
User-defined
--Sets the number of fractional bits in the coefficients with the Number of fractional bits in coefficients parameter
Specify via dialog
is specified for the Coefficient source parameter.Specify via dialog
is specified for the Coefficient source parameter, and is only enabled if User-defined
is specified for the Set fractional bits in coefficients to parameter.Match input X
--Output the 16 bits of the accumulator value that cause the number of fractional bits in the output to match the number of fractional bits in input X
Match coefficients H
--Output the 16 bits of the accumulator value that cause the number of fractional bits in the output to match the number of fractional bits in coefficients H
Match high bits of acc. (b31:b16)
--Output the highest 16 bits of the accumulator value
Match high bits of prod. (b30:b15)
--Output the second-highest 16 bits of the accumulator value
User-defined
--Output the 16 bits of the accumulator value that cause the number of fractional bits of the output to match the value specified in the Number of fractional bits in output parameter
User-defined
is selected for the Set fractional bits in output to parameter.Algorithm
In simulation, the Symmetric Real FIR block is equivalent to the TMS320C62x DSP Library assembly code function DSP_fir_sym
. During code generation, this block calls the DSP_fir_sym
routine to produce optimized code.
See Also
Complex FIR, General Real FIR, Radix-4 Real FIR, Radix-8 Real FIR
![]() | Reciprocal | To Rtdx | ![]() |