Applying Optimization Directives to Class Objects - 2022.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2022-12-07
Version
2022.2 English

Optimization directives can be also applied to objects or scopes defined in a class. The difference is typically that classes are defined in a header file. Use one of the following actions to open the header file:

  • From the Explorer view in the Vitis HLS GUI, open the Includes folder, double-click the header file to open it in the Code Editor.
  • From within an open source code file, place the cursor over the #include statement for the header file, hold down the Ctrl key, and click the header file to open it in the Code Editor.

The Directives tab is populated with the objects in the header file, and directives can be applied.

CAUTION:
Care should be taken when applying directives as pragmas to a header file. The file might be used by other people or used in other projects. Any directives added as a pragma are applied each time the header file is included in a design.