Holger Vogt
a262525ebf
add potran to spinit d
2021-09-03 10:17:34 +02:00
Holger Vogt
bb23520bd4
errno needs to be nulled in Linux.
...
Its previous value will be returned after checking.
2021-09-01 23:16:58 +02:00
Holger Vogt
04cdfb6bb9
'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.
2021-09-01 12:26:49 +02:00
Holger Vogt
ce0559b458
prevent a crash, e.g. when incompatible 'option interp'
...
is set and 'stop' is called.
2021-09-01 10:57:27 +02:00
Holger Vogt
b9c5873606
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.
2021-08-30 14:47:10 +02:00
Holger Vogt
7d13fe8214
Add a line feed to make message more readable.
2021-08-29 14:28:27 +02:00
Holger Vogt
6e7993b289
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.
2021-08-29 14:27:56 +02:00
Holger Vogt
d9d4b86219
Adapt gtkwave plotting to the various OSs.
...
macOS still needs some improvement.
2021-08-28 17:04:37 +02:00
Holger Vogt
e99ca82476
Revert "Adapt gtkwave plotting to the various OSs."
...
This reverts commit 1b1d4f412f .
2021-08-28 17:02:02 +02:00
Holger Vogt
1b1d4f412f
Adapt gtkwave plotting to the various OSs.
...
macOS still needs some improvement.
2021-08-28 16:19:43 +02:00
Holger Vogt
de1024a75b
Prevent a crash if command 'save n1' has been given on a digital node n1.
...
Improved error message.
2021-08-28 15:09:51 +02:00
Holger Vogt
8e9a14678c
Revise the SOA and add new parameters:
...
pd_max id_max idr_max te_max rth_ext derating
rth_ext is currently not used
2021-08-27 18:20:16 +02:00
Holger Vogt
79ebf219fe
Add a check for sys/sysctrl.h, which has been declared deprecated,
...
and which may not be available (in the future) on some systems.
2021-08-25 11:48:21 +02:00
Holger Vogt
1b17c5cc59
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)
2021-08-24 17:52:33 +02:00
Holger Vogt
6cfe98ce43
Update to the optran circuit examples:
...
TLV9002-test.cir: Rely on optran from spinit
TLV6001-test.cir: Override optran from spinit
2021-08-24 17:50:18 +02:00
Holger Vogt
5758d58349
spinit: add optran to the standard inits
2021-08-24 17:48:17 +02:00
Holger Vogt
2936b11764
Add MOS model cards
2021-08-24 16:16:07 +02:00
Holger Vogt
c8d76014b9
SOA for bipolar
...
Replace pow_max by pd_max
2021-08-24 16:15:46 +02:00
Holger Vogt
10b2f96ed1
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.
2021-08-24 15:53:31 +02:00
Holger Vogt
0f46f9b228
List definition needs spaces between ( and next token,
...
and between token and )
Update to comment.
2021-08-24 15:51:09 +02:00
Holger Vogt
b43b4023eb
Add short description of the new examples
2021-08-20 20:28:10 +02:00
Holger Vogt
3c3c039515
Linux line endings (LF only)
2021-08-20 20:24:55 +02:00
Holger Vogt
152be62ae3
Example OpAmp which converge for op only with optran:
...
TLV6001 and TLV9002
2021-08-20 20:22:12 +02:00
Holger Vogt
15dc796656
remove old files
2021-08-20 20:19:03 +02:00
Holger Vogt
4ff37a9fb1
Example file with three dual opamp filters.
...
Different opamps: TL072, OPA1656, OPA1612
2021-08-20 20:18:41 +02:00
Holger Vogt
c83f441bb2
Three OpAmp Example for optran
2021-08-20 20:04:54 +02:00
Holger Vogt
1368fba469
line endings LF (Linux)
2021-08-20 20:03:58 +02:00
Holger Vogt
a3973c7fe0
optran is only selected when the 'optran' command has been processed.
...
If not, the call to the OPtran() function returns the previous
'converged' value.
2021-08-20 18:46:50 +02:00
Holger Vogt
034f8a4959
Don't do optran, if command optran is not given.
2021-08-20 17:09:20 +02:00
Holger Vogt
e093844b18
Update comment: 0 is no initial iteration
2021-08-20 16:56:47 +02:00
Holger Vogt
3f68f91bf5
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.
2021-08-20 15:30:02 +02:00
Holger Vogt
45dda4bbe2
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.
2021-08-20 15:29:47 +02:00
Holger Vogt
dcc770cdbd
Clarify use of 'optran' command
2021-08-20 15:29:27 +02:00
Holger Vogt
f374e90ad4
if 'set ngdebug' print out transient initial conditions also with UIC set.
2021-08-20 15:29:15 +02:00
Holger Vogt
a50f51760c
make the error detection work properly
2021-08-20 15:28:58 +02:00
Holger Vogt
eee0c6f1b0
Add optran.c
...
New custom build commands as suggested by VS
2021-08-20 15:28:42 +02:00
Holger Vogt
edea5bf67b
Use InpEvaluate() instead of strtod to enable ngspice numbers
...
with scale factors Meg k m u n p f etc.
2021-08-20 15:28:24 +02:00
Holger Vogt
15907a592c
Reverse stepsize and finaltime in optran command,
...
stepsize first as in tran command.
2021-08-20 15:27:44 +02:00
Holger Vogt
9a42ff82a6
prevent crash if first breakpoint is beyond optran max time
2021-08-20 15:27:27 +02:00
Holger Vogt
c21ba645d2
add tran simulation
2021-08-20 15:27:07 +02:00
Holger Vogt
86b1f6d6a6
test of supply ramping
2021-08-20 15:26:50 +02:00
Holger Vogt
3048f62aad
updates to optran description and example.
2021-08-20 15:26:13 +02:00
Holger Vogt
3f27a560ee
upon finishing 'optran', restore old CKTstep
...
remove unused
2021-08-20 15:25:59 +02:00
Holger Vogt
c76ee6f275
safeguard command 'optran' against circuit no being loaded
2021-08-20 15:25:35 +02:00
Holger Vogt
5bbaa81c48
add missing header
2021-08-20 15:25:16 +02:00
Holger Vogt
0754a35296
header for optran
2021-08-20 15:25:03 +02:00
Holger Vogt
82c7df4c3d
Pass Labs F5 Turbo
...
example for optran
2021-08-20 15:24:39 +02:00
Holger Vogt
2bf1c1c24a
When we sre ready, reset CKTmaxstep to its previous value
2021-08-20 15:24:22 +02:00
Holger Vogt
bea73b1ccd
set maxstepsize to stepsize
2021-08-20 15:24:07 +02:00
Holger Vogt
6fc4bfc1b9
set the task values, not the ckt values,
...
because task is called only afterwards when
the simulation command is given.
2021-08-20 15:23:48 +02:00