Holger Vogt
3ff9643f49
Add a scale factor 'a' (atto, 1e-18)
3 years ago
holger
f9ed3fd080
Patch by Robert Turnbull: remove warning messages
3 years ago
Giles Atkinson
7ead974a5a
Prevent crash when cm_analog_set_temp_bkpt() is called during OPtran().
3 years ago
Giles Atkinson
73e8fed0fc
Fix warnings from gcc 10.2.1.
3 years ago
Holger Vogt
ba6ff75dab
Trim trailing spaces
3 years ago
Holger Vogt
f26c9146f5
Don't allocate memory for control array at every time step
Use loc instead, setting it up once during INIT
3 years ago
Holger Vogt
e47049f31a
Add STATIC_VAR_TABLE locdata
Add CALLBACK cm_d_pwm_callback
Reserve memory for x, y arrays only once during INIT
3 years ago
Holger Vogt
ed6f802948
Add a guard on parameter 'position', limit to
1e-9 to 0.999999999
FIXME: the given parameter limits from ifspec.ifs are not recognized.
3 years ago
Holger Vogt
2d8ea17d65
Update on author
3 years ago
Holger Vogt
61d23b99ff
Patch required to allow compiling at Fedora with -Werror=format-security
Provided by Mamoru Tasaka
3 years ago
Giles Atkinson
01c4a5dff2
Fix memory leak reported by Brian Taylor.
4 years ago
Holger Vogt
9166f202a6
Streamline the simple diode model.
4 years ago
Holger Vogt
ec6a902fb9
Fix a bug in simple diode, when ilimit is set, but not epsilon.
Make model more similar to LTSPICE
Add an example
4 years ago
Giles Atkinson
d9952575dd
Correct the digital state resolution table, that was previously asymmetric.
An equivalent change is mentioned in the SPICE OPUS change history.
4 years ago
Giles Atkinson
372d9b2c87
Add bidirectional digital/analog bridge.
4 years ago
Giles Atkinson
e80b724460
Add two functions to the Code Model Library: cm_get_node_name()
makes circuit node names available to diagnostics, while
cm_probe_node() is needed for a bidirectional A/D bridge.
4 years ago
Giles Atkinson
06131d8107
Rewrite code with Visual Studio complaints.
4 years ago
Holger Vogt
519ce44227
safeguard against circuit not being abvailable,
avoid crash
4 years ago
Holger Vogt
1d026475a2
pwlts: a pwl v/i source with time input, smoothing and limiting functions
4 years ago
Holger Vogt
0af4932c6f
Prevent a crash if (due to input error) the node_table is not available.
4 years ago
Holger Vogt
2126230b64
Prevent crashes when nodes or tables are not available,
e.g. due to missing input file.
4 years ago
Giles Atkinson
a0357b3432
Remove search for "family" parameters on subcircuits in XSPICE
automatic bridging support as string-valued parameter support is
not yet intgrated.
4 years ago
Giles Atkinson
4115064fd5
Latest auto-bridge code from development branch.
4 years ago
Giles Atkinson
b1341c8e30
Insert XSPICE bridging devices automatically when an analogue node
has the same name as an XSPICE event node (including digital nodes).
The function Evtcheck_nodes() is replaced by a new version in its
own file.
4 years ago
Holger Vogt
c8ed9590b7
Handle the case when control voltages on and off are equal.
Update the linear switch: add the limits to resistance ron, roff
Update the log switch: correct the resistance calculation for
von < voff
Add some examples for the pswitch.
4 years ago
Giles Atkinson
8038021369
Remove some dead code in the dec_bridge code model.
4 years ago
Giles Atkinson
88d5e723ed
Fix double free in XSPICE CALLBACK functions as desribed here:
https://sourceforge.net/p/ngspice/mailman/message/37677362/
and add missing CALLBACKs in models that use STATIC_VARs with
pointer values.
4 years ago
Giles Atkinson
10d3e1b754
Extend the output and partial derivatives of the output from the 2/3-D
table lookup models (XSPICE) continuously outside the defined
rectangle or cube, as it may help convergence and avoid ambiguity caused
by rounding at the boundaries. See bug #591 "Wrong 2D table model output".
The value is that of the nearest point in the region while the reported
derivative is ramped to zero outside the boundaries.
Also fixes incorrect output at the upper limit in each dimension.
4 years ago
Giles Atkinson
8ef2d8dec8
Fix memory leak by moving the state transition table to a STATIC_VAR
whose memory can be recovered by a call back. Also make cfunc.mod
less ugly.
4 years ago
Giles Atkinson
dbf4c16bc0
Fix XSPICE memory leaks found by valgrind.
4 years ago
Holger Vogt
246f9f5e9e
d_pwm: Add a hybrid oscillator (analg control in, digital out) with PWM
(pulse width modulation) capability, oscillation frequency is a parameter.
The model has been derived from the d_osc example.
4 years ago
Holger Vogt
7130097710
Prevent crash when no simulation has been run and
asking for plotting an event node
4 years ago
Giles Atkinson
16f586b65e
Respect the "tstart" parameter when saving event node data (XSPICE).
Fixes Support Request #47 : "XSpice memory usage (TRAN TSTART effect)".
4 years ago
Brian Taylor
08bc3ccdd6
Remove compiler warnings (writ_ifs.c ipcsockets.c).
4 years ago
Holger Vogt
f0e9a35eb6
Add 'esave' command to save only specific event nodes.
Add a prompt for esave/eprint/eprvcd.
4 years ago
Holger Vogt
9308c6b077
Reuse memory for queued events.
Patch #109 - 2 provided by Giles Atkinson
4 years ago
Holger Vogt
8263e2a4da
The AD and DA hybrid XSPICE bridges consume a lot of
memory (one state per time step added). Memory of
previous time steps is not recovered.
Patch #109 by Giles Atkinson reduces memory consumption
dramatically (> factor of 10).
4 years ago
Holger Vogt
9be9f46f96
Remove unused function Evt_Data_destroy()
4 years ago
Holger Vogt
2f98a5b305
evtprint: prevent a crash when eprint has been called
but there is no simulation run.
4 years ago
Holger Vogt
6b41ad433a
Remove memory leak
Free some tokens generated by CNVget_token
Initialize reset and clk
Still missing: free 'states'
4 years ago
Holger Vogt
36fa47a8a0
Remove memory leak
Add callback function free_local_data
Free some tokens generated by CNVget_token
4 years ago
Holger Vogt
c895ca33f7
Pswitch: Fix a bug in resistance calculation when cntl_on < cntl_off
Correct setting of parens
5 years ago
Holger Vogt
eee639d98d
Rename the capacitor and inductor code models to capacitoric and inductoric
8e4db9109 ("adms bsimbulk and bsimcmg implementation based on work from Robert Larice", 2020-12-17)
changed inptypelk.c, line 37 from strcmp to strcasecmp.
Thus Capacitor (model for C) and code model capacitor are no longer
distinguished. Model parsing for the code models fails.
These code models are used very infrequently, thus renaming them
is a valid fix.
5 years ago
Holger Vogt
4ce4f52938
XSPICE d_source: prevent a crash when the input file is not found
5 years ago
Holger Vogt
d4c559421e
prevent crash if info.node_table has not been defined,
caused by some preceding error.
5 years ago
Holger Vogt
6aac403ab0
XSPICE delay: add some more safeguards
5 years ago
Holger Vogt
028dd0ab88
Remove unused
Add a delay of half a time step to reduce error
5 years ago
Holger Vogt
abc6eb56f3
Plausibility checking
Enforce out=in when delay == 0
5 years ago
Holger Vogt
fbab9a0fe2
Add an analog delay source for transient simulation
Internal circular memory of size tstop/tstep or user defined.
(aprox.) every tstep a value is stored.
Delay time in multiples of tstep, by control voltage or user defined.
Dc or ac sim will simply connect input to output.
5 years ago
Holger Vogt
93f6a50553
New author
5 years ago