Accelerator Functional Unit Developer’s Guide for Intel® FPGA Programmable Acceleration Card

ID 683129
Date 7/20/2020
Document Table of Contents Generate the AF Build Environment

To generate a synthesis build environment to generate an AF, use the afu_synth_setup command as follows:
afu_synth_setup --source \
<path-to-build-configuration-file>/<build-configuration-filename> <build-dir \
For example, the following command sequence generates a synthesis build environment for the hello_afu sample AFU in the build_synth directory:
cd $OPAE_PLATFORM_ROOT/hw/samples/hello_afu

afu_synth_setup --source hw/rtl/filelist.txt build_synth
For a description of the full set of command line options and semantics, see the afu_synth_setup command help:
afu_synth_setup -h

The afu_synth_setup command calls the rtl_src_config command as part of the synthesis build environment generation process.

The afu_synth_setup uses rtl_src_config internally to generate the appropriate fileset. Intel® recommends that you use afu_synth_setup instead of rtl_src_config directly.

You need to regenerate the build environment with the afu_synth_setup command if the platform configuration file has been modified. You also generally need to regenerate the build environment if the build configuration file has been modified except in the case where only the design file set has changed (source file addition, deletion, move). If only the design file set has been modified, reflect those changes in the build configuration file, and use the rtl_src_config command to update the hw/afu.qsf Quartus Prime Pro settings file in the existing build directory:
cd build_synth

rtl_src_config --qsf --rel build \

<reference-to-updated-build-configuration-file> >hw/afu.qsf

If AFU design modifications require that the synthesis build environment be regenerated, you can overwrite an existing synthesis build directory by invoking the afu_synth_setup command with the -f command line option, or you can create a separate build environment by specifying a new target directory.

Modifying existing RTL source files, Platform Designer subsystems or IP variants without changing their location as you develop the AFU does not require that the synthesis build environment be regenerated or that the Intel Quartus Prime Pro settings file be updated.