Commit Graph

6003 Commits

Author SHA1 Message Date
Holger Vogt f354f36121 replace 'magic numbers' by defines, thus setting several char arrays
safeguard these arrays against overflow
set numbers of parameters to 10000
2018-08-07 19:57:28 +02:00
dwarning 88f1fa0092 allow version model parameter in exponential format for bsim3 2018-08-07 19:57:05 +02:00
Holger Vogt 8357564fee fix missing tokens in cp_getvar 2018-07-30 00:42:46 +02:00
Holger Vogt ef5747905f fix bug no. 362, reported by Bohdan Tkhir
replace size_of by sizeof
2018-07-30 00:35:25 +02:00
Holger Vogt eab5615fb3 examples moved to examples/xspice/original-examples 2018-07-28 13:47:23 +02:00
Holger Vogt c8705147b0 Original examples fixed and moved to here 2018-07-28 13:45:41 +02:00
Holger Vogt 0de66ea3b8 XSPICE state machine example 2018-07-28 12:54:02 +02:00
Holger Vogt a5e382d0ea XSPICE d_source examples 2018-07-28 12:52:21 +02:00
Holger Vogt 6e452b1e7c xspice filesource example 2018-07-28 11:45:33 +02:00
Holger Vogt e3b2b395b9 fix an ancient bug in retrieving the data with the cursor
from a log y graph: use y-offset instead of x-offset
2018-07-26 20:55:21 +02:00
Holger Vogt 908339359a clarify start time generation
clarify time and amplitude updates
don't read comment lines
2018-07-26 20:50:36 +02:00
Holger Vogt 0c94ab948b treat ( ) , like spaces, that is ignore them during
switch parameter conversion
2018-07-26 18:21:34 +02:00
Holger Vogt d1761f8d6e read the complete input file at once during inizialization
instaed of reading the file line by line,
and instaed of re-reading from the beginning in case
of time stepping back. This saves a vast amount of
simulation time if the input file is large.
2018-07-24 22:30:40 +02:00
Holger Vogt 393c924886 improve finding tokens, considering nested parens 2018-07-22 17:33:19 +02:00
Holger Vogt f2cfb9b359 add fourth parameter to cp_getvar() 2018-07-22 15:15:10 +02:00
Holger Vogt 1cbcd25cab various digital simulations of a 4-bit NAND gate full adder:
Bipolar, MOS, behavioral, and event based
2018-07-22 15:12:59 +02:00
Holger Vogt fac5754b79 add variabale inputdir to store the last input file directory 2018-07-22 15:12:50 +02:00
Holger Vogt 5fa4f631fb MC input files 2018-07-22 15:12:32 +02:00
Holger Vogt 4add5be417 remove the quotation marks around $&run
whitespaces
2018-07-22 15:12:04 +02:00
Holger Vogt 2786fcb86e New .option seed=[val|random] 2018-07-22 15:11:44 +02:00
Holger Vogt 1bf7f3004d tests for setting random numbers 2018-07-22 15:10:00 +02:00
Holger Vogt 73f8925c1e example update: sim_status, mc_source and others 2018-07-22 15:09:46 +02:00
Holger Vogt 8ffb3e29da example may be run with commervcial PDKs 2018-07-22 15:09:36 +02:00
Holger Vogt 107a4a808e New .option seed=[val|random] 2018-07-22 15:09:25 +02:00
Holger Vogt 10c6c5c38b Convert .param lines containing 'agauss' and others
into .func (xxx1() 'agauss()', replace all xxx1 entries
by function xxx1().
After subcircuit expansion, replace agauss and others
in B-Line by their suitable values.
2018-07-22 15:08:44 +02:00
Holger Vogt 7ca61b3c98 New command 'setseed' with function com_sseed
to set the random number generator
2018-07-22 15:06:19 +02:00
Holger Vogt 8fbcb16a57 add fourth parameter to cp_getvar(), in functions missing so far 2018-07-22 14:58:25 +02:00
Holger Vogt af70c2e8f0 cp_getvar with CP_STRING: add size of string to function parameters 2018-07-22 14:58:06 +02:00
Holger Vogt 09c876550f prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
2018-07-22 14:57:49 +02:00
Holger Vogt 7592644400 small update for README, hint to manual chapt. 16.13.5 2018-07-22 10:30:50 +02:00
dwarning 60a35725f5 few optimizations for diode recombination current calculation 2018-07-22 10:18:52 +02:00
Holger Vogt 8930690cd2 plug a small memory leak 2018-07-22 09:53:14 +02:00
Holger Vogt ea3ada107b small addition (hint to add 'set ngbehavior=ps') 2018-07-22 08:36:36 +02:00
Holger Vogt de644fe3ca 3rd and 4th node have to be the same for VDMOS 2018-07-22 00:31:29 +02:00
Holger Vogt d61fa145c1 Update to PSPICE-ngspice models
README with download information
2018-07-21 23:59:27 +02:00
Holger Vogt 6d14d0904a add evtshared.h to the MSVC project files 2018-07-21 23:56:24 +02:00
Holger Vogt 824ac4fbc9 make functions static or add function prototypes 2018-07-21 23:56:14 +02:00
Holger Vogt 2dd293707b initialize pn in ft_getpnames() parse.c
initialize dwLen in tesCreateSystemInfo() in com_sysinfo.c
Both were reported by MSVC Code Analysis
Crash of ngspice.dll in Eeschema is thus removed
(hopefully in general)
2018-07-21 23:55:00 +02:00
Holger Vogt b07ae3123e use only internal memory functions,
replace strdup by copy
2018-07-21 23:54:51 +02:00
Holger Vogt a98d01e5f8 Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
2018-07-21 23:54:43 +02:00
dwarning 376a37a5d6 introduce recombination current component 2018-07-19 15:44:06 +02:00
dwarning 3bae0e371c fix a small inconsistency in temperature dependent charge calculation 2018-07-19 14:08:35 +02:00
Holger Vogt a2b52b588e a space is required between tokens that have got {} 2018-07-14 21:14:54 +02:00
Holger Vogt fe8126865a Add CFLAGS -fvisibility=hidden also when ngspice executable
is made under LINUX: becomes effective when code models are made.
Thus there is no longer any difference between code models
made during compiling shared ngspice or standard ngspice.
2018-07-07 14:29:44 +02:00
Holger Vogt d9d47bd823 fix a bug: missing
#ifdef XSPICE
prevents compiling of ngshared
without --enable-xspice in ./configure
2018-06-30 21:19:51 +02:00
Holger Vogt 38ed802ba4 add alter-1.cir to EXTRA_DIST 2018-06-01 21:57:28 +02:00
Holger Vogt 5623996b33 give a hint where to download library
remove library from distribution
2018-06-01 21:57:03 +02:00
Holger Vogt 930ef32c83 path to library is the actual directory 2018-06-01 20:56:46 +02:00
Holger Vogt 06e669fdf7 add alter-1.cir to allow the regression test 2018-05-31 19:07:01 +02:00
Holger Vogt 417dbfef72 undo the previous commits dealing with snprintf,
use the C99 compliant function also with MS Visual Studio
2018-05-31 11:37:51 +02:00