Editing an Architecture Declaration
To edit an architecture declaration:
- 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.
- Select the name of the appropriate model from the Model field.
- Select the name of the architecture you want to edit from the list in the Architecture field.
- 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.
- Type a name for the new object in the Name field.
- 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.
- 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.
- 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.
- For Constant objects:
- Select one of the types (for example, voltage, inductance, 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.
- Repeat Steps 1 through 4 as needed for additional objects.
- 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.