The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 26th, 2024, 8:44am
Pages: 1
Send Topic Print
Charge tolerance in Spectre (Read 644 times)
vm511
Junior Member
**
Offline



Posts: 15

Charge tolerance in Spectre
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!
Back to top
 
 
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2384
Silicon Valley
Re: Charge tolerance in Spectre
Reply #1 - 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
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.