Editing an Architecture Declaration

To edit an architecture declaration:

  1. Select the desired object (Terminal, Quantity, Signal or Constant) from the VHDL Model Editor > Edit Architecture menu. The Edit Model dialog box opens with the selected object type highlighted.
    Note:

    You can choose an object in the Edit Model dialog box by selecting the desired item in the Architecture 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. Select the name of the architecture you want to edit from the list in the Architecture field.
  4. Click to add a new row to the list in the object field. If this is the first time you have visited this field for a new model, the list will be empty.
  1. Type a name for the new object in the Name field.
  2. For Terminal objects:
    • Select one of the natures supported by VHDL-AMS from the Nature field.
    • Optionally, add a description for the terminal in the Description field.
  3. For Quantity objects:
    • Select a Category (free, across, or through) for the new quantity.
    • Select one of the types (for example, voltage, reluctance, current) available in the Type field.
    • If applicable, type a default value for the quantity in the Value field.
    • If the Category is across or through, select the appropriate From Terminal and To Terminal to be used by the quantity object.
    • Optionally, add a description for the quantity in the Description field.
  4. For Signal objects:
    • Select one of the types (for example, voltage, reluctance, bit) available in the Type field.
    • If applicable, type a default value for the signal in the Value field.
    • Optionally, add a description for the signal in the Description field.
  1. For Constant objects:
  1. Repeat Steps 1 through 4 as needed for additional objects.
  2. Click OK when finished to close the dialog box.

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