C Model Example Code - 9.1 English

PG109 Fast Fourier Transform LogiCORE IP Product Guide

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

An example C++ file, run_bitacc_cmodel.c , is provided. This demonstrates the steps required to run the model: set up generics, create a state structure, create inputs and outputs structures, simulate the FFT, use the outputs, and finally destroy the state structure. The code works for all legal combinations of generics; modify the const int declarations of generics at the start of function main(). The code also shows how to model a multichannel FFT; see Modeling Multichannel FFTs .

The example code can be used to test your compilation process. See Compiling with the FFT C Model .