Editing an External Model

The SML, VHDL-AMS, C, and SPICE model editors can revise models for which an external file is available. To revise a model located in an external file:

  1. Select Tools > Library Tools > Edit External Twin Builder Model. The Edit Models dialog box appears.
  2. Browse to the desired model file and open it. You can click Use Path, SysLib, PersonalLib, UserLib, or Project Folder to change the folder location for selecting the model file.

    The Import Components dialog box appears.

    The Models tab lists the names of models that can be imported for editing, provides a check box to update the project definitions, and a check box that allows existing models of the same names to be overridden. A table lists the names of models that will be imported for editing. If a model name already exists, select the Override check box to override the current model definition.

    The Un-Compiled tab is present only if one or more of the components you are importing cannot be compiled. Each un-compiled component is listed along with the Edit check box which is selected by default. Selected entries open in the appropriate model editor when you OK the Import Components dialog box. Un-compiled models will not be imported, nor will components be created for them.

  3. Select the desired model and click OK to import and edit the model in the appropriate model editor.
    Note:

    When referencing external files in SPICE model code, use either file names (abcd.txt) or a relative path + file names, where the relative path can be to the syslib, userlib or personallib directories. If Twin Builder cannot locate the external file in any of the above locations when you check syntax or attempt to Compile & Update Project, the Message Manager displays an alert prompting you to copy the referenced files into either the personallib or userlib directory. This ensures that the external files can be located during compilation.

  4. When finished editing, optionally check syntax.
  5. Select model_type Model Editor > Compile & Update Project to update the project model. Project components that use the revised model are also updated (that is, synchronized).

Related Topics