Creating a Class or Module in ESDL Code

  1. In the Component Manager, select a folder for the new component.
  2. In the Insert menu, point to Class or Module and select ESDL.

    Or

  3. Use the Insert Class – * or Insert Module – * buttons.

    1. Use one of the arrow buttons to select the type ESDL.
    2. Click Insert Class – ESDL or Insert Module – ESDL.

    A new component is created in the selected folder.

  4. Type in a name for the component and press <Enter>.
  5. Do one of the following:

    • In the Edit menu, select Open Component.
    • Press <Enter>.
    • In the "Database" or "Workspace" list, double-click the component name.

    The ESDL editor for the new component opens.

As in the block diagram editor, components specified in ESDL code have methods or processes, which in turn can contain elements. The same kinds of elements are available, the interface and the methods are defined in the same way. The diagrams feature is also available, but it only serves to structure the methods of the components into groups of public and private methods. The ESDL code of the class is displayed one method/process at a time in the code pane of the ESDL editor.

See also

Block Diagram Editor