Developing a Design

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

CreateProcess

 

Command for creating a new process. VisualApplets automatically numbers new processes.

DeleteProcess

ProcName

 

Command for deleting a process of the name ProcName.

Example: DeleteProcess Process1

CreateModule

OperatorType

FullModuleName

[ InPortMultiplicity

[ OutPortMultiplicity

{NamedPortMultiplicity}

] ]

xPos

yPos

Command for creating an instance (module) of an operator OperatorType, and for positioning the module in the design window.

In OperatorType, simply state the name of the specific operator you want to create an instance from. You do not need to specify the library the operator belongs to.

With FullModuleName you define the module's hierarchical position within the design.

FullModuleName has the following syntax:

<HierLevelPath>/<ModuleName>

  • HierLevelPath you use to define the path to a specific hierarchical level in the design. Start on process level. Use forward slashes.
  • ModuleName you use for specifying the name you want the module to have. Alternatively, you can leave ModuleName empty. In this case, you need to terminate FullModuleName with a slash; the module will be named automatically.

The position of the module in the design window you define via parameters xPos and yPos.

Example:

CreateModule BaseGrayCamera Process0/cam 100 100

The return value of function CreateModule is FullModuleName (i.e., the full hierarchical path to the module including the module name).

Using the optional parameters InPortMultiplicity and OutPortMultiplicity:

Many operators are instantiated with a fix number of ports. On the other hand, there are operators with a variable number of ports. During instantiation of an operator with a variable number of ports, you can define how many ports the module will have.

For example, when instanciating operator BRANCH, you can define how many output ports the instance will have:

Thus, the number of output ports O is variable. Ports that have a variable number of ports we call multiports.

Multiports are identified via their base name. In BRANCH, for example, the base name of the output ports is “O”. Via an index that is added to the base name, a specific port can be identified and addressed:

When using command CreateModule, you can use the optional value pair InPortMultiplicity and OutPortMultiplicity to specify the multiplicity of the vector inputs and the vector outputs of a module. This way, you can define the number of ports in instances (modules) of operators that have a variable number of ports, like, for example, operators BRANCH or ADD.

Example:

CreateModule BRANCH Process0/branchx 1 3 500 500

Defaults: If you don’t use InPortMultiplicity and OutPortMultiplicity, or of you set them to 0, the module is created with the default number of inports and outports (i.e., setting one or both of the two values to 0 does not result in zero inports or zero outports.). How many ports are created per default depends on the operator type.

Examples:

CreateModule BRANCH Process0/branch 500 500

The default number of ports is created, 1 input and 2 output ports.

 

CreateModule BRANCH Process0/branch 0 0 500 500

The default number of ports is created, 1 input and 2 output ports.

 

CreateModule BRANCH Process0/branch3 0 3 500 500

1 input (default) and 3 output ports are created.

 

CreateModule BRANCH Process0/branchx 3 3 500 500

1 input and 3 output ports are created. The definition of 3 input ports is ignored, as the operator type allows only 1 input.

 

CreateModule BRANCH Process0/branch4 0 4 500 500

Optional parameter NamedPortMultiplicity: For operators that have various kinds of multiports (i.e., operators that have other multiports than input I or output O), you can use parameter NamedPortMultiplicity to specify the base name of the multiport you want to have on the module, and to specify the multiplicity (number) of this multiport. The format of NamedPortMultiplicity is MultiportBaseName:Number. You can use NamedPortMultiplicity multiple times in one command line. Using NamedPortMultiplicity overrules anything you may have stated in parameters InPortMultiplicity or OutPortMultiplicity.

Example:

CreateModule BRANCH Process0/branch 0 0 O:3 100 100

The example command translates as follows: Create an instance (module) of operator BRANCH. Place it in process 0 on top level and give it the name branch. Provide three output ports (multiport base name O for output) and position the module in the design window at position y=100 pixel and x= 100 pixel.

For MultiportBaseName, use the base name of the multiport as you find it on the VA GUI. The MultiportBaseName name is displayed in the dialog that appears when instantiating an operator that has a varying number of ports. The multiport base name is the short name of the multiport (displayed in parantheses in the GUI).

The multiport base name here is I.

You also find the multiport base name in the mouse over information to a port:

Multiport base name here is I (followed by the index identifying the individual instances of multiport I on the module).

InstUserLibOperator

LibName

OperatorName

FullModuleName

xPos

yPos

Command for instantiating a user library element. Specify the user library via LibName, the name of the element (operator) in the library via OperatorName, the name you want to give the module in your design and where you want to place the module in the hierarchy via FullModuleName, as well as the position of the module in the design window (xPos, YPos).

 

InstCustomLibOperator

 

LibName

OperatorName

FullModuleName

xPos

yPos

Command for instantiating a custom library element. Specify the custom library via LibName, the name of the element (operator) in the library via OperatorName, the name you want to give the module in your design and where you want to place the module in the hierarchy via FullModuleName, as well as the position of the module in the design window (xPos, yPos).

 

DeleteModule

 

FullModuleName

 

Command for deleting module FullModuleName.

FullModuleName has the following syntax:

<HierLevelPath>/<ModuleName>

  • HierLevelPath you use to specify the path to the hierarchical level in the design where the module is located. Start on process level. Use forward slashes.
  • ModuleName you use to specify the name of the module you want to delete.

Simulation modules cannot be deleted via this command. For deleting simulation modules, use command DeleteSimModule.

ConnectModules

 

FromModule

FromModuleOutputPort

ToModule

ToModulePort

[ x1 [y2 x3] ]

Command for connecting module ports.

FromModule and ToModule are hierarchical names (syntax: <HierLevelPath>/<ModuleName>.

Inner H box nodes (inner nodes for connecting HierarchicalBox ports) are identified via the prefixes INBOUND# or OUTBOUND#.

Example: The two inbound nodes of the hierarchical box in the figure below need to be addressed by INBOUND#I000 and INBOUND#I001.

Via the optional parameters x1, y2, and x3 you can define the geometry of the connecting polygon: horizontal line from FromModuleOutputPort to X position x1, vertical line to Y position y2, horizontal line to X position x3, vertical line to height of ToModulePort, horizontal line to ToModulePort.

DisconnectModules

 

FullModuleName

ModulePort

Command for deleting the link that is connected to port ModulePort of module FullModuleName.

Example:

DisconnectModules Process0/Cam1 O

CreateComment

 

FullBoxName

Text

xPos

yPos

Command for creating a comment box.

The syntax of FullBoxName is <HierLevelPath>/<BoxName>.

  • HierLevelPath you use to define the path to a specific hierarchical level in the design. Start on process level. Use forward slashes.
  • BoxName you use for specifying the name you want the comment box to have. Alternatively, you can leave BoxName empty. In this case, you need to terminate FullBoxName with a slash; the module will be named automatically.

Example:

CreateComment Process0/MyComment "This is my comment." 400 400

For the comment box content Text you can use Unicode characters. Don’t forget to set the comment in quotes. If you use characters that are not part of ASCII, use the according TCL syntax to represent Unicode, for example:

[encoding convertfrom utf-8 "A-Umlaut: \xc3\x84"]

The position of the comment box in the design window you define via parameters xPos and yPos.

The return value of function CreateComment is FullBoxName (the full hierarchical path to the comment box including the name of the comment box).

DeleteComment

 

FullBoxName

 

Command for deleting comment box FullBoxName.

The syntax of FullBoxName is <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 name of the comment box you want to delete.

Example:

DeleteComment Process0/MyComment

Box name information: To get the name of the comment box you want to delete, 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)