Using the Compile & Update Project Command
The Compile & Update Project menu item is common to the C-Model, VHDL-AMS, SPICE, and SML model editors. For all model types Update Project enables:
- Project definitions to be updated.
- New or revised model definitions to be imported (Import command).
- Creation of components for the models and their
addition to the current project.
Note:
The VHDL Package Editor also has an Update Project command, which enables creation of the package and its addition to the current project.
To update project definitions from the model editor:
- Select model_typeModel Editor > Compile & Update Project.
The Update Componentsdialog box appears.
The Models pane lists the name of the model. The Action field indicates Create or Update, and a check box to enable creating or importing the model.
- The Components
pane lists all components in the current project that
use the model being updated. This list includes any component
that has its origin in another
library name. The Symbol fields
are populated with the names of the symbols used by these components.
To select SDB Outputs or Non-Conservative Pins, it is necessary
to check Import Component.
Note:
If you are updating the model text for the first time (creating a new component), the components appear with the same name as the model name, and the symbol will be created.
Select the Import check box next to each model for which you want to create a component.
Note:If you do not create a component, the model source files will be compiled – no component is created.
On the SDB tab, select the quantities and signals you want to set as default outputs for each created component.
- On the Non-Conservative Pins tab, select the non-conservative quantities and signals for each component for which you want pins included on the component symbol.
- Optionally, click the component’s Symbols button and choose Modify Symbol Selection. The symbol
Modify Selection dialog box appears. Select an SVG graphic
symbol for the new component from the All
available symbols list. You can also click Select From Libraries to choose
a symbol from another library.
Note:
You can modify the symbol after import using the Symbol Editor.
- Click OK
to create or update the components and associated symbols for the imported
model.
Note:
- In general, if you are updating existing components, the component symbols are updated to reflect the addition or removal of pins based on your selections on the Non-Conservative Pins tab.
- If a symbol for a component you are updating is being used by some other component that uses a different model, a new clone of the current symbol is created and updated for the component.
New components and models are added to the Components and Models folders within the current project’s Definitions folder in the Project Manager.
New models are also added to the Components tab in the Component Libraries dialog box where they can be placed onto a schematic.