Adding Generics to an Entity Description

  1. Select VHDL Model Editor > Edit Entity > Generic. The Edit Model dialog box opens with the Generic type highlighted.
    Note:

    You can choose the Generic type in the Edit Model dialog box by selecting Generic in the Entity tree. The data entry pane to the right of the tree changes to reflect the selection.

  2. Select the name of the appropriate model from the Model field.
  3. Click to add a new row to the list in the Generic field.
  1. Type a name for the new generic in the Name field.
  2. Select a data type for the new generic from the Type field. This list contains a number of physical, numerical, and logical types.
  3. Type a default value for the generic in the Value field.
  4. Optionally, add a description for the generic in the Description field.
  1. Repeat Step 3 as needed for additional generics.
  2. Click OK when finished to apply your changes and close the dialog box.

The editor generates the VHDL-AMS code for the specified generics and adds it to the model code in the editor window. Syntax is checked and errors displayed in the Message Manager pane.