Including a Component as a Complex Element
Do one of the following:
- In the Insert menu, select Component.
- Click the
Insert Component button.
The Select Item window opens. It shows the content of the current database/workspace.
- From the "Database" or "Workspace" list, select the component you want to add.
Click OK to add the component.
The properties editor for the included component opens.
Adjust the properties according to your needs and click OK.
The included component is listed in the Outline tab.
If you are working in the block diagram editor for SWCs, do the following:
- Drag the component to the drawing area to add it to the diagram.
- Connect the pins of the component in the same way as the pins of other diagram items.
Note |
|---|
As an alternative to adding database/workspace items using the menu options described here, you can drag items from the Component Manager or from the Database/Workspace tab in the Tree pane onto the software component editor. |
If you include a component, its instance name is shown in the Outline tab. The plus sign in front of the instance name indicates that the tree structure can be further expanded.
If you include the same component again, a new instance of the component is created and assigned a unique instance name. In a block diagram, the instance name is displayed below the graphical block. In an ESDL runnable or method, you use the instance name to access the component. In the Outline tab, both the instance and class name are displayed, using the following format: <instanceName>::<className>. You can adjust the width of the list to view its entire contents.
See also