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) :
|
|
Command |
Parameters |
Description |
|---|---|---|
|
Command for creating a new process. VisualApplets automatically numbers new processes. |
||
|
ProcName
|
Command for deleting a process of the name Example:
|
|
|
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>
The position of the module in the design window you define via parameters xPos and yPos. Example:
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:
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:
The default number of ports is created, 1 input and 2 output ports.
The default number of ports is created, 1 input and 2 output ports.
1 input (default) and 3 output ports are created.
1 input and 3 output ports are created. The definition of 3 input ports is ignored, as the operator type allows only 1 input.
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:
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). |
|
|
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).
|
|
|
|
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).
|
|
|
FullModuleName
|
Command for deleting module FullModuleName. FullModuleName has the following syntax: <HierLevelPath>/<ModuleName>
Simulation modules cannot be deleted via this command. For deleting simulation modules, use command DeleteSimModule. |
|
|
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.
|
|
|
FullModuleName ModulePort |
Command for deleting the link that is connected to port ModulePort of module FullModuleName. Example:
|
|
|
FullBoxName Text xPos yPos |
Command for creating a comment box. The syntax of FullBoxName is <HierLevelPath>/<BoxName>.
Example:
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:
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). |
|
|
FullBoxName
|
Command for deleting comment box FullBoxName. The syntax of FullBoxName is <HierLevelPath>/<BoxName>.
Example:
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) |





