Building the MEX Function - 9.1 English

PG109 Fast Fourier Transform LogiCORE IP Product Guide

Document ID
PG109
Release Date
2022-05-04
Version
9.1 English

A C++ wrapper and compilation script are provided to allow the MEX function to be built for your MATLAB software version and operating system.

The FFT C model does not support the LCC compiler shipped with MATLAB software.

Xilinx has verified that GCC version 4.1.1 can successfully be used to build the MEX function on 64-bit Linux.

To build the MEX function:

1. Start the MATLAB software.

2. Change directory to the unzipped FFT C model installation.

3. Use the mex -setup command at the MATLAB software command line to set up the compiler. For more details on the mex command and the arguments it accepts, type help mex at the MATLAB software command line

4. Execute the make_xfft_v9_1_mex.m file in the MATLAB software to build the MEX function.

5. Verify that a file named xfft_v9_1_bitacc_mex.mex<suffix> is now present in the current directory. The <suffix> portion of the file name depends on the platform on which the function was compiled.