Recommendations for best SPICE package (especially convergence)

  • Thread starter berkeman
  • Start date
  • Tags
    Convergence
In summary, Warren recommends using a nodeset or initial condition before trying to move to another simulator. If the simulator doesn't provide a nodeset or initial condition, he suggests trying again. He also recommends using a physically realistic stimulus and making sure all stimuli are physically realistic.
  • #1
berkeman
Mentor
66,982
19,778
We used Analog Workbench on Sun UNIX workstations for many years here at work, but transitioned to a Windows-based SPICE package about 8 years ago. The package has worked reasonably well, and we have gotten great technical support from the vendor.

However, we are facing some especially vexing convergence issues with some circuits that we are re-simulating (they worked fine on Analog Workbench many years ago), and I was looking for input from other power-SPICE users out there about SPICE packages that you use and have found relatively free of convergence issues (especially DC convergence). Or, if you have run into convergence issues, and your SPICE package has enough hooks and handles to help you to get the simulation to converge and start.

Thanks for any input. I'm not mentioning which package we're using because of the good technical support we have gotten over the years -- they just haven't been able to help with this particular circuit's convergence problem.
 
Engineering news on Phys.org
  • #2
Try using a nodeset or initial condition before trying to move to another simulator.

- Warren
 
  • #3
chroot said:
Try using a nodeset or initial condition before trying to move to another simulator.

- Warren

Yeah, done that. It helps for the Transient analysis, but not for DC. We're getting a feedback oscillation around the actual value, but this package doesn't let us decrease the step size in the convergence process to a small enough value to help the convergence along...

What package do you use, Warren?

We have HSPICE too for more IC design work, and haven't tried this circuit yet because of the clunky HSPICE interface (we probably will at some point), and because we aren't set up for Monte Carlos with HSPICE.
 
  • #4
It doesn't matter. If you can give the simulator a nodeset with a stable solution, then you've gauranteed convergence. End of story. If you gave it a nodeset and it didn't work, then you gave it a nodeset that wasn't actually a solution. Try again.

I mostly use Spectre.

- Warren
 
  • #5
chroot said:
It doesn't matter. If you can give the simulator a nodeset with a stable solution, then you've gauranteed convergence. End of story. If you gave it a nodeset and it didn't work, then you gave it a nodeset that wasn't actually a solution. Try again.

I spoke more with the engineer who is encountering this problem, and he says that for the SPICE package we are using, when you use nodeset for a DC analysis (we're doing Monte Carlos to check variations of DC operating points at the moment), that constrains the value of that node for the whole process, not just for the intial stabilization and convergence. But we want to be able to let go of that node at some point, to see what its real final stable value is, not just the other nodes with that node constrained artificially. For Transient analysis, the nodesets are released once the initial stable operating point is acheived.

Do you know if Spectre allows the nodeset to be released at some point in the DC analysis? Pretty pricey SPICE package! BTW, the engineer having this issue has used Spectre a fair amount in the past at another company, and he said that in general, he did not have many convergence problems with the latest versions of that package.
 
  • #6
There may be some differences between a "nodeset" and an "initial condition," then, in your simulator. I'm not suggesting that you fix nodes to any specific values for the duration of a simulation, only that you provide the simulator with a specific, desired solution so that convergence can be effectively skipped. Look into .ic and other such commands.

Also, make sure that all your stimuli are physically realistic. I've seen many people apply power supplies with zero rise-time and wonder why it doesn't converge...

And yeah, Spectre's pricey, but we're an analog design house. Carpenters need hammers.

- Warren
 
  • #7
Another, more invasive technique is to remove parts of the circuit that are causing convergence issues, run a .dc and store the result as a nodeset. Then you can put the circuit back together, and use that nodeset as an initial condition for most of the circuit, and that's often enough to allow the simulator to converge to only one specific solution.

- Warren
 

1. What is the best SPICE package for convergence?

The best SPICE package for convergence will depend on your specific needs and preferences. Some popular options include LTspice, PSpice, and HSPICE. It is important to research and compare features, user reviews, and support options before making a decision.

2. How do I ensure convergence in my SPICE simulations?

To ensure convergence in your SPICE simulations, you should make sure to use appropriate model parameters, set proper initial conditions, and use convergence aids such as convergence assistants or convergence plots. It is also important to carefully check your circuit design for potential issues that could prevent convergence.

3. What causes convergence issues in SPICE simulations?

Convergence issues in SPICE simulations can be caused by a variety of factors. Some common reasons include incorrect model parameters, improper initial conditions, circuit design flaws, or numerical instability. It is important to carefully review and troubleshoot your simulation setup to identify the source of the convergence issue.

4. How can I improve convergence in my SPICE simulations?

To improve convergence in your SPICE simulations, you can try using smaller time steps, adjusting model parameters, or using different convergence aids. It is also helpful to ensure that your circuit design is well-optimized and does not have any potential issues that could hinder convergence.

5. What should I do if my SPICE simulation does not converge?

If your SPICE simulation does not converge, you should first review your simulation setup and try adjusting model parameters or using convergence aids. If the issue persists, you may need to troubleshoot your circuit design for potential issues. In some cases, it may also be helpful to consult other users or experts for assistance.

Similar threads

  • Electrical Engineering
Replies
1
Views
2K
  • Electrical Engineering
Replies
4
Views
4K
  • Electrical Engineering
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
12
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • Electrical Engineering
Replies
8
Views
893
  • Electrical Engineering
Replies
5
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
1K
  • STEM Academic Advising
Replies
13
Views
2K
Back
Top