The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Charge tolerance in Spectre
https://designers-guide.org/forum/YaBB.pl?num=1562769810

Message started by vm511 on Jul 10th, 2019, 7:43am

Title: Charge tolerance in Spectre
Post by vm511 on Jul 10th, 2019, 7:43am

Hi,
In experimenting with offset cancellation using very small capacitors, I was facing an issue with the accuracy and was wondering if there's a way to change the charge tolerance in Spectre. I came across chgtol while looking for this, but wasnt able to find it in spectre.
Would be grateful if someone could help. Thanks!

Title: Re: Charge tolerance in Spectre
Post by Ken Kundert on Jul 10th, 2019, 3:15pm

The most efficient way to reduce charge conservation errors is to tighten reltol while loosing lteratio at the same time (reltol is a simulator option while lteratio is a transient option).  Tightening reltol tightens the control of both KCL errors and timesteps. But shrinking the timestep does not help with conservation errors, so you can reduce the slowdown you experience by loosening lteratio, which only affects the time steps.  If you tighten reltol and loosen lteratio by the same amount then you should get roughly the same number of time points while controlling conservation errors.

Having said that, if you are having conservation errors, you should check your capacitor models. Many nonlinear capacitor models written in Verilog-A have charge conservation problems. If you are using such model you are doomed.

-Ken

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.