Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Integration methods when simulating

Status
Not open for further replies.

CAMALEAO

Full Member level 4
Joined
Jul 29, 2016
Messages
201
Helped
2
Reputation
4
Reaction score
2
Trophy points
18
Activity points
1,868
Hi all,
I have simulated a comparator. Before the comparator trips where it should it trips a bit earlier with no apparent reason. I am using gear2only and tried traponly and when using the trapownly I don't see this strange behaviour. Basically I am sweeping the input of the comparator very slowly against a reference to assess the offset.

Is this normal? Has anyone seen something like this? Thank you
 

Maybe not "normal" but not unheard of. You can run into
numerical issues in high gain circuits, varying by integration
method.

TRAP has the problem of being underdamped / undamped.
If you look close enough there's always a tiny bit of
"sawtoothing" timepoint-to-timepoint. A minuscule error
that keeps repeating and reversing, can be gained up
by the circuit behavior to make significant error behaviors.

GEAR (variable-order) can be better or worse. I don't know
too much about GEAR. I used to use the default TRAPGEAR2
back in Cadence days, unless I saw kooky stuff like you
describe.

When stuff gets weird I like to fall back to Euler, which
is inherently damped (don't ask me why - math, mumble
mumble). The downside of Euler is that it can also damp
out real problem behaviors (like local oscillation / ringing).
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top