Querying Design Structure and Design Details

Case Sensitivity and Slashes

 

The following commands are case sensitive. Use forward slashes to indicate pathes.

   

Parameter Notation Syntax

 

The notation used below for describing the parameters of individual commands is based on the Wirth Syntax Notation (WSN) :

  • Parameter names in curly brackets denote that you can specify no value, one value, or multiple values for this parameter in the command line.
  • Parameter names in square brackets denote optional parameters.
   

Command

Parameters

Description

GetDesignProperty

 

PropertyName

 

Command for retrieving design properties. You can use the following values for PropertyName:

  • ProjectName (name of the project)
  • FileName (path to and name of the currently loaded design file *.va)
  • HardwarePlatform -> library name of target hardware platform (for example, mE4VQ4-GE)
  • Version (version of the design)
  • Description (description of the project)
  • Loaded -> design is loaded (1 or 0)

Design property Loaded can be requested while no design is loaded at all. This doesn’t cause an error message. Requesting any other design property while no design is loaded causes an error message.

GetDesignClock

 

Command returns the basic clock frequency of the FPGA (in MHz).

GetProcesses

 

Command returns a list with the names of all processes of the design.

GetSubModules

HierarchyName

Command returns a list with the names of the modules that are located in the requested hierarchy HierarchyName.

For each sub-module, the full hierarchical name is listed.

GetParentHier

 

FullElementName

 

Command returns the hierarchical name (FullModuleName) of the parent of stated element FullElementName, that is, the FullModuleName of the hierarchical element in which element FullElementName is located.

FullElementName can be a module, a simulation module, or a comment box.

GetModules

 

Scope

Specifier

{ModuleList}

 

Command for filtering specific modules in the design. The command returns a list with modules that have the characteristic you specify via Scope and Specifier. The list contains the FullModuleName for all found modules (path to modules including the individual module name). If you don’t want to search design-wide, but only in a specific set of modules, you can specify these modules in ModuleList (via their FullModuleName).

Scope can have the following values:

  • pattern: Use Specifier as a wildcard expression for FullModuleName. If you state „*“ as specifier, all modules of the design are returned.
  • flat: Use Specifier as a wildcard expression for the FullModuleName of modules (like with pattern). Hierarchical Boxes will not be returned.
  • ordered: Returns all modules of the design. Use Specifier to define a sorting pattern. You have the following options:
    • path: modules are sorted by their position in the design graph (i.e., in the order of the data stream as it runs through the modules during simulation).
    • name: modules are sorted alphabetically by their FullModuleName.
  • operatorType -> Use Specifier to define the operator type of the modules you are looking for („O“, „M“, „P“, „O+P“, „M+P“, „unknown“).
  • operator -> For getting all instances of a specific operator. Use Specifier to name the operator name (for example, „NOP“).
  • libraryType -> Use Specifier to define a specific library type. All modules in the design that are instances of operators contained in libraries of this type are returned. The following values are allowed: operator, user, and custom (see also GetModuleProperty).
  • library: Use Specifier to define a specific library. All modules that are instances of operators of this library are returned.
  • version: Use Specifier to define a specific operator version. All modules that are instances of operators of this version are returned.

GetModulePorts

 

FullModuleName

[Scope]

 

Command returns a list with the names of all ports of the specified module. You can use the optional parameter Scope to filter for specific ports:

  • inputs: only the input ports are returned
  • outputs: only the output ports are returned
  • all: all ports of the module are returned (default)

GetModulePortProperty

 

FullModuleName

PortName

Property

 

Command for retrieving the properties of a module port. The following values for Property are available:

  • isConnected: Returns 1 if port is connected; otherwise 0.
  • position: Returns position of specified port in the diagram (design window) as a list (xPos, yPos). If PortName specifies an inner H box node (for example, „INBOUND#I000“), the position of this node within the H box design window is returned.

GetModuleProperty

 

FullModuleName

Property

 

Command returns the properties of a module.

The following values for Property are available:

  • status: returns 0 if module is not in error status; otherwise returns error code.
  • operator: returns name of operator the module is an instance of (for example, BRANCH)
  • operatorType: returns operator type (O, P, M, unknown). (“Unknown” is returned for H boxes and user library modules.)
  • libraryType: returns the library type of the library the operator stems from. One of the following values is returned: operator, user, custom
  • version: returns the version of the operator the module is an instance of.
  • type: returns the module type. One of the following values is returned: process, hierBox (HierarchicalBox), operator, user, custom
  • isHierModule: returns 1 if the stated module is capable of containing submodules; returns 0 if the stated module cannot have sub-modules.
  • isProtected: returns 1 if the module is an instance of a protected library element.
  • library: returns the name of the library the operator stems from.
  • position: returns position in diagram (design window) as a list (xPos, yPos).
  • resources: returns a list of pairs (ResourceName,ResourceMapping)
  • name: returns the module name.

GetModuleParams

 

FullModuleName

{ParameterNames}

 

Returns a list of module parameters and their current values.

If you want to get all parameters of the module together with the currently set values, use command GetModuleParams only with parameter FullModuleName.

Example:

If you want to get only the values of specific parameters, you can optionally limit the output to the parameters {ParameterNames}. The order of the output corresponds to the order of the parameter names you state in {ParameterNames}.

Example:

GetModuleParamProperty

 

FullModuleName

ParameterName

Property

 

Command for retrieving parameter properties.

For Property, the following values are available:

  • status: returns 0 if parameter is not in error status; otherwise returns error code.
  • type: returns parameter type („int“, “intField“, „float“, “floatField“, „enum“, or „string“)
  • access: returns direction of access („write“ or „read“)
  • unit: returns unit of parameter
  • range: For integer and float data types, the command returns the value range as a list containing three entries (Min, Max, Step). For enum parameters, it returns a list of pairs of enum names and enum values.
  • size: returns the size of the field. Only for IntField and FloatField parameters.
  • isDynamic: Returns 1 if the requested parameter is dynamic; otherwise returns 0.
  • isStatic: Returns 1 if the requested parameter is static; otherwise returns 0.
  • isEditable: Returns 1 if the requested parameter can be edited; otherwise returns 0.

GetLinkParams

 

FullModuleName

PortName

{ParameterNames}

 

Returns a list of link parameter names and the currently set values for a specific link. The link is identified via the connection node (port) of a module. The returned list states value pairs <ParameterName><Value> that correspond to the pairs you would use to set link parameters via SetLinkParam.

If you want to get all parameters of the link together with the currently set values, use command GetLinkParams only with parameters FullModuleName and PortName.

If you want to get only the values of specific parameters, you can optionally limit the output to the parameters {ParameterNames}. The order of the output corresponds to the order of the parameter names you state in {ParameterNames}.

Example:

GetLinkParamProperty

 

FullModuleName

PortName

ParameterName

Property

Command for retrieving the properties of a specific link parameter.

The following values for Property are possible:

  • status: returns 0 if the parameter is not in error condition; otherwise returns error code.
  • isEditable: returns 1 if parameter value can be changed; otherwise returns 0
  • range:
    • For integer data types, the command returns the value range either as a list containing three elements (Min, Max, Step), or as a list containing all allowed values. You distinguish the two kinds of lists as follows: The Min-Max-Step list contains 3 list elements; the third list element is smaller or equal to the second list element. A list stating all allowed values starts with the smalles value and ends with the highest value.
      If only one value is allowed, the value is returned in format {Value Value 1}, for example, { 4 4 1} for min=4, max=4, step=1.
    • For enum parameters, the command returns a list of pairs of enum names and enum values.

GetLinkProperty

 

FullModuleName

PortName

Property

Returns a specific property of a specific link. If, with FullModuleName and PortName, you address the port of a H box, the command works as long as there is a link to or from this port within the H box.

The following options for Property are available:

  • status: returns 0 if everything is fine (i.e., if the parameter settings of the link source and the link target match, and the DRC doesn’t find an error); otherwise returns error code.
  • from: Returns the starting point of the link. The starting point can be either the out port of a foregoing module, or an inner H box node (INBOUND#...) the link is connected to. The command returns a list containing the two values FullModulenname and PortName.
  • to: Returns the end point of the link. The end point can be either the in port of a following module, or an inner H box node (OUTBOUND#...) the link is connected to. The command returns a list containing the two values FullModulenname and PortName.
  • source: Returns a list containing the value pairs FullModulenname and PortName for all foregoing links up to the source of the link. The link chain is followed up backwards through the hierarchies, from the module you state in FullModuleName back to the starting point. The order of the elements within the returned list corresponds to the backward-course of the lookup (the source module is the last entry in the list).
  • dest: Returns a list containing the value pairs FullModulenname and PortName for all following links up to the target module of the link. The link chain proceeds forwards through the hierarchies, from the module you state in FullModuleName up to the end (sink). The order of the elements within the returned list corresponds to the forward-course of the lookup – the target module (destination) is the last entry in the list.
  • hasConnectedSimModule: Returns 1 if a simulation module is connected to the link; returns 0 if no simulation module is connected.
  • connectedSimModule: Returns the hierarchical name of a connected simulation module.

GetSimModules

 

Type

Scope

Specifier

 

Command for retrieving the FullModuleName of simulation sources (Type = source) or simulation probes (Type = probe) within a design. The command returns a list with simulation modules that have the characteristic you specify via Scope and Specifier. The list contains the FullModuleNames (hierarchical pathes to the indivudal simulation modules including the individual pathes).

Scope provides the following options:

  • hierarchy: Define a specific hierarchy in Specifier.
  • pattern: Use Specifier as a wildcard expression for FullModuleNames of simulation modules. If you state „*“ as specifier, all source or probe simulation modules of the design are returned.

GetCommentBoxes

 

Scope

Specifier

 

Command for retrieving comment boxes in a design. The command returns a list with all comment boxes that have the characteristic you specify via Scope and Specifier. The list contains the FullElmentNames (hierarchical names including box name).

Scope provides the following options:

  • hierarchy: Define a specific hierarchy (via HierLevelPath) in Specifier.
  • pattern: Use Specifier as a wildcard expression for the FullElementName of comment boxes. If you state „*“ as specifier, all comment boxes in the design are returned.

 

GetCommentProperty

 

FullBoxName

Property

 

Command for retrieving the properties of a comment box.

FullBoxName has the following syntax:

<HierLevelPath>/<BoxName>.

  • HierLevelPath you use to specify the path to the hierarchical level in the design where the comment box is located. Start on process level. Use forward slashes.
  • BoxName you use to specify the individual name of the comment box.

Property has the following options:

  • content: The content of the comment box is returned.
  • position: the X and Y position of the left upper corner of the comment box in the design window are returned.

Box name information: To get the name of the comment box you want to get details about, you can use TCL to query which boxes are placed in a design, see TCL example QueryDesign.tcl in your VisualApplets installation folder (e.g., C:\Program Files\SiliconSoftware\VisualApplets\Examples\AdvancedVAFunctions\Tcl Scripting\QueryDesign.tcl)