Giles Atkinson
4df2e69009
Fix Bug #629 - "XSPICE d_osc failures". The old code has been completely
replaced by a new design that is faster, more reliable and does not
usually insert analog breakpoints.
3 years ago
Giles Atkinson
6b0ab44f1e
Add code in ivars.c to look for a SPICE_ROOT environment variable
that gives the location of the ngspice installation. That allows
binaries to be installed in a different directory to the one
compiled in. The spinit startup file is made location-independent
by passing a variable giving the location of loadable modules,
so this fixes Bug #615 -
"spinit contains arch dependent paths, but is installed as noarch DATA".
3 years ago
Giles Atkinson
4cc0ac846d
Add an option for parameters to the xfer code model to be provided
in a Touchstone-format file instead of as a model parameter.
The change to mif_inp2.c allows the "table" parameter to be omitted.
3 years ago
Giles Atkinson
84821a4cf5
Add support for including analog node changes in VCD file output,
and an option to explicitly set the VCD timestep. Correct the
output value for high-impedance nodes.
3 years ago
Holger Vogt
3adfa89cfc
Prevent crash when number of parameter dependencies increases beyond
limit. Raise the limit from 100 to 200.
3 years ago
Holger Vogt
18911b06b6
re-enable rcheck debug output with WINGUI
3 years ago
Holger Vogt
aa10f9344e
Add variable "csnumprec" to allow setting the precision of vectors
and variables as arguments to functions listet in manual chapter 17.5.
Default is 6, as has been standard up to now.
3 years ago
Holger Vogt
6c48657896
Make status report (MS Windows only) a little smarter.
3 years ago
Holger Vogt
fe3222a118
Add an option nginfo to enable a status report during simulation
(currently available only with MS Windows GUI version).
3 years ago
Holger Vogt
c66f9faaab
Remove compiler warnings (VS2022)
3 years ago
Brian Taylor
b79eca646b
Prevent crashes in udevices.c when malformed U* instances are present. This would happen with incorrectly written U* gates, ff, latches which do not conform to the PSpice specs. Instead, ERROR messages are output which, hopefully, will help a user to debug their subckt.
3 years ago
Giles Atkinson
480e269102
Allow netlist lines to grow during parameter substitution,
removing a 25-character limit on the size of string parameters.
3 years ago
Giles Atkinson
576f218945
Fix the NAND and NOR variants of XSPICE code model multi_input_pwl
and add an example of its use with the E-source NAND variant.
3 years ago
Giles Atkinson
3a260fd4d9
Fix Bug 584 - "XSPICE dac_bridge model shows incorrect output timing."
Remove reliance on exact breakpoint timing and tidy code.
3 years ago
Holger Vogt
bc41e48126
Change message from Circuit2 to Parse
3 years ago
Brian Taylor
4d8b105b86
Simplify expression nesting depth.
3 years ago
Brian Taylor
251f1e1984
The channel data needs to be freed for some 2D Cider devices. This shows up with some of the examples/cider/parallel circuits.
3 years ago
Holger Vogt
d74e43f0f0
Move extern declaration to the top, out of any function.
Thus remove VC2022 compiler warnings.
3 years ago
Brian Taylor
159e185bfe
Tidy up sp_shutdown with Cider.
3 years ago
Brian Taylor
51b361bbf0
When Cider models are present, a normal batch mode sp_shutdown (for example, ngspice -b cmosinv.cir) will call com_quit(NULL). This cleans up so that valgrind will find no leaks in Cider devices after sp_shutdown. To disable this feature, set the environment variable CIDER_COM_QUIT="OFF". Even though it really does not matter that Cider memory is cleared just before exit, it makes it cleaner for valgrind checks.
3 years ago
Holger Vogt
ba2842b55a
Prevent a crash if p==NULL (due to buggy input)
3 years ago
dwarning
794a37339a
ifft: in case input array is smaller then output array - fill in the rest with zero to prevent uninitialzed plot variables
3 years ago
dwarning
42b803e5c2
same array size for in- and output in inverse fft function from fftw3
3 years ago
Brian Taylor
25c1c971e5
Fix the Cider memory leaks from setupContacts. TWOdestroy needed to free the contact nodes.
3 years ago
Brian Taylor
f39f89ea9b
Add DEVmodDelete functions to reduce memoory leaks in Cider models. The model memory was not freed during remcirc or quit. In the future, some of the code duplication could be refactored. The cmosinv.cir is now down to just 1 memory leak.
3 years ago
Brian Taylor
db8ac72199
The CONTACT statement does not apply to 1D devices.
3 years ago
Brian Taylor
844ea11a63
Fix some more memory leaks in the CIDER 1D and 2D destroy functions.
3 years ago
Giles Atkinson
a60b7f5630
Fix sluggish output of the "Reference value" progress indicator on Linux
after it switched from stderr to stdout (28a3413). Add fflush().
3 years ago
Giles Atkinson
ac6487932b
Make the returned status of the "shell" command available as interpreter
variable "shellstatus". Also change the default shell to /bin/sh
as csh is now rare.
3 years ago
Giles Atkinson
1c1a53bac8
Set default colours for the button box in the X11 plot window that
match the default dark background of the plot.
3 years ago
Brian Taylor
80e44a32d6
Add missing FREE to reduce some of the Cider memory leaks.
3 years ago
Giles Atkinson
5f6a6a27d8
Further fix for PWL bugs introduced by 9c71db3 (Fix for Bug #607 ) and
partially fixed by 79c69e0 and 9c75367. This also fixes Bug #468 -
"Bugs in src/spicelib/devices/vsrc/vsrcacct.c for PWL source."
3 years ago
Giles Atkinson
5114d6c2f4
Add an option to the iplot command: -d sets the number of simulation
steps before the window is shown. The value can be chosen to
limit rapid resizing when starting and that is used in the PLL examples.
3 years ago
Giles Atkinson
e5a931e537
Improve commands for vector scales. "setscale" can now change
or clear the scale of an individual vector and "compose" can
explicitly create a vector from XSPICE event node history.
3 years ago
Holger Vogt
d3dccc68b2
Error print output consistenly only to stderr.
Replace out_printf by fprint(stderr, ...
3 years ago
Holger Vogt
87f0db6f50
Prevent crash when ControlledExit* is not initialized
in ngspice shared library.
3 years ago
Holger Vogt
b0f2ab8764
Fix bug 637
Prevent crash when external current source is used.
3 years ago
Holger Vogt
90d8f7f34f
Prevent crash if EXTERNAL voltage source is used
Fixes
98763c0ad ("Note: ix: dc value used for op instead of transient time=0 value Former warning message or note only issued when dc value and value at transient time=0 differ.", 2022-09-20)
3 years ago
Holger Vogt
4421d95379
improve comment
3 years ago
Holger Vogt
a28784d6d7
Prevent crash if *line == NULL
3 years ago
Holger Vogt
53b72a7693
Skip title line when resorting .params, .meas, .temp
3 years ago
Giles Atkinson
762b131bb3
Fix Bug #635 - "Starting ngspice with HOME env variable unset causes segfault".
3 years ago
Holger Vogt
eda9cadbed
The 'plot' command is not available in batch mode.
Issue a warning and ignore it.
3 years ago
Holger Vogt
0e6b785728
Remove the error message when a simulation has been started via the .control section.
3 years ago
Holger Vogt
f5091bdc2d
Make the error message a little more reasonable.
Unfortunately the current setup does not easily allow naming
the offending command.
3 years ago
Holger Vogt
c7ebb7aabb
Error message up to now was strictly for command line interactive use only.
Improve error message when parsing .ac lines.
3 years ago
Holger Vogt
d46cd894cc
Prevent crash if s == NULL
3 years ago
Holger Vogt
7f8e1cecab
Allow ';' also at the beginning of a line.
3 years ago
Holger Vogt
c1db561373
No syntax check for title line
3 years ago
Holger Vogt
0c1f114dea
add comment
3 years ago