FPGA AI Suite: Design Examples User Guide

ID 848957
Date 4/22/2025
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

16.6. [HL-JTAG] Performing Inference on the Agilex™ 5 FPGA E-Series 065B Premium Development Kit

After the FPGA device on the Agilex™ 5 FPGA E-Series 065B Premium Development Kit has been programmed, you can perform inference.

For this design example, the FPGA AI Suite runtime needs the locations of the following items before performing inference:
  • Bitstream file location

    The default bitstream path is top.sof located in the $COREDLA_WORK directory.

    You can override this default location by specifying the DLA_SOF_PATH environment variable.

  • Quartus® Prime System Console Tcl script (required to properly claim JTAG services)

    The default script is $COREDLA_WORK/runtime/build_Release/system_console_script.tcl.

    You can override this value by specifying the DLA_SYSCON_SOURCE_FILE environment variable.

Perform inference by running the following command
# Modify MODEL to suit your application

export DLA_SOF_PATH=$COREDLA_WORK/build_agx5_jtag_ed/AGX5_Generic.sof
export MODEL=<path-to-model-XML-file>/resnet50.xml

cd $COREDLA_WORK/runtime/build_Release/dla_benchmark

dla_benchmark \
  -b=1 \
  -m=$MODEL \
  -d=HETERO:FPGA,CPU \
  -i <path-to-image-files> \
  -niter=2 \
  -plugins=../../plugins.xml \
  -arch_file= $COREDLA_ROOT/example_architectures/AGX5_Generic.arch \
  -api=async \
  -perf_est \
  -nireq=1 -dump_output -report_lsu_counters -enable_early_access

For more information about the dla_benchmark application, refer to [PCIE] Performing Accelerated Inference with the dla_benchmark Application.