Displaying Ports and Signals

You can select the graphical display of signals and ports.

This task shows you how to:


Before you begin:
  • The Block Editor workbench must be opened.
  • A port and a signal are defined.

Display Simple Ports and Signals

You can display the name of a signal and select the way of an input port.

  1. By default the name of the signal is not displayed, select [Name] object > Hide/Show Name to make it appear.



  2. To change the direction of the port, select [Name] object > Flip Port.



Display Structured Ports (Structure and Tuple)

You can display or not the elements of a structured port or a tuple.

The example below illustrates a structured port but the scenario is the same for a tuple.

  1. Convert the port into a structure as described below:

    1. Double-click the port to open the Block Properties dialog box.
    2. In the tab Ports, select the Port and click twice Add Port . The port is now a structure of two elements.

    3. Click OK.

    The icon of the port is changed in the 2D editor.

  2. To access the elements of the structure, select [Name] object > Expand Port in the contextual menu of the port.



    Note: Expand Port is also available in the Expand/Collapse toolbar.

  3. The expansion can be done at any level. If Port0 is also a structure, you can expand it.



  4. Click the minus grey dot to collapse the structure.



    Note: Collapse is also available in the Expand/Collapse toolbar.

  5. To hide the elements of the structure in the 2D editor, select [Name] object > Shrink Port in the contextual menu of the port.

    Note: Shrink is also available in the Expand/Collapse toolbar.

Display Structured Signals (Structure and Tuple)

You can display or not the elements of a structured signal or a tuple.

The example below illustrates a structured signal but the scenario is the same for a tuple.

  1. Convert the signal into a structure as described below:

    1. Double-click the signal to open the Block Properties dialog box.
    2. Select the signal and click Add Signal .

    3. Click OK. The signal is converted to a structured signal but the signal representation is not modified.

  2. To access the elements of the structure, select [Name] object > Expand Signal in the contextual menu of the port.



    Note: The signal can be expanded to the first level only. If S0 is a structure, it cannot be expanded.

  3. Select the yellow bar and grab a corner to resize it.



  4. If Enable/Disable Connector Move is selected in the contextual menu, you can position each element of the structure along the yellow bar.



  5. To hide some elements of the structure, do as follows:

    1. Double-click the signal to open the Block Properties dialog box.
    2. Select Hide in the Show/Hide column for the element s1.
    3. click OK.

    The element s1 of the structure is no more displayed.

  6. Select Shrink Signal in the contextual menu to hide the elements of the structured signal in the Block editor.