hsi::current_sw_design - 2020.2 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
UG1400
Release Date
2020-12-15
Version
2020.2 English

Description

Set or get current software design.

Syntax

current_sw_design [-quiet] [-verbose] [<design>] 

Returns

Software design object, "" if failed.

Usage

Name Description
[-quiet] Ignore command errors
[-verbose] Suspend message limits during command execution
[<design>] design to be set

Categories

Software

Description

Sets the current software design for use with the Hardware Software Interface, or returns the name of the current design in the active project.

The current software design is the target of the Hardware Software Interface software Tcl commands.

You can use the get_sw_designs command to get a list of open software designs in the active project.

Arguments

-quiet – (optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
Note: Any errors encountered on the command line while launching the command are returned. Only errors occurring inside the command are trapped.
-verbose – (optional) Temporarily override any message limits and return all messages from this command.
Note: Message limits can be defined with the set_msg_config command.

<design> - (optional) The name of a software design to set as the current design in the Hardware Software Interface. If a design is not specified, the command returns the current software design of the active project.

Examples

Get the current software design object:

hsi::current_sw_design

OR

Set the specified software design object as the current design:

hsi::current_sw_design sw_design_1