Accessing Library Components

Alias and Reference refer to the identifier that is used to access the library elements.

  • Alias means that the library element will be accessed using a full path <Library Name>@<Element name>.


  • Reference means that the library element will be accessed without mentioning the library name.

Public and Private refer to the visibility of the library outside the current module.


  • If a library is private that means that the library is not visible outside its current module.

This task shows you how to:


Before you begin:

The workbench used to edit the logic representation should be opened:

Related Topics
Inserting Libraries

Alias / Reference

You can select the parameter Alias/Reference to change the call of a library element.

  1. Add a new library (see Inserting Libraries) in the Simulation Logic tree.

  2. In the Library Definition dialog box, set the Insertion Mode to Private Alias.



  3. Click OK.



  4. Add again the same library .

  5. In the Library Definition dialog box, set the Insertion Mode to Private Reference.



  6. Click OK.



    A library set as a private reference is identified by a yellow icon.

  7. To verify the accessibility of the library elements:



    1. Click New Type in the Module Management toolbar and select the Main block.

    2. Click the column and scroll down the list of available types. All the library types are available but their identifiers are different.

Public / Private

You can use the parameter Public/Private to change the scope of the library outside the current module.

  1. Select New Module in the Module Management toolbar and select the Main block.

    The module is inserted before the block, that means that the module elements can be visible from the block elements.



  2. Select the module and add a library .

    The dialog box Position is displayed.

  3. Select Inside and click OK.

  4. Select an existing library (see Inserting Libraries).

  5. In the Library Definition dialog box, set the Insertion Mode to Private Alias.



  6. Click OK.



  7. Double-click the Instances node in the tree. The Block Properties dialog box appears.

  8. Select Add Block and review the list of available blocks. aBlock is not listed. An element of a private library is not visible outside its module.

  9. To change the type (Public/Private) double-click the library in the specification tree.

    The Module Properties dialog box appears.

  10. Select the Public Library check box, and, if needed, change the library name.

  11. Click OK.

  12. Repeat steps 9-10.

    aBlock is now visible in the list of the block.