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]