Launching Vitis HLS
To launch Vitis™ HLS, you must first configure the environment to run the tool as described in Setting Up the Environment. This requires setting the environment variables and paths needed for the tool.
$ vitis_hls
The Vitis HLS GUI opens as shown in the following figure.
Under Project, you have the following options.
- Create Project
- Launch the project setup wizard to create a new project. Refer to Creating a New Vitis HLS Project for more information.
- Open Project
- Navigate to an existing project.
- Clone Examples
- Clone Example projects from GitHub repository to create a local copy for your use. See Tutorials and Examples.
Under Resources, you will find documentation and tutorials to help you work with the tool.
If you have previously launched Vitis HLS to create a project, you can also select from a list of recent projects under Open Recent.
Setting Up the Environment
Vitis HLS is delivered as part of the Vitis unified software platform. For instructions on installing the tool, refer to Installation in Vitis Unified Software Platform Documentation: Application Acceleration Development (UG1393).
#setup XILINX_VITIS and XILINX_VIVADO variables
source <Vitis_install_path>/settings64.sh
Overview of the Vitis HLS IDE
The toolbar menu shown below provides access to the primary commands for using Vitis HLS. The main menu provides access to all available commands for creating and managing designs. Each of the buttons on the toolbar menu has an equivalent command in the main menu.
In the toolbar menu, the buttons are (from left to right):
- Open Project
- Opens a file browser to let you locate and open an HLS project.
- Solution Settings
- Opens the Solution Settings dialog box to modify the settings of the active solution.
- C Synthesis
- Starts C source code to RTL synthesis in Vitis HLS as described in Synthesizing the Code. The
drop-down menu provides a process overview of Vitis HLS, including:
- C Simulation to let you launch C simulation of the open project as described in Verifying Code with C Simulation.
- Co-Simulation to let you launch C/RTL Co-Simulation in Vitis HLS.
- Export RTL to let you export the open project as explained in Exporting the RTL Design.
- Open Analysis Viewer
- Displays various analysis reports when they have been generated during simulation, synthesis, or C/RTL co-simulation.
- Open Report
- Displays the report generated during C synthesis.
- Open Wave Viewer
- Displays the Waveform Viewer when the C/RTL Co-simulation includes the waveform from the Vivado simulator.
In addition, Vitis HLS IDE provides three perspectives. When you select a perspective, the windows automatically adjust to a more suitable layout for the selected task.
- The Debug perspective opens the C debugger.
- The Synthesis perspective is the default perspective and arranges the windows for performing synthesis.
- The Analysis perspective is used after synthesis completes to analyze the design in detail.
Customizing the Vitis HLS IDE Behavior
In some cases the default setting of the Vitis HLS IDE prevents certain information from being shown, or the defaults might not be suitable for your purposes. This section explains how the following features can be customized:
- Console view buffer size.
- Default key behaviors.
Customizing the Console View
The Console view displays the messages issued during operations such as synthesize and verification.
The default buffer size for this windows is 80,000 characters and can be changed, or the limit can be removed, to ensure all messages can be reviewed, by using menu
.Customizing the Key Behavior
The behavior of the Vitis HLS IDE can be customized using the menu and new user-defined tool settings saved.
The default setting for the key combination Ctrl + Tab, is to make the active tab in the Information area toggle between the source code and the header file. This is changed to make the Ctrl + Tab combination make each tab in turn the active tab.
- In Preferences, sub-menu allows Toggle Source/Header in the Command column to be selected and the Ctrl + Tab combination removed by using the Unbind Command button.
- Selecting Next Tab in the Command column, placing the cursor in the Binding field and pressing the Ctrl key and then the Tab key, that causes the operation Ctrl + Tab to be associated with making the next tab active.
A find-next hot key can be implemented by using the Microsoft Visual Studio scheme. This can be performed using the menu Default scheme with the Microsoft Visual Studio scheme.
and replace theReviewing the sub-menus in the Preferences dialog box allows every aspect of the Vitis HLS environment to be customized to ensure the highest levels of productivity.