Minimum Cascade Length - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
To help find the minimum supported TP_CASC_LEN value for a given configuration, the following utility functions have been created in each FIR’s graph file.
The function signature for the single rate asymmetric filter is shown below:
template<int T_FIR_LEN, int T_API, typename T_D, typename T_C, unsigned int SSR>
static constexpr unsigned int getMinCascLen();

where T_FIR_LEN is the tap length of the FIR, T_API refers to thee type of port interface : 0 for window API and 1 for stream API, T_D and T_C are the data type and coeff type respectively. SSR is the parallelism factor set for super sample rate operation.

using fir_graph = xf::dsp::aie::fir::sr_sym::fir_sr_asym_graph<DATA_TYPE, COEFF_TYPE, FIR_LEN, SHIFT, RND, INPUT_WINDOW_VSIZE>;

static constexpr int kMinLen = fir_graph::getMinCascLen<FIR_LEN, API, DATA_TYPE, COEFF_TYPE, TP_SSR>();

xf::dsp::aie::fir::sr_sym::fir_sr_asym_graph<DATA_TYPE, COEFF_TYPE, FIR_LEN, SHIFT, RND, INPUT_WINDOW_VSIZE,
                                             kMinLen, USE_COEFF_RELOAD, NUM_OUTPUTS, API, SSR> firGraphWithMinLen;

More details are provided in the API Reference Overview.