Accessing Source Files in Git Repositories - 2020.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2021-03-22
Version
2020.2 English

When adding source files to your project,Vitis HLS offers an integrated view of GitHub repositories integrated into the tool. You can use this feature to work with your own repositories for managing source code for the project, or for linking to external repositories to download files for your design.

In the lower left corner of the Vitis HLS IDE, you will see the Git Repositories view.

Tip: If this view is not open, you can enable it using the Window > Preference command, and navigating to the Run/Debug > View Management page of the Preferences dialog box.

Clone a repository using the following steps.

  1. Select the Clone a Git Repository command. This opens the Clone Git Repository wizard as shown in the following figure.

  2. In the Source Git Repository page of the wizards, enter the following in for URL: https://github.com/Xilinx/HLS-Tiny-Tutorials/tree/master

    This sets up the Tiny Tutorials repository as described in Tutorials and Examples. Click Next to proceed.

  3. In the Branch Selection page, select the master branch of the repository, or another branch as appropriate. Click Next to proceed.
  4. In the Local Destination page, specify the Destination Directory where the repository will be cloned. Click Next to proceed.

At this time you should see the list of examples from the Tiny Tutorials repository. You can now use these files as source files for your own projects. You can also add an existing local repository to the Vitis HLS GUI, or create a new repository to help you manage projects.