Holger Vogt
e84c210876
'Option interp' and command 'stop' have been incompatible.
Allow both in a run.
Issue note (however not checked) that stop time data have to fit
the inpolated times.
5 years ago
Holger Vogt
e35e3e3b33
prevent a crash, e.g. when incompatible 'option interp'
is set and 'stop' is called.
5 years ago
Holger Vogt
a180eb60d5
command 'wrnodev'
Write current node voltages to file in format .ic=value
The file may be used to set initial conditions for another simulation,
e.g. ac at a specific time step of a transient simulation.
5 years ago
Holger Vogt
3f322e1954
Add a check for sys/sysctrl.h, which has been declared deprecated,
and which may not be available (in the future) on some systems.
5 years ago
Holger Vogt
f06496c912
Enable command 'optran' in spinit or .spiceinit,
when the circuit is not yet loaded.
Then the optran data are stored in static variables,
until optran is called again with arg NULL from inp.c,
to set the data in ft_curckt->ci_defTask.
5 years ago
Holger Vogt
a225ce2aaf
List definition needs spaces between ( and next token,
and between token and )
Update to comment.
5 years ago
Holger Vogt
f0cb886af1
Add command 'write_ic'
Write out the right hand side status of the matrix in format
.ic = V(node_xx)
This may be possible at the end of a simulation or after a 'stop'
of the simulation, which may be resumed again afterwars. This
status may be used to start another simulation with these
parameters by inluding into the netlist.
5 years ago
Holger Vogt
0e72287af7
Add command 'write_ic'
Write out the right hand side status of the matrix in format
.ic = V(node_xx)
This may be possible at the end of a simulation or after a 'stop'
of the simulation, which may be resumed again afterwars. This
status may be used to start another simulation with these
parameters by inluding into the netlist.
5 years ago
Holger Vogt
ab6224767b
Add command 'optran' to set 6 flags for transient op
6 years ago
Holger Vogt
9221df234c
Patch to allow (and ignore) leading or trailing commas
when putting {} around tokens. Tested with PWL voltage source.
Patch has been suggested by Liqian Zhang
5 years ago
Holger Vogt
605f59b417
Fix a bug with the alter statement
lower case for device name, when sent from shared ngspice
or from interactive mode.
5 years ago
Holger Vogt
9cc9c56cad
Don't write past '\0', fixes a bug in commit
1c5e0d11d ("If there is a XSPICE code model .model line with
file input, keep quotes and case for the file path.", 2021-07-15)
5 years ago
Holger Vogt
b7473a33a0
Check for double '{', replace the inner '{', '}' by '(', ')'
in .subckt or .model (which both may stem from external sources)
5 years ago
Holger Vogt
1c5e0d11dd
If there is a XSPICE code model .model line
with file input, keep quotes and case for the file path.
5 years ago
Holger Vogt
15a3ed87c0
Enable the m parameter in E, G, B, R behavioral source/devices
5 years ago
Holger Vogt
d34d1e7c7c
Get immediate response into text window,
when requesting information on coordinates.
5 years ago
Holger Vogt
182a4d3f5f
WinGUI: Push any remaining error message into text window
before emitting interactive error message window and exit.
5 years ago
Holger Vogt
ae72677cc2
Remove a false read when curr_line has
already been invalidated.
5 years ago
Holger Vogt
0f25c25c7e
Remove a memory leak
Make inp_rem_levels non-static
and use it to remove 'root' after it has been used.
5 years ago
Holger Vogt
93ddc7a3eb
Enhancement for E source with table, convert to B source with pwl:
Add G source
Allow 'table' also being part of a parameter name like 'table_something'
5 years ago
Holger Vogt
9bb401d9cd
Add a 'qsort' dummy according to current compiler standards.
Detected during the very rare condition of not finding a 'qsort'
during the ./configure step.
5 years ago
Holger Vogt
76eac5aa0f
Make error message more verbode
5 years ago
Holger Vogt
a4be66b9b0
Prevent crash if there is bad syntax in h, g, e, or f line
5 years ago
Holger Vogt
31fbf910af
Crash when trying to delete root and netlist:
Revert the order of deletion: Firstly the root, then the netlist.
5 years ago
Holger Vogt
858689d206
Make syntax check for nesting of .subckt ... .ends more verbose:
Try to find out where .subckt/.ends may be doubled, or missing.
5 years ago
Holger Vogt
52b5e218c7
Add '\f' to characters to be replace by '+'
during the syntax check of an netlist input file.
5 years ago
Holger Vogt
dcde7b590e
Don't put brackets around dtemp and temp, when they denote
instance parameters and thus are on the left hand side of '='
5 years ago
Holger Vogt
19abc83312
Make the choice of last commit mor obvious
5 years ago
Holger Vogt
87a9d87f7d
Replace identifier by func not only after '=', but also '{'
Extension to commit
61e48f984 ("Start replacing identifiers by func only after the first '='", 2021-06-18)
5 years ago
Holger Vogt
68e51848a4
logic condition to check only 'x' lines had not been given
5 years ago
Holger Vogt
d0ca6a4773
Start replacing identifiers by func only after the first '='
5 years ago
Holger Vogt
36069467fb
Clarify that 'scale set to ...'
is not a query, but a statement
by 'scale is set to ...'..
5 years ago
Holger Vogt
5d1dfdf34e
Fix a comment
5 years ago
Holger Vogt
06136d2d02
Set the default line width for grid and graph to 1.
0 is possible but seems to be too thin for reasonable plots.
5 years ago
Holger Vogt
0d2d034eb2
Add devices s and w to previous commit.
R and C are not yet covered here, due to the many
varieties available.
5 years ago
Holger Vogt
c033298db9
Don't replace a device model name by a parameter, if both
have the same names.
This is an extension to commit
7706889a0 ("inpcom.c, fix bug no 384 do not quote fourth
token in f, h lines otherwise if dev name equals param
name parsing fails", 2018-12-08)
Fixes bug 327 reported by T. Edwards at
https://github.com/google/skywater-pdk/issues/327
5 years ago
Holger Vogt
03517ae86c
Define the function DevFinalize as used in the previous commit.
5 years ago
Holger Vogt
5e8ae680db
Don't do gr_redraw twice (for non-X11 is already
done in gr_resize)
Add a function DevFinalize() to add the closings in SVG or PS
files ("/> or "stroke"), when files are generated by the
plot window in MS Windows.
5 years ago
Holger Vogt
1176bdb0b0
Bug: Plot window switching did not change the plot content.
Enable plotting the current graph to svg or ps by selecting
the graph from the current plot window.
5 years ago
Holger Vogt
604c4624d1
Within a single run, allow multiple plots with different names:
Add an increasing number to the id file name.
5 years ago
Holger Vogt
273b773280
New pswitch is not compatible to iswitch
Keep the old aswitch until a modified pswitch is available.
5 years ago
Holger Vogt
5cc5e351f1
prepare for the new pswitch with g, gd input
5 years ago
Holger Vogt
9abb61d6ac
Bug fix for %i(node1) in an A instance.
Don't do i() replacement in an A instance as shown above.
5 years ago
Holger Vogt
c46676d06e
If compatmode PS is set, translate vswitch and iswitch to pswitch.
This reverts commit 025a9fe59 ("Partially undo commit [ab778d] : revert to aswitch as vswitch replacement", 2020-11-22)
Successful OpAmp tests vote for pswitch.
Enable iswitch.
5 years ago
Holger Vogt
db5395032f
Avoid model warning for C if compat flag lt is set.
5 years ago
Holger Vogt
7dd96c241c
PSPICE MC parameters are not (yet) supported, so remove them
from .model (lot, dev) and netlist (.distribution)
Triggered by Patch #104 by Giles Atkinson
5 years ago
Holger Vogt
58bdf9e0e6
Remove 'goto end' and 'end:' statements.
5 years ago
Holger Vogt
c2d11728c4
enable usage of parameters in .options lines.
5 years ago
Holger Vogt
78eee72b36
.temp could not apply params like
.ttemp {tmpparam}:
move evaluation of .temp to a later stage
5 years ago
Holger Vogt
d0da4bebd3
make variable 'dir' local
5 years ago