FPGA AI Suite Handbook

ID 863373
Date 11/21/2025
Public
Document Table of Contents

5.2.1.4. Compiling the PCIe* Design Example

Prepackaged bitstreams are available for the PCIe* design example. If the prepackaged bitstreams are installed, they are installed in demo/bitstreams/.

The prepackaged bitstreams are available from the Bitstreams and SD Card Images tab of the FPGA AI Suite download page:

https://www.intel.com/content/www/us/en/software-kit/current/775147.html

To build design example bitstreams, you must have a license that permits bitstream generation for the IP, and have the correct version of Quartus® Prime software installed. Use the dla_build_example_design.py utility to create a bitstream.

For details about this command, the steps it performs, and advanced command options, refer to The dla_build_example_design Command.

Additional Instructions for the OFS for PCIe* Attach Design Example

Before running the dla_build_example_design.py utility, ensure that the OPAE_PLATFORM_ROOT environment variable points to your OFS FPGA interface manager (FIM) pr_build_template directory. If you do not want to compile your own FIM, you can get prebuilt OFS FIM binaries for boards supported by the Agilex™ 7 OFS for PCIe* Attach reference shells on GitHub at the following URL:
https://github.com/OFS/ofs-agx7-pcie-attach/releases/
The FPGA AI Suite OFS for PCIe* Attach design example is based on the OFS 2025.1-1 release of the reference shells.

The dla_build_example_design.py utility generates a wrapper that wraps one or more FPGA AI Suite IP instances along with adapters required to connect to the OFS slim FIM.

Important: The OFS FIM uses FPGA resources as well as the FPGA AI Suite IP instances. Keep the FPGA resource limitations in mind when deciding on how many FPGA AI Suite IP instances to use.

Get an estimate of the FPGA resource required for a single FPGA AI Suite IP instance by using the --fanalyze-area option of the dla_compiler. Use the single instance values to determine the resources required for the number of instances that you want. For more details, see Analyzer Tool Options (dla_compiler Command Options).

To generate an FPGA bitstream for the OFS for PCIe* Attach design example for the Agilex™ 7 FPGA I-Series Development Kit with two FPGA AI Suite IP instances, run the following commands:
cd $COREDLA_WORK

dla_build_example_design.py build \
  --output-dir build_generic_2inst \
  --seed 1 \
  --num-instances 2
  agx7_iseries_ofs_pcie \
  $COREDLA_ROOT/example_architectures/AGX7_Generic.arch \

This command generates a green bitstream (GBS) file called AGX7_Generic.gbs that can be found in the $COREDLA_WORK/build_generics_2inst/ folder.