The first function, xilinx_ip_xfft_v9_1_create_state , creates a new state structure for the FFT C model, allocating memory to store the state as required, and returns a pointer to that state structure. The state structure contains all information required to define the FFT being modeled. The function is called with a structure containing the core generics; these are all of the parameters that define the bit-accurate numerical performance of the core, represented as integers, and are shown in Table: FFT C Model Generics .
Note: C_CHANNELS is not a generic used in the C model. The model is always single channel. To model multiple channels in a multichannel FFT, see Modeling Multichannel FFTs .
The xilinx_ip_xfft_v9_1_create_state function fails with an error message and returns a NULL pointer if any generic or combination of generics is invalid.