Using get_objects Programmatically - 2025.2 English - UG900

Vivado Design Suite User Guide: Logic Simulation (UG900)

Document ID
UG900
Release Date
2025-12-17
Version
2025.2 English

When you use the get_objects Tcl command, the command returns the protocol instances as a Tcl list. For more information on the get_objects command, see Finding Protocol Instances Using a Tcl Command. You can store the list in a Tcl variable.

set p [get_objects -r /* -filter {type==proto_inst}]

and use the list with the add_wave Tcl command to add all the protocol instances in the list:

add_wave $p

or a specific protocol instance from the list using the built-in lindex command. See the following example that adds the first protocol instance of the list:

add_wave [lindex $p 0]