Product Documentation
Virtuoso ADE Assembler User Guide
Product Version IC23.1, November 2023

7


Working with Model Files and CDF

Model files contain definitions for models used in your design that are not defined in the library. You can specify the model files you want to reference for simulation on the Model Library Setup form. You can associate a model name (from one of your referenced model files) with a component on your schematic by setting the Model name CDF parameter. The Model name could refer either to a model definition or to a subcircuit (also called macro) definition. To netlist a subcircuit correctly, you must have a symbol cellview, a stopping cellview, and appropriate CDF information on the cell.

For example, the opamp schematic in the aExamples library contains instances of npn and pnp bipolar transistors (the Model name is set to npn or pnp accordingly). Cadence provides model definitions for Spectre circuit simulation of these parts in the file

your_install_dir/tools/dfII/samples/artist/models/spectre/bipolar.scs

You can declare this model library file by typing the path and file name above in the Model Library File field on the Model Library Setup form.

See “Simple Device Models” in the Direct Simulation Models chapter of the Direct Simulation Modeling Guide for more information.

See also

Associating a Model or Subcircuit Name with an Instance

To associate a model or subcircuit name with an instance on your schematic do the following:

  1. On the schematic, select the component.
    The instance name and its parameters appear in the scrolling list area in the top section of the Parameters tab on the Variables and Parameters assistant pane.
  2. Locate the model-name parameter (such as model).
    You can use a filter to narrow the device instance parameter selection list.
    If your component does not have a model name parameter in its CDF, see _______.
    If your component does have a model name parameter but the parameter value is not editable, _____.
  3. Double-click in the Value column and type a model name.
  4. Use the Model Library Setup form to specify the file containing the model or subcircuit definition whose name you typed in the Value column (see ).

Related Topics

Model Library Setup form

Specifying Model Libraries

Variables and Parameters Assistant

Filtering Device Instance Parameters

Adding a Model Name Parameter to a Component’s CDF

Making the Model Name Parameter Editable

Toggling the View on the Variables tab of the Variables and Parameters Assistant Pane

Editing Component CDF

To Edit CDF, do the following:

  1. In the CIW, choose Tools – CDF – Edit.
    The Edit CDF form appears.
  2. For Scope, select the Cell radio button.
    See “CDF Selection” in the "CDF Commands" chapter of the Component Description Format User Guide for information about this selection.
  3. In the CDF Layer group box, select a CDF type: Effective, Base, or User.
    See “CDF Layer” in the "CDF Commands" chapter of the Component Description Format User Guide for information about this selection.
  4. Click Browse.
    The Library Browser form appears.
  5. In the Library Name drop-down list, select a library.
  6. In the Cell drop-down list, select a cell.
    The CDF information for the cell is displayed on the Edit CDF form.

See also

Adding a Model Name Parameter to a Component’s CDF

To add a parameter for model name to your component, do the following:

  1. Open the Edit CDF form.
  2. Specify the cell (component) whose CDF you want to edit.
  3. In the Name column on the Component Parameter tab, click where it says <Click to add>.
    Specify your model name parameter as follows:
    Column Value

    Name

    Type model.

    Prompt

    Type Model name.

    Type

    Select string as the parameter type.

    Parse as CEL

    Select no from the drop-down list. You do not want your model name parsed as an expression.

    Parse as number

    Select no from the drop-down list. You do not want your model name parsed as a number.

  4. Click Apply to apply your changes and leave the form open, or OK to apply your changes and close the form.

For more information, see “Defining Parameters” in the Component Description Format User Guide.

Making the Model Name Parameter Editable

To make the model name parameter editable (so that you can vary it during simulation), do the following:

  1. Use the Edit CDF form to edit the component’s CDF.
  2. In the CDF Layer group box, select Base.
  3. In the Component Parameter tab, select the model-name parameter (such as model).
  4. In the Editable Condition field, type a non-nil value.
  5. Click OK.
  6. On the Edit CDF form, click OK.
    When you select this component instance on your schematic, the model-name parameter appears in the list of CDF Editable device instance parameters in the Parameters tab on the Variables and Parameters assistant pane.

Using Component CDF to Specify Simulation Information

To specify how you want the software to netlist your component, what parameters to pass to the underlying subcircuit or model definition, and the order of the input terminals (for netlisting), do the following:

  1. Use the Edit CDF form to edit the component’s CDF.
  2. Click the Simulation Information tab.
  3. Select the By Simulator radio button and select your simulator in the drop-down list.
  4. In the following fields, you can specify how you want the software to netlist your component, what parameters to pass to the underlying subcircuit or model definition, and the order of the input terminals (for netlisting):
    Field Value

    netlistProcedure

    Type the name of a netlist procedure or leave this field blank to use the default netlist procedure.

    otherParameters

    Type model to specify a parameter for model or subcircuit name.

    instParameters

    Type the names of one or more component parameters (space-separated) you want to pass into the subcircuit or model.

    termOrder

    Type the names of the symbol’s terminals in the order you want them netlisted (the order must match the node order on the subckt line or that of the model referenced).

For more information, see “Modifying Simulation Information” in the Component Description Format User Guide.

Creating a Stopping Cellview

You must have write privileges on the library to perform this task.

To create a stopping cellview for your simulator, do the following:

  1. Edit the symbol cellview.
  2. Choose Design – Save As.
    The Save As form appears.
  3. In the View Name field, type a view name to represent your simulator.
    For example, for the Spectre circuit simulator, type spectre.
  4. Click OK.
    The environment creates a new cellview (as a directory of files) in the specified library.

Varying the Model File and Section during Simulation

To make the model file or section something you can vary during simulation, do the following:

  1. On the Data View assistant pane, right-click the test or analysis name and choose Model Libraries.
    The Model Library Setup form appears.
  2. In the Model File column, double-click and type a variable name for the model file you want to vary (or as a part of the model file path) using the following format:
    VAR("variableModelFileName")
    For example:
    VAR("myModelFile")
    or
    ../models/VAR("section")/models.scs
  3. In the Section column, double-click and type a variable name for the section you want to vary. For example:
    VAR("myModelCorner")

    For more information about sections in model files, see “Corners Modeling” in the Direct Simulation Modeling User Guide.
  4. Click Apply.
    Variables you specify using VAR (such as myModelFile or section, and myModelCorner) appear on the Variables tab of the Variables and Parameters assistant pane.
  5. Double-click in the Value column for each global variable and type a value. For example:
    Name Value

    Global Variables

    myModelCorner

    "NN"

    myModelFile

    "$PROJECT1/path/to/myModels.scs"


    You can vary these global variables in parametric sweeps and corners analysis.

Here is an example application using VAR in the specification of a model file to sweep through different model types.

If you have model files stored in a directory hierarchy such as the following:

../models/sectionIdentifier/models.scs

where sectionIdentifier is the model type (such as typ, ff, ss), you can create a sweep of model types as follows:

  1. On the Model Library Setup form, double-click in the Model File column and type the following:
    ../models/VAR("section")/models.scs
  2. Click OK.
    The section variable appears in the Global Variables tree on the Variables tab of the Variables and Parameters assistant pane.
  3. Double-click in the Value column for section and click the ellipsis that appears at the right end of the field.
    The Parameterize form appears.
  4. Click Add Specification and select Inclusion List from the drop-down list:
  5. In the Values field, type the set of model types (valid section names from the model file) through which you want the program to sweep.
    For example:
    "typ", "ff", "ss"
    The program sweeps through all values of section.

Editing a Model File

To edit a model file, do the following:

  1. On the Data View assistant pane, right-click the test or analysis name and choose Model Libraries.
    The Model Library Setup form appears.
  2. Select the model library you want to edit and click Edit File.
    The model file appears in an editing window.
  3. Make the edits you want to make.
  4. Save and exit the file.
  5. On the Model Library Setup form, click OK.

Disabling a Model File

To disable a model file for a test, do the following:

  1. On the Data View assistant pane, right-click the test or analysis name andchoose Model Libraries.
    The Model Library Setup form appears.
  2. Deselect the check box for the model library you want to disable.
  3. Click OK.


Return to top
 ⠀
X