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
Holger Vogt
22a516bc4d
New author
5 years ago
Holger Vogt
d36fcaf34c
Neew pswitch with patch 0001-pswitch-fix.patch from Jube 3rd, 21 at
https://sourceforge.net/p/ngspice/discussion/127605/thread/d55d2322f2/#c966/b802/4764/2540/3b3f/04a4/bc51/3a68
Input resistance, numerically computed derivatives with auto-partial, reasonable limits.
5 years ago
Holger Vogt
f12592871a
Set derivative d out/d contrl to 0 if outside of switching range.
Disable auto derivatives.
Enable algorithmic derivatives.
5 years ago
Holger Vogt
6d9876229c
Fixes bug #331
Bug detected and analysed by Arsen Liash
Patch provided by Yurii Demchyna
5 years ago
Holger Vogt
19ddeb8fe6
formatting (not complete)
5 years ago
Holger Vogt
545d2f9177
Report an error when trying to define ports
'v', 'vd', 'i', and 'id' as 'inout'
Parch 105 provided by Giles Atkinson
5 years ago
Holger Vogt
d7feec20fe
enable parameter 'gain'
patch provided by Bohdan Tkhir
5 years ago
Holger Vogt
d45e95aa4c
We no longer want to install cmpp or other XSPICE files.
The manual describes making code models from inside
the ngspice build process, and that's what we support
right now.
5 years ago
Holger Vogt
a5eac333bb
Revert "When installing ngspice, do not install the headers"
This reverts commit 5a0d213fec .
5 years ago
Holger Vogt
176023f470
Remove compiler warnings
5 years ago
Holger Vogt
3c354092ff
Line endings from \r\n to \n
5 years ago
Holger Vogt
5a0d213fec
When installing ngspice, do not install the headers
(all *.h), nor install dlmain.c and cmpp. Nearly all
users are not interested in creating code models, it is
not documated, and a much better way to create (and test)
code models is from within the ngspice sources (as is
documented in the manual).
5 years ago
Holger Vogt
68e14ad519
cross compile: -lshlwapi not hard-coded,
but via $(cmpp_LDADD)
Patch suggested by Érico Rolim
5 years ago
Holger Vogt
5c4af54be1
Windows.h -> windows.h
5 years ago
Holger Vogt
92c6ff26f5
add a flag 'LIMIT' to pwl code model. If set true,
the output is kept constant at y[0] when x is less then
x[0], or at y[xmax] when x > xmax.
Default is FALSE, then the output beyond the x bounds is
extrapolated linearly, as usual up to now.
5 years ago
Holger Vogt
a95700799d
install the callback function
6 years ago
dwarning
75228612c0
few fixes for prototypes
6 years ago
Holger Vogt
4d062ecc92
fix a bug in the derivative
6 years ago
Holger Vogt
1f6c4d6338
Add a new code model pswitch, behaviour directly compatible
to PSPICE (rounded corner at cntl_on)
6 years ago
Holger Vogt
fdc143ce16
Add a limit capability to the code model aswitch
Example switch-oscillators_inc.cir showed currents up to 3GA
6 years ago
dwarning
5f7f54d961
cleaning prototypes
6 years ago
dwarning
5d999be998
rm redundant redeclaration
6 years ago
Holger Vogt
a3380903be
Fix a bug in the comment of the file headers
6 years ago
Holger Vogt
1bcfe886f3
GPL instead of BSD
6 years ago
Holger Vogt
468769df16
Update on various licences for XSPICE code models
6 years ago
Holger Vogt
2335639848
License 3-clause BSD
Update to license information
6 years ago
Holger Vogt
df0ffcfc2b
XSPICE is Public Domain
Update to license info
6 years ago
Holger Vogt
cc5369816b
XSPICE is in the public domain.
Update to the license information.
6 years ago
Holger Vogt
617ed01a5b
licensi info:
Public Domain
Georgia Tech Research Corporation
Atlanta, Georgia 30332
PROJECT A-8503
6 years ago