Commit Graph

7370 Commits

Author SHA1 Message Date
Markus Mueller eaba878b08 found non-initialized value! 2021-05-16 11:11:12 +02:00
Markus Mueller 39b333e998 remove dead assign statements, yet just commented them out for the time
being
2021-05-13 11:34:29 +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
dwarning aac4df38f5 TEMPFORMAT has already leading / in defines.h 2021-04-17 10:14:50 +02:00
dwarning fbc5bf7b55 rm dead assignemnts 2021-04-16 11:50:39 +02:00
dwarning 5999521e81 iter value never read - prevent compiler warning 2021-04-15 21:11:48 +02:00
dwarning d664c858a6 diode cbv only needed for tracing - prevent compiler warning 2021-04-15 21:07:24 +02:00
dwarning 52130bd0f1 correct indentation 2021-04-15 21:01:15 +02:00
Holger Vogt d16339b06f Prevent a crash when the number of models exceeds MODNUMBERS
Raise MODNUMBERS to 2048

https://github.com/kicad-spice-library/KiCad-Spice-Library/issues/16
2021-04-11 18:15:35 +02:00
dwarning 4895a4b5a9 Diode model with selfheating option 2021-04-11 11:28:57 +02:00
Holger Vogt 98219b58a2 Remove compiler warnings 2021-04-10 20:21:35 +02:00
Holger Vogt 271b01173c Remove some compiler warnings 2021-04-10 20:11:47 +02:00
Holger Vogt 2c29277d4e Allow tailing '\0'
Remove potentially user induced buffer overflow by replacing
sprintf by snprintf.
2021-04-10 18:16:22 +02:00
Holger Vogt 2354a67f96 remove compiler warning 2021-04-10 17:51:43 +02:00
Holger Vogt 656fed2f4a correct function prototype 2021-04-10 17:48:24 +02:00
Holger Vogt 7e70e370e3 Remove compile error which may occur with specific settings 2021-04-10 17:37:38 +02:00
Holger Vogt 4bc3417c39 formatting (not complete) 2021-04-10 16:46:03 +02:00
Holger Vogt 63b467ab91 Report an error when trying to define ports
'v', 'vd', 'i', and 'id' as 'inout'
Parch 105 provided by  Giles Atkinson
2021-04-10 16:33:53 +02:00
Holger Vogt 911e37ae26 Don't create cat2strings if on VS2019 2021-04-09 15:21:58 +02:00
Holger Vogt e165e59a58 Efficiency: Remove setting the random seed to behind the options selection
Evaluate '.options cshunt=xx' earlier to allow the following:
Set the option by calling INPpas4() during parsing the circuit,
before .ic is set.
Ckt and Task cshunt are still set, but their values are available
only too late for INPpas4(), but may be used by command 'option'
(w/o parameters) for assessing the options and their values.
2021-04-09 15:14:14 +02:00
Holger Vogt 64f6e24ed6 enable cshunt for MS Windows fftw and shared ngspice 2021-04-09 15:13:55 +02:00
Holger Vogt 254d9927d1 Adding capacitors, one per voltage node 2021-04-09 15:13:45 +02:00
Holger Vogt 00bc5b97a1 Prepare Cshunt: add a cpacitor to each voltage node
Function inppas4() will add the extra caps, to be done.
2021-04-09 15:13:38 +02:00
Holger Vogt f7d8271e6c Add some comments for inppas1,2,3 2021-04-09 15:13:32 +02:00
Holger Vogt 73fdba3f1c Speed enhancement while reading large PDKs:
Line concatenation used tprintf, which uses vsnprintf,
which is very inefficient in Linux, MINGW, but efficient
using MSVC. Thus for the others a function cat2strings() is
introduced, which uses memccpy().
2021-04-09 12:19:30 +02:00
Holger Vogt 1f6b97cd7b Restrict the limit for exp function (linear growth when exponent
is larger than 14, commit [93a76d]) to the PSPICE compatibility
mode.
2021-04-09 10:56:04 +02:00
Holger Vogt 83592c4564 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-08 16:34:41 +02:00
dwarning 8b0ce0eeff Correct scaling for area and pj geometry scaled diode (level=3) 2021-04-08 16:34:28 +02:00
dwarning fe2139d44e Introduce element parameter handling for geometry scaled diode (level=3) 2021-04-08 16:34:19 +02:00
dwarning 5023f5c7c1 Correct parameter handling for geometry scaled diode (level=3) 2021-04-08 16:34:07 +02:00
dwarning 4772d7af5c First attempt for geometry scaled diode (level=3) 2021-04-08 16:33:57 +02:00
Holger Vogt 39ab3fa4b2 Remove unused prototype 2021-04-03 10:53:27 +02:00