~kicad/+git/ngspice-mirror-sourceforge:mhx-fix-nonlin-RLC-parser

Last commit made on 2017-01-29
Get this branch:
git clone -b mhx-fix-nonlin-RLC-parser https://git.launchpad.net/~kicad/+git/ngspice-mirror-sourceforge
Members of KiCad can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
mhx-fix-nonlin-RLC-parser
Repository:
lp:~kicad/+git/ngspice-mirror-sourceforge

Recent commits

675f8cc... by Marcel Hendrix

Updated, there should be no errors when run.

9d74a74... by Marcel Hendrix

Fixed the behavioral R/L/C source substitutions to handle tc1, tc2,
temp and dtemp constant expressions. This meant changing
inp_bsource_compat() to handle expressions and assignments on the
same device line.

99dc7f4... by Marcel Hendrix

Added ASRC_TEMP and ASRC_DTEMP handlers.
Changed behavioral R/L/C substitutes to conform to netlist layout.

deb7e66... by Marcel Hendrix

Two simple test files for behavioral RLC sources.

9527a8a... by Marcel Hendrix

Fixed and tested the behavioral R/L/C substitutions.
Fixed a bug when tc1 or tc2 are partial strings present in node names.
Fix bug (and docs) for reciproctc.
Several more or less important features are not yet handled:
FIXME: When tc1 is absent, but tc2 is present, a WARNING is issued and tc2 is ignored. Is this the wanted behavior?
FIXME: the parameters temp and dtemp should probably be supported
FIXME: the C/L's IC=init parameter isn't supported yet.
FIXME: the parameters ac, m, noisy, scale are not supported.
FIXME: tc1 and tc2 cannot be expressions (complications with the device line parser).

a661413... by Marcel Hendrix

Fixes bug in non-linear reciproctc parameter for inductor
(for a behavioral voltage source reciproctc should be zero).

9947137... by Marcel Hendrix

Fixes a bug where the TC1 and TC2 parameters for the
non-linear R, L, and C devices are not recognized properly
when they are (constant) expressions, and/or using SPICE
number notation, and/or negative.
Removes several compiler warnings for non-initialized
local string buffers and pointers (only related to the above fix).
This patch is based on a partial solution by R. Timothy Edwards.
The sign problem is handled by changing inp_modify_exp() and
needs extensive testing. This fix successfully handles the
example problem of bug ticket #337.

4aed813... by Marcel Hendrix

Enabled NUPA's capability to recognize quoted strings.
NUPA has an options string ( dico->option that must be set to SPICE-3.
When not, recognized strings are uppercased before being returned.
Facilitated .PARAM to recognize strings in two ways: by sharps #xxx#
and now also by quotes "xxx".

0e89d94... by Marcel Hendrix

ALTERPARAM did not insert braces.
Allow to enter .param strings as .param #word#. The
.param `word` syntax clashes with backtick as used in control sections.
Formula() can now return a string as a special case (when there is
only one string variable in the expression and no operators).

1cf2de3... by Marcel Hendrix

BSIM vsn 4.6.5 can now be recognized as either "4.6.5" or "4.65",
like all the other BSIM3/4 models.