FFT C Model Interface - 9.1 English - PG109

Fast Fourier Transform LogiCORE IP Product Guide (PG109)

Document ID
PG109
Release Date
2024-11-13
Version
9.1 English
Note: An example C++ file, run_bitacc_cmodel.c is included that demonstrates how to call the FFT C model. See this file for examples of using the interface described below.

The C model is used through three functions, declared in the header file xfft_v9_1_bitacc_cmodel.h :

struct xilinx_ip_xfft_v9_1_state* xilinx_ip_xfft_v9_1_create_state
(
 struct xilinx_ip_xfft_v9_1_generics generics
);

 int xilinx_ip_xfft_v9_1_bitacc_simulate
  (
   struct xilinx_ip_xfft_v9_1_state* state,
   struct xilinx_ip_xfft_v9_1_inputs inputs,
   struct xilinx_ip_xfft_v9_1_outputs* outputs
);

void xilinx_ip_xfft_v9_1_destroy_state
(
 struct xilinx_ip_xfft_v9_1_state* state
);

To use the model, first create a state structure using the first function, xilinx_ip_xfft_v9_1_create_state. Then run the model using the second function, xilinx_ip_xfft_v9_1_bitacc_simulate, passing the state structure, an inputs structure, and an outputs structure to the function. Finally, free up memory allocated for the state structure using the third function, xilinx_ip_xfft_v9_1_destroy_state. Each of these functions is described fully in the following sections.