DSP Builder for Intel® FPGAs (Advanced Blockset): Handbook

ID 683337
Date 9/30/2024
Public
Document Table of Contents

3.4.5.1. Linking to External Libraries

For designs with signals no wider than 64-bits (this includes internal signals), the generated software models require no external libraries. When the model has signals greater than 64-bits, DSP Builder uses arbitrary precision types from the MPIR and MPFR libraries.
DSP Builder includes prebuilt MPIR and MPFR libraries. For more information on MPFR libraries, search for MPFR on Github. The CMake build automatically links with the software models if you:
  • Set DSPBA_ROOTDIR
  • Do not explicitly provide any alternatives.
To provide your own MPIR or MPFR builds:

Procedure

Run
export CC=/path/to/gcc/7.2.0/1/linux64/bin/gcc 
export CXX=/path/to/gcc/7.2.0/1/linux64/bin/g++
cmake -G "Unix Makefiles" -DWRITE_STM_FILES=1 -DMPIR_INC_PATH="path/to/mpir/3.0.0/linux64-
gc72/include" -DMPIR_LIB_PATH="path/to/mpir/3.0.0/linux64-gc72/lib/release" -
DMPFR_INC_PATH="path/to/mpfr/4.0.1/linux64-gc72/include" -
DMPFR_LIB_PATH="path/to/mpfr/4.0.1/linux64-gc72/lib/release" ../