Visible to Intel only — GUID: axu1678993612435
Ixiasoft
Visible to Intel only — GUID: axu1678993612435
Ixiasoft
5.1.1. Quartus® Prime Build Flow
All FPGA AI Suite design examples are launched at the command line by running the dla_build_example_design.py script.
After the build script is invoked, it generates an FPGA AI Suite IP from the provided architecture file, creates an Quartus® Prime build directory, builds the Quartus® Prime project, and produces a bitstream.
The script has several command-line options to select the SoC design example variants. For details about the build script command options, refer to Build Script Options.
Before launching the script, an architecture file is required. The FPGA AI Suite example architectures are located in directory $COREDLA_ROOT/example_architectures/.
dla_build_example_design.py \ -ed <variant> \ -a <arch-file> \ -n 1 \ --build-dir <build directory> \ --build \ --output-dir <output directory>
- The -ed option selects the SoC design example variant to be built. This option is case sensitive. The FPGA AI Suite SoC design examples comes as the following variants:
Table 2. SoC Design Example Variant Variant setting
Description
4_AGX7_M2M Builds a memory-to-memory (M2M) design for the Agilex™ 7 FPGA I-Series Transceiver-SoC Development Kit 4_AGX7_S2M Builds a streaming-to-memory (S2M) design for the Agilex™ 7 FPGA I-Series Transceiver-SoC Development Kit 4_A10_M2M Builds a memory-to-memory (M2M) design for the Arria® 10 SX SoC FPGA Development Kit (DK-SOC-10AS066S) 4_A10_S2M Builds a streaming-to-memory (S2M) design for the Arria® 10 SX SoC FPGA Development Kit (DK-SOC-10AS066S) - The -a option selects the architecture file.
- The -n 1 option is the only legal value for this option when you build the SoC design example.
- The --build-dir option specifies the Quartus® Prime build directory path.
- The --build option directs the script to call Quartus® Prime and create the bitstreams. The create_hps_image.sh script uses these bitstreams when creating the SD card image.
- The --output-dir option specified the destination directory folder of the build output.
For a complete list of the build script options, refer to "Build Script Options" in PCIe-based Design Example User Guide .
dla_build_example_design.py \ -ed 4_A10_S2M \ -n 1 \ -a $COREDLA_ROOT/example_architectures/A10_Performance.arch \ --build \ --build-dir $COREDLA_WORK/a10_perf_bitstream \ --output-dir $COREDLA_WORK/a10_perf_bitstream
After the design is built, the output products (.sof or .rbf files) must be combined with the SoC Linux system in order to be used. This is done in one of the steps in the create_hps_image.sh script.
Unlike non-SoC FPGA flows, the .sof file is not downloaded to the board via JTAG.
Do not attempt to download the .sof file over JTAG because downloading the file over JTAG does not result in a working system. Also, if you attempt to reprogram a running Linux system with a new .sof file, the Linux system crashes and the reprogramming results in an unpredictable outcome.
The FPGA device is programmed by booting the Linux system on the SoC via the SD card. For details about combining the build .sof file with the SD card image to create a functional solution, refer to Building the Bootable SD Card Image (.wic).