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

ID 683129
Date 7/20/2020
Public
Document Table of Contents

3. Getting Started with Platform Configuration

This chapter guides you through the process to generate an AF for the hello_afu sample AFU provided in the Acceleration Stack installation. Successful completion of the steps in this chapter quickly verifies your AFU development environment using a known-good design.

Build the hello_afu sample AFU by invoking the run.sh script from a terminal window as shown in Example 1.

Ensure that you declare the $OPAE_PLATFORM_ROOT variable before you compile the sample AFU. If it is not declared, you can source init_env.sh located in the Acceleration Stack directory. For more details, refer to the Intel Acceleration Stack Quick Start Guide.

Note: This step takes about 30 minutes to complete.

Compile hello_afu Sample AFU

cd $OPAE_PLATFORM_ROOT/hw/samples/hello_afu
afu_synth_setup --source hw/rtl/filelist.txt build_synth
cd build_synth
run.sh
When the shell script completes, it indicates successful generation of the AF:
$OPAE_PLATFORM_ROOT/hw/samples/hello_afu/build_synth/hello_afu.gbs
You can optionally use the helper script clean.sh, to remove the following build output from the Intel® Quartus® Prime PR compilation invoked by run.sh:
  • ./build/*.qdb
  • ./build/qdb
  • ./build/output_files/
  • ./build/*qarlog
  • ./build/*.qdf

Clean up from the PR Compilation (Optional)

cd $OPAE_PLATFORM_ROOT/hw/samples/hello_afu/build_synth
clean.sh

Successfully compiling the hello_afu sample AFU verifies that your environment is setup and ready to begin developing your own custom AFUs.