Giles Atkinson
673ae5c01d
Change the code that makes variables from device/model parameters
(spiceif.c) and vectors from variables (vectors.c) so that
array and string-valued parameters and the resulting variables
are handled correctly. Fix a memory leak in converting
array parameters; that requires a change in cplask.c so that
CPL devices behave the same way as others. Add a "device" variant of
the Compose command so that generated vectors are available in scripts.
3 years ago
Holger Vogt
8ef0aece58
During setup of the models thre have been search scans in the
linked model list modtab. The time used here grows approx.
quadratically with the number of models. If the numbers get large,
e.g. with the IHP Open PDK, setup time make simulation impractical.
Therefore the linked list modtab has been enhanced by a hash table
modtabhash, which allows linear search time and makes simulation
of a 200k transistor circuit with IHP PDK possible. Already
the setup time for 15k transistor circuits has been reduced.
2 years ago
Holger Vogt
92ba8ac88e
Just to notify that this might need a better solution
4 years ago
Holger Vogt
f832380dc9
FIXME: This is a hack to re-enable 'make check'
Do not print warning if in batch mode.
4 years ago
Holger Vogt
6037450952
Warning message, when 'run' is called without job
(tran, op, ac etc.) is defined.
4 years ago
Holger Vogt
3af627db44
Change error messages to warning messages, because simulator moves on
and command is ignored.
Make messages more verbose (which command?).
4 years ago
Giles Atkinson
b1341c8e30
Insert XSPICE bridging devices automatically when an analogue node
has the same name as an XSPICE event node (including digital nodes).
The function Evtcheck_nodes() is replaced by a new version in its
own file.
4 years ago
Holger Vogt
8a097c020e
Make error message more verbose: Instead of only "no such parameter on this device",
give name of bad parameter and respective line in netlist.
4 years ago
Vadim Kuznetsov
b73939e379
Patch allowing call to S parameter simulation also from .control section by using command 'sp'
4 years ago
Alessio Cacciatori
2c10c4aebd
S parameter simulation
Command '.sp'
arbitrary number of ports
ports made with modified VSRC
Patch provided by Alessio Cacciatori
https://sourceforge.net/p/ngspice/discussion/127605/thread/7a2655c86f/
4 years ago
Holger Vogt
d19c8e7f41
Efficiency: Remove setting the random seed to behind the options selection
Evaluate '.options cshunt=xx' earlier to allow the following:
Set the option by calling INPpas4() during parsing the circuit,
before .ic is set.
Ckt and Task cshunt are still set, but their values are available
only too late for INPpas4(), but may be used by command 'option'
(w/o parameters) for assessing the options and their values.
5 years ago
Holger Vogt
db5c6cd0ec
Add some comments for inppas1,2,3
5 years ago
Jim Monte
bd84e4be6c
error messages
6 years ago
Holger Vogt
be6eca1dbb
add 'option norefvalue' to suppress printing the reference value.
7 years ago
dwarning
360efabf36
no null pointer to fprintf
8 years ago
Holger Vogt
0fbe920382
plug a small memory leak in switch-oscillators.cir
8 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
rlar
ee489599cb
struct card, #6/6, drop some redundant casts
9 years ago
rlar
4ec2717079
struct card, #5/6, rewrite from type "card" to "struct card"
9 years ago
rlar
511cdd7188
struct card, #3/6, rename members from struct line to struct card
9 years ago
rlar
41c0ee45a2
introduce GENinstanceFree() and GENmodelFree()
To abstract away the business of releasing the memory
of a struct GENmodel or struct GENinstance.
8 years ago
h_vogt
c82ee9d949
introduce option "epsmin"
To define a minimum argument for some log() function invocations.
(most notably for the diode saturation current 'is')
9 years ago
rlar
b5ccfca24b
implement option 'indverbosity' to control check of inductive systems
default is 2, maximum verbosity
option indverbosity=1
can be used to prevent check for
"incomplete set of couplings"
option indverbosity=0
can be used to avoid the check altogether
set indverbosity=INTEGER
or
.option indverbosity=INTEGER
works as well
9 years ago
h_vogt
f66e76fb5f
implement option 'xmu' to control trapezoidal integration method
default is 0.5
option xmu=0.49
can be used to add some damping to reduce trap ringing
set xmu=0.49
or
.option xmu=0.49
works as well
10 years ago
rlar
97cc400efb
ngspice/evt.h, ngspice/enh.t, reduce scope of these include files
10 years ago
rlar
ac726f0cf4
struct variable, #18/18, clean
10 years ago
rlar
a6cd5eea45
struct variable, #17/18, clean
10 years ago
rlar
af81e6810e
struct variable, #16/18, drop intermediate variable
10 years ago
rlar
212121d373
struct variable, #15/18, rewrite in terms of `var_alloc_xxx()' (do-3)
10 years ago
rlar
eb53b4d703
struct variable, #12/18, rewrite in terms of `var_alloc()' (do-2)
10 years ago
rlar
68042b3d1b
struct variable, #10/18, rewrite in terms of `var_set_xxx()' (do-1)
10 years ago
rlar
41b5f17906
struct variable, #7/18, reorder struct variable operations
10 years ago
rlar
f4f0ae3f61
struct variable, #6/18, collect struct variable operations
10 years ago
rlar
e0ae0bcff1
struct variable, #5/18, reorder struct variable initialisation
10 years ago
rlar
b748f2d6d0
struct variable, #4/18, shrink scope of local variables
10 years ago
rlar
01a0449420
struct variable, #2/18, reorder struct variable field initialisation
10 years ago
rlar
cb4c07b7f0
struct variable, #1/18, cleanup for loops
10 years ago
rlar
1d15f6bfce
fix struct variable initialisation
10 years ago
rlar
4c1c95e20f
everywhere, use `TMALLOC()' instead of `alloc()'
10 years ago
rlar
232debc6ec
drop `NEWN', use `TMALLOC'
11 years ago
rlar
5ac7858a79
rewrite, use tprintf
11 years ago
rlar
426f567287
spiceif.c, parmlookup(), allow more than one `IF_REDUNDANT' parameter alias
11 years ago
rlar
c2927128cd
whitespace
13 years ago
rlar
23d0f41e66
ft_find_analysis_parm(), change signature
13 years ago
rlar
4d65fb908d
use type `IFparm' to abbreviate some expressions
13 years ago
rlar
31b455afd4
if_getstat(), rewrite
13 years ago
rlar
fc2dd436fe
abstraction, new function `ft_find_analysis_parm()'
13 years ago
rlar
9d0500027c
abstraction, new function `ft_find_analysis()'
13 years ago
rlar
6050e2e0ea
cleanup some extra parentheses
13 years ago
rlar
df5c785a84
drop `INPmodUsed' which is redundant to `INPmodfast'
13 years ago