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]