Scripting

device get_device_resource_count (Tcl Script API Function)



The device get_device_resource_count function has the following format:

Syntax device get_device_resource_count <family_name> <device_name> <resource_type>
Arguments

<family_name>

The name of the device family to which the <device_name> device belongs.

<device_name>

The name of the device for which you want a resource count.

<resource_type>

The type of device resource you want to count.

Return Value

Code Name Code String Return
TCL_OK 0 <resource count in the given device>
TCL_ERROR 1 device query has failed
TCL_ERROR 1 wrong # args. Usage: device get_device_resource_count <family_name> <device_name> <resource_type>
Description Returns the number of device resources of the specified type in the specified device.


Back to Top

- PLDWorld -

 

Created by chm2web html help conversion utility.