Intel® FPGA SDK for OpenCL™ Pro Edition: Programming Guide

ID 683846
Date 12/19/2022
Public
Document Table of Contents

7.11. Displaying the Estimated Resource Usage Summary On-Screen (-report)

By default, the Intel® FPGA SDK for OpenCL™ Offline Compiler estimates hardware resource usage during compilation. The offline compiler factors in the usage of external interfaces such as PCIe®, memory controller, and DMA engine in its calculations. During kernel compilation, the offline compiler generates an estimated resource usage summary in the <your_kernel_filename>.log file within the <your_kernel_filename> directory. To review the estimated resource usage summary on-screen, include the -report option in the aoc command.

You can review the estimated resource usage summary without performing a full compilation. To review the summary on-screen prior to generating the hardware configuration file, include the -rtl option in your aoc command.

At a command prompt, invoke the aoc -rtl <your_kernel_filename>.cl -report command.
The offline compiler generates an output similar to the following example:
+--------------------------------------------------------------------+
; Estimated Resource Usage Summary                                   ;
+----------------------------------------+---------------------------+
; Resource                               + Usage                     ;
+----------------------------------------+---------------------------+
; Logic utilization                      ;   35%                     ;
; ALUTs                                  ;   22%                     ;
; Dedicated logic registers              ;   15%                     ;
; Memory blocks                          ;   29%                     ;
; DSP blocks                             ;    0%                     ;
+----------------------------------------+---------------------------;