nlGetModelName
nlGetModelName(o_instance) =>t_modelName
Description
This method must be used to obtain the model name of an instance. Use of this method assures consistency in netlisting across interfaces. For instances that represent subcircuits, this method returns a name chosen by the netlister, using the modulePrefix netlist option.
The method nlGetModelName returns the following value:
- The value of the model parameter on the instance, if this instance has CDF and if this parameter has a value.
-
The value of the
modelNameparameter on the instance if this instance has no CDF and if this parameter has a value. -
The
componentNameentry on the view-specific information or on the simulator section on thesimInfosection of the instance CDF if this has a value. - The name of the cell.
These rules have consequences for the simInfo section for cells of which the views are used as stop cell-views. A number of simulators such as Spectre require a component or model name to define the type of component. An example of a component name is resistor, and an example of a model name is nmos101. This method addresses both model names and component names. For these simulators the useInstNamePrefix option is set to nil. For the "spectre" interface the analogLib res cell has a componentName entry set to "resistor". When the model name is not specified on an instance of a res cell, this value is used.
Arguments
Value Returne
Examples
nlGetModelName( inst )
Return to top