Holger Vogt
d3726939d0
Fix a comment
2021-06-13 23:09:57 +02:00
Holger Vogt
76b1b9e3e9
Set the default line width for grid and graph to 1.
...
0 is possible but seems to be too thin for reasonable plots.
2021-06-13 19:37:00 +02:00
Holger Vogt
5b49d6509d
Example input file for analog delay
2021-06-12 16:33:57 +02:00
Holger Vogt
f5c7e9ef5e
Remove unused
...
Add a delay of half a time step to reduce error
2021-06-12 16:31:11 +02:00
Holger Vogt
b88d42902d
Plausibility checking
...
Enforce out=in when delay == 0
2021-06-12 12:29:48 +02:00
Holger Vogt
8008984e23
Add an analog delay source for transient simulation
...
Internal circular memory of size tstop/tstep or user defined.
(aprox.) every tstep a value is stored.
Delay time in multiples of tstep, by control voltage or user defined.
Dc or ac sim will simply connect input to output.
2021-06-12 12:29:41 +02:00
Holger Vogt
6a1fc68ef0
Add devices s and w to previous commit.
...
R and C are not yet covered here, due to the many
varieties available.
2021-06-12 12:21:02 +02:00
Holger Vogt
c5a0524c1b
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
2021-06-12 12:01:28 +02:00
Holger Vogt
f29ba105ff
Define the function DevFinalize as used in the previous commit.
2021-06-11 18:43:11 +02:00
Holger Vogt
c36c70c5b7
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.
2021-06-11 18:42:26 +02:00
Holger Vogt
28c514195e
Fix previous commit, enable name upgrade for Linux and other non-Win OSs
2021-06-10 17:07:08 +02:00
Holger Vogt
6561e37142
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.
2021-06-10 16:44:55 +02:00
Holger Vogt
e0bffe9c9e
Within a single run, allow multiple plots with different names:
...
Add an increasing number to the id file name.
2021-06-10 16:43:05 +02:00
Holger Vogt
a96288f816
Open mrdump file not in append, but in write mode
2021-06-09 18:05:42 +02:00
Holger Vogt
5f1f40b072
New pswitch is not compatible to iswitch
...
Keep the old aswitch until a modified pswitch is available.
2021-06-08 10:47:28 +02:00
Holger Vogt
3db0336c1e
New author
2021-06-08 10:42:12 +02:00
Holger Vogt
dc01e20146
New author
2021-06-08 10:42:03 +02:00
Holger Vogt
3cd3d03f85
Neew pswitch with patch 0001-pswitch-fix.patch from Jube 3rd, 21 at
...
https://sourceforge.net/p/ngspice/discussion/127605/thread/d55d2322f2/#c966/b802/4764/2540/3b3f/04a4/bc51/3a68
Input resistance, numerically computed derivatives with auto-partial, reasonable limits.
2021-06-08 10:41:58 +02:00
Holger Vogt
b0ddb6224b
prepare for the new pswitch with g, gd input
2021-06-08 10:41:18 +02:00
Holger Vogt
91528784fd
Bug fix for %i(node1) in an A instance.
...
Don't do i() replacement in an A instance as shown above.
2021-06-04 11:47:06 +02:00
Holger Vogt
d66809e069
Just a reminder that truncation is currently diabled for CSW
2021-05-30 10:45:09 +02:00
Holger Vogt
0bf6f553e1
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.
2021-05-30 00:06:36 +02:00
Holger Vogt
b07936ed04
Set derivative d out/d contrl to 0 if outside of switching range.
...
Disable auto derivatives.
Enable algorithmic derivatives.
2021-05-30 00:00:26 +02:00
Holger Vogt
40cff4d45b
Avoid model warning for C if compat flag lt is set.
2021-05-25 17:42:34 +02:00
Holger Vogt
9b51a8eb91
For C and R device enable value tokens like 4k7 or 1u2
...
in addition to 4.7k and 1.2u.
Valid for
R1 1 0 47k
C2 3 6 1u2
only. Does not interfere with other value tokens in params etc.
2021-05-25 17:12:50 +02:00
Holger Vogt
09d8d6b142
Update to
...
6034c2bcd ("Internal global variable Infile_Path
is a file search path made available for the code models.
It is set when command 'source' is used.", 2021-04-17)
Correct path to variable.h
2021-05-24 14:57:06 +02:00
Holger Vogt
827e5c7d21
Fixes bug #331
...
Bug detected and analysed by Arsen Liash
Patch provided by Yurii Demchyna
2021-05-23 17:43:14 +02:00
Holger Vogt
9d389c24b4
Plug another memory leak in LTRA transmission line
2021-05-19 18:05:42 +02:00
Holger Vogt
adc610115d
Remove double defined xrcv
2021-05-19 18:04:14 +02:00
Holger Vogt
e432e17c87
Plug memory leaks in transmission line LTRA
2021-05-19 17:25:01 +02:00
Holger Vogt
a1bf859c95
Revert "Plug a memory leak in transmission line cpl"
...
This reverts commit 54458ba172 .
2021-05-19 17:24:00 +02:00
Holger Vogt
54458ba172
Plug a memory leak in transmission line cpl
2021-05-19 08:31:03 +02:00
Holger Vogt
bb47e95f7f
Plug some more memory leak in TXL transmission line.
2021-05-18 23:17:06 +02:00
Markus Mueller
07add79467
found non-initialized value!
2021-05-18 21:13:56 +02:00
Markus Mueller
613b97f102
remove dead assign statements, yet just commented them out for the time
...
being
2021-05-18 21:13:18 +02:00
Holger Vogt
cc0e2e2e80
Plug a memory leak in TXL transmissiom line (y device)
2021-05-18 20:44:29 +02:00
Holger Vogt
7efd2f3b50
Remove double defined xrcv
2021-05-18 20:43:31 +02:00
Holger Vogt
ab02ee655b
Plug a memory leak
...
Add function HICUMdelete() to remove model->HICUMversion
2021-05-18 11:25:21 +02:00
Holger Vogt
5bce55dda1
PSPICE MC parameters are not (yet) supported, so remove them
...
from .model (lot, dev) and netlist (.distribution)
Triggered by Patch #104 by Giles Atkinson
2021-05-18 11:22:52 +02:00
Holger Vogt
6eed0dc66e
Remove 'goto end' and 'end:' statements.
2021-05-17 15:30:49 +02:00
Holger Vogt
9abf4f62a9
enable usage of parameters in .options lines.
2021-05-17 15:29:53 +02:00
Holger Vogt
d392823263
.temp could not apply params like
...
.ttemp {tmpparam}:
move evaluation of .temp to a later stage
2021-05-17 13:50:00 +02:00
Holger Vogt
000f8aa2ab
make variable 'dir' local
2021-05-12 12:06:16 +02:00
Holger Vogt
763898f38d
fix typo
2021-05-12 12:04:38 +02:00
Holger Vogt
a9eeb59489
Partially re-introduce and improve code that has been
...
inadvertently deleted in commit
83592c456 ("unify the evaluation of '.options scale=xx'
.option in a netlist will override 'options' from spinit,
.spiceinit or a script '.options scalm=xx' yields a warning,
it is not supported.", 2021-04-05)
The code transforms the option statements and adds them
to the current circuit.
2021-05-05 23:16:59 +02:00
dwarning
e08e8a1372
sub-coll junction calculation only if ISS given
2021-05-05 22:53:39 +02:00
Holger Vogt
f353514147
Define a preprocessor flag HAS_NG_BOOL
2021-05-05 22:01:47 +02:00
Holger Vogt
0e517695de
Replace BOOL by NG_BOOL
...
Avoid clashes in environments where BOOL my be used differently.
NG_BOOL is typedefed to int, as ngspice uses int for boolean variables.
2021-05-05 10:47:24 +02:00
Holger Vogt
ea4a5ad243
Prevent crash, refName may be NULL
2021-05-05 10:17:15 +02:00
Holger Vogt
888e46c026
Improve error message, if occuring during op
2021-05-05 10:16:38 +02:00