Commit Graph

7445 Commits

Author SHA1 Message Date
Holger Vogt 817c576ed3 Remove a memory leak
Make inp_rem_levels non-static
and use it to remove 'root' after it has been used.
2021-07-05 20:40:23 +02:00
Holger Vogt d84aa5d956 Nodedamping: Make difference independent of the sign
of the difference
2021-07-05 08:06:11 +02:00
Holger Vogt af7360b8f2 JFET2: Add a link to literature 2021-07-05 08:05:02 +02:00
Holger Vogt 94338a9c0d 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'
2021-06-30 14:14:52 +02:00
dwarning e234a7c776 Add channel type determination belong nmos/pmos model parameter 2021-06-29 12:34:50 +02:00
Holger Vogt 19d86d35e6 Standard clang compiler does not support OpenMP
Homebrew clang needs to investigted further
2021-06-28 10:22:41 +02:00
Holger Vogt efbd185b76 Don't show message for every iteration 2021-06-27 14:12:58 +02:00
Holger Vogt cc9c751d04 Fix a bug in the 'dc' progress report 2021-06-25 18:34:14 +02:00
Holger Vogt 400d72551d CIDER: Enable printing either binary or ascii data output to file.
Patch provided by Brian Taylor, see
(https://sourceforge.net/p/ngspice/mailman/message/37309841/)
2021-06-25 18:34:06 +02:00
Holger Vogt 1eb5527e34 Add a 'qsort' dummy according to current compiler standards.
Detected during the very rare condition of not finding a 'qsort'
during the ./configure step.
2021-06-25 15:26:17 +02:00
Holger Vogt 49e5ac14a0 Enable including 'readline' from a non standard location.
--with-readline=<location> may be given instead of --with-readline=yes
This is required when on macOS readline is installed from Homebrew.
Standard Xcode readline in macOS is not compatible with ngspice.
If --with-readline=yes is given, there is no change of behaviour
compared with previous releases.
2021-06-23 20:23:30 +02:00
Holger Vogt ba6a833355 Make error message more verbode 2021-06-22 11:59:27 +02:00
Holger Vogt c90b813c06 Prevent crash if there is bad syntax in h, g, e, or f line 2021-06-22 00:19:43 +02:00
Holger Vogt 1f59e25fb0 Crash when trying to delete root and netlist:
Revert the order of deletion: Firstly the root, then the netlist.
2021-06-21 18:26:23 +02:00
Holger Vogt 44a4652915 Make syntax check for nesting of .subckt ... .ends more verbose:
Try to find out where .subckt/.ends may be doubled, or missing.
2021-06-21 15:35:51 +02:00
Holger Vogt 585bb8cada Add '\f' to characters to be replace by '+'
during the syntax check of an netlist input file.
2021-06-21 13:49:53 +02:00
Holger Vogt e552bc61cf Add evaluating and using temp and dtemp
as ASRC instance parameters.
2021-06-20 16:34:01 +02:00
Holger Vogt 45c0e4fd9f add a comment: we should use TNOM, but not a fixed 300.15.
TNOM still has to be added to the ASRC parameters.
2021-06-20 16:33:04 +02:00
Holger Vogt 55e404f0f7 Don't put brackets around dtemp and temp, when they denote
instance parameters and thus are on the left hand side of '='
2021-06-20 16:31:46 +02:00
Holger Vogt 520e0a82e4 Make PTcheck more verbose:
Send error message containing failed expression
2021-06-20 15:01:30 +02:00
Holger Vogt 75597e5094 add the parameter name to error message of missing or bad parameter 2021-06-20 14:12:18 +02:00
Holger Vogt 4446cf96b4 No parse tree submitted to IFeval:
Prevent segfault and emit error message
2021-06-20 14:11:19 +02:00
Holger Vogt ebf7d8468f Make the choice of last commit mor obvious 2021-06-19 15:49:53 +02:00
Holger Vogt cc579db5b7 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)
2021-06-18 17:48:00 +02:00
Holger Vogt fa343b4b3d logic condition to check only 'x' lines had not been given 2021-06-18 16:28:16 +02:00
Holger Vogt 61e48f9849 Start replacing identifiers by func only after the first '=' 2021-06-18 16:18:40 +02:00
Holger Vogt dd5bc75caa Clarify that 'scale set to ...'
is not a query, but a statement
by 'scale is set to ...'..
2021-06-14 22:58:44 +02:00
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