7.5.1. Locating Available Services
Locating a Service Path
#We are interested in master services. set service_type "master" #Get all the paths as a list. set master_service_paths [get_service_paths $service_type] #We are interested in the first service in the list. set master_index 0 #The path of the first master. set master_path [lindex $master_service_paths $master_index] #Or condense the above statements into one statement: set master_path [lindex [get_service_paths master] 0]
System Console commands require service paths to identify the service instance you want to access. The paths for different components can change between runs of System Console and between versions. Use the get_service_paths command to obtain service paths.
The string values of service paths change with different releases of the tool. Use the marker_node_info command to get information from the path.
System Console automatically discovers most services at startup. System Console automatically scans for all JTAG and USB-based service instances and retrieves their service paths. System Console does not automatically discover some services, such as TCP/IP. Use add_service to inform System Console about those services.
Use the marker_node_info command to get information about SLD nodes associated with the specified service.
set slave_path [get_service_paths -type altera_avalon_uart.slave slave] array set uart_info [marker_node_info $slave_path] echo $uart_info(full_hpath)
Did you find the information on this page useful?