C++ Model and Header Files - 2021.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2021-12-15
Version
2021.2 English

In the Blackbox C/C++ files page, you provide the C++ files which form the functional model of the RTL IP. This C++ model is only used during C++ simulation and C++/RTL co-simulation. The RTL IP is combined with Vitis HLS results to form the output of synthesis.

Figure 1. Blackbox C/C++ files Page

In this page, you can perform the following:

  • Click Add Files to add files.
  • Click Edit CFLAGS to provide a linker flag to the functional C model.
  • Click Next to proceed.

The C File Wizard page lets you specify the values used for the C functional model of the RTL IP. The fields include:

C Function
Specify the C function name of the RTL IP.
C Argument Name
Specify the name(s) of the function arguments. These should relate to the ports on the IP.
C Argument Type
Specify the data type used for each argument.
C Port Direction
Specify the port direction of the argument, corresponding to the port in the IP.
RAM Type
Specify the RAM type used at the interface.
RTL Group Configuration
Specifies the corresponding RTL signal name.
Figure 2. C File Wizard Page

Click Next to proceed.