Accessing Source Files in Git Repositories - 2023.1 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2023-07-17
Version
2023.1 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.

At the bottom of the Vitis HLS GUI, where the Console view is located, you will see the Git Repositories view.

Tip: If this view is not open, you can enable it using the Window > Show View > Git Repository menu command.

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/Vitis-HLS-Introductory-Examples

    This sets up the Vitis-HLS-Introductory-Examples 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. Select Finish to proceed.

At this time you should see the Vitis-HLS-Introductory-Examples repository in the Git Repositories view. 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.