The C model for this core is a product of IP core generation in Vivado. The C model delivered is parameterizable rather than specific to the configuration described by the GUI fields, so all that is required to generate the C model zip file is to generate any configuration of the core. The c model zip might then be found in the cmodel directory of the instance generated (after running Generate Output Product in Vivado) <project_name>/<project_name>.gen/sources_1/ip/<instance name>/cmodel/.
For example, for the FFT IP (v9.1) in a project called myproj and with the default configuration of the FFT IP (v9.1), the lin64 C model can be found in myproj/myproj.gen/sources_1/ip/xfft_0/cmodel/xfft_v9_1_bitacc_cmodel_lin64.zip.
The C model is available if the IP is generated when added as a design source. If IP is added as a part of block design, the C model is not available.
Unzip the FFT C model zip file. This produces the directory structure and files shown in the following table.
File | Description |
---|---|
xfft_v9_1_bitacc_cmodel.h | Model header file |
libIp_xfft_v9_1_bitacc_cmodel.so | Model shared object library (Linux platforms only) |
libIp_xfft_v9_1_bitacc_cmodel.dll | Model dynamically linked library (Windows platforms only) |
libIp_xfft_v9_1_bitacc_cmodel.lib | Model library file for static linking (Windows platforms only) |
libIp_floating_point_v7_0_bitacc_cmodel.so | Floating-point library, used by the C model (Linux platforms only) |
libIp_floating_point_v7_0_bitacc_cmodel.dll | Floating-point library, used by the C model (Windows platforms only) |
libIp_floating_point_v7_0_bitacc_cmodel.lib | Floating-point.lib file for compiling (Windows platforms only) |
libmpfr.so.4 | MPFR library, used by the C model (Linux platforms only) |
libmpfr.dll | MPFR library, used by the C model (Windows platforms only) |
libmpfr.lib | MPFR.lib for compiling (Windows platforms only) |
mpfr.h | MPFR header file, used by the C model |
libgmp.so.11 | MPIR library, used by the C model (Linux platforms only) |
libgmp.dll | MPIR library, used by the C model (Windows platforms only) |
libgmp.lib | MPIR.lib file for compiling (Windows platforms only) |
gmp.h | MPIR header file, used by the C model |
run_bitacc_cmodel.c | Example code calling the C model |
xfft_v9_1_bitacc_mex.cpp | C++ wrapper for MEX function |
make_xfft_v9_1_mex.m | MEX function compilation script |
run_xfft_v9_1_mex.m | Example code calling the MEX function |