In this Topic Hide
The .LIB netlist control allows the local specification of model library for a particular circuit.
Syntax:
.LIB pathname |
pathname | File system path name specifying a single file or, by using a wildcard (* or ?), a group of files. If the path name contains spaces, it must be enclosed in quotation marks ("). |
This control specifies a pathname to be searched for model and subcircuit libraries. Any number of .LIB controls may be specified and wild-cards (i.e. * and ? ) may be used.
If a model or subcircuit is called up by a device line but that definition was not present in the netlist, SIMetrix will search for it in files specified using the .LIB control.
SIMetrix also supports another form of .LIB used by model files designed for Hspice ®. See the Simulator Reference Manual/Command Reference/.LIB/Hspice Form for details.
You can install a model file to a schematic by picking it up in windows explorer and dropping it onto the schematic window. This will insert a .LIB control (see above) with a path to the file you dropped. This installs the model file to be local to that schematic.
When enabled, library diagnostics display messages showing the progress of the location of device models. To enable/disable select Model Library tab.
thenYou can also enter a model or subcircuit definition in the schematic's F11 window. However if you enter a model in this manner it will only be available to that schematic.
This is a technique used to speed the search for models and subcircuits. It is completely transparent and requires no action from the user. SIMetrix creates an index file for each library specification it encounters either installed globally or referenced using .LIB. This index files contain details of the file locations of models and subcircuit definitions referenced by the library specification. These index files can then be used for later simulation runs to speed the search for models and subcircuits. Index files are automatically rebuilt if any of the library files referenced are modified. (Modifications are detected by comparing file dates). All index files are stored in
app_data_dir/INDEXES
where app_data_dir is the location of the application data directory. See Application Data Directory for the location of this directory. The files are named SXn.sxidx, where n is some number.
Note that if you add a new model file to a directory while SIMetrix is running, SIMetrix won't know of the new file and any relevant indexes won't be updated. In this situation, select the menu
to update the indexes.Models of some common parts are available from different sources. Sometimes these have different names, e.g LF356 and LF356/NS - the latter available from the National Semiconductor library. In some cases the model names from different sources are identical. This poses a problem as models have to be uniquely identified by their name.
SIMetrix has a built-in utility that can automatically rename models with duplicate names. The devices are renamed by adding a user specified suffix to the model name. The rename utility is not accessible via the menus but must be invoked by typing a command at the command line. Proceed as follows:
rename_libs |
*** RENAME COMPLETE. See ???/RENAME.LOG for details |
rename_libs_check |
|