Opens an existing project, or creates a new one if the specified project does not exist.
Important: In Vitis HLS, the
open_projectcommand returns an error when opening a Vivado HLS project, unless the
-resetoption is used.
There can only be one active project in a Vitis HLS session. To close a project:
- Use the
- Open or create another project with the
delete_project command to
completely delete the project directory (removing it from the disk) and any
solutions associated it.
open_project [OPTIONS] <name>
<name>specifies the project name.
Recommended: Use the
- Resets the project by removing any data that already exists in the project.
- Removes any previous project information on design source files, header file search paths, and the top-level function. The associated solution directories and files are kept, but might now have invalid results.
-resetoption when executing Vitis HLS with Tcl scripts. Otherwise, each new
add_filescommand adds additional files to the existing data.
- Upgrade a Vivado HLS project to Vitis HLS.
Opens an existing project named
Project_1, or creates a new one if it does not exist:
Opens a project and removes any existing data:
open_project -reset Project_2