Keno Fischer
174f3d9cf9
Add missing rule for ngicon.rc
5 years ago
Brian Taylor
36313d59f3
Use the current point number as the single digit index for Cider 2D ascii save files. This conforms to the normal usage with other types of ascii rawfile. The numd parser table entry for ic.file now has the correct IF_STRING type.
5 years ago
Holger Vogt
3cf6857cfc
Fix bug #557
Revise memory allocation for different analysis types
5 years ago
Holger Vogt
601287e949
Check V and I lines for dc and ac.
Allow ac without parameters, a default is set to ac ( 1 0 )
5 years ago
Brian Taylor
81df6ed772
Retaining the mixed case of Cider quoted string valued parameters. Limit searches for ic.file to D*, M*, and Q* device instantiation lines. Cider model (numos, numd, nbjt) detection is limited to .model lines. Continuation lines which do contain these tokens are not checked, but this should rarely happen. All of the examples/cider circuits meet these assumptions. Memory errors have been removed.
5 years ago
Holger Vogt
3599c189b6
re-enable lower-casing of tokens beginning with 'cd',
except for command 'cd' which is usually followed by a space.
5 years ago
Holger Vogt
0266bd5894
make PTparse error message more verbose:
include point in a line where parsing failed.
5 years ago
Holger Vogt
0817d86f33
No oscillation: Add a starting pulse
5 years ago
Brian Taylor
abad190b38
Don't search for ic.file within comments.
5 years ago
Brian Taylor
b3a99f0c6c
Do not use non-portable strcasestr.
5 years ago
Brian Taylor
663a79dea8
Fix NAN error in numd2 area report and crashes when a doping file is missing. Update examples/cider so that the test circuits all run; add case sensitivity tests for rootfile and ic.file parameter strings enclosed in a single pair of double quotes.
5 years ago
Holger Vogt
68c5eb2d6b
Add resistance sweep error message for failing optran
5 years ago
Holger Vogt
8708b6651b
Optran may throw an error message while in temp sweep
and optran fails: message added (in addition prevent a crash)
5 years ago
Holger Vogt
04a902ddf7
add potran to spinit d
5 years ago
Holger Vogt
1b3e192bfd
errno needs to be nulled in Linux.
Its previous value will be returned after checking.
5 years ago
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
7f4fc2948b
Add a line feed to make message more readable.
5 years ago
Holger Vogt
fac1d3a79c
ASRC (B-Source) error message is cryptic, as it does not tell
which B-Source failed.
Add a hint to the ASRC error message on the name of the
B-Source instance.
5 years ago
Holger Vogt
4667a74389
Adapt gtkwave plotting to the various OSs.
macOS still needs some improvement.
5 years ago
Holger Vogt
18478380ad
Revise the SOA and add new parameters:
pd_max id_max idr_max te_max rth_ext derating
rth_ext is currently not used
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
3b245ddd82
VDMOS, prepare SOA with new parameters
Model parameters pd_max, id_max, idr_max, and te_max
(power dissipated, drain current, drain reverse current, temperature)
5 years ago
Holger Vogt
aeafe4bd49
Update to the optran circuit examples:
TLV9002-test.cir: Rely on optran from spinit
TLV6001-test.cir: Override optran from spinit
5 years ago
Holger Vogt
4a1f7f950c
spinit: add optran to the standard inits
5 years ago
Holger Vogt
00f530c9cb
Add MOS model cards
5 years ago
Holger Vogt
7c84e3f993
SOA for bipolar
Replace pow_max by pd_max
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
04080c2ab3
Add short description of the new examples
5 years ago
Holger Vogt
f40e6b9357
Linux line endings (LF only)
5 years ago
Holger Vogt
70ba37b149
Example OpAmp which converge for op only with optran:
TLV6001 and TLV9002
5 years ago
Holger Vogt
b20ac16093
remove old files
5 years ago
Holger Vogt
03d956cbfa
Example file with three dual opamp filters.
Different opamps: TL072, OPA1656, OPA1612
5 years ago
Holger Vogt
8dcb1f901a
Three OpAmp Example for optran
5 years ago
Holger Vogt
8c5c8da2a7
line endings LF (Linux)
5 years ago
Holger Vogt
493cf73f7f
optran is only selected when the 'optran' command has been processed.
If not, the call to the OPtran() function returns the previous
'converged' value.
5 years ago
Holger Vogt
7f1fdd3934
Don't do optran, if command optran is not given.
5 years ago
Holger Vogt
711157e85d
Update comment: 0 is no initial iteration
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
893ce7879f
Clarify use of 'optran' command
5 years ago
Holger Vogt
2ef3f66f96
if 'set ngdebug' print out transient initial conditions also with UIC set.
5 years ago
Holger Vogt
41ead284f3
make the error detection work properly
5 years ago
Holger Vogt
ec986b3fbc
Add optran.c
New custom build commands as suggested by VS
6 years ago
Holger Vogt
4e03efacb7
Use InpEvaluate() instead of strtod to enable ngspice numbers
with scale factors Meg k m u n p f etc.
6 years ago
Holger Vogt
3be5926f2c
Reverse stepsize and finaltime in optran command,
stepsize first as in tran command.
6 years ago
Holger Vogt
bca099ca29
prevent crash if first breakpoint is beyond optran max time
6 years ago
Holger Vogt
6bdd6610f6
add tran simulation
6 years ago