Compiling - 6.0 English - PG104

Complex Multiplier LogiCORE IP Product Guide (PG104)

Document ID
PG104
Release Date
2024-11-26
Version
6.0 English

Compilation of user code requires access to the cmpy_v6_0_bitacc_cmodel.h header file and the header file of the MPIR dependent library, gmp.h. The header files should be copied to a location where they are available to the compiler. Depending on the location chosen, the include search path of the compiler might need to be modified.

The cmpy_v6_0_bitacc_cmodel.h header file must be included first, because it defines some symbols that are used in the MPIR header file. The cmpy_v6_0_bitacc_cmodel.h header file includes the MPIR header file, so it does not need to be explicitly included in source code that uses the C model. When compiling on Windows, the symbol NT must be defined, either by a compiler option, or in user source code before the cmpy_v6_0_bitacc_cmodel.h header file is included.