Holger Vogt
45850c07dc
Don't silently accept wrong user input (missing nodes, values).
Check for at leat 4 tokens (name, n1, n2, val/model/...).
If the instance has not been set up correctly, bail out, prevent crash.
2 years ago
Holger Vogt
daa3609e58
Enable RKM notation for R and C, when ngbehavior LT is selected.
Add 2 evaluation functions specific for R and C respectively.
R has code letters L, R, K, M, G, T enabled. M here is Meg!
C has code letters p, n, u or µ, m, F. F here is unity, femto is
not available, m is still milli!
Two examples files show all cases.
5 years ago
Holger Vogt
1266225cdb
For C and R device enable value tokens like 4k7 or 1u2
in addition to 4.7k and 1.2u.
Valid for
R1 1 0 47k
C2 3 6 1u2
only. Does not interfere with other value tokens in params etc.
5 years ago
dwarning
aedf9d0eb5
correct choice for both r model types
5 years ago
dwarning
08700f8147
include verilog-a r2_cmc resistor model
5 years ago
Holger Vogt
e18b848f7d
Allow '-' and '+' being part of the instance name.
Has already been available for B, E, F, G, and H sources
8 years ago
Holger Vogt
181e8746a6
allow hyphens '-' in model names
8 years ago
rlar
4ec2717079
struct card, #5/6, rewrite from type "card" to "struct card"
9 years ago
rlar
a2347a28d6
inp2*.c, cleanup, drop redundant initialisation
which can be dropped to the recently fixed INPgetMod(), see
inpgmod.c, INPgetMod(), bug fix, missing 'model' assignment
Note:
there have been INPgetMod() invocations without initialisation,
causing access to non-initialised memory with the unfixed INPgetMod()
9 years ago
rlar
5e04924890
cleanup `skip_ws()' usage
10 years ago
rlar
b1d8b99018
skip-ws, #6/6, rename to match inpcom.c
10 years ago
rlar
22875d056b
skip-ws, #5/6, use functional style
10 years ago
rlar
a86f2068c8
skip-ws, #3/6, use TEMPORARY macros, obj-invariant
10 years ago
rlar
6d1171ad6f
skip-ws, #2/6, introduce "ngspice/stringskip.h"
with some temporary macros to skip whitespace
10 years ago
rlar
71a7c3459b
use char variants of the <ctype.h> isxxxx() family
10 years ago
rlar
29c57dd857
cleanup IFnewUid() invocations
checked for object file invariance
13 years ago
rlar
1b3e77ca32
polish `GCA' macro
checked for object file invariance
13 years ago
Henrik Forstén
30d7647378
search just once for basic device types
13 years ago
h_vogt
1b4c17a464
rename spicelib/parser/inp.h to inpxx.h
since we have another "inp.h" in src/frontend
13 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
15 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
451f88c5e1
swallow type conversion warnings
15 years ago
rlar
23056573d8
code cleanup, drop NULL pointer casts
15 years ago
rlar
30c2578751
bug fix, when rewriting a resistors tc = number number ==> tc=number tc2=number
15 years ago
rlar
75b6eeb94a
add `int' casts to some strlen() expressions, and center labels on a xlog scale
16 years ago
rlar
5f4b0aa798
(int) cast the return value of some strlen() invocations
16 years ago
rlar
754406a335
minor beautification
16 years ago
rlar
01566f2b49
add casts to make `int' versus `size_t' conversions explicit
16 years ago
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
16 years ago
rlar
44a182c1ba
use the type CKTnode instead of void*
16 years ago
rlar
d897817800
drop a bunch of (void**) NULL casts {invocation of IFnewUid()}
16 years ago
rlar
63fae60605
use the GENmodel and GENinstance type instead of void*
16 years ago
rlar
94518fdb02
use CKTcircuit instead of void*, #3/4
16 years ago
rlar
3369d860b4
cast the return values of malloc() function calls
16 years ago
dwarning
865eaed5ab
element instantiation e.g. r=50
17 years ago
sjborley
1facfd764d
Added new syntax to the the resistor card to support HSpice style temperature dependence (from Hitoshi Tanaka <HDA01055@nifty.com>)
21 years ago
pnenzi
dd8929457e
Code cleaning.
23 years ago
pnenzi
8362dec274
Integrated code from tclspice, brorson xspice and Vera memleak.
23 years ago
pnenzi
fd6d0b0723
Fixed stringutil missing bug.
26 years ago
arno
b3a9a784f6
* src/spicelib/devices/parser/*: Moved all files to
26 years ago
arno
df3cc8983d
* src/circuit/*: moved these files into src/devices/parser. The
files in this directory take a model line from the input file and
add the corresponding element to the representation of
the circuit in memory.
* configure.in, src/Makefile.am, src/devices/Makefile.am: Files
affected by the move.
26 years ago
arno
f3ae54bea6
* circuit/inp2b.c, circuit/inp2c.c, circuit/inp2d.c,
26 years ago
arno
c4e2e82d42
* ifeval.c ifnewuid.c inp.h inp2b.c inp2c.c inp2d.c
26 years ago
pnenzi
26d5bdd223
Modified the parsing of ac parameter. Now it reflects the spice parsing
26 years ago
pnenzi
978f1c32a2
Initial revision
26 years ago