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
Holger Vogt
f8357dad88
Prepare Cshunt: add a cpacitor to each voltage node
Function inppas4() will add the extra caps, to be done.
5 years ago
Holger Vogt
4bee26b8b9
Remove unused prototype
5 years ago
Holger Vogt
822a63974f
Unused binning models are removed.
Flag 'nf', when given on the x lines, is
recognized.
Tested with TSMC, Skywater, and X-Fab model
files.
5 years ago
Holger Vogt
777cfcf477
Reduce the memory requirements if there is a PDK with
a lot of binning models.
This is a hack and needs testing!
inpcom.c: If an x line, add w and l to the netlist card,
if available.
subckt.c: select a suitable model bin, discard the rest
for each subcircuit, depending on w and l from above.
inpgmod.c: less restrictive equal for real numbers,
allow both min and max boundaries (problem of equating
real numbers), when the selected device has w or l on
the boundary between two model bins.
5 years ago
Holger Vogt
e8ecb8ccfe
When .nodeset or .ic was called with a non-existent node,
ngspice emitted a warning message, but then moved on,
inserting it as a new node with fcn INPtermInsert(). This
of course is totally wrong and leads to memory corruption.
Now there is a new fcn INPtermSearch(), which just checks
if the node is existent. If yes, it will get the value
according to the .ic statement, if not, a warning message
is emitted, and the non-existent node is simply ignored.
5 years ago
Holger Vogt
afdd0fe85e
comments added
White spaces according to clang format
7 years ago
Holger Vogt
6669cbc17c
add function inp_rem_unused_models().
checking for unused models now also removes models
that are out of scope.
7 years ago
rlar
96bb0dd941
inpcom.c, introduce inp_add_levels(), add scope to decks
9 years ago
Jim Monte
1665b53b84
[PATCH #59 ] Made INP*Cat() functions more modular and efficient. Also
eliminated the possibility of a buffer overrun in INPstrCat() due to an error
in the calling funciton.
7 years ago
rlar
4ec2717079
struct card, #5/6, rewrite from type "card" to "struct card"
9 years ago
rlar
10a353ebf4
struct card, #4/6, drop typedef card
For readability and to allow variables to have the name "card"
(avoid name collision with typedef "card")
9 years ago
rlar
8d93511a96
struct card, #1/6, minor cleanup
9 years ago
h_vogt
8c85064018
inperrc.c: new function `INPstrCat()' to concatenate two strings
13 years ago
rlar
df5c785a84
drop `INPmodUsed' which is redundant to `INPmodfast'
13 years ago
rlar
6c8f002eea
unify #ifndef include wrapper
13 years ago
rlar
1ee88a5694
prepare for #ifndef include wrapper unification
13 years ago
rlar
58b0614467
fix memory leaks in ASRC and in INPgetTree()
implement a reference counter `usecnt' for the elements
of the `INPparseTree'
14 years ago
rlar
a716572233
rewrite INPlookMod(), return INPmodel*/NULL instead of int 1/0
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
14 years ago
rlar
738d3813b8
#2/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
28282dda56
collect the other INP*() prototypes in "inpdefs.h"
16 years ago
rlar
d0c287f81f
collect the INP2?() prototypes in "inp.h"
16 years ago
rlar
74d62ab486
use the types TSKtask and JOB, instead of void
16 years ago
rlar
44a182c1ba
use the type CKTnode instead of void*
16 years ago
rlar
aae53f5564
use GENinstance*, instead of void*
16 years ago
rlar
689c7662f8
K&R function definitions and GENmodel and GENinstance usage for the NDEV device
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
72fc1a0186
use CKTcircuit instead of void*, #1/4
16 years ago
rlar
68c0ee9cd3
whitespace change, cleanup, untabify
16 years ago
rlar
a321d7f419
forward declaration of structs, unions and typedefs
16 years ago
h_vogt
881908ec47
bug no. 2859013
17 years ago
h_vogt
9b2170953c
line renumbering to end of inp_readall added
17 years ago
pnenzi
53e52f4a59
Model improvements from Phil Barker
19 years ago
pnenzi
8362dec274
Integrated code from tclspice, brorson xspice and Vera memleak.
23 years ago
pnenzi
c68f3470e4
Code cleanup.
25 years ago
arno
8dc5eac0ee
* TODO, doc/ngspice.texi: Small updates
26 years ago
pnenzi
0875108157
Added patches extracted from Alan Gillespie's code. Documentation and
26 years ago
arno
1dcc3ea6ff
* inpdefs.h sperror.h: Removed/updated SPerror() function
26 years ago
pnenzi
978f1c32a2
Initial revision
26 years ago