DSPLIB User Guide
DSPLIB_fir_InitArgs Struct Reference

Detailed Description

Structure containing the parameters to initialize the kernel.

Definition at line 105 of file DSPLIB_fir.h.

Data Fields

int8_t funcStyle
 Variant of the function refer to DSPLIB_FUNCTION_STYLE
More...
 
int32_t dataSize
 Size of input data
More...
 
int32_t batchSize
 Size of batch in terms of number of channels of input data
More...
 
int32_t filterSize
 Size of filter
More...
 
uint32_t shift
 Bit-shift values to be used for internal computation. More...
 
uint32_t enableNchCoefs
 Flag to enable per channel filter coefficients: 0 => same coefficients for all channels in batch 1 => different coefficients for each channel in batch
More...
 

Field Documentation

◆ funcStyle

int8_t DSPLIB_fir_InitArgs::funcStyle

Variant of the function refer to DSPLIB_FUNCTION_STYLE

Definition at line 107 of file DSPLIB_fir.h.

◆ dataSize

int32_t DSPLIB_fir_InitArgs::dataSize

Size of input data

Definition at line 109 of file DSPLIB_fir.h.

◆ batchSize

int32_t DSPLIB_fir_InitArgs::batchSize

Size of batch in terms of number of channels of input data

Definition at line 111 of file DSPLIB_fir.h.

◆ filterSize

int32_t DSPLIB_fir_InitArgs::filterSize

Size of filter

Definition at line 113 of file DSPLIB_fir.h.

◆ shift

uint32_t DSPLIB_fir_InitArgs::shift

Bit-shift values to be used for internal computation.

  • For higher precision results, MMA accelerator uses 4 times the number of data bits for accumulating the intermediate computation results. And, the output data is generated by right-shifting the intermediate accumulated data by a certain number of bits. This value gives the right-shift amount in terms of number of bits.

Definition at line 121 of file DSPLIB_fir.h.

◆ enableNchCoefs

uint32_t DSPLIB_fir_InitArgs::enableNchCoefs

Flag to enable per channel filter coefficients: 0 => same coefficients for all channels in batch 1 => different coefficients for each channel in batch

Definition at line 125 of file DSPLIB_fir.h.