Commit Graph

2848 Commits

Author SHA1 Message Date
rlar 8fa71d2ae1 inpcom.c: array bounds check 2013-12-31 16:08:36 +01:00
dwarning ff6a4990bd devices/bsim3v32: whitespace cleanup 2013-12-31 16:08:35 +01:00
dwarning 7b2bd10b64 devices/bsim3v32: apply Area Calculation Method (ACM) to the bsim3v3.2.4 model 2013-12-31 16:08:33 +01:00
dwarning 959ee9cfbb devices/bsim3v32: reposition DrainSatCurrent block 2013-12-31 16:08:32 +01:00
dwarning 05a9a8931d devices/bsim3v32: remove duplicate `SourceSatCurrent' block 2013-12-31 16:08:30 +01:00
dwarning af0361d5b4 devices/bsim3v32: single out duplicate `SourceSatCurrent' block 2013-12-31 16:08:29 +01:00
dwarning 85b072f2bb devices/bsim3v32: remove duplicate `DrainSatCurrent' block 2013-12-31 16:08:28 +01:00
dwarning 751c642db2 devices/bsim3v32: single out duplicate `DrainSatCurrent' block 2013-12-31 16:08:27 +01:00
dwarning ecbaf5063a devices/bsim3v32: correct `rdc' and `rsc' definition 2013-12-31 16:08:25 +01:00
h_vogt 8b8f275645 defines.h, winmain.c, .h: fix --with-wingui for CYGWIN 2013-12-31 16:08:24 +01:00
h_vogt a146e6abfb inpcom.c: disable `m' for E, H 2013-12-31 16:08:22 +01:00
dwarning 0aee9a07c4 devices/bsim3v32: whitespace cleanup 2013-12-31 16:08:21 +01:00
dwarning 6801f77cc1 devices/isrc: implement multiplier `m' for current sources 2013-12-31 16:08:20 +01:00
dwarning 56449f54a3 allow Multiplier for current source in subckts 2013-12-31 16:08:18 +01:00
h_vogt 104f795a3e inpcom.c: add some some comments 2013-12-31 16:08:17 +01:00
h_vogt 4d4f05c380 inpcom.c: no multiplier 'm' added to V, I lines in subckt 2013-12-31 16:08:15 +01:00
dwarning 08df80cebe alternative geometry correction `del' for semiconductor capacitors 2013-12-31 16:08:14 +01:00
dwarning 661314a397 someone gives version=3.30e+00 in bsim models 2013-12-31 16:08:13 +01:00
h_vogt 745ea9ff3e measure.c: disable autostop, if no .meas commands found 2013-12-31 16:08:11 +01:00
h_vogt d4e5d1f836 subckt.c: enable correct model renaming for inductors 2013-12-31 16:08:10 +01:00
h_vogt f102bd985d devices/ind: implement multiplier `m' 2013-12-31 16:08:09 +01:00
h_vogt edce7230c2 resload.c: `m' already set in ressetup.c 2013-12-31 16:08:07 +01:00
h_vogt 025c0870d9 devices/res: whitespace cleanup 2013-12-31 16:08:06 +01:00
h_vogt 155e082641 devices/ind: whitespace cleanup 2013-12-31 16:08:05 +01:00
h_vogt b63cae8798 devices/cap: whitespace cleanup 2013-12-31 16:08:03 +01:00
h_vogt 4a1cdf0ada devices/ind: implement `tc1', `tc2' instance parameters 2013-12-31 16:08:02 +01:00
h_vogt b50f9b97bb devices/cap: implement `tc1', `tc2' instance parameters 2013-12-31 16:08:01 +01:00
h_vogt 0facd43319 move instance m-factor into ressetup 2013-12-31 16:07:59 +01:00
h_vogt 4b8f031971 resload.c, restemp.c: tc1, tc2 instance parameters override model parameters 2013-12-31 16:07:58 +01:00
dwarning 08beef9152 bsim3: fix incorrect version printout 2013-12-31 16:07:57 +01:00
dwarning 8cc75de0b5 this is the delvto/mulu0 instance extension to bsim3v3 2013-12-31 16:07:55 +01:00
dwarning 5f0a6aa0fb devices/bsim3: whitespace cleanup 2013-12-31 16:07:54 +01:00
h_vogt e953d9a796 inpcom.c: hot fix for nested ternary expressions 2013-12-31 16:07:52 +01:00
dwarning ba0529cef0 devices/cap, devices/res: some parameter aliases for compatibility 2013-12-31 16:07:51 +01:00
rlar 93052df7d0 sparse/*.c, whitespace 2013-12-31 16:07:50 +01:00
rlar 075b30d686 sparse/*.c, rename `eMatrix' --> `Matrix' (comments) 2013-12-31 16:07:48 +01:00
rlar 7ed0b5cef6 sparse/*.c, rename `eMatrix' --> `Matrix' (prototypes) 2013-12-31 16:07:47 +01:00
rlar f30796a7e6 sparse/*.c, rename `eMatrix' --> `Matrix' 2013-12-31 16:07:46 +01:00
rlar 9c48863912 sparse/*.c, simplify, drop the local copy `Matrix' 2013-12-31 16:07:44 +01:00
rlar b02d34280c sparse/*.c, unify, use local copy `Matrix' instead of `eMatrix' 2013-12-31 16:07:43 +01:00
rlar ec8a3b79a2 sparse/*.c, drop unnecessary (spREAL) cast 2013-12-31 16:07:42 +01:00
rlar f10d9f75c1 sparse/*.c, drop unnecessary (double) cast 2013-12-31 16:07:41 +01:00
rlar a5d131d8a5 sparse/*.c, drop unnecessary (int *) cast 2013-12-31 16:07:39 +01:00
rlar 2517756eff sparse/*.c, drop unnecessary (MatrixPtr) cast 2013-12-31 16:07:38 +01:00
rlar 5c903a6f5c sparse/*.c, avoid (RealNumber *) casts by proper use of ElementPr 2013-12-31 16:07:37 +01:00
rlar 6d858200b6 sparse/*.c, drop unnecessary (void *) cast 2013-12-31 16:07:35 +01:00
rlar 35f1c18c61 sparse/*.c, drop unused artifacts 2013-12-31 16:07:34 +01:00
dwarning bef25a8b58 adapt the sense2 code to ngspice
workaround, make the opaque struct MatrixElement partially visible

this struct is private to the `sparse' world,
  and lives in "maths/sparse/spdefs.h"
which can't be included here, because
  it is incompatible to the rest of ngspice.

this is the same problem as in
  ciderlib/oned/oneprint.c
  ciderlib/twod/twoprint.c
2013-12-31 16:07:33 +01:00
rlar 0440f0584e fix an incorrect typedef and cast
which was of no consequence,
  because nobody made use of it.

ancient, already in the very first commit of ngspice
  Date:   Thu Apr 27 20:03:57 2000 +0000
2013-12-31 16:07:31 +01:00
dwarning 4ef874bdae fix a wrong GMIN implementation 2013-12-31 16:07:30 +01:00
rlar dc0fbe4220 bug fix, preserve filename case for `codemodel', `load' and `use'
reported and fixed by Emil Lambrache on the bug tracker
http://sourceforge.net/p/ngspice/bugs/241/
  "#241 case sensitivity not preserved for file names"
2013-12-31 16:07:29 +01:00
dwarning caf9a9abe7 fix Makefile.am for SENSDEBUG code 2013-12-31 16:07:27 +01:00
dwarning f26d28b5bd fix SENSDEBUG related code 2013-12-31 16:07:26 +01:00
h_vogt 89c4c16829 swload.c: reinstate the truncation code from swtrunc.c
which was removed in the following commit:

commit 0dae4607a0
Date:   Wed Apr 25 18:28:20 2001 +0000

    Added a patch to csw and sw from Jon Engelbert dealing with negative histeresys
2013-12-31 16:07:25 +01:00
h_vogt 8ac5f64500 txldefs.h: update some comments 2013-12-31 16:07:24 +01:00
h_vogt e91063d096 sharedspice.c, .h, .vcproj: comments, update für MS Visual Sudio build 2013-12-31 16:07:21 +01:00
h_vogt a0a2f15a52 sharedspice.c, *.h: interface update, more comments 2013-12-31 16:07:20 +01:00
h_vogt b54605c225 sharedspice.c: improved comments 2013-12-31 16:07:18 +01:00
h_vogt e86c3dd297 sharedspice.c: remove bug causing sigsegv 2013-12-31 16:07:17 +01:00
rlar c0eeb96dd9 xpsice, fix premature tfree() invocation
reported by "Heini X" on the ngspice-users mailing list

this bug was introduced in

: commit 0af75f3bd9
: Date:   Sat Aug 18 18:31:23 2012 +0200
:
:     subckt.c, mif_inp2.c: plug XSPICE setup memory leaks
2013-12-31 16:07:16 +01:00
rlar 13726751ab sense2, cleanup, avoid (SENstruct *) casts 2013-12-31 16:07:14 +01:00
rlar e2867a3ede sense2, whitespace cleanup
checked for object file invariance
2013-12-31 16:07:13 +01:00
Francesco Lannutti 581e0a6d11 fix sense2, which is unsupported code 2013-12-31 16:07:12 +01:00
h_vogt ffc7a0aa1b sharedspice.c: small updates 2013-12-31 16:07:10 +01:00
h_vogt a2ea2585c1 icm/makedefs.in: add -lm for self-consistent shared libs 2013-12-31 16:07:09 +01:00
h_vogt 35550cfd1d sharedspice.c: fix sigsev fault under LINUX 2013-12-31 16:07:08 +01:00
h_vogt 23779a9eb1 inp.c: add function prototype 2013-12-31 16:07:06 +01:00
Francesco Lannutti 1dd0535ecf whitespace, align TSTALLOC calls in the setup routine of the MES model 2013-12-31 16:07:05 +01:00
Francesco Lannutti 0ea7a56e21 whitespace, align TSTALLOC calls in the setup routine of the JFET2 model 2013-12-31 16:07:04 +01:00
Francesco Lannutti 451294bcf5 whitespace, align TSTALLOC calls in the setup routine of the JFET model 2013-12-31 16:07:02 +01:00
h_vogt 7e85c0b6ba sharedspice.c: update stopping printsend thread 2013-12-31 16:07:01 +01:00
Francesco Lannutti 42a78b0ac7 whitespaces 2013-12-31 16:07:00 +01:00
Francesco Lannutti e63ba69888 remove a duplicate entry in the setup routine of the BSIM3SOIPD model 2013-12-31 16:06:59 +01:00
Francesco Lannutti 37f952f370 remove a duplicate entry in the setup routine of the BSIM3SOIDD model 2013-12-31 16:06:57 +01:00
h_vogt bbcadcbd11 sharedspice.c: command bg_pstop to stop printsend thread before unloading ngspice library 2013-12-31 16:06:56 +01:00
h_vogt f95f7c661d sharedspice.c: thread handling updated 2013-12-31 16:06:55 +01:00
h_vogt 295c808b01 alloc.c sharedspice.c: improve thread safety
still much more to be done!
2013-12-31 16:06:53 +01:00
h_vogt 3f4f0e392c sharedspice.c: correction for LINUX 2013-12-31 16:06:52 +01:00
h_vogt 9da123df26 icm/dlmain.c: restrict exported symbols under LINUX 2013-12-31 16:06:48 +01:00
h_vogt 83d5606da4 ngspice.h: add shared module 2013-12-31 16:06:47 +01:00
h_vogt 62324299e1 misccoms.c: special return value for shared module 2013-12-31 16:06:45 +01:00
h_vogt 3211674b2f error.c: no exit, but callback if shared module 2013-12-31 16:06:44 +01:00
h_vogt b62b67bf25 display.c: exclude SHARED_MODULE if console 2013-12-31 16:06:43 +01:00
h_vogt ac553eedba src/Makefile.am include/ngspice/Makefile.am: add shared module 2013-12-31 16:05:33 +01:00
h_vogt ff4d42d651 outitf.c: prepare for feedback in shared ngspice 2013-12-31 12:57:56 +01:00
h_vogt a6976f9857 main file and header for ngspice as shared module 2013-12-31 12:57:55 +01:00
h_vogt 1767991236 new flag `SHARED_MODULE' for shared module 2013-12-31 12:57:51 +01:00
h_vogt bfb2eeebbe dctran.c: better rounding for status report 2013-12-31 12:57:00 +01:00
h_vogt 30a44d1be5 --with-windows --> --with-wingui 2013-12-31 12:56:59 +01:00
h_vogt df65fa28cf separate progress report from having Windows GUI 2013-12-31 12:56:59 +01:00
h_vogt 5a44b3f7f8 fix `SetAnalyse()' re-declaration 2013-12-31 12:56:58 +01:00
h_vogt d7e291c53a HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
h_vogt 1e88db6f7d add command 'circbyline' to allow entering circuit line by line 2013-12-31 12:56:56 +01:00
h_vogt b503ea2d12 inp.c: do not run all 'save' commands upfront,
but cumulative when they appear in the .control section
2013-12-31 12:56:55 +01:00
h_vogt 79a9fdbcd7 breakp2.c: allow v(12) and i(vdd) in 'save' command 2013-12-31 12:56:55 +01:00
h_vogt 4865f7c2af runcoms2.c: update for dbs after remcirc 2013-12-31 12:56:54 +01:00
h_vogt 7a83423685 update 'alter' handling as in ngspice main.c 2013-12-31 12:56:54 +01:00
h_vogt 7bc879726d make database dbs local to each circuit 2013-12-31 12:56:53 +01:00
rlar efd8843f21 inpcom.c: cleanup comments 2013-12-31 12:56:52 +01:00
rlar a07817271a expand_libs(): think of `next' instead `prev' 2013-12-31 12:56:52 +01:00
rlar bdea094050 expand_libs(): rename `tmp_ptr2' --> `next' 2013-12-31 12:56:51 +01:00
rlar 27d68e8db7 expand_libs(): reposition `keep_char' restorage 2013-12-31 12:56:50 +01:00
rlar fcb5b12364 expand_libs(): shrink scope of `found_section' 2013-12-31 12:56:50 +01:00
rlar edc2503a3a expand_libs(): bug fix, missing check for .endl at the tail of a file 2013-12-31 12:56:49 +01:00
rlar 182911a5c7 inpcom.c: rename local variable names 2013-12-31 12:56:48 +01:00
rlar 07d3e3aa42 inpcom.c: rename local variable names 2013-12-31 12:56:48 +01:00
rlar 99141bbdfc inpcom.c: rename local variable names 2013-12-31 12:56:47 +01:00
rlar 181742a020 inpcom.c: rename found_lib_name --> found_section 2013-12-31 12:56:46 +01:00
rlar 7d5c48c0f2 inpcom.c: rename inp_determine_libraries() --> collect_section_references() 2013-12-31 12:56:46 +01:00
rlar fda6912f0e inpcom.c: rename expand_libs() --> expand_section_references() 2013-12-31 12:56:45 +01:00
rlar e898eb4faf inpcom.c: rename function argument names 2013-12-31 12:56:45 +01:00
rlar ffe82f1722 inpcom.c: rename function argument names 2013-12-31 12:56:44 +01:00
rlar b22be31496 inpcom.c: cleanup 2013-12-31 12:56:43 +01:00
rlar adeb2885c5 inpcom.c: rename library_file[] --> library_name[] 2013-12-31 12:56:43 +01:00
rlar 20f5bb3e2e inpcom.c: rename library_name[][] --> section_name[][] 2013-12-31 12:56:42 +01:00
rlar b8e3843f45 inpcom.c: rename library_ll_ptr[][] --> section_ref[][] 2013-12-31 12:56:41 +01:00
rlar aa9d291114 inpcom.c: rename libraries[] -> library_deck[] 2013-12-31 12:56:41 +01:00
rlar 61ab7b1de2 inpcom.c: rename num_lib_names --> num_sections 2013-12-31 12:56:40 +01:00
rlar d619a8b024 inpcom.c: rename new_lib_name() --> remember_section_ref() 2013-12-31 12:56:39 +01:00
rlar 05bd53b8de inpcom.c: rename find_lib_name() --> find_section() 2013-12-31 12:56:39 +01:00
rlar 09e89df89d inpcom.c: static declaration of library related global variables 2013-12-31 12:56:38 +01:00
h_vogt c15608c903 unique modtab for each circuit, store in ckt structure 2013-12-31 12:56:38 +01:00
h_vogt 4bed98936c inp.c: nullify `dbs' for use with 'source' command 2013-12-31 12:56:37 +01:00
rlar 3ea7a23394 fix bug `#233 cktdojob: Uninitialized variable: ANALmaxnum'
this is WANT_SENSE2 specific

http://sourceforge.net/p/ngspice/bugs/233/
2013-12-31 12:56:36 +01:00
rlar 14ae087ec5 fix bug `#232 soi3cap.c: wrong array index alpha_args[2]'
though incorrect, this didn't lead to misbehavior.

http://sourceforge.net/p/ngspice/bugs/232/
2013-12-31 12:56:36 +01:00
rlar d1764cc7fa inp_readall() change function signature for readability 2013-12-31 12:56:35 +01:00
rlar 536d3c229f inpcom.c: abstract into new function read_a_lib() 2013-12-31 12:56:34 +01:00
rlar eaf4801b33 inpcom.c: rewrite using new function find_lib() 2013-12-31 12:56:34 +01:00
rlar 9d856dad61 inp_determine_libraries(): rewrite 2013-12-31 12:56:33 +01:00
rlar 9e3f2a9d28 inp_determine_libraries(): can happen at most once 2013-12-31 12:56:32 +01:00
rlar 111a258ff4 inpcom.c: small cleanup 2013-12-31 12:56:32 +01:00
rlar b4db509d83 inpcom.c: comment .lib semantic 2013-12-31 12:56:31 +01:00
rlar 7463499523 inp_readall(): rename local variables 2013-12-31 12:56:31 +01:00
rlar 3877e2d0d6 inp_readall(): local scope for `tmp_ptr1' 2013-12-31 12:56:30 +01:00
rlar 5fda0e2694 inp_readall(): local scope for `fdo' 2013-12-31 12:56:29 +01:00
rlar 8a154a7a9a use SP_VOLTAGE instead of literal value `3'
(grep "git --no-pager grep -nH -e '->[ \t]*type.*[0-9]'")
2013-12-31 12:56:29 +01:00
rlar b3847817a1 retire #define NODE_VOLTAGE, use SP_VOLTAGE instead
(grep "git --no-pager grep -nH -e '\\(SP_\\|NODE_\\)\\(VOLTAGE\\|CURRENT\\)'")
2013-12-31 12:56:22 +01:00
dwarning d823272a1b jfet: new noise model selector nlev=3 for correct noise in non-saturated region 2013-12-31 12:54:45 +01:00
dwarning ef2614d014 jfet: whitespace cleanup 2013-12-31 12:54:44 +01:00
rlar 4184aa8c10 cleanup, use array operator
checked for object file invariance on linux with
   ./configure --enable-debug=no --enable-maintainer-mode --with-readline=yes --enable-cider --enable-ndev --enable-pss --enable-xspice
2013-12-31 12:54:43 +01:00
h_vogt 92a529f15c winmain.c: print buffer enlarged 2013-12-31 12:54:43 +01:00
h_vogt baad0b1bb8 inp.c: some comments added 2013-12-31 12:54:34 +01:00
rlar 6c8f002eea unify #ifndef include wrapper 2013-12-31 12:54:32 +01:00
rlar 1ee88a5694 prepare for #ifndef include wrapper unification 2013-12-31 12:54:31 +01:00
rlar 8cafeed8f0 rename #ifndef include wrapper CKT_H 2013-12-31 12:54:30 +01:00
rlar c377b7a6b3 avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
rlar 5086a90746 cleanup some preprocessor macros 2013-12-31 12:54:15 +01:00
h_vogt 6c74513120 fix bug #229 `Node name "n" is sometimes toxic'
Error: too few nodes for MOS or CPL:
m6 1 n 2 vss nch.3 l=4.3e-07 ...

http://sourceforge.net/p/ngspice/bugs/229/
2013-09-20 22:27:35 +02:00
rlar 8c69016464 inpcom.c: rewrite for readability 2013-09-20 21:38:58 +02:00
rlar dbfc90df0a inpcom.c, bug fix, incorrect start value for `prev'
this bug was introduced in the following commit,
which `reused' variable prev,
failing to preserve its initialization value NULL

Author: pnenzi <pnenzi>
Date:   Mon Oct 8 21:10:34 2007 +0000

    Improvements in frontend by Phil Barker
2013-01-12 23:26:42 +01:00