Commit Graph

141 Commits

Author SHA1 Message Date
h_vogt d4e5d1f836 subckt.c: enable correct model renaming for inductors 2013-12-31 16:08:10 +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
dwarning 44786a490b fix a leak in devmodtranslate 3 terminal section 2012-11-06 20:56:27 +01:00
dwarning 082a3e92ae allow more then 4 terminal mos models in subckts 2012-11-05 18:16:55 +01:00
rlar ba131a5077 remove adms3 #1/2, code
due to license issues, and with the aim to approach the next
  ngspice release 25
we have to move this over to a development branch
2012-10-25 18:54:09 +02:00
rlar ee0b602dc4 subckt.c, cleanup, use `for' instead of `while' 2012-09-22 22:12:56 +02:00
rlar fe1acd3757 src/frontend/** remove superfluous `return' invocations 2012-09-22 19:33:55 +02:00
rlar 7454a6d486 src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...

checked for object file invariance on linux
2012-09-20 20:30:53 +02:00
rlar f3b5336d3a cleanup some macros, try to be more careful 2012-09-19 20:16:27 +02:00
h_vogt 0af75f3bd9 subckt.c, mif_inp2.c: plug XSPICE setup memory leaks 2012-08-18 18:31:23 +02:00
h_vogt b02a497490 mif_inp2.c, subckt.c: plug memory leaks at XSPICE setup 2012-08-15 23:11:07 +02:00
h_vogt acfc7a2a27 remove memory leaks 2012-08-04 19:09:13 +02:00
rlar 64b8dfc570 use wl_delete_slice() 2012-07-29 13:11:43 +02:00
rlar 891d99497d use wl_find() 2012-07-28 12:29:23 +02:00
rlar 561d30e5bf implement wl_chop() 2012-07-21 14:42:18 +02:00
rlar 9655b9885a cleanup, use wl_cons(), wl_append_word() and wl_chop_rest() 2012-07-14 10:23:51 +02:00
rlar bde3536ecc subckt.c, doit(): fix another memory leak 2012-06-12 21:26:27 +02:00
rlar e3402554f0 subckt.c, doit(): fix a memory leak 2012-06-12 21:26:27 +02:00
rlar 6e829f7cc4 rewrite subckt.c
transform doit() into a true recursive version,
    drop usage of global variables
  reduce scope of many variables
  cleanup and readability

  FIXME,
    an opportunity to plug a memory leak is visible now.
2012-03-25 20:19:42 +02:00
rlar da06afb895 bug fix, numnodes()
in response to the `ex-41.cir' test case
    distilled from a Dietmar Warning Bug report in
      "Subject: Re: subckt, param"

  translate() is called recursively and depends on
    `num of nodes' provided by numnodes().
  numnodes() depends on availability of `su_numargs'.
  But the processing allows non-processing of subckt instantiations
    in inner recursions (which will be processed later)
    which means `su_numargs' is not always available.
2012-03-25 18:54:10 +02:00
rlar d5f6bcbedf drop some more casts 2012-02-06 20:11:10 +00:00
h_vogt 54501d90e0 beautify code 2011-12-16 21:55:28 +00:00
rlar f7ea50c287 new: configure --enable-adms3 2011-12-15 20:44:45 +00:00
r29173 bab7e17a6a added SPICEadmsdev - a super structure of SPICEdev used to build dynamic device libraries 2011-12-15 15:34:50 +00:00
rlar 0b5042e7da remove CVS `Id',`log' etc. keyword incantations 2011-12-13 19:57:45 +00:00
rlar 10346e055c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
rlar d26015586c #1/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:27:09 +00:00
rlar 0892d04c8a explicit `int' casts for some ptrdiff_t expressions, where an `int' seems to be big enough 2011-07-09 19:45:22 +00:00
rlar 23056573d8 code cleanup, drop NULL pointer casts 2011-04-28 15:59:36 +00:00
rlar 05441d5823 Nr 5/5 (x = ...) == NULL , swallow warnings 2010-11-19 18:54:40 +00:00
rlar e6c30efe46 Nr 4/5 (x = ...) != NULL , swallow warnings 2010-11-19 18:52:44 +00:00
rlar 927470e12f minor rewrite, avoid type conversion warnings 2010-11-06 16:50:21 +00:00
rlar 6e3bbd49ae casts, to make int <-> char conversions explicit 2010-11-02 17:31:19 +00:00
rlar b4ffca60c4 (int) casts for some `strlen()' expressions 2010-11-02 17:17:43 +00:00
rlar 01566f2b49 add casts to make `int' versus `size_t' conversions explicit 2010-11-02 17:07:57 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
rlar 6e9e8e2e51 trealloc usage unification 2010-10-24 13:32:17 +00:00
rlar 3c3b31fa60 declare some functions `static' 2010-10-15 18:43:52 +00:00
h_vogt e45aff5549 b. added to i(b.xxx.byyy) 2010-10-07 21:43:40 +00:00
rlar 241783d0b5 use for(;;) instead of while(1) to muffle some visual-C warnings 2010-09-07 20:07:57 +00:00
rlar 8851f67efd Change remaining code to use the new usage pattern cp_getvar(,CP_BOOL,NULL) 2010-07-20 18:52:19 +00:00
rlar a76cd1e104 textual replacement VT_* to CP_*, to avoid conflict in the windows world 2010-07-17 20:48:20 +00:00
rlar d19476685a tiny fixes 2010-07-03 17:55:44 +00:00
rlar 3369d860b4 cast the return values of malloc() function calls 2010-07-01 19:52:23 +00:00
h_vogt aab308e863 bug, see support tracker no. 3013968 2010-06-19 18:23:32 +00:00
h_vogt dd66fc7220 abort if .inc fails 2010-05-16 16:31:03 +00:00
h_vogt 1cf306f8e8 remove bugs in processing of lines 2010-05-16 11:55:07 +00:00
h_vogt d850fdd7a3 fcn finishLine: add e. or h. to token inside i(...) 2010-05-10 21:57:36 +00:00
h_vogt 9e2f02fbe2 HERTZ added to B source 2010-03-20 15:32:23 +00:00
h_vogt 76feebbbfa various bug fixes 2010-02-25 21:43:03 +00:00
dwarning ba54c4d9b8 big kspice model update 2010-02-07 18:16:17 +00:00
h_vogt f1a4f27d21 improved numparam error message 2010-02-07 11:27:59 +00:00
dwarning 88c64bc954 devmodtranslation for txl and cpl in subckts 2010-01-27 21:26:08 +00:00
h_vogt 204362044e .gllobal bug 2010-01-17 14:49:42 +00:00
h_vogt ecf5665104 patch for translate(), R. Larice, .global bug 2010-01-15 22:05:23 +00:00
dwarning e09d408c0f support of 5-terminal bjt's in subckt's 2009-11-09 09:15:21 +00:00
dwarning 07e06cf701 initialize local variables 2009-10-04 11:48:37 +00:00
dwarning ca8bbd2695 /* within comment 2009-08-22 18:12:17 +00:00
h_vogt 9282e4e434 comments added 2009-08-17 20:13:51 +00:00
h_vogt b16759cf97 1348: find last dot 2009-05-10 19:29:13 +00:00
h_vogt 3f7201376c call to nupa_done() to release memory 2009-04-05 18:31:25 +00:00
h_vogt faada68e9d *** empty log message *** 2009-04-05 12:26:19 +00:00
h_vogt 0e61b7ccc0 collect info for dyn. mem arrays in numparam 2009-03-07 15:49:51 +00:00
h_vogt 55f5956bd1 bug no. 2293284 removed (preliminary) 2009-01-31 15:17:48 +00:00
dwarning bce499a9e1 global nodes and numparams now as default 2008-05-12 15:52:59 +00:00
dwarning e352cb46dd correct subckt expansion and new bsim model level/version selection 2008-01-06 14:09:33 +00:00
pnenzi 6f3f195158 Additions from Phil Barker (subckt nodeset and ic, simvars, mosfet binning, various fixes) 2007-10-09 07:19:45 +00:00
pnenzi 53e52f4a59 Model improvements from Phil Barker 2007-10-08 21:45:00 +00:00
pnenzi 936cd7a4fc Improvements in frontend by Phil Barker 2007-10-08 21:10:34 +00:00
pnenzi 2bfcb8cf4c Bipolar devices support 5 nodes now (Dietmar) 2006-02-21 15:25:23 +00:00
sjborley 67ff1b3a83 Tidy up of the header files in src/frontend and sub-directories. Motivation is to remove extern declarations within .c files and place them in .h files. Added new header files where necessary (and adjusted makefile.am files where required) 2005-05-30 20:28:29 +00:00
sjborley 47af112683 Added code by H.Tanaka to find global nodes 2005-05-06 07:11:02 +00:00
pnenzi 985d977197 Applied Steven Borley patch for numparam and frontend. See Changelog. 2005-04-24 21:17:31 +00:00
pnenzi 1aa04ca10b Fixed numparam library (Steven Borley) and corrected bug in node translation (Hitoshi Tanaka). 2005-04-16 22:45:32 +00:00
pnenzi 8cc46680ab Fixed a bug in model name translation. 2005-04-04 10:38:45 +00:00
pnenzi 5c6f6a8613 Added #ifdef to switch off xspice a codemodels 2005-02-09 17:54:57 +00:00
pnenzi 87f94117f7 Fixed bug with long lines. Thanks Dietmar! 2005-02-08 21:07:37 +00:00
pnenzi d2472a93a9 Rollback of part of Niessner's patch. 2004-08-16 21:05:42 +00:00
pnenzi 1260ae08db Update autoconf scripts and applied Niessner patch to remove compiler warnings. 2004-07-09 18:37:25 +00:00
pnenzi 8a9766a401 Solved bug in codemodel system. 2004-06-21 09:58:25 +00:00
pnenzi c5438903ac Two patches from Dietmar. 2004-05-30 08:24:07 +00:00
pnenzi b03a70760b Applied Stuart's 12-03-2003 patch. Support for readline (disabled) and for node names in the form (x,y). 2004-01-10 21:39:36 +00:00
pnenzi ebb73dcfc8 Added some code nedeed by cpl an txl from kspice. 2003-12-31 16:13:26 +00:00
pnenzi 09e31fceab Changed to include numparam library (this file is the link point of
the library).
2003-09-25 17:21:28 +00:00
pnenzi 8362dec274 Integrated code from tclspice, brorson xspice and Vera memleak. 2003-07-23 19:36:39 +00:00
pnenzi 1a1fad9023 Modified handling of MOS number of nodes. BSIMSOI model can have up to 7 nodes.
This code is very experimental.
2001-01-24 11:19:39 +00:00
pnenzi 97e77a523e Added support for bsim3soi fd devices (fully depleted). 2000-12-08 16:58:47 +00:00
pnenzi 1857890a08 Corrected a bug introdiced when patching the file with Alan's code.
Models in subcircuits are now handled correctly.
2000-09-14 05:51:50 +00:00
pnenzi 0875108157 Added patches extracted from Alan Gillespie's code. Documentation and
author's file not updated.
2000-09-03 09:00:08 +00:00
arno 489fc66afd src/Makefile.am src/help.c src/main.c
src/circuit/Makefile.am src/circuit/ifnewuid.c
	src/frontend/Makefile.am src/frontend/aspice.c
	src/frontend/circuits.h src/frontend/com_display.c
	src/frontend/com_hardcopy.c src/frontend/commands.c
	src/frontend/commands.h src/frontend/cpitf.c
	src/frontend/debugcom.c src/frontend/device.c
	src/frontend/diff.c src/frontend/display.c
	src/frontend/dotcards.c src/frontend/fourier.c
	src/frontend/inp.c src/frontend/inpcom.c src/frontend/linear.c
	src/frontend/misccoms.c src/frontend/mw_coms.c
	src/frontend/nutinp.c src/frontend/options.c
	src/frontend/outitf.c src/frontend/parse.c
	src/frontend/postcoms.c src/frontend/postsc.c
	src/frontend/rawfile.c src/frontend/resource.c
	src/frontend/runcoms.c src/frontend/runcoms2.c
	src/frontend/shyu.c src/frontend/spec.c src/frontend/spiceif.c
	src/frontend/subckt.c src/frontend/vectors.c
	src/frontend/where.c src/frontend/plotting/Makefile.am
	src/frontend/plotting/agraf.c src/frontend/plotting/graf.c
	src/frontend/plotting/plotcurv.c
	src/frontend/plotting/plotit.c src/frontend/plotting/x11.c
	src/frontend/plotting/xgraph.c src/include/Makefile.am
	src/maths/cmaths/cmath4.c src/misc/terminal.c
	src/misc/terminal.h src/parser/cshpar.c src/parser/front.c
	src/parser/front.h src/parser/history.c src/parser/history.h
	src/parser/modify.c src/parser/var2.c src/parser/var2.h
	src/parser/variable.c: Refactoring of frontend code.

	* src/include/ftehelp.h src/include/variable.h: Moved into
	frontend directory.

	* src/include/cpdefs.h src/include/cpextern.h
	src/include/ftedefs.h src/include/plot.h: Updates.
2000-06-27 16:09:02 +00:00
pnenzi 978f1c32a2 Initial revision 2000-04-27 20:03:57 +00:00