Commit Graph

7399 Commits

Author SHA1 Message Date
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
dwarning 83b0ca4ae0 simplify while loop for subckt diode and bjt models 2021-05-02 08:32:35 +02:00
dwarning fdac62235b Merge branch 'pre-master' of ssh://git.code.sf.net/p/ngspice/ngspice into pre-master 2021-05-01 19:18:00 +02:00
dwarning 77720508be Value stored to vsub is never read 2021-05-01 19:17:40 +02:00
dwarning f8d9c9370f fix Vcrit calculation for coll-subs junction and correct tlev=3 temperature model 2021-05-01 19:13:45 +02:00
Holger Vogt d39d333baa Use 'm' and 'multi' correctly in PDKs
If there is alraedy m=xx in a subcircuit instance line,
replace it by m='m*xx' to aknowledge the additional m.

Tested with an (old) TSMC PDK and with Skywater PDK.
2021-05-01 14:55:23 +02:00
dwarning 4533b54b50 rm depreciated storage class 2021-04-30 18:53:09 +02:00
dwarning 4db0d13699 Merge branch 'pre-master' of ssh://git.code.sf.net/p/ngspice/ngspice into pre-master 2021-04-27 22:20:58 +02:00
dwarning 4babf4d40c few style cleanings 2021-04-27 22:19:55 +02:00
Holger Vogt 006326f20a Bug 548: Add support for mawk in autogen.sh 2021-04-27 14:44:49 +02:00
Holger Vogt 96991925f3 Improve font selection for Win GUI plot window
Font Names from
https://docs.microsoft.com/en-us/typography/fonts/windows_10_font_list
without option or with Bold or Italic are supported, e.g.
setcs wfont="Cambria Bold Italic".
2021-04-24 21:08:14 +02:00
Holger Vogt e2d53da967 Reduce wchar_t string length to minimum required
(to be NULL-terminated for CreateWindowW)
2021-04-24 20:11:37 +02:00
Holger Vogt e68006d865 Revert "Reduce wchar_t string length to minimum required."
This reverts commit 57f8184c09.
2021-04-24 20:07:21 +02:00
Holger Vogt 57f8184c09 Reduce wchar_t string length to minimum required. 2021-04-24 17:41:54 +02:00
Holger Vogt 3c32ae842d Fix for bug 547
Reduce length of wchar_t strings to the minimum required
for conversion

Check if Bold or Italic is given in the font name, set
corresponding variable
2021-04-24 17:29:28 +02:00
Holger Vogt c630d4a8e6 Upgrade due to recent ngspice enhancements 2021-04-24 17:25:21 +02:00
dwarning fa8d7f4d2b rm dead assignments 2021-04-23 10:53:08 +02:00
Holger Vogt 65562dd943 Fixes a bug introduced by commit [4895a4]
Re-enables R with .model like
.model R_NOISELESS RES (TCE=0 T_ABS=-273.15)
R77 1 0 R_NOISELESS 100
2021-04-21 10:14:19 +02:00
Holger Vogt 3b65edc34c If the input file path contains ANSI-encoded special characters,
utf-8 conversion and thus file opening will fail.

This patch then in addition tries opening the file with standard fopen.
2021-04-17 18:19:39 +02:00
Holger Vogt 6034c2bcd3 Internal global variable Infile_Path is a file search path made
available for the code models. It is set when command 'source' is used.

This patch makes the first entry in var 'sourcepath' available to
the code models as well by setting Infile_Path, when 'sourcepath'
is set in .spiceinit.
2021-04-17 18:17:31 +02:00