Commit Graph

7854 Commits

Author SHA1 Message Date
Jim Monte a53cd3a3e9 fixed path created by ngdirname in Windows. Also added const to parameters whose arguments do not change and fixed some potential buffer overruns. 2020-03-15 08:51:02 +01:00
Jim Monte 2d9110bf65 Add const to some parameters, made function static 2020-03-15 08:51:02 +01:00
Jim Monte 1867f5b727 Fix of buffer overrun in interpolation at endpoint of interval. Made cfunc.mod for tables more modular. Prevented buffer overrun when building file name. Added error checking for allocation failures in many locations. Made binary search for interpolation more efficient. 2020-03-15 08:51:02 +01:00
Jim Monte b4757f934b Added support for DSTRING in code modules with makefile builds 2020-03-15 08:51:02 +01:00
Jim Monte 190c7fb75c Clarified error message 2020-03-15 08:51:01 +01:00
Jim Monte ac49ccaf58 Fixed compile warning about signed/unsigned comparison. 2020-03-15 08:51:01 +01:00
Jim Monte d254b6c97e Gave structure defining Mif_Complex_t a name so that it could be forward referenced. 2020-03-15 08:51:01 +01:00
Jim Monte bfe660e57b Formatting and added comments 2020-03-15 08:51:01 +01:00
Jim Monte 082f36e794 Formatting 2020-03-15 08:51:01 +01:00
Jim Monte 2f8b7ab062 Minor fix to end-of-index processing of let command 2020-03-15 08:51:01 +01:00
Jim Monte b967caaabb File path built more efficiently and now allows an arbitrary length. Prevented strdup() of NULL if path too long. Similarly prevented fopen with a NULL file name. Added function to determine Windows absolute paths properly. Fixed numerous issues that were caused by including Windows system header due to conflicting names. Generally a CMPP_ prefix was added as a "namespace". Also used the standard C bool type instead of defining one. 2020-03-15 08:51:01 +01:00
Jim Monte 0c741bbde2 Rework of let command. Added support for slices as described in feature #69 and fixed several crashes and issues described in bugs #443, #444, #446, #447, and #448. 2020-03-15 08:51:01 +01:00
Jim Monte 7990a82f02 Formatting and comments added 2020-03-15 08:51:01 +01:00
Jim Monte 3a2a05f7b0 Removed unnecessary comparisons when lowercasing a string. 2020-03-15 08:51:01 +01:00
Jim Monte b767df3a7e Modified calculation to determine when memory is nearly exhausted. Also changed prototypes of memory reporting functions to match their definitions. 2020-03-15 08:51:00 +01:00
dwarning 93317c87a9 simplify beta derivation 2020-03-15 08:51:00 +01:00
dwarning e966ce5054 alternative temperature model for extrinsic resistances and subthreshold range 2020-03-15 08:51:00 +01:00
Holger Vogt 9c848cdca6 increase max. number of threads for BSIM4 to 8 2020-03-15 08:51:00 +01:00
Holger Vogt ec1d655289 In VDMOS device, if instance parameter tnodeout is set,
check for exactly five nodes
2020-03-15 08:51:00 +01:00
Holger Vogt 643b0edc26 enable local or global statistical values for B source
pre_set statlocal
(or set statlocal in spinit or .spiceinit) will be setting a
different random number for evaluating the value of fcn agauss
etc. in each B line, e.g. if this line appears in a subcircuit,
all expanded B lines will have different values. If not set,
each B line will use the same random number for agauss evaluation.
2020-03-15 08:51:00 +01:00
Holger Vogt 1353a5de77 allow again single letter vector names 2020-03-15 08:51:00 +01:00
dwarning 41ddb9a63d correct thermal parameter 2020-03-15 08:51:00 +01:00
dwarning 51d95f1b6f avoiding temporary setplot problem 2020-03-15 08:51:00 +01:00
dwarning 0fb1c6a000 prevent program crash by misusing thermal model 2020-03-15 08:50:59 +01:00
dwarning 7d17b8f082 vdmos have no Cgb 2020-03-15 08:50:59 +01:00
dwarning d244b1c008 update vdmos examples to the new model interface 2020-03-15 08:50:59 +01:00
dwarning 0362d63094 update vdmos with self-heating network and tj and tcase terminal 2020-03-15 08:50:59 +01:00
Holger Vogt f585807085 re-enable V source with parameter EXTERNAL
Fix bug #463
2020-03-15 08:50:59 +01:00
Holger Vogt 23cef80914 option not needed for convergence 2020-03-15 08:50:59 +01:00
Holger Vogt b699c7fad8 add the PSPICE vswitch S_ST variant,
which resolves to the classical ngspice sw switch
2020-03-15 08:50:59 +01:00
Holger Vogt 9d53780992 allow vec_get to verify vectors if their names are quoted by "" 2020-03-15 08:50:59 +01:00
Holger Vogt 987cc0aa86 another preliminary patch for macOS 2020-03-15 08:50:58 +01:00
Holger Vogt 7680be7312 stub to enable compilation on macOS,
memory info for macOS is currently not available.
2020-03-15 08:50:58 +01:00
dwarning fa8a77343b format line with LF 2020-03-15 08:50:58 +01:00
Holger Vogt b7012065ae remove compiler warning by setting variables to 0 2020-03-15 08:50:58 +01:00
Holger Vogt a9f83f3445 remove two small memory leaks 2020-03-15 08:50:58 +01:00
Holger Vogt 58901fe898 remove spurious error message 2020-03-15 08:50:58 +01:00
Holger Vogt 48e998f19b out-of-interval examples added 2020-03-15 08:50:58 +01:00
Holger Vogt 7ae76f0f51 update to the .measure and meas error messages:
remove crash uipon buggy inputs
add buggy example input file
unify fcn returns: 0 is OK, 1 is bad
Improve on error message for bad syntax
2020-03-15 08:50:58 +01:00
dwarning 484c13c008 Add missing files for resources 2020-03-15 08:50:58 +01:00
Holger Vogt e9603dcdeb enable inp_dodeck() to return an error state,
if error, inp_spsource() will return error as well
2020-03-15 08:50:57 +01:00
Holger Vogt 651ba72344 return immediately if ckt is NULL 2020-03-15 08:50:57 +01:00
Holger Vogt 51f80abe00 if inp_spsource() returns with an error code, emit a message 2020-03-15 08:50:57 +01:00
Holger Vogt f9307d0beb enable returning inp_spsource() with an error code 2020-03-15 08:50:57 +01:00
Holger Vogt e6bbedf203 example for ~(~v(9)&v(8)) 2020-03-15 08:50:57 +01:00
Holger Vogt 0c74820821 enable PSPICE compatible ~(~v(9)&v(8)) 2020-03-15 08:50:57 +01:00
Holger Vogt 46adeb5eaa plug memory leaks for the 'plot' command 2020-03-15 08:50:57 +01:00
Holger Vogt 6c3b14e396 make simulation faster, allow batch mode 2020-03-15 08:50:57 +01:00
Holger Vogt 573b270b6d Give a better, modern name for this type of display 2020-03-15 08:50:57 +01:00
Holger Vogt b1be546939 User expects an empty input line, not a text that has to be deleted befopre writing 2020-03-15 08:50:57 +01:00