Holger Vogt
3fd7bd2183
Prevent crash when ControlledExit* is not initialized
...
in ngspice shared library.
2023-06-18 10:32:01 +02:00
Holger Vogt
8d9695d7d6
Fix bug 637
...
Prevent crash when external current source is used.
2023-06-18 10:29:43 +02:00
Holger Vogt
82796a6fa6
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)
2023-06-14 15:34:45 +02:00
Holger Vogt
5761b71ecd
improve comment
2023-06-13 20:06:27 +02:00
Holger Vogt
a244e023c4
Prevent crash if *line == NULL
2023-06-13 20:05:49 +02:00
Holger Vogt
818bd19798
Revert "Prevent crash if *line == NULL"
...
This reverts commit b72f9516ac .
2023-06-13 20:02:27 +02:00
Holger Vogt
216e5cb58b
Skip title line when resorting .params, .meas, .temp
2023-06-13 19:57:19 +02:00
Holger Vogt
b72f9516ac
Prevent crash if *line == NULL
2023-06-13 19:56:07 +02:00
Giles Atkinson
2740d9a79b
Fix Bug #635 - "Starting ngspice with HOME env variable unset causes segfault".
2023-06-13 19:54:49 +02:00
Holger Vogt
bda4a83dc6
Revert "Skip the title line when re-sorting parameters"
...
This reverts commit 72496da4c9 .
2023-06-12 23:20:46 +02:00
Holger Vogt
630e800bd6
The 'plot' command is not available in batch mode.
...
Issue a warning and ignore it.
2023-06-09 16:31:04 +02:00
Holger Vogt
28f641b318
Remove the error message when a simulation has been started via the .control section.
2023-06-09 16:10:37 +02:00
Holger Vogt
d76e7362e7
Make the error message a little more reasonable.
...
Unfortunately the current setup does not easily allow naming
the offending command.
2023-06-09 16:09:57 +02:00
Holger Vogt
cdf66fac6b
Error message up to now was strictly for command line interactive use only.
...
Improve error message when parsing .ac lines.
2023-06-09 14:45:43 +02:00
Holger Vogt
72496da4c9
Skip the title line when re-sorting parameters
...
and removing .meas statement.
2023-06-09 14:44:40 +02:00
Holger Vogt
bf1dfa0127
Prevent crash if s == NULL
2023-06-07 16:25:24 +02:00
Holger Vogt
5e73be130a
Allow ';' also at the beginning of a line.
2023-06-04 14:53:38 +02:00
Holger Vogt
a99caf504f
No syntax check for title line
2023-06-04 14:36:27 +02:00
Holger Vogt
1ff095321c
add comment
2023-06-04 14:36:03 +02:00
Holger Vogt
525d221325
Prevent crash if no or not enough coeffs are given.
...
r is then probably not the repeat coefficient.
2023-06-04 14:23:09 +02:00
Holger Vogt
6dc09e6592
During syntax check: v,i sources need two nodes,
...
and prevent crash upon buggy ac input.
2023-06-04 14:01:44 +02:00
Holger Vogt
1ddb1f58b4
Bail out if {...} or '...' are missing around RHS of the equation.
...
(...) may be possible, elsewhere additional {} are put around,
so we have {(...)}.
2023-06-04 10:36:21 +02:00
Holger Vogt
3a535f19db
Add a control language function cvector, to create a complex vector.
...
Let vec1 = cvector(50)
will generate a complex vector, with the real part values
increasing from 0 to 49, the imaginary values are set to 0.
Useful in ac loops to store result data.
2023-06-04 09:46:13 +02:00
Holger Vogt
10e86d72d3
Prevent crash upon buggy user input (missing ] or >)
2023-06-03 17:09:10 +02:00
Holger Vogt
a03369fc12
Improve error message
2023-06-03 15:48:06 +02:00
Holger Vogt
7de5fd276e
CIDER: Plug some memory leak
2023-06-02 22:30:27 +02:00
Holger Vogt
27173c9622
CIDER: Plug some memory leaks by adding to TWOdestroy()
2023-06-02 19:44:34 +02:00
Holger Vogt
5ba0177f21
CIDER: Plug small memory leaks in INPparseNumMod()
2023-06-02 19:43:47 +02:00
Holger Vogt
981c63f1ab
Add an extra model stitching for CIDER only.
...
This one fills in actualLine, which is use by
parsing the CIDER model parameters in INPparseNumMod()
from inpgmod.c
2023-06-02 15:31:28 +02:00
Holger Vogt
88500c640a
Enable compiling with MSVC
2023-05-31 16:04:57 +02:00
Giles Atkinson
e61db1d2cd
Add parsing and translation of the FREQ form of E-source devices,
...
integrated with the existing parsing of AND/NAND/OR/NOR forms (inpcom.c).
For the implementation, add a new analog XSPICE code model, xfer.
Add an example to examples/sp.
2023-05-31 16:04:51 +02:00
Giles Atkinson
37453db34d
Fix Bug #623 - "Parser warning for voltage source".
...
Do not warn when a single-element vector lacks parentheses.
2023-05-29 09:47:44 +01:00
Giles Atkinson
94da54bcea
Always propgate any individual scale for a vector that appears
...
in an expression, resolving conflicts by matching length and warning
only when making an arbitary choice. One effect of this is that it
is now possible to mix analog nodes with offset digital nodes
(an expression like dvalue+6) without a warning and get a correct plot.
2023-05-29 09:47:27 +01:00
Giles Atkinson
d55143edca
When creating a plot vector from XSPICE event history, add a
...
final point at the end of the vector, so that a plotted line
does not end at the last event, leaving an odd spike.
2023-05-29 09:47:03 +01:00
Giles Atkinson
0616965a67
Fix Bug #630 - "pwl if r=last time, simulation never ends".
...
Allowing a PWL repeat to start at the last time-point makes no sense.
2023-05-29 09:19:18 +01:00
Giles Atkinson
9c75367cfb
Fix another error in 9c71db3a72.
2023-05-29 09:19:18 +01:00
Giles Atkinson
6c420525d0
Apply a patch from Aleksey Morozov to fix a bug that he identified
...
and reproduced. It is the same as Bug #331 -
"XSpice skips digital output point" except that it applies to the
instance queue, not the event queue.
2023-05-29 09:19:18 +01:00
Holger Vogt
1cd15e382e
Reduce excessive use of TREALLOC
2023-05-27 16:44:30 +02:00
Holger Vogt
fb0696107e
Better visibility of the results
2023-05-27 16:43:35 +02:00
Holger Vogt
a56b8b2190
Revert "Reduce excessive use of TREALLOC"
...
This reverts commit 6c64d463c8 .
2023-05-27 16:17:23 +02:00
Holger Vogt
6c64d463c8
Reduce excessive use of TREALLOC
2023-05-26 13:31:08 +02:00
Holger Vogt
5f39fd80fb
re-formatting the code
2023-05-26 12:16:55 +02:00
Holger Vogt
61f7188ef0
Slightly improve error handling and warning message
2023-05-22 15:18:39 +02:00
Holger Vogt
3071cdd2d5
.csparam: Add some safeguarding against wrong input and crash,
...
allow multiple parameters in a .csparam row (like .param).
2023-05-22 14:46:17 +02:00
Holger Vogt
ba2facc718
remove unused header file
2023-05-21 12:16:33 +02:00
Holger Vogt
8f2d311062
More info
2023-05-21 12:16:13 +02:00
Holger Vogt
edf2c625e1
Safeguard against bad arguments (no crash upon NULL)
2023-05-17 10:08:38 +02:00
Holger Vogt
b271b6d9e3
safeguard against crash upon buggy input
2023-05-17 09:32:23 +02:00
Holger Vogt
2206956bc1
Make error message more verbose and useful
2023-05-13 23:43:44 +02:00
Holger Vogt
73e3e7f952
Correct the warning message
2023-05-12 20:02:31 +02:00