The Vitis Unified IDE provides an intuitive graphical interface for assembling and managing your embedded software projects. With the Vitis Unified IDE, you can create and build all Vitis components, including Platforms, Applications, HLS Designs and AI Engines. Alternatively, the Python API offers a scriptable approach, enabling you to create and manage Vitis components programmatically.
Vitis CLI Commands
Executing Python APIs
To execute Python APIs, first establish the connection between the server and the client. You can execute Python APIs in command line mode or as a Python script. The AMD Vitis™ Unified IDE supports two ways to run Python APIs:
- Run Python API in CLI (Command-Line Interface) mode: Executing
the Python API in CLI mode is supported in interactive mode only. For more
details, see
Vitis Interactive
Python Shell in the Vitis Reference Guide (UG1702).
vitis -i (This opens the Vitis interactive shell) - Run Python API in a Python Script. The Vitis Unified IDE supports executing Python script in batch mode
and in interactive mode.
In batch mode:
Some Python APIs are helpful in managing client life cycles, create Vitis workspaces and manage Vitis project flows. Refer the Vitis API CLI documentation for more details.In batch mode: $ vitis -s <.py> In Interactive mode: $ vitis -i (This openes the Python interactive shell) vitis [1]: run <.py>Table 1. Python APIs: Manage Client Python API Description Example create_client Creates a client instance. client=vitis.create.client() dispose Closes all client connections and terminates the connection to the server. client.dispose() exit Closes the session. exit() After creating and building the components and system project, you can open the workspace using the command below:vitis -w <workspace_path>If you built or created components through Python APIs, these components exhibit status
donewhen you open them.
All Python APIs Supported by Vitis
Python examples are in <vitis_installation_path>/cli/examples