Connecting two ports

To connect two ports in the model, the steps that must be followed are:

  1. Choose an object (as shown in [*]);
  2. Choose ``port.sym'' in the TANGRAM2_OBJECTS ;
  3. 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 $n$ ports, you must instantiate $n$ ``port.sym'';
    Obs: Port (in the declaration attribute): port_A;
    name (attribute of port.sym): port_A;
  4. 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'' ;
  5. 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;
  6. Repeat all steps to the other object;
  7. 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

  1. Selecting the wire;
  2. Type $<$ALT$>$ + $<$M$>$;
  3. Click the mouse left button and select signal_name;
To change the name of a wire connection:
  1. The corresponding objects must be symbols;
  2. Select special - ports and signals - clear signal name for a port and then click in all ports connected by the wire;
  3. Make a new wire connection.
NOTE: To save the model, you must UnMake symbolic all objects;

Guilherme Dutra Gonzaga Jaime 2010-10-27