hsi::current_hw_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 hardware design.

Syntax

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

Returns

Current hardware design object, "" if failed.

Usage

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

Categories

Hardware

Description

Defines the current hardware design for use with the Hardware Software Interface, or returns the name of the current design in the active project. The current hardware design is the target of the Hardware Software Interface hardware Tcl commands. You can use the get_hw_designs command to get a list of open hardware 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 hardware design to set as the current design in the session. If a design is not specified, the command returns the current hardware design of the active session.

Examples

Get the current hardware design object:

hsi::current_hw_design

OR

Set the specified hardware design object as the current design:

hsi::current_hw_design hw_design_1