Product Documentation
PSpice Help
Product Version 17.4-2020, June 2020


Preparing your design for simulation

PSpice is a mixed analog/digital electrical circuit design simulator that can calculate the behavior of analog-only, mixed analog/digital, and digital-only circuit designs with speed and accuracy. PSpice simulates mixed analog/digital circuit designs, calculates voltages and currents of the analog devices and nodes, and calculates the states of digital nodes (nodes connected to digital devices only).

Creating designs for simulation

In order to simulate a design with PSpice that is created in the design entry programs, Capture, you must begin the project as an analog type intended for simulation. Existing projects in the design entry programs cannot be simulated without special modifications.

To create a new project for simulation

  1. From the File menu in Capture’s Project Manager, point to New and select Project.
    The New Project dialog box appears.
  2. In the Name text box, enter the name for the new project.
  3. Under the Create a New Project Using frame, select Analog or Mixed-Signal Circuit Wizard.
    You must create a project (not a design) and select the Analog or Mixed-Signal Circuit Wizard option in order to be able to simulate the new design with PSpice.
  4. In the Location text box, enter the path where you want the new project files to be stored, or use the Browse button to locate the directory.
  5. Click OK.
  6. Enter any special libraries to be included, if necessary, and click Finish to create the new project directory and open the schematic page editor.

A design that is targeted for simulation has:

The part libraries for PSpice are in the PSpice subfolder in the tools\Capture\Library directory in your main installation directory. Each part must have a PSPICETEMPLATE property in order to netlist correctly for use with PSpice.

When creating designs for both simulation and printed circuit board layout, some of the parts you use are for simulation only (that is, simulation stimulus parts like voltage sources), and some of the parts you use have simulation models that only model some of the pins of a real device.

The parts that are to be used for simulation, but not for board layout, have a PSPICEONLY=TRUE property.

You can add this (or any) property to your own custom parts to make them simulation-only.

Placing stimulus sources

Parts for stimulus sources for simulation are in the SOURCE.OLB part library. You can place a source in the design as you would any other part.

Creating a simulation netlist

A netlist is the connectivity description of a circuit, showing all of the components, their interconnections, and their values. When you create a simulation netlist from Capture, that netlist describes the current design.

The flat netlist is generated for all levels of hierarchy, starting from the top, regardless of whether you are pushed into any level of the hierarchy. Flat netlists are most commonly used as input to PCB layout tools. The flat simulation netlist format for PSpice contains device entries for all parts on a subcircuit (child) schematic multiple times, once for each instance of the hierarchical part or block used.

Creating the netlist

You can generate a simulation netlist in one of two ways:

During the netlist process, Capture creates files with different extensions: the .NET file contains the netlist; the .ALS file contains alias information for cross-probing.

For detailed information about generating simulation netlists from design entry programs, refer to Capture User Guide.

Setting up analyses

Unless you intend to run the simulation using a circuit (.CIR) file, you must create a simulation profile (or edit an existing one) before you can set up a PSpice simulation. See Creating a new simulation profile for more information.

To set up a PSpice simulation:

  1. From design entry program PSpice menu, choose New Simulation Profile.
    In order to access the PSpice menu and set up simulations, you must be working with a PSpice project in the design entry program. The project type is defined when you begin a new project.
  2. In the Simulation Settings dialog box, click the Analysis tab.
  3. Make your selections. The options are:
  4. Click OK.

Setting up an AC analysis

The AC analysis calculates the small-signal frequency response of the circuit (linearized around the bias point) over a range of frequencies.

To set up an AC analysis

  1. In the Simulation Settings dialog box, click the Analysis tab.
  2. From the Analysis type list, select AC Sweep/Noise.
  3. From the Options list, select General Settings.
  4. In the AC Sweep Type frame, choose either Linear or Logarithmic. (If Logarithmic, also select Decade or Octave.) Enter the start frequency, end frequency, and points in the text boxes.
  5. To have noise analysis enabled, under Noise Analysis, select the Enabled check box. Enter the output voltage, I/V source, and interval in the text boxes.
  6. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting up the loading of bias points

The Load Bias Point analysis option includes a .LOADBIAS statement in the circuit file and loads the contents of the bias point file. Normally the bias point file is produced by a previous circuit simulation using the Save Bias Points option.

This option is available for the Time Domain (Transient), DC Sweep, and Bias Point analyses.

To set the bias load point

In the Simulation Settings dialog box, click the Analysis tab.

  1. From the Analysis type list, select Time Domain (Transient), DC Sweep, or Bias Point.
  2. From the Options list, select Load Bias Point.
  3. In the Load Bias Information from filename text box, enter the name of a file that contains a .LOADBIAS statement.
  4. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting up the saving of bias points

The Save Bias Point analysis option inserts a .SAVEBIAS statement into the circuit file, and the bias point node voltages for the specified analysis (DC, OP, or TRAN) is saved to the file you specify.

To set the save bias load point

  1. In the Simulation Settings dialog box, click the Analysis tab.
  2. From the Analysis type list, select Time Domain (Transient), DC Sweep, or Bias Point.
  3. From the Options list, select Save Bias Point.
  4. In the Save Bias Information in Filename text box, enter a file name in which to save the bias point information.
  5. Under Options, type values in the text boxes for when to save bias information during the analysis:
  6. Under Options, select Do Not Save Subcircuit Voltages and Currents if you do not want to save the node voltages and currents for subcircuits.
  7. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting up a DC analysis

The DC analysis performs a DC sweep. The DC sweep analysis calculates the circuit’s bias point over a range of values.

To set up the DC Sweep

  1. In the Simulation Settings dialog box, click the Analysis tab.
  2. From the Analysis type list, select DC Sweep.
  3. From the Options list, select Primary Sweep.
  4. Under Sweep variable, choose Voltage source, Current source, Global parameter, Model parameter, or Temperature.
  5. Under Sweep type, choose Linear, Logarithmic, or Value list. (If Logarithmic, also select Decade or Octave.)
  6. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting up a Monte Carlo/worst-case analysis

Monte Carlo/Worst Case analyses vary the lot or device tolerances of devices between multiple runs of an analysis (DC sweep, AC sweep, or transient).

You can run either a Monte Carlo or a worst-case analysis, but not both at the same time. Before running either analysis, you must set up the device and lot tolerances of the model parameters to be investigated.

To set the Monte Carlo/Worst Case options

  1. In the Simulation Settings dialog box, click the Analysis tab.
  2. From the Analysis type list, select DC Sweep, AC Sweep/Noise, or Time Domain (Transient).
  3. From the Options list, select Monte Carlo/Worst Case.
  4. Choose either Monte Carlo or Worst-case/Sensitivity.
  5. In the Output Variable text box, type the output variable, using the following format:
    V(<net name> [,<net name>])
    where <net name> must be a fully qualified net name. For example, V(sense) represents the voltage at a net, and V(a,b) represents the output voltage across two nets a and b.
  6. Enter the Monte Carlo or Worst-case/Sensitivity options as described below.
  7. Click OK.

Monte Carlo options

You can set the following options:

<none>

All

Forces all output to be generated, including the nominal run.

First

Generates output only during the first n runs. Type the value for n in the Runs text box.

Every

Generates output every nth run. Type the value for n in the Runs text box.

Runs (list)

Performs an analysis and generates output only for listed runs. Up to 25 values can be specified in the Runs text box. Prints out at the beginning of each run the model parameter values actually used for each component during that run.

Worst-case/Sensitivity options

  1. From the Vary Devices That Have list, select Vary both DEV and LOT, Vary DEV, Vary LOT.
  2. In the Limit devices to type(s) text box, type a list of devices to include in the analysis.
  3. Select the Save data from each sensitivity run check box to save data from each sensitivity run.

Output file options

  1. Click the More Settings button.
  2. From the Find list, select one of the following collating functions:

    YMAX

    Finds the greatest difference in each waveform from the nominal run.

    MAX

    Finds the maximum value of each waveform.

    MIN

    Finds the minimum value of each waveform.

    RISE_EDGE

    Finds the first occurrence of the waveform crossing above the threshold value. Type a threshold value in the Threshold value text box.

    FALL_EDGE

    Finds the first occurrence of the waveform crossing below the threshold value. Type a threshold value in the Threshold value text box.

  3. Under Worst-Case direction, choose either Hi or Low.
  4. Select the List model parameter values check box to produce a list of the model parameters actually used for each run.

History support options

  1. Click the MC Load/Save button.
  2. To enable saving of the randomly generated model parameter values for each run, complete the following steps.
    1. In the Load/Save Monte Carlo Parameter File dialog box, select the Save parameter values in the filename check box.
    2. In the text box that is enabled, specify the name and the location of the file in which the parameter data is to be saved. If required, you can use the Browse button to navigate to the required location.

    The model parameter values are saved in a Monte Carlo parameter (.mcp) file. When you simulate the design, a .mcp file with the complete history of variation of parameter values with in the tolerance range will be generated.
  3. To reuse model parameter values generated and saved during a previous Monte Carlo analysis, complete the following sequence of steps.
    1. In the Load/Save Monte Carlo Parameter File dialog box, select the Load parameter values in filename check box.
    2. In the text box that is enabled, specify the name and the location of the .mcp file from which the parameter data is to be read. You can use the Browse button to navigate to the required location.

    When you now simulate the circuit, all the parameter values stored in the .mcp file will be reused during the simulation.
  4. Click OK to save your settings.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting the bias point detail

The Bias Point analysis saves detailed bias point information to the simulation output file.

The information reported to the output file includes the following:

To save detailed bias point information to the output file

  1. In the Simulation Settings dialog box, click the Analysis tab.
  2. From the Analysis type list, select Bias Point.
  3. Under Output File Options, select any of the following that you want saved to the output file:
  4. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting digital options

Set digital options for DC analyses.

To set the digital options

  1. In the Simulation Settings dialog box, click the Options tab.
  2. From the Category list, select Gate-level Simulation.
  3. Under Timing Mode, choose Minimum, Typical, Maximum, or Worst-case (min/max).
  4. Select Suppress simulation error messages to not include error messages in the waveform data file generated for this simulation.
  5. From the Initialize All Flip-Flops To list, select X, 0, or 1.
  6. In the Default I/O level for Interfaces box, enter a default propagation delay mode.
  7. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting up a parametric analysis

A parametric analysis performs a sweep analysis while varying a global parameter. The simulator performs a series of simulations; there is one for each value of the parameter. All expressions in the circuit are re-evaluated with the new parameter value at the beginning of each run.

To set the parametric options

  1. In the Simulation Settings dialog box, click the Analysis tab.
  2. From the Analysis type list, select Time Domain (Transient), DC Sweep, or AC Sweep/Noise to use as the basic analysis.
  3. Under Options, select Parametric Sweep.
  4. Under Sweep variable, choose a variable to sweep during the analysis:
  5. Under Sweep type, choose one of the following:
  6. Under Sweep type, the values in the Start Value and End Value text boxes vary depending upon which sweep variable type you select. The Start Value can be greater or less than the End Value.
  7. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting up a sensitivity analysis

Performs a DC sensitivity analysis. One or more output variables can be specified. The <output variable>, if it is a current, is restricted to be current through a voltage source.

Device sensitivities are provided for the following device types only:

To set the sensitivity analysis

  1. In the Simulation Settings dialog box, click the Analysis tab.
  2. From the Analysis type list, select DC Sweep.
  3. From the Options list, select Monte Carlo/Worst Case.
  4. Choose Worst-case/Sensitivity.
  5. In the Output variable text box, type an output variable, using the following format:
    V(<net name> [,<net name>])
    where <net name> must be a fully qualified net name. It has the form such as: V(sense), the voltage at a net; or a form such as: V(a,b), the output voltage across two nets a and b.
  6. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting the temperature

Set the temperature to specify the temperature or list of temperatures at which all analyses are performed. The temperatures are in degrees Centigrade. If more than one temperature is given, then all analyses are done for each temperature.

You can type either a single value for the Temperature box, or a list of temperatures. When a list is typed, the circuit is simulated multiple times, once for each temperature in the list. Running an analysis at multiple temperatures can also be done as a parametric analysis. With parametric analysis, the temperatures can be specified either by list or by range and increments within the range.

The default temperature for simulation is 27 degrees Celsius.

The statistical analyses perform multiple runs, as does the Temperature analysis when a temperature range is typed. Conceptually, the Monte Carlo and worst case loops are inside the Temperature loop. However, since both temperature and tolerances effect the model parameters, the interaction of the two can become complicated.

Therefore, it is recommended that you should not use the Temperature analysis option to sweep multiple temperatures when using Monte Carlo or worst case analyses in a circuit. For the same reason, sweeping the temperature with a DC Sweep analysis while performing one of these statistical analyses is not recommend. In addition, putting tolerances on temperature coefficients is not recommended.

To set the temperature

  1. In the Simulation Settings dialog box, click the Analysis tab.
  2. From the Analysis type list, select a basic analysis type.
  3. From the Options list, select Temperature (Sweep).
  4. Choose one of the following:
    • Run the simulation at temperature, to run the simulation at a constant temperature. Enter a value in the text box.
    • Repeat the simulation for each of the temperatures, to repeat the simulation at different temperatures. Type a list of temperatures in the text box.
  5. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

Setting up a transient analysis

A transient analysis calculates the behavior of the circuit over time.

To set the transient option

  1. In the Simulation Settings dialog box, click the Analysis tab.
  2. From the Analysis Type list, select Time Domain (Transient).
  3. In the Run to Time text box, type the length of the transient analysis.
  4. Select Run in resume mode if you want to pause the simulation after running for a specific time. You can enter the time to run in the RunFor text box of the PSpice toolbar. After the simulation pauses, you can change parameters and restart the simulation.
  5. To perform a Fourier Analysis, click the Output File Options button, then select (?) Enable Fourier.
    A Fourier Analysis performs a decomposition into Fourier components of the transient analyses results.
  6. Click OK.

To run the active simulation

  1. From the Simulation menu, choose Run.

To check if a part has a simulation model defined

  1. In schematic page editor, double-click a part on the schematic page. If a simulation model is available for a part, the part has:
    • a PSPICETEMPLATE property specifying the PSpice simulation netlisting syntax for the part
    • an Implementation type PSpice model and an Implementation property specifying the name of the model or subcrcuit
  2. The PSPICETEMPLATE contains @MODEL somewhere along the line.

The simulation model specified by the Implementation property must be contained in a model library that is configured.

Simulating your circuit

Simulating performs a PSpice circuit analysis on the current design. This command automatically performs an Electrical Rule Check (DRC), and netlist generation.

You must create a simulation profile (or edit an existing one) before you can set up a PSpice simulation. See Creating a new simulation profile for more information.

To simulate your circuit from within PSpice

  1. From PSpice’s Simulation menu, choose Run.
    The simulation creates output files with a .OUT extension, and if the simulation completes successfully, produces a file with a .DAT extension. The output (.OUT) file contains bias point information, model parameter values, and so on. The .DAT file is the waveform data file containing the simulation results to be displayed by PSpice. All viewpoint and sensor displays are automatically updated.
    Waveform data is only produced if you run an AC, DC, or a transient analysis.
  2. A Probe window appears and displays the results of the simulation (if you have this option enabled in the Probe windows settings of your simulation profile).
  3. If there are errors during the simulation, from the View menu, choose Output File.

To simulate your circuit from within Design Entry Programs

  1. From the PSpice menu, choose Run.

Interacting with a simulation

Overview

PSpice includes options for interacting with a simulation by changing certain runtime parameters in the course of the analysis. With the interactive simulation feature, you can do the following:

For more details about interactive simulation, click the Related Topics below.

The ability to interact with a simulation only applies to bias point and transient analyses. You cannot interact with other analysis types.

What the various versions of PSpice support

The following table identifies what interactive functionality is available with each version of PSpice.

PSpice version

Interactive simulation functionality

PSpice

    • extend transient analysis
    • interrupt a simulation, change parameters, and resume the simulation
    • schedule automatic changes to parameters during simulation

Related Topics

For information about

Click this topic…

Extending a transient analysis

Extending a transient analysis

Interrupting a simulation and changing runtime parameters

Interrupting a simulation

Scheduling changes to runtime parameters

Scheduling changes to runtime parameters

Extending a transient analysis

Overview

Often, a long transient analysis will run to the completion time (TSTOP) without achieving the desired simulation results (achieving a steady state, for instance). To achieve better results, the value for TSTOP would have to be increased and the entire simulation would have to be rerun from the beginning. This was time-consuming and inefficient for large simulations.

You can set up a transient analysis so that it will pause automatically when it reaches the TSTOP value. Once paused, you can review the results and determine if the simulation should run longer. If desired, you can increase the value of TSTOP and resume the transient analysis from the point at which it paused, thus saving a good deal of processing time.

For more details about using TSTOP, see the PSpice Reference Guide.

To help clarify under what conditions simulations will either be terminated or paused, the following table explains the different behaviors of PSpice for particular simulation scenarios:

Simulation scenario Behavior of PSpice

Running a single transient simulation using a profile or a circuit file containing one circuit.

PSpice will stop (terminate) after a successful simulation if the RunFor text box is blank. -or- PSpice will pause if there is a value for RunFor, or if a convergence error occurs, allowing you to change certain runtime parameters and resume the analysis.

Running a single AC/DC simulation using a profile or a circuit file containing one circuit.

PSpice will stop (terminate) after a successful simulation.

-or-

PSpice will pause if a convergence error occurs, allowing you to change certain runtime parameters and resume the analysis.

Running a single simulation with a profile or a circuit file containing outer loops.

PSpice will stop (terminate) after a successful simulation, or if a convergence error occurs.

Running a queued simulation.

PSpice will stop (terminate) after a successful simulation, or if a convergence error occurs.

Launching a new simulation when another one is already active in PSpice.

If the old simulation has completed, PSpice will load the new simulation and run it.

-or-

If the old simulation is running or paused, PSpice will prompt you to choose whether to run the new simulation instead, place it in the queue or cancel it.

How the RunFor value for TSTOP controls the simulation

When you enter a value for TSTOP in the RunFor text box on the simulation toolbar in PSpice, you can control the simulation in various ways:

For more information about running and managing multiple simulations, click Running multiple simulations.

To extend a transient analysis

  1. Click in the RunFor text box on the PSpice toolbar and enter a value for TSTOP.

  2. Click the Run toolbar button to run the simulation.
    The simulation will run and pause when it reaches the value you entered for TSTOP in the RunFor text box. (The original value for TSTOP in the simulation profile is overridden and ignored if you enter a value in the RunFor text box.)
  3. Change any parameters you need to adjust. (See Interrupting a simulation.)
  4. Change the value of TSTOP in the RunFor text box, if needed.
  5. Click the Run toolbar button to resume the simulation.
    The simulation will resume from the point at which it last paused, and then run for the amount of time specified in the RunFor text box, at which point it will pause again.
  6. Repeat Steps 3 – 5 as needed.

Interrupting a simulation

Overview

You can interrupt (pause) a simulation, change certain runtime parameters, and then resume the simulation from the point at which it was paused using the new parameters.

The new parameters are temporary values and are not saved in the simulation profile. However, they are logged in the output file so that you can refer to them later.

After you pause a simulation, you can change the following runtime parameters using the PSpice Runtime Settings dialog box:

For more details about using these runtime parameters, see the PSpice Reference Guide.

The PSpice Runtime Settings dialog box will appear automatically whenever a simulation fails to converge. (In such cases, the simulation will be paused automatically.) It will also appear if you attach PSpice to a simulation that was paused in the background. (For more information about managing background simulations, click Using the Simulation Manager.)

In cases where you have paused a simulation and intend to resume it, PSpice will only recognize changes you make in the PSpice Runtime Settings dialog box. Any changes you make to the Simulation Profile will not be applied until the simulation is restarted again from the beginning.

To interrupt a simulation and change parameters

  1. In PSpice, from the Simulation menu, choose Edit Runtime Settings.
    The PSpice Runtime Settings dialog box appears.

  2. If you want to use the original value for a particular parameter, click the Use Original Value check box for that parameter.
    The original parameter values are derived from the simulation profile. By default, the Use Original Value check boxes are checked (enabled).
  3. If you want to change one or more parameters, enter new values for each of the runtime parameters you want to change in the text boxes under the column Change To.
    If a Change To text box is grayed out, uncheck the Use Original Value check box.
  4. Select Autoconverge to specify that PSpice should try to converge the simulation.
  5. Click OK & Resume Simulation to resume the simulation with the new parameters.
If you do not want to resume the simulation, but merely want to exit this dialog box and preserve the values you entered, click OK. If you run the simulation later, the new parameters will be applied. If you want to exit this dialog box without preserving the values, click Cancel.

Scheduling changes to runtime parameters

Overview

In certain situations, you may want to predefine a set of values for a parameter and schedule these values to take effect at various time intervals during a long simulation. For instance, you may want to use a smaller time step value during periods where the input stimulus changes rapidly, but otherwise use a larger value.

You can set up automatic changes to certain runtime parameters that will occur at scheduled times during a simulation. By scheduling the changes, you don't have to interrupt the simulation manually, and can even run it in a batch mode in the background.

The following runtime parameters can be changed at scheduled times during a simulation. Note that these only apply to transient analysis; you cannot interact with other analysis types.

For more details about using these runtime parameters, please see the PSpice Reference Guide.

PSpice command syntax for scheduling parameter changes

You can schedule parameter changes by entering them either in the Simulation Profile or in a text file using the new expression SCHEDULE, and then including that file in the simulation profile settings.

The expression SCHEDULE is a piecewise constant function (from time x forward use y) and takes the form:

SCHEDULE(x1,y1,x2,y2...xn,yn)

where x is the time value, which must be > 0, and y is the value of the associated parameter. You must include an entry for time=0.

When used with the .OPTION command, the syntax is as follows:

.OPTIONS <Parameter Name>={SCHEDULE(<time-value>, <parameter value>, <time-value>, <parameter value>, …)}

For example,

.OPTIONS RELTOL={SCHEDULE( 0s,.001,2s,.005)}

indicates that RELTOL should have a value of 0.001 from time 0 up to time 2s, and a value of 0.005 from time 2s and beyond (that is: RELTOL=.001 for t, where 0 < t < 2s, and RELTOL=.005 for t, where t < 2s).

To schedule changes to runtime parameters

  1. Open a standard text editor (such as Notepad) and create a text file with the command syntax shown above, using the appropriate values for the different parameters.
  2. In design entry program, open the design you want to simulate.
  3. From the PSpice menu, choose Edit Simulation Profile.
  4. Click the Configuration Files tab.
  5. Click Include in the Category field.
  6. Under the Filename text box, enter the name of the text file you created in Step 1, or click the Browse button to locate the file and enter the full path and filename.
  7. Click the Add to Design button to include the file as part of the circuit.
  8. Click OK.

When you run the simulation, the scheduled parameter changes will be included as part of the circuit file and the simulation will run to completion automatically.

Related Topics

For information about

Click this topic…

Including files

Include files settings for simulation profiles

Pausing a simulation manually to change parameters

Interrupting a simulation

Running multiple simulations in the background

Running multiple simulations

Running multiple simulations

Overview

PSpice includes a Simulation Manager that provides enhanced control over how multiple simulations are processed. With the Simulation Manager, you can now control when particular simulations in a batch queue will actually be run. You can also preempt the current simulation to run another one first. Or, you can use the Simulation Manager to monitor the progress of a set of batch simulations that were set up and launched earlier.

None of the earlier functionality of batch processing has been lost. With the Simulation Manager, you now have even greater control and flexibility in setting up multiple simulations.

Related Topics

For information about…

Click this topic…

Using the Simulation Manager…

Using the Simulation Manager

Setting up multiple simulations…

Setting up multiple simulations

Starting, stopping, and pausing simulations…

Starting, stopping, and pausing simulations

Attaching PSpice to a simulation…

Attaching PSpice to a simulation

Using the Simulation Manager

Overview

The PSpice Simulation Manager provides a familiar, easy-to-use interface for controlling how multiple simulations are processed.

The Simulation Manager allows you to do the following:

You can accomplish most of these functions by selecting the desired simulation in the list, then clicking on the appropriate toolbar button to execute the command. For detailed procedures on performing these tasks, see the Related Topics section below.

For simulations that are queued in the Simulation Manager, the setting in the Simulation Profile to start Probe automatically is ignored. When a queued simulation runs to completion and finishes, it will not be loaded into Probe. You must do this manually if you want to see the results of that simulation.

Accessing the Simulation Manager

The Simulation Manager is invoked whenever you start a new simulation, either from PSpice or from a front-end design entry tool. Since it is active as long as a simulation is running in the background, you can also call up the Simulation Manager from the Windows system tray.

You can also launch the Simulation Manager by itself from the Windows Start menu. You do not need to have PSpice running in order to work with the Simulation Manager.

Understanding the menu commands

The main menu bar for the Simulation Manager is shown below. For a detailed description of a particular menu, click the name of that menu in the image.

Related Topics

For information about

Click this topic…

Understanding the status of jobs in the queue

Understanding the Simulation Manager

What the various versions of PSpice support

Available functionality of the Simulation Manager

How the Simulation Manager handles errors

Error message handling by the Simulation Manager

Setting up multiple simulations

Setting up multiple simulations

Starting, stopping, and pausing simulations

Starting, stopping, and pausing simulations

Attaching PSpice to a simulation

Attaching PSpice to a simulation

Setting the default options for the Simulation Manager

Setting options in the Simulation Manager

Understanding the Simulation Manager

Understanding the information presented by the Simulation Manager

Every job listed in the Simulation Manager will have a specific entry for Schedule, Status and Percent Complete. In addition, certain color-coded icons are shown to the left of each simulation file name to indicate their current state. A quick glance over the list of jobs will tell you immediately where any particular job is and how it will be processed. The following tables explain the meanings of the various categories and states.

Icon

Explanation

The simulation is either in the queue and has not been run yet, or has been run to completion.

The simulation is currently running.

The simulation has been paused and is on hold, waiting to either be continued or stopped.

The simulation has been stopped and is not completed.

Schedule column Explanation

queued

The simulation is in the queue. It will be run in the order in which it is listed in the queue. (This is the default setting.)

running

The simulation is currently running and ongoing status information is displayed.

on hold

The simulation has been paused.

stopped

The simulation has been run completely, or was stopped because of an error.

You must manually restart a stopped simulation if you want it to run again at a later time.

Status column Explanation

not run

The simulation has not been started yet. (This is the default setting.)

<status information>

Basic status information about the progress of the analysis will be displayed for a simulation that is currently running.

paused

The simulation has been paused either manually or automatically by the Simulation Manager.

If you change the default option that automatically resumes paused simulations in the queue, then you must remember to manually resume a paused simulation if you want it to continue at a later time.

complete - no errors

The simulation has run to completion and no errors were encountered.

errors

The simulation ran partially but stopped automatically because errors were encountered.

Percent Complete column Explanation

<percentage>

The percentage of completion for a simulation. This number increases as a simulation progresses.

Available functionality of the Simulation Manager

What the various versions of PSpice support

The following table identifies what functionality in the Simulation Manager is available with each version of PSpice.

PSpice version

Functionality of Simulation Manager

PSpice

  • One simulation may be running and multiple simulations may be paused.
  • The queue is run sequentially.

Error message handling by the Simulation Manager

How the Simulation Manager handles errors during simulation

Since each simulation that runs in the background runs independently, an error that occurs during one simulation will not prevent the remaining jobs in the queue from running subsequently, in order. The following common error conditions may arise, but these will not prevent the Simulation Manager from running the remaining simulations pending in the queue.

Setting up multiple simulations

Overview

With the Simulation Manager, you can set up any number of batch simulations to be run sequentially in the background while you do other work in PSpice. Each new simulation that you set up will be added to the bottom of the simulation queue and will be assigned the schedule category “queued”. It will be run after all other queued jobs ahead of it have been run.

Once a job has been added, you can change its position in the queue, start, stop or pause it, or make other modifications to its status. See the Related Topics below for more details on modifying jobs in the Simulation Manager.

To add a simulation to the queue

  1. From the File menu, choose Add Simulation or click the Add Simulation button on the tabular.
  2. Locate the file (.SIM, .CIR) you wish to add to the queue.

Alternately, you can add a simulation to the queue by starting the PSpice simulation directly from within the front-end tool you are using, such as Capture.

If one simulation is already running in the Simulation Manager and you start another one, you will be prompted to direct the Simulation Manager in how to proceed with the new simulation. For more information about the different ways to handle this situation, click Setting options in the Simulation Manager.

Related Topics

For information about...

Click this topic…

Starting, stopping, and pausing simulations...

Starting, stopping, and pausing simulations

Attaching PSpice to a simulation...

Attaching PSpice to a simulation

Setting the default options for the Simulation Manager...

Setting options in the Simulation Manager

Starting, stopping, and pausing simulations

Overview

In the Simulation Manager, you can easily manage the various batch simulations in the queue. The most fundamental controls that are provided are the ability to start a simulation, stop it, or pause it temporarily.

To start a simulation from the Simulation Manager

  1. Select a simulation in the list.
  2. From the Simulation menu, choose Run or click the Run Selected button on the toolbar.

To stop a simulation from the Simulation Manager

  1. Select the simulation that is currently running.
  2. From the Simulation menu, choose Stop or click the Stop Selected button on the toolbar.

To pause a simulation from the Simulation Manager

  1. Select the simulation that is currently running.
  2. From the Simulation menu, choose Pause or click the Pause Selected button on the toolbar.

Attaching PSpice to a simulation

A simulation that is running in the Simulation Manager will not be loaded into PSpice or displayed in Probe while it is running. This allows you to work on a different design in the PSpice application while a simulation is running in the Simulation Manager.

If you start a new simulation from within PSpice while another is running in the queue in the Simulation Manager, the Simulation Manager must decide how to treat the new job. You will be prompted to choose whether you want the new job to preempt the current simulation and start running immediately. For more details, click Setting options in the Simulation Manager.

If you want to display a different simulation in PSpice by choosing from the list of jobs in the Simulation Manager, you can attach PSpice to a particular job in the queue.

To attach PSpice to a simulation

  1. In the Simulation Manager, select the simulation you want to attach to PSpice.
  2. From the View menu, choose Simulation Results.

The PSpice program will activate and the results of the simulation you selected will become the current display in Probe. If the simulation is currently running, you will be able to view the marching waveforms.

Setting options in the Simulation Manager

Each time you add a new simulation while another one is running, the Simulation Manager must decide how to treat the new job. The default setting is to add the new simulation to the bottom of the queue and continue running whatever job is currently being simulated.

You can change this default so that the Simulation Manager will start each new simulation immediately and either stop or pause whatever job is currently running. The options you can choose from are explained in the procedure below.

You can also choose to have the Options dialog box display each time you add a new simulation, or not show this anymore. If you disable the prompting, you can always enable it again using the following procedure.

In addition, you can define how paused simulations should be handled by the Simulation Manager. You can configure them to be resumed automatically after the previous simulation stops, or you can choose to leave them in a paused state until you manually resume them.

To set the default options for the Simulation Manager

  1. From the Tools menu, choose Options.
    The Options dialog box appears.

  2. In the top frame dealing with simulations that are already running, click the appropriate radio button for the option you wish to set.

    Radio button…

    Function…

    Display the simulation in the queue.

    The simulation that is currently running will be displayed in PSpice. The new simulation will be added to the bottom of the queue and will be run after all other jobs in the queue have been run. (This is the default setting.)

    Pause the current simulation and run the new one.

    The simulation that is currently running will be paused. The new simulation will be started immediately.

    Stop the current simulation and run the new one.

    The simulation that is currently running will be stopped. The new simulation will be started immediately. You must remember to restart the stopped simulation later if you want it to run again.

  3. If you want the Options dialog box to appear as a reminder each time you add a new simulation, be sure to check the Always Prompt box. (The default setting is to enable this feature.)
  4. In the bottom frame dealing with paused simulations, click the appropriate radio button for the option you wish to set.

    Radio button…

    Function…

    Resume simulating.

    The first paused simulation in the list will automatically resume after the previous simulation has stopped. (This is the default setting.)

    Wait for user intervention.

    The Simulation Manager will not resume any paused simulations automatically.

    If you enable this radio button, you must remember to intervene manually if you want paused simulations to resume later.
  5. Click OK to save the settings.

The Simulation Manager File menu

The File menu provides basic file management functions.

Menu command...

Function…

Add Simulation

Opens a simulation file (.SIM) or circuit file (.CIR) and adds it to the queue.

Shortcut: INS

<MRU list>

Lists the most recently used file(s).

Exit

Exits the Simulation Manager.

The Simulation Manager Edit menu

The Edit menu provides functions for modifying the list of jobs in the queue. Most of these commands are reproduced in the toolbar as well. For a description of the toolbar commands, click The Simulation Manager Toolbar.

Menu command…

Function…

Delete

Deletes the selected file from the queue.

Shortcut: DEL

Move Up

Moves the selected file up one position in the queue.

Move Down

Moves the selected file down one position in the queue.

Select All

Selects all files in the queue.

Delete All

Deletes all files in the queue.

The Simulation Manager View menu

The View menu provides controls for what is displayed in the Simulation Manager.

Menu command…

Function…

Simulation Results

Displays the simulation results in PSpice for the selected simulation.

Output File

Opens the output file for the selected simulation and displays it in PSpice.

Toolbar

When checked, this enables the display of the Toolbar. (The default setting is enable the display.)

Status Bar

When checked, this enables the display of the Status Bar. (The default setting is enable the display.)

Always On Top

Keeps the Simulation Manager on top of all other open applications.

The Simulation Manager Simulation menu

Overview

The Simulation menu provides controls for how the different simulations are processed by the Simulation Manager.

Menu command…

Function…

Run

Runs the selected simulation(s).

Pause

Pauses the selected simulation(s).

Stop

Stops the selected simulation(s).

Run Queued Items

Runs all of the simulations that are queued. The simulations will run in the order in which they are listed in the queue.

Queue Selected

Changes all selected simulations to "queued".

Reset Queue

Resets any "done" simulations to "queued".

Edit Settings

Opens the simulation profile for the selected simulation and allows you to change the analysis settings.

The Simulation Manager Tools menu

Overview

The Tools menu allows you to change certain default settings used by the Simulation Manager when starting a simulation.

Menu command... Function…

Options

Allows you to change certain default settings.

Customize

Allows you to customize toolbars and commands.

Related Topics

For information about...

Click this topic…

Options that can be set in the Simulation Manager...

Setting options in the Simulation Manager

The Simulation Manager Toolbar

The Toolbar provides quick access to the most commonly used functions in the Simulation Manager. All of the buttons on the Toolbar have tooltips to help remind you of what they do – just pass the cursor over the button to see the tooltip.

Toolbar button

Function

Always On Top

Keeps the Simulation Manager on top of all other open applications.

Add Simulation

Adds a file to the queue. Shortcut: INS

Move Down arrow

Moves the selected file down one position in the queue.

Move Up arrow

Moves the selected file up one position in the queue.

Delete

Deletes the selected file from the queue. Shortcut: DEL

Edit Simulation Profile

Opens the simulation profile for the selected simulation and allows you to change the analysis settings.

Run Queued Items

Runs all of the simulations that are queued. The simulations will run in the order in which they are listed in the queue.

Run Selected

Runs the selected simulation(s).

Stop Selected

Stops the selected simulation(s).

Pause Selected

Pauses the selected simulation(s).

View Simulation Results

Displays the simulation results in PSpice for the selected simulation.

View Output File

Opens the output file for the selected simulation and displays it in PSpice.

Entering distributions

To enter your own distribution

  1. Under Monte Carlo Options, click the Distributions button.
  2. In the Distribution name text box, type a name for the distribution, then click Save to save the distribution with the current simulation profile.
  3. In the Distribution curve values text box, type distribution curves, using the format:
    (<deviation>,<probability>)
  4. To remove a distribution from the current simulation profile, under Existing distributions, select the distribution name and click Delete.
  5. Click OK to close the Distributions dialog box and return to the Simulation Settings dialog box.

For more information on distributions, refer to the .DISTRIBUTIONS section of the Commands chapter of the PSpice Reference Manual.

Using markers

You can place markers in your design to indicate the points for which you want to see simulation waveforms displayed in PSpice. You can place markers before or after simulation is done.

When placed before simulation, markers can be used to limit results written to the waveform data file and to automatically display those traces in PSpice. After simulation results appear in PSpice, placing additional markers on the design automatically displays traces in the current Probe window.

Power markers allow you to measure the power dissipation of a particular device. You can use these markers in the same way you use current and voltage markers. Power markers are annotated with "W" and are placed on devices that have PSpice models. The corresponding power dissipation waveforms for the devices will be calculated and displayed in Probe.

Markers can be placed on subcrcuit nodes as well. This allows you to perform cross-probing between the front-end design entry tool and PSpice at the lower level circuits of a hierarchical design.

The available markers are as follows:

Waveform Markers menu command Advanced submenu command

voltage

Voltage Level

(not required)

digital signal

Voltage Level

(not required)

voltage differential

Voltage Differential

(not required)

current

Current Into Pin

(not required)

dB

Advanced

dB Magnitude of Voltage

dB Magnitude of Current

phase

Advanced

Phase of Voltage

Phase of Current

group delay

Advanced

Group Delay of Voltage

Group Delay of Current

real

Advanced

Real Part of Voltage

Real Part of Current

imaginary

Advanced

Imaginary Part of Voltage Imaginary Part of Current

power

Power Dissipation

(not required)

Quiescent power information will be shown only for devices with analog interface pins. It is not currently possible to determine the exact power consumption for devices with digital interface pins.

Limiting waveform data file size

When PSpice performs a simulation, it creates a waveform data file. The size of this file for a transient analysis is roughly equal to:

(# transistors) * (# simulation time points) * 24 bytes

The size for other analysis types is about 2.5 times smaller. For long runs, especially transient runs, this can generate waveform data files that are several megabytes in size. Even if this does not cause a problem with disk space, large waveform data files take longer to read in and take longer to display traces on the screen. You can limit the file size by suppressing part of the data from a transient run. For more details, click Suppressing data from a transient run.

You can also limit the waveform data file size by setting options that determine how much data is collected. For more details on these data collection options, click Setting data collection options.

Setting data collection options

One reason that waveform data files are large is that, by default, PSpice stores all net voltages and device currents for each step (for example, time or frequency points). However, if you have placed markers on your schematic prior to simulation, PSpice saves only the results for the marked wires and pins.

To limit file size by setting collection options

  1. Choose PSpiceEdit Simulation Profile to display the Simulation Settings dialog box.
  2. Click the Data Collection tab.
  3. In the Data Collection Options section, choose the desired option for each type of marker (Voltages, Currents, Power, Digital, Noise).

    Option

    Description

    All

    All data will be collected and stored. (This is the default setting.)

    All but Internal Subcircuits

    All data will be collected and stored except for internal subcircuits of hierarchical designs (top level data only).

    At Markers Only

    Data will only be collected and stored where markers are placed.

    None

    No data will be collected.

  4. Select Save data in the CSDF format (.CSD) if you want the data to be stored in this format.
    By default, the probe data has an accuracy of 64-bit. You can change this to 32-bit.
  5. Click OK to close the Simulation Settings dialog box.
  6. From the PSpice menu, point to Markers, then choose the marker type you want to place.
  7. Point to the wires, pins or devices you wish to mark and click to place the chosen markers.
  8. Right-click and select End Mode to stop placing markers.
  9. From the PSpice menu, choose Run to start the simulation.
    When the simulation is complete, the corresponding waveforms for the marked nodes or devices will be displayed in Probe.

Suppressing data from a transient run

Long transient simulations create large waveform data files because PSpice stores many data points. You can suppress a part of the data from a transient run by setting the simulation analysis to start the output at a time later than 0. This does not affect the transient calculations themselves – these always start at time 0. This delay only suppresses the output for the first part of the simulation.

To limit file size by suppressing the first part of transient simulation output

  1. Choose PSpiceEdit Simulation Profile to open the Simulation Settings dialog box.
  2. Select the Analysis tab.
  3. From the Analysis Type list, select the Time Domain (Transient) option.
  4. In the Start saving data after text box, specify a delay time.
  5. Click OK to close the Simulation Settings dialog box.
  6. Choose PSpiceRun to start the simulation.

The simulation begins, but no data is stored until after the delay has elapsed.

Assigning marker colors

When you place markers, they are initially grey. Once PSpice completes the simulation and displays the marked traces, colors are automatically assigned to them. The color assigned to a marker will also be the color of its trace in PSpice.

To assign a new marker color

  1. In PSpice, right-click a trace and choose Properties.
  2. Select the color you want for the trace from the drop-down Color list.
  3. Click OK.
    The color you assign for the trace in PSpice will then be associated with the corresponding marker in schematic page.

Viewing results

Use PSpice to view and perform waveform analysis of the simulation results.

To view results for the current design

  1. From the PSpice menu, choose View Simulation Results.

To automatically start PSpice after simulation

  1. Choose PSpiceEdit Simulation Profile to display the Simulation Settings dialog for the currently active profile.
  2. Click the Probe Window tab, then select Display Probe window after simulation has completed.
  3. Select any other options you want to use.
  4. Click OK.

Viewing results as you simulate

You can configure PSpice to run automatically when the simulation has finished, or to monitor waveforms as the simulation progresses.

To start PSpice and monitor results during a simulation

  1. To enable waveform monitoring, do the following:
    • Choose PSpiceEdit Simulation Profile.
    • Click the Probe Window tab, then select Display Probe window during simulation.
    • Click OK.
  2. From the PSpice menu, choose Run to start the simulation. PSpice starts automatically and displays one window in monitor mode.
  3. In PSpice, select the waveforms to be monitored by using the Add Trace command on the Trace menu or by placing markers.
  4. During a multiple run simulation (such as Monte Carlo, parametric or temperature), only the data for the first run is displayed. To view the curves for several runs:
    • To close the data file, choose Close from the File menu, then choose Open from the File menu to reload it.
    • Specify the data sections (runs) to load.
    • Select the traces to monitor. Waveforms for all loaded sections are displayed.

Configuring PSpice Display of Simulation Results

To configure what PSpice displays when it is started, choose PSpiceEdit Simulation Profile, click the Probe Window tab, and then select one the following options under the Show frame:

Viewing Monte Carlo histograms

Monte Carlo analysis is frequently used to predict yields on production runs of a circuit. You can display data derived from Monte Carlo waveform families as histograms. This is part of the performance analysis feature of PSpice.

The data file generated by a Monte Carlo analysis can become quite large. You can limit what is displayed and view just a particular node by placing a voltage probe marker at the desired node in the circuit, and then collect data for only that node.

To display a histogram

  1. From PSpice’s Plot menu, choose Axis Settings.
  2. Select the X Axis tab.
  3. In the Processing Options frame, select the Performance Analysis check box.
  4. Click OK.
  5. From the Trace menu, select a measurement definition and a trace.
    The histogram display appears.

The Y axis is the percent of samples. The statistics for the histogram are shown along the bottom of the display. The statistics show the number of Monte Carlo runs, the number of divisions or vertical bars that make up the histogram, mean, sigma, minimum, maximum, 10th percentile, median, and 90th percentile.

Copying histogram data

You can use the copy function to transfer the raw histogram data points for a particular trace to the Windows clipboard. This allows you to save the data as a standard ASCII text file, or paste it directly into a report or other document for later reference.

To copy histogram data to the clipboard

  1. Select the trace name in the histogram.
  2. From the Edit menu, choose Copy (or press Ctrl + C).
    The histogram data points for the trace will be transferred to the Windows clipboard.

To copy the histogram display to the clipboard

1    From the Window menu, choose Copy to Clipboard.

The histogram graph will be transferred to the Windows clipboard.

Defining part properties needed for simulation

The part properties Implementation and PSPICETEMPLATE (for simulation) may already be defined for your parts, or you may have to edit them yourself, depending on which method you used to create the parts. In addition, you can add other simulation-specific properties: PSPICEONLY, IO_Level, MNTYMXDLY, and PSpiceDefaultNet.

This property…

Defines this…

Implementation

the name of the model that PSpice must use for simulation. Implementation type must be set to PSpice Model.

PSPICEONLY

an indicator that the part or special part applies only to simulation with PSpice.

PSPICETEMPLATE

the PSpice syntax for the symbol’s netlist entry.

IO_Level

what level of interface subcircuit model PSpice uses for a digital part that is connected to an analog part.

MNTYMXDLY

the digital propagation delay level that PSpice must use for a digital part.

PSpiceDefaultNet

the pin property specifying the net name to which a power (invisible) pin is connected.

  • Whenever you define a hidden pin for a part, the part editor automatically creates an PSPICEDEFAULTNET property.
Refer to the Defining Part Properties Needed for Simulation section of your PSpice User’s Guide for further information regarding part properties.

For a complete index of all the part properties and what they are used for, see Index of PSpice symbol and part properties

Handling unmodeled pins

There are parts that have some pins that are not modeled. To see an example of this, place an instance of the PM-741 part from the OPAMP.OLB part library. The OS1 and OS2 pins are not modeled, so only the +, -, V+, V-, and OUT pins are netlisted for simulation.

For the simulator, these pins are treated as a large resistor connected to ground. They have a pin property of FLOAT=Unmodeled.

Double-click the part to see the Property Editing dialog box. Note that the PSPICETEMPLATE property for the part only calls out the +, -, V+, V-, and OUT pins. The OS1 and OS2 pins are not called out in the PSPICETEMPLATE because those two pins are not modeled in the simulation model for the PM-741 part. You can view the simulation model definition for the PM-741 part.

To view a part’s simulation model

  1. Click the part to select it.
  2. Right-click and select View PSpice Model.
    The model definition opens in a new tab and cannot be edited.

Saving a copy of your project

Use the Project Manager in Capture to save all of your simulation settings and analysis setup, as well as your schematic. To save a copy of a project

  1. In the Project Manager in Capture, from the File menu, choose Archive Project.
  2. Select Library files, Output files and/or Referenced projects, depending on what types of files you want to archive. Typically, you will want to include all file types to be sure you save everything related to the project.
  3. In the Archive directory text box, enter the path where you want the new archive copy to be stored, or use the Browse button to locate the directory.
  4. Click OK to create the archive of your project in the specified directory.
The .DAT and .ALS files are not saved with the project.
Note:

Return to top