Kernel for computing 32-bit floating-point real to complex FFT.
- The kernel performs FFT of an N-point real sequence using N/2-point complex FFT, which saves compute time
- The size of data is required to be a power of 2.
- The kernel requires application to provide a pre-generated twiddle factors along with the input data.
- The kernel requires application to provide a pre-generated split factors along with the input data.
|
| FFTLIB_STATUS | FFTLIB_fft1d_i32f_c32fc_o32fc_init (FFTLIB_F32 *pX, FFTLIB_bufParams1D_t *bufParamsX, FFTLIB_F32 *pW, FFTLIB_bufParams1D_t *bufParamsW, FFTLIB_F32 *pXFFT, FFTLIB_bufParams1D_t *bufParamsXFFT, FFTLIB_F32 *pSf, FFTLIB_bufParams1D_t *bufParamsSf, FFTLIB_F32 *pY, FFTLIB_bufParams1D_t *bufParamsY, void *pBlock) |
| | This function should be called before the FFTLIB_fft1d_i32f_c32fc_o32fc_kernel function is called. This function takes care of any one-time operations such as setting up the configuration for the streaming engine. More...
|
| |
| FFTLIB_STATUS | FFTLIB_fft1d_i32f_c32fc_o32fc_kernel (FFTLIB_F32 *restrict pX, FFTLIB_bufParams1D_t *bufParamsX, FFTLIB_F32 *restrict pW, FFTLIB_bufParams1D_t *bufParamsW, FFTLIB_F32 *restrict pXFFT, FFTLIB_bufParams1D_t *bufParamsXFFT, FFTLIB_F32 *restrict pSf, FFTLIB_bufParams1D_t *bufParamsSf, FFTLIB_F32 *restrict pY, FFTLIB_bufParams1D_t *bufParamsY, void *pBlock) |
| | This function is the main kernel compute function. More...
|
| |
| FFTLIB_STATUS | FFTLIB_fft1d_i32f_c32fc_o32fc_checkParams (FFTLIB_F32 *pX, FFTLIB_bufParams1D_t *bufParamsX, FFTLIB_F32 *pW, FFTLIB_bufParams1D_t *bufParamsW, FFTLIB_F32 *pY, FFTLIB_bufParams1D_t *bufParamsY, void *pBlock) |
| | This function checks the validity of the parameters passed to FFTLIB_fft1d_i32f_c32fc_o32fc_init and FFTLIB_fft1d_i32f_c32fc_o32fc_kernel functions. More...
|
| |
| void | split_factor_gen (FFTLIB_F32 *pSFactor, int32_t numPoints) |
| | This function generates the split factors required to post process the N/2-point FFT output. More...
|
| |
| void | tw_gen (FFTLIB_F32 *pW, int32_t numPoints) |
| | This function generates twiddle factors required for the N/2-point FFT. More...
|
| |
◆ FFTLIB_FFT1D_I32F_C32FC_O32FC_PBLOCK_SIZE
| #define FFTLIB_FFT1D_I32F_C32FC_O32FC_PBLOCK_SIZE (14 * SE_PARAM_SIZE) |
◆ FFTLIB_fft1d_i32f_c32fc_o32fc_init()
| FFTLIB_STATUS FFTLIB_fft1d_i32f_c32fc_o32fc_init |
( |
FFTLIB_F32 * |
pX, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsX, |
|
|
FFTLIB_F32 * |
pW, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsW, |
|
|
FFTLIB_F32 * |
pXFFT, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsXFFT, |
|
|
FFTLIB_F32 * |
pSf, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsSf, |
|
|
FFTLIB_F32 * |
pY, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsY, |
|
|
void * |
pBlock |
|
) |
| |
This function should be called before the FFTLIB_fft1d_i32f_c32fc_o32fc_kernel function is called. This function takes care of any one-time operations such as setting up the configuration for the streaming engine.
- Parameters
-
| [in] | pX | : Pointer to buffer with input data |
| [in] | bufParamsX | : Pointer to the structure containing dimensional information of input buffer |
| [in] | pW | : Pointer to buffer with twiddle factors |
| [in] | bufParamsW | : Pointer to the structure containing dimensional information of twiddle factor buffer |
| [in] | pXFFT | : Pointer to buffer with input data |
| [in] | bufParamsXFFT | : Pointer to the structure containing dimensional information of of pXFFT buffer |
| [in] | pSf | : Pointer to buffer with split factors |
| [in] | bufParamsSf | : Pointer to the structure containing dimensional information of split factor buffer |
| [out] | pY | : Pointer to buffer with output data |
| [in] | bufParamsY | : Pointer to the structure containing dimensional information of output buffer |
| [out] | pBlock | : Pointer to the buffer that will hold the streaming engine parameters |
- Returns
- Status value indicating success or failure. Refer to FFTLIB_STATUS.
◆ FFTLIB_fft1d_i32f_c32fc_o32fc_kernel()
| FFTLIB_STATUS FFTLIB_fft1d_i32f_c32fc_o32fc_kernel |
( |
FFTLIB_F32 *restrict |
pX, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsX, |
|
|
FFTLIB_F32 *restrict |
pW, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsW, |
|
|
FFTLIB_F32 *restrict |
pXFFT, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsXFFT, |
|
|
FFTLIB_F32 *restrict |
pSf, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsSf, |
|
|
FFTLIB_F32 *restrict |
pY, |
|
|
FFTLIB_bufParams1D_t * |
bufParamsY, |
|
|
void * |
pBlock |
|
) |
| |
This function is the main kernel compute function.
- Parameters
-
| [in] | pX | : Pointer to buffer with input data |
| [in] | bufParamsX | : Pointer to the structure containing dimensional information of input buffer |
| [in] | pW | : Pointer to buffer with twiddle factors |
| [in] | bufParamsW | : Pointer to the structure containing dimensional information of twiddle factor buffer |
| [in] | pXFFT | : Pointer to temp. buffer with FFT of input data |
| [in] | bufParamsXFFT | : Pointer to the structure containing dimensional information of of pXFFT buffer |
| [in] | pSf | : Pointer to buffer with split factors |
| [in] | bufParamsSf | : Pointer to the structure containing dimensional information of split factor buffer |
| [out] | pY | : Pointer to buffer with output data |
| [in] | bufParamsY | : Pointer to the structure containing dimensional information of output buffer |
| [in] | pBlock | : Pointer to the buffer that will hold the streaming engine parameters |
- Returns
- Status value indicating success or failure. Refer to FFTLIB_STATUS.
◆ FFTLIB_fft1d_i32f_c32fc_o32fc_checkParams()
This function checks the validity of the parameters passed to FFTLIB_fft1d_i32f_c32fc_o32fc_init and FFTLIB_fft1d_i32f_c32fc_o32fc_kernel functions.
- Parameters
-
| [in] | pX | : Pointer to buffer with input data |
| [in] | bufParamsX | : Pointer to the structure containing dimensional information of input buffer |
| [in] | pW | : Pointer to buffer with twiddle factors |
| [in] | bufParamsW | : Pointer to the structure containing dimensional information of twiddle factor buffer |
| [out] | pY | : Pointer to buffer with output data |
| [in] | bufParamsY | : Pointer to the structure containing dimensional |
| [in] | pBlock | : Pointer to the buffer that will hold the streaming engine parameters |
- Returns
- Status value indicating success or failure. Refer to FFTLIB_STATUS.
◆ split_factor_gen()
| void split_factor_gen |
( |
FFTLIB_F32 * |
pSFactor, |
|
|
int32_t |
numPoints |
|
) |
| |
This function generates the split factors required to post process the N/2-point FFT output.
- Parameters
-
| [out] | pSFactor | : Pointer to buffer with split factors |
| [in] | numPoints | : FFT size |
◆ tw_gen()
| void tw_gen |
( |
FFTLIB_F32 * |
pW, |
|
|
int32_t |
numPoints |
|
) |
| |
This function generates twiddle factors required for the N/2-point FFT.
- Parameters
-
| [out] | pW | : Pointer to buffer with twiddle factors |
| [in] | numPoints | : FFT size |