Holger Vogt
2edad6da01
Add memsaved or memdelete to macros
2021-10-03 15:57:09 +02:00
Holger Vogt
50d1e7101d
Re-format cplsetup.c
2021-10-03 15:56:47 +02:00
Holger Vogt
8af3f7a5de
Add memsaved() to TMALLOC
2021-10-03 15:56:28 +02:00
Holger Vogt
d8c18559ff
Each TMALLOC is accompanied by fcn memsaved().
2021-10-03 15:56:15 +02:00
Holger Vogt
795d32652a
Add mem_init() and mem_delete() to setup and unsetup functions
2021-10-03 15:55:57 +02:00
Holger Vogt
4afdd9dc21
Add cplhash.h to project
2021-10-03 15:55:40 +02:00
Holger Vogt
a986bc8f9d
Add header with extern function prototypes
2021-10-03 15:55:22 +02:00
Holger Vogt
640bef9249
Update intro text
2021-10-03 15:54:58 +02:00
Holger Vogt
dd05ec0fee
New readme for this branch
2021-10-03 15:54:35 +02:00
Holger Vogt
ffd9890946
Add missing function nghash_delete_special(),
...
developed for branch gc-local
2021-10-03 15:54:20 +02:00
Holger Vogt
48736e3623
add missing headers
2021-10-03 15:53:50 +02:00
Holger Vogt
8ab6633325
add cplhash.c to compile
2021-10-03 15:53:29 +02:00
Holger Vogt
9f0e9ad02b
hash functions for cpl garbage collector
2021-10-03 15:53:02 +02:00
Holger Vogt
e1e97a4822
Revert "Revert ".control and `B' parser, fix precedence of '-' versus '^'""
...
This reverts commit adc1546e59 .
2021-10-03 15:51:42 +02:00
Holger Vogt
1cabf50b14
Revert "revert according to"
...
This reverts commit e0e9cc72f0 .
2021-10-03 15:51:28 +02:00
Holger Vogt
0afdac301e
BSIMCMG in ADMS: Bug with the calculation of gds in NMOS and PMOS.
...
Extend the output characteristics plot by 0.1 into
theinvers direction to demonstrate the problem.
2021-10-02 10:52:18 +02:00
Holger Vogt
7888b687b7
New names for the (experimental) ramp-time capacitor and inductor code models
2021-09-29 23:17:24 +02:00
Holger Vogt
ab92983684
Rename the capacitor and inductor code models to capacitoric and inductoric
...
8e4db9109 ("adms bsimbulk and bsimcmg implementation based on work from Robert Larice", 2020-12-17)
changed inptypelk.c, line 37 from strcmp to strcasecmp.
Thus Capacitor (model for C) and code model capacitor are no longer
distinguished. Model parsing for the code models fails.
These code models are used very infrequently, thus renaming them
is a valid fix.
2021-09-29 23:14:05 +02:00
Holger Vogt
a116325139
Compiling for macOS
...
New compile scripts for ngspice executable and shared library,
using gcc-11 from Homebrew.
All relevant options are included (readline, openmp, X11 graphics etc.)
2021-09-29 12:24:41 +02:00
Holger Vogt
22a878e49e
RKM for C: Revert reading f, it is again femto
...
Examples files include expected results
2021-09-27 17:56:12 +02:00
Holger Vogt
4bb1d84f9f
Update to RKM if ngbehavior=lt is set:
...
Reading C and R values follow the RKM convention with 2 exceptions:
Upper case and lower case letters are not distinguished.
Letters m, M denote milli (1e-3), letters Meg or meg denote 1e6.
2021-09-27 16:42:26 +02:00
Holger Vogt
d922ca5ae6
Remove double assigment to s[1]
...
Assignment Is either done in the loop or by *y = '\0';
2021-09-26 00:05:30 +02:00
Holger Vogt
32e26a5849
Enable RKM notation for R and C, when ngbehavior LT is selected.
...
Add 2 evaluation functions specific for R and C respectively.
R has code letters L, R, K, M, G, T enabled. M here is Meg!
C has code letters p, n, u or µ, m, F. F here is unity, femto is
not available, m is still milli!
Two examples files show all cases.
2021-09-25 23:50:35 +02:00
Holger Vogt
189126c029
When checking for µ, truncated the line, when shifted.
...
Enable R470, when newcompat LT is selected.
2021-09-25 23:43:36 +02:00
Holger Vogt
83a9d48638
ngspice input deck may contain special characters like µ (mu).
...
Detect mu for ANSI and UTF-8 and translate it to u.
2021-09-25 13:50:16 +02:00
Holger Vogt
39defa3fa7
XSPICE d_source: prevent a crash when the input file is not found
2021-09-24 14:08:47 +02:00
Holger Vogt
b24be62bf0
prevent crash if info.node_table has not been defined,
...
caused by some preceding error.
2021-09-22 16:19:37 +02:00
Holger Vogt
fd8ec3977b
Make 'speedcheck' also available in batch mode simulation.
2021-09-19 23:02:00 +02:00
Holger Vogt
a77377f6c1
command listing: add option r (runable)
...
listing r > $inputdir/mycirc_runable.cir
will save the expanded netlist without line numbers,
ready to be sourced again and run in ngspice.
2021-09-18 14:57:22 +02:00
Keno Fischer
0654a78681
Add missing rule for ngicon.rc
2021-09-17 16:29:57 +02:00
Holger Vogt
6b12971fc6
Revert "Reading CIDER "Device Cross Section" failed if written in ASCII."
...
This reverts commit 4a907749a6 .
2021-09-17 15:00:48 +02:00
Brian Taylor
2ebed3f747
Use the current point number as the single digit index for Cider 2D ascii save files. This conforms to the normal usage with other types of ascii rawfile. The numd parser table entry for ic.file now has the correct IF_STRING type.
2021-09-17 14:59:54 +02:00
Holger Vogt
a93bed0f4b
Fix bug #557
...
Revise memory allocation for different analysis types
2021-09-17 12:10:35 +02:00
Holger Vogt
e0e9cc72f0
revert according to
...
adc1546e5 ("Revert ".control and `B' parser,
fix precedence of '-' versus '^'"", 2021-09-14)
2021-09-15 16:25:43 +02:00
Holger Vogt
372bd64f34
Check V and I lines for dc and ac.
...
Allow ac without parameters, a default is set to ac ( 1 0 )
2021-09-14 17:15:25 +02:00
Holger Vogt
adc1546e59
Revert ".control and `B' parser, fix precedence of '-' versus '^'"
...
This reverts commit b32ae9f79b .
2021-09-14 14:14:29 +02:00
Brian Taylor
d6c88b0e9a
Retaining the mixed case of Cider quoted string valued parameters. Limit searches for ic.file to D*, M*, and Q* device instantiation lines. Cider model (numos, numd, nbjt) detection is limited to .model lines. Continuation lines which do contain these tokens are not checked, but this should rarely happen. All of the examples/cider circuits meet these assumptions. Memory errors have been removed.
2021-09-10 11:50:22 +02:00
Holger Vogt
f0ffff2dc0
re-enable lower-casing of tokens beginning with 'cd',
...
except for command 'cd' which is usually followed by a space.
2021-09-07 12:42:20 +02:00
Holger Vogt
532eddde54
make PTparse error message more verbose:
...
include point in a line where parsing failed.
2021-09-07 12:41:18 +02:00
Holger Vogt
4a907749a6
Reading CIDER "Device Cross Section" failed if written in ASCII.
...
Second point count flag enabled (for CIDER 2D only).
2021-09-06 23:00:10 +02:00
Holger Vogt
5a8621bd08
No oscillation: Add a starting pulse
2021-09-05 12:21:13 +02:00
Brian Taylor
64686132ad
Don't search for ic.file within comments.
2021-09-05 11:28:27 +02:00
Brian Taylor
5a8f07a292
Do not use non-portable strcasestr.
2021-09-05 11:27:56 +02:00
Brian Taylor
43520d9b8a
Fix NAN error in numd2 area report and crashes when a doping file is missing. Update examples/cider so that the test circuits all run; add case sensitivity tests for rootfile and ic.file parameter strings enclosed in a single pair of double quotes.
2021-09-05 11:27:01 +02:00
Holger Vogt
5cd919ebc1
Add resistance sweep error message for failing optran
2021-09-03 15:01:53 +02:00
Holger Vogt
c61b95f1e7
Optran may throw an error message while in temp sweep
...
and optran fails: message added (in addition prevent a crash)
2021-09-03 10:18:58 +02:00
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