Menu

#22 PULSE source places breakpoints when XSPICE is available

Unstable (example)
open
nobody
None
5
2014-02-17
2014-02-17
No

This is a hack that works exceptionally
well for the type of circuits that I am interested in.

It is possible to let the standard SPICE pulse source place
temporary breakpoints on its discontinuous signal edges.
The breakpoints are done with cm_analog_set_temp_bkpt(), which
is only possible when XSPICE is enabled (I did not
conditionally compile these calls).

The breakpoints dramatically improve the ability of
NGSPICE to correctly simulate power electronics
circuitry (without the need to make maxstep very small
and thereby slow the simulation down).

Appended vsrcload.c

-marcel

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.