SPICE Library Import Procedure

To import a SPICE library or one of its components in a Circuit schematic:

  1. View the Component Libraries. Open the Symbols area. Click Models.
  2. From the area, select the Spice icon to open the Select Model File window.
  3. The Files of type menu lists the file types for the SPICE file. You can import a SPICE library (.lib), a SPICE subcircuit definition (.cir, .spc, .sp), or a Spectre-format (.scs). You can specify the location of the SPICE file by clicking Use Path, PersonalLib, UserLib, or SysLib.
    Note:

    Import Spectre. Spectre-format files are case-sensitive.

Within the PersonalLib, userlib, or syslib folder, select the file from those listed, or type the name of the file in the File Name area. Note that syslib is reserved for libraries supplied with Electronics Desktop. See Paths for Model File Selection for details.

  1. Click Open in the Select Model File window to open the Component Import window.

The Component Import window lists all the SPICE components that are contained in the library.

Warning:

If the SPICE file has more than 10k characters in its DATA member, the parameter definitions from that file are not imported. The simulators gets the correct information on the parameters on the .lib or .sp file, but the parameters cannot be overridden on a per-instance basis.

Grouped Components

From the Component Import window, select Group similar components in order to group components that have the same parameter names and values. Require consistent parameter values (enabled only when Group similar components is selected) enforces that every element in the group has the same parameter values, which is the default.

The criteria for grouped components are:

After selecting Group similar components in the Component Import window, similar components are grouped in the display:

Select OK to import the component group and thereby display its name in the Project Manager window.

  1. If you do not select your own symbol for an imported component, a default symbol are automatically selected. To select your own symbol, click Symbol to open the Select Definition — Symbols window. For more information, see Using the Symbol Editor.
  2. If you do not select your own footprint for an imported component, a default footprint are automatically selected. To select your own footprint, click Footprint. If you have encrypted libraries, this opens the Enter Password window.

After entering a valid password, or if you do not have encrypted libraries, the next window to open is the Select Definition — Footprints window. For more information, see Using the Footprint Editor.

  1. If you select Check this box if this is a PSPICE component on the Component Import window, the component is imported as a PSPICE component.

The global tab of the netlist for the component includes lines (shown in bold) to switch to the PSPICE parser for this library, then back to Nexxim for the rest of the netlist:

simulator lang=pspice

.inc "C:\Documents\Ansoft\PersonalLib\Component Data Files\Component Data Files\Spice\BC8\\

57_PNP_Model.lib"

simulator lang=nexxim

For more information about Electronics Desktop libraries see Using the Component Editor.