Overview
Sub-band Complex FIR Filter module
Discussion
Part of DSP Concepts IP for implementing long FIR filters in the frequency domain. This module implements a complex FIR filter within each subband of a filterbank. At instantiation time, you specify the number of taps in each complex filter
The module allocates memory for the complex FIR coefficients and state variables and at run-time implements the complex convolutions
Type Definition
Code Block |
---|
typedef struct _ModuleSbComplexFIR { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 numTaps; // Length of each complex FIR filter INT32 stateIndex; // Write index in to current complex state variables FLOAT32* state; // FIR filter state memory FLOAT32* coeffs; // FIR filter coeffs array } ModuleSbComplexFIRClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
numTaps | int | const | 1 | 8 | Unrestricted | |
stateIndex | int | state | 1 | 0 | Unrestricted | |
state | float* | state | 1 | [512 x 1] | Unrestricted | |
coeffs | float* | parameter | 0 | [512 x 1] | Unrestricted |
Pins
Input Pins
Name: in
Description: complex input
...
Sample rate range: Unrestricted
Complex support: Complex
Output Pins
Name: out
Description: complex output
Data type: float
MATLAB Usage
File Name: sb_complex_fir_module.m
...