A newer version of this document is available. Customers should click here to go to the newest version.
1. FPGA AI Suite SoC Design Example User Guide
2. About the SoC Design Example
3. FPGA AI Suite SoC Design Example Quick Start Tutorial
4. FPGA AI Suite SoC Design Example Run Process
5. FPGA AI Suite SoC Design Example Build Process
6. FPGA AI Suite SoC Design Example Quartus® Prime System Architecture
7. FPGA AI Suite Soc Design Example Software Components
8. Streaming-to-Memory (S2M) Streaming Demonstration
A. FPGA AI Suite SoC Design Example User Guide Archives
B. FPGA AI Suite SoC Design Example User Guide Document Revision History
3.1. Initial Setup
3.2. Initializing a Work Directory
3.3. (Optional) Create an SD Card Image (.wic)
3.4. Writing the SD Card Image (.wic) to an SD Card
3.5. Preparing SoC FPGA Development Kits for the FPGA AI Suite SoC Design Example
3.6. Adding Compiled Graphs (AOT files) to the SD Card
3.7. Verifying FPGA Device Drivers
3.8. Running the Demonstration Applications
7.1.1. Yocto Recipe: recipes-core/images/coredla-image.bb
7.1.2. Yocto Recipe: recipes-bsp/u-boot/u-boot-socfpga_%.bbappend
7.1.3. Yocto Recipe: recipes-drivers/msgdma-userio/msgdma-userio.bb
7.1.4. Yocto Recipe: recipes-drivers/uio-devices/uio-devices.bb
7.1.5. Yocto Recipe: recipes-kernel/linux/linux-socfpga-lts_5.15.bbappend
7.1.6. Yocto Recipe: wic
3.6.3. Compiling the Graphs
The precompiled SD card image (.wic) provided with the FPGA AI Suite uses one of the following files as the IP architecture configuration file:
- Agilex™ 7 FPGA I-Series Transceiver-SoC Development Kit
AGX7_Performance.arch
- Arria® 10 SX SoC FPGA Development Kit
A10_Performance.arch
To create the AOT file for the M2M variant (which uses the dla_benchmark utility), run the following command:
cd $COREDLA_WORK/demo/models/public/resnet-50-tf/FP32 dla_compiler \ --march $COREDLA_ROOT/example_architectures/<IP arch config file> \ --network-file ./resnet-50-tf.xml \ --foutput-format=open_vino_hetero \ --o $COREDLA_WORK/demo/RN50_Performance_b1.bin \ --batch-size=1 \ --fanalyze-performance
where <IP arch config file> is one of the IP architecture configuration files listed earlier.
To create the AOT file for the S2M variant (which uses the streaming inference app), run the following command:
cd $COREDLA_WORK/demo/models/public/resnet-50-tf/FP32 dla_compiler \ --march $COREDLA_ROOT/example_architectures/<IP arch config file> \ --network-file ./resnet-50-tf.xml \ --foutput-format=open_vino_hetero \ --o $COREDLA_WORK/demo/RN50_Performance_no_folding.bin \ --batch-size=1 \ --fanalyze-performance \ --ffolding-option=0
where <IP arch config file> is one of the IP architecture configuration files listed earlier.
After running either these commands, the compiled models and demonstration files are in the following locations:
Compiled Models |
$COREDLA_WORK/demo/RN50_Performance_b1.bin $COREDLA_WORK/demo/RN50_Performance_no_folding.bin |
Sample Images |
$COREDLA_WORK/demo/sample_images/ |
Architecture File |
$COREDLA_ROOT/example_architectures/AGX7_Performance.arch or $COREDLA_ROOT/example_architectures/A10_Performance.arch |