Using get_objects Programmatically - 2024.2 English

Vivado Design Suite User Guide: Logic Simulation (UG900)

Document ID
UG900
Release Date
2024-11-13
Version
2024.2 English

When you use the get_objects Tcl command as described in Finding Protocol Instances Using a Tcl Command, the command returns the protocol instances as a Tcl list. 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 as shown in the following example that adds the first protocol instance of the list:

add_wave [lindex $p 0]