9.4. Notes on Netlists

9.4. Notes on Netlists

9.4.1. Netlist name precautions

Many software tools that use netlists do not accept spaces in the component names, pins, equi-potential nets or others. Systematically avoid spaces in labels, or names and value fields of components or their pins.

In the same way, special characters other than letters and numbers can cause problems. Note that this limitation is not related to Eeschema, but to the netlist formats that can then become untranslatable to software that uses netlist files.

9.4.2. PSPICE netlists

For the Pspice simulator, you have to include some command lines in the netlist itself (.PROBE, .AC, etc.).

Any text line included in the schematic diagram starting with the keyword -pspice or -gnucap will be inserted (without the keyword) at the top of the netlist.

Any text line included in the schematic diagram starting with the keyword +pspice or +gnucap will be inserted (without the keyword) at the end of the netlist.

Here is a sample using many one-line texts and one multi-line text:

eeschema_pspice_netlist_png

For example, if you type the following text (do not use a label!):

  1. -PSPICE .PROBE

a line .PROBE will be inserted in the netlist.

In the previous example three lines were inserted at the beginning of the netlist and two at the end with this technique.

If you are using multiline texts, +pspice or +gnucap keywords are needed only once:

  1. +PSPICE .model NPN NPN
  2. .model PNP PNP
  3. .lib C:\Program Files\LTC\LTspiceIV\lib\cmp\standard.bjt
  4. .backanno

creates the four lines:

  1. .model NPN NPN
  2. .model PNP PNP
  3. .lib C:\Program Files\LTC\LTspiceIV\lib\cmp\standard.bjt
  4. .backanno

Also note that the equipotential GND must be named 0 (zero) for Pspice.