Commit Graph

190 Commits

Author SHA1 Message Date
h_vogt 4d0d0fafb9 repair broken ternary function in B-Source
failed if parameters were included in function.
fixed by finding nested parens in gettok_char()
2012-07-21 22:23:49 +02:00
h_vogt c3141d94e0 table: prevent crashes upon wrong inputs, allow time, temper, hertz as part of device or node name (e.g. Rtime), remove some memory leaks 2012-07-21 21:18:24 +02:00
rlar 9655b9885a cleanup, use wl_cons(), wl_append_word() and wl_chop_rest() 2012-07-14 10:23:51 +02:00
h_vogt 0207dc7239 no exchange of ' ' by { } inside .control section 2012-06-26 23:28:31 +02:00
rlar d8105873db remove error.h, use fteext.h for controlled_exit() 2012-06-12 21:26:29 +02:00
rlar a9eb96e164 avoid `ambiguous else' Warning 2012-06-12 21:26:29 +02:00
h_vogt a51953d93e allow `time', `temper', and `hertz' in expressions of behavioral R,L,C devices 2012-06-12 21:26:27 +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
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 787a6a3581 inp_fix_subckt(): allow spaces in an expression which acts as a parameter 2012-03-17 16:56:30 +01:00
dwarning 70e9907415 Add reciprocal temperature behaviour for B sources 2012-02-19 12:55:54 +00:00
dwarning d9561123f9 Add temperature coefficients for B sources 2012-02-11 19:45:25 +00:00
h_vogt 1a7fa85e3c reading incs, libs etc. 2012-02-11 13:14:34 +00:00
rlar f285dd0aa8 use strchr() instead of index() 2012-02-06 17:46:33 +00:00
rlar 33764b1f91 cleanup, muffle compiler warning 2012-01-07 14:48:55 +00:00
rlar 29442c91c8 cleanup, muffle compiler warning 2012-01-02 19:43:02 +00:00
h_vogt d2f9faf66b .lib handling 2012-01-01 13:58:03 +00:00
h_vogt 4d35b4ce7b partially undo commit 2011-12-27 Holger Vogt 2011-12-30 19:53:26 +00:00
rlar f1b516f1b1 cleanup, drop `s_lower' 2011-12-30 18:08:48 +00:00
rlar 62d3847c8a cleanup scope of `y' and `z' 2011-12-30 17:50:17 +00:00
rlar ebc01fc265 cleanup scope of `keep_char' and `s_lower', drop `s_ptr' 2011-12-30 17:48:55 +00:00
rlar 9f10f87dd9 cleanup, drop variable `found_library' 2011-12-30 17:46:37 +00:00
rlar 79436a3bb8 cleanup scope of variable `newfp' 2011-12-30 17:44:52 +00:00
rlar aedbc6b7be cleanup scope of variable `big_buff2' 2011-12-30 17:43:41 +00:00
rlar 01b87ac2c6 cleanup scope of variable `dir_name_flag' 2011-12-30 17:40:45 +00:00
rlar d2f2456ce7 bug fix, copys not always valid 2011-12-30 17:38:56 +00:00
h_vogt 6382f60644 remove a bug in inc. handling 2011-12-30 17:06:10 +00:00
h_vogt b32f935e8b .lib error messages 2011-12-27 08:46:19 +00:00
h_vogt 9bbf9bc549 remove 'params:' from x and .subckt lines of input deck 2011-12-25 13:01:45 +00:00
h_vogt 94e9f07b90 Gxxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2) 2011-12-21 21:33:47 +00:00
rlar 0d7f64657c move stringutil.h --> src/include/ngspice 2011-12-17 17:16:29 +00:00
h_vogt 33d8e0ce9d Gxxx n1 n2 value={equation} 2011-12-17 15:22:20 +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 03c098d4a0 bug fix, parameter processing was broken for nested .subckt 2011-11-30 18:02:27 +00:00
h_vogt 68b99db7e9 some docu added 2011-11-13 14:44:00 +00:00
h_vogt e065e1c290 reordering, fcn prototypes 2011-11-13 12:04:15 +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
h_vogt 36f6eb6a89 bug no. 3386184 2011-08-06 07:53:48 +00:00
h_vogt ede2daf1f6 cmutil: NaN, inpcom: nested ( 2011-07-27 20:08:36 +00:00
rlar 508df68455 cleanup, reduce compiler warnings 2011-07-17 16:37:54 +00:00
rlar 1876ad1094 remove unused global artifact `dynLlen' 2011-07-09 18:45:54 +00:00
h_vogt cc36fb8071 dirname() -> ngdirname() 2011-06-25 23:07:13 +00:00
rlar 451f88c5e1 swallow type conversion warnings 2011-06-24 15:26:52 +00:00
h_vogt b8e7dd2af0 bug no. 3317928 2011-06-23 20:18:13 +00:00
h_vogt 1ed35b8edb bug no. 3317928 2011-06-23 20:14:48 +00:00
h_vogt 747c606e30 remove bug in command meas, allow / and \ in Windows file paths 2011-06-18 17:45:43 +00:00