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

13.4. [HL-NO-DDR] Quartus® Prime System Console Performance Script

Find the Quartus® Prime System Console performance TCL script in the following location:
$COREDLA_ROOT/runtime/streaming/ed0_streaming_example/system_console_script_perf.tcl

This script measures the throughput of the IP by running 32 inferences and calculating the average performance.

This script is hard-coded to run against a specific CNN graph. To modify this performance script for your design:
  1. Run the functional script in [HL-NO-DDR] Quartus Prime System Console and note the following items from the start of the script output:
    • Expected number of bytes to be transferred by the FPGA AI Suite output streamer
    • Size of the input file in bytes
  2. Update the input length value in the queue_ingress_descriptor{} process of the performance script must be updated with the new input size of the file in bytes.
    master_write_32 $master_path 0x00030028 <input length>
  3. Update the output length value in the queue_egress_descriptor{} process with the expected number of bytes transferred by the output streamer.
    master_write_32 $master_path 0x00030068 <output length>
  4. Update the output length value in the read_last_output{} process with the expected number of bytes transferred by the output streamer.
    master_read_to_file $master_path output0.bin 0x00280000 <output length>