In the Blackbox C/C++ files page, provide the C++ files that form the functional model of the RTL IP. This C++ model is only useful during C++ simulation and C++/RTL co-simulation. Combine the RTL IP with Vitis HLS results to form the output of synthesis.
Figure 1.
Blackbox C/C++
Files Page
- Open the Blackbox C/C++ Files page.
- Add the C++ source and header files that implement the functional model of the RTL IP. Use these files only for C++ simulation and C++/RTL co‑simulation.
- (Optional) Click Edit CFLGAS and specify compiler or linker flags for the C++ functional model.
- Click Next to open the C File Wizard page.
The C File Wizard page lets you specify the values used for the C functional model of the RTL IP.
- Enter the C Function name that represents the RTL IP.
- Enter the C Argument Name for each function argument. Match each argument name to a corresponding RTL port.
- Select the C Argument Type for each function argument.
- Select the C Port Direction for each argument to match the direction of the corresponding RTL port.
- Select the RAM Type for the interface, if applicable.
- Configure the RTL Group Configuration by mapping each C argument to its corresponding RTL signal name.
- Click Next.
Figure 2.
C File Wizard Page