Connecting two ports
To connect two ports in the model, the steps that must be followed are:
- Choose an object (as shown in );
- Choose ``port.sym'' in the TANGRAM2_OBJECTS ;
- In the ``port.sym'', instantiate the name attribute. This name
must be the same of the type Port of the object (in the declaration
attribute) where the port will be included. If the object has
ports, you must instantiate ``port.sym'';
Obs: Port (in the declaration attribute): port_A;
name (attribute of port.sym): port_A;
- Now, you must attach all to the object. Select all
ports and the corresponding object. In the Special menu, choose ``Ports and
Signals''. Then choose ``Merge Ports with an Object'' ;
- Next, you must transform this object into a symbol. In the Special menu,
choose ``Make Symbolic'' . If you want, you can save
this new symbol in a library. Now you can instantiate this object
port-enable whenever you want;
- Repeat all steps to the other object;
- Now you must connect two ports. In the Special Menu, choose Ports
and Signals. Then, choose Connect two Ports by Wire
. When the mouse pointer is located over a
port, the feature it is highlighted. Click the left mouse button and connect
the wire to another port, and then choose a name of the connection. If you
look at the Initialization attribute of each object, you will
observe that the chosen port has its name set to the connection name.
NOTE: Note that you can create new icons, with ports, for an object and
replace then for an old icon using the steps in B-2.
NOTE: If when you move any object connected by a wire to another
object, and you want the connecting wire to follow the movement, click
the ``constrained move'' icon in the TGIF pallete.
To move the name of a wire
- Selecting the wire;
- Type ALT + M;
- Click the mouse left button and select signal_name;
To change the name of a wire connection:
- The corresponding objects must be symbols;
- Select special - ports and signals - clear signal name for a
port and then click in all ports connected by the wire;
- Make a new wire connection.
NOTE: To save the model, you must UnMake symbolic all objects;
Guilherme Dutra Gonzaga Jaime
2010-10-27