Commit Graph

2901 Commits

Author SHA1 Message Date
rlar ec95bbe2fb build shell script `wip-adms3.sh' 2012-04-13 16:08:51 +02:00
rlar 347e4453e0 working myvares example 2012-04-13 16:08:49 +02:00
rlar d8755d681c drop implizit mark `U' 2012-04-13 16:08:46 +02:00
rlar 6baf73ad74 drop special handling `u' in subckt, go back to `q' in the example 2012-04-13 16:08:44 +02:00
rlar 291212ecc4 pass the allowed instance_letters, when announcing a `admsmodel' 2012-04-13 16:08:42 +02:00
rlar 570bb98061 consider the first letter 2012-04-13 16:08:40 +02:00
rlar 4ba8ef34f0 next step 2012-04-13 16:08:37 +02:00
rlar ed86b1cfde demo via ngspice -p, this time without a local spinit 2012-04-13 16:08:35 +02:00
rlar 722adf8209 via `admsmodel' command 2012-04-13 16:08:33 +02:00
rlar fea860ae85 undo sime INPU2 stuff, and using model load in spinit 2012-04-13 16:08:30 +02:00
rlar 9f76b7d4a6 load per `admsmodel' command 2012-04-13 16:08:24 +02:00
rlar 021fa1448c example hic0.cir and make 2012-04-13 16:08:16 +02:00
rlar c08e17aed2 don't decend into adms any more 2012-04-13 16:08:12 +02:00
rlar 5a1468c3a3 reintroduce autogen.sh, minimal
faster than autoreconfig -vi
  and doesnt recurse into xgraph
2012-04-13 16:08:01 +02:00
rlar d85c5840b3 adms2 raus 2012-04-13 16:07:28 +02:00
rlar c59baf92ef adms wieder rein als AM_CONDITIONAL 2012-04-13 16:07:17 +02:00
rlar a3956094e2 remove adms2 files 2012-04-13 16:06:53 +02:00
rlar f2413fe807 tiny own makefiles 2012-04-13 16:06:44 +02:00
Robert Larice 5b326d9050 if ADMS hardwired, adms3 ohne autogen, spearate compiled
siehe /s/larice/ngspice.work/build-adms3/do.el

  das u device ist highjacked
  man braucht LD_LIBRARY_PATH
2012-04-12 22:18:51 +02:00
Robert Larice 8a2fa89af3 kill autogen.sh and adms specifics, use autoreconf -vi instead 2012-04-11 20:32:57 +02:00
rlar 4f8d97e1b0 branch wip-adms3, for Laurents adms3 experiments 2012-04-11 20:32:57 +02:00
h_vogt 0be035fcf9 exclude circuits with XSPICE 'A' devices from using 'savesnap'
(XSPICE data storage is not not yet implemented)
2012-04-08 19:47:26 +02:00
rlar bbb1ecc6a8 ASRC, INPgetTree(), fix memory leaks
implement a reference counter `usecnt' for the elements
    of the `INPparseTree'
2012-04-07 19:16:39 +02:00
rlar 9955379204 INPgetTree(), express live range of some globals 2012-04-07 19:06:45 +02:00
rlar 54a7af3142 mkfnode(), minor rewrite 2012-04-07 19:06:10 +02:00
rlar e889c821d1 configure.ac, fix `NO_X' and `has_no_help'
drop configure options `--enable-x' and `--disable-x'
use `--with-x' and `--without-x' provided by AC_PATH_X

bug tracker item:
  [ngspice-Bugs-3515015] Startup error message without x11
  https://sourceforge.net/tracker/index.php?func=detail&aid=3515015&group_id=38962&atid=423915
2012-04-06 16:19:49 +02:00
rlar 7641450b29 inpptree.c, fix differentiation of PTF_FLOOR PTF_CEIL and PTF_POW 2012-04-05 21:55:44 +02:00
rlar 149345068f update bison generated files 2012-04-05 21:33:54 +02:00
rlar 3bb2bd8e05 fix memory leak in PTparse() 2012-04-05 21:30:41 +02:00
rlar 15bda2b9e0 fix memory leak in PPparse() 2012-04-05 21:30:05 +02:00
rlar 76336fa21b fix memory leak in cp_vset() 2012-04-05 21:25:04 +02:00
rlar 9a75774e36 inpptree.c, polish comments 2012-04-05 21:24:48 +02:00
rlar 42653f7c3d inpptree.c, fix premature memory allocation 2012-04-05 21:24:25 +02:00
Michael Woodworth 3375e1b976 fix a memory leak in parse_line()
This has a HUGE affect on memory usage
2012-04-05 20:49:09 +02:00
h_vogt 8b780fa42b bug_fix: R,L,C instantiations, tc1, tc2, numbers followed by `:'
Ternary function was not recognized in R, C, or L lines
  if no voltage or current node was part of the expression,
  because then B-Source is not used.
In these cases now inp_fix_ternary_operator_str() is called explicitly.

tc1, tc2 were sometimes recognized falsely,
  if part of a token e.g. tc1end.

R, C, and L models are never commented out,
  because their names may be token no. 4 or 5 in an R, C, or L line,
  and will not be recognized if 5.

INPevaluate() will now correctly evaluate a number if followed by ':'
  (number may be part of the ternary function).
2012-03-31 23:42:37 +02:00
h_vogt 232270cbc4 bug fix, inp_bsource_compat(): `tc1=' `tc2=' `reciproctc=' `}'
don't substitute `tc1=' `tc2=' `reciproctc='
don't fail when processing tokens followed by `}' chars
2012-03-30 22:56:15 +02:00
rlar e91e3c4ec7 lingrid(), avoid buffer overflow
Bug ID: `Buffer overflow detected - ID: 3510521'
    reported by Zsolt Makaró

  The variable `mag3' sometimes seems to take
    unexpected values
    (for example log10 can be -Inf, which will be casted to 0x80000000)
  and seems then to have overflown a buffer buf[LABEL_CHARS]
2012-03-27 21:07:12 +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 a1ea1b3193 round to next nearest integer for the rise, fall and cross arguments of `measure'
Simon Guan reported
  Bug item #3509528, `Meas goes wrong when put in a while loop'

In a .control block a `let' variable was passed to the `measure' command.

The value of this variable would have been a plain integer,
  yet it was converted internally to an internal ascii representation
    with exponential representation  (203 ==> 2.03e2)
  and then processed by `ft_numparse()' where it was converted back to
    double floating point.
  Because the intermediate 2.03 has
    no exact representation in the space of double floating point numbers
    this conversion was lossy and resulted in a non-integer value.
  This non-integer was then truncated towards minus infinity in com_measure
    yielding an error of -1

This commit implements round to nearest in com_measure2
  to avoid the problem.

FIXME,
  the internal intermediate conversion of double floating point machine
    values to ascii representations must be dropped,
  or replaced with an exact/lossless ascii representation.
    (for example GNU printf/scanf %a or 64bit hexadecimal representation)
2012-03-25 11:08:48 +02:00
h_vogt b4516b08ca bug fix, iplot(): Buffer overflow
Thanks to Zsolt Makaró for the bug report in
  Buffer overflow detected - ID: 3510521
  http://sourceforge.net/tracker/?func=detail&aid=3510521&group_id=38962&atid=423915
2012-03-24 18:29:36 +01:00
h_vogt 0a2e031cb1 bug fix, inp_fix_subckt(): problem when parsing a .subckt line
this worked
  .subckt psub a b p2 = {p1*2-1} p1 = 1
but this failed
  .subckt psub a b p2 = { p1 * 2 - 1 }  p1 = 1

thanks to Ivan Riis Nielsen for the report in Message
  [Ngspice-devel] parsing problem (ngspice-24 tarball)
2012-03-24 18:29:36 +01:00
h_vogt 4b1abe0a18 tclspice.c: new functions to get start and final time of a transient simulation 2012-03-24 18:29:36 +01:00
h_vogt 48a08dc63a .gitignore: exclude /release* and /debug* directories 2012-03-17 17:00:46 +01:00
h_vogt 787a6a3581 inp_fix_subckt(): allow spaces in an expression which acts as a parameter 2012-03-17 16:56:30 +01:00
h_vogt f15765bf46 Visual Studio: console and GUI, 32 Bit and 64 Bit newly organized 2012-03-10 00:01:17 +01:00
dwarning 1938041e10 1. Correct the list of binable models. 2. Fix a problem with wrong MOS level entries. 2012-03-01 20:33:06 +01:00
rlar 9f017ea557 .gitignore files 2012-02-26 16:19:58 +01:00
h_vogt 80a039983e dummy functions 2012-02-19 16:38:33 +00:00
dwarning 70e9907415 Add reciprocal temperature behaviour for B sources 2012-02-19 12:55:54 +00:00