Holger Vogt
07bb809158
Iterations for op or dc may start with arguments 0 for ln().
To cope with this, and potential overflow in exp function,
some limits have been added.
4 years ago
Holger Vogt
9e290a3461
tabs to spaces
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
Holger Vogt
d1cbcb080c
Re-format cktdojob.c
4 years ago
Holger Vogt
f073fb5c05
Consecutive tran and ac simulation may lead to gross errors
when TC or scale is used on the instance line of C and L.
Reason is the missing reset when CKTtemp is called once during each
simulation command. TC or scale is then applied again and again,
a reset is missing.
This patch adds a reset, i.e. the capacitance or inductance is
reset to its instance value in a call to *temp. It fixes bug#594.
Command 'alter' has been tested.
Resistance has not been tackled by this bug, because the line
here->RESconduct = here->RESm / (here->RESresist * factor * here->RESscale);
differs from
here->CAPcapac = here->CAPcapac * factor * here->CAPscale;
in that there is no accumulation of correction factors with here->RESconduct
4 years ago
Holger Vogt
564a3cb2f7
No error message when Optran returned 0
4 years ago
Holger Vogt
d3a436b7dd
re-format indmask.c
4 years ago
Holger Vogt
0387a95218
Add missing parameter retrival
4 years ago
Holger Vogt
b4a2c85b54
Asl Lundin's correction only when suitable modelparameters are given.
4 years ago
Holger Vogt
879030bbd8
Add a warning when Lundin's correction factor is not
calculated because the geometries are too small (< 1um).
4 years ago
Holger Vogt
500d72f270
Add coil diameter dia to the inductor parameters.
dia (diameter) takes preference over csect (cross section)
4 years ago
Holger Vogt
79ef586fef
Add Lundin's geometry correction to the
inductance formula
4 years ago
Holger Vogt
4a96691b49
Fix a bug in the inductance formula.
4 years ago
Holger Vogt
f7c5c93635
Make error message more verbose:
State explicitely when transient op has failed.
4 years ago
Giles Atkinson
aaa6798950
Fix bugs found while investigating Bug #585 (convergence failure only
on Linux). In dctran.c make it impossible for a transient simulation
to run far past its end time and fix an infinite loop attempting to remove
the automatically-inserted ending breakpoint. In outitf.c fix memory
corruption if the simulation does over-run (change suggested by Holger Vogt).
4 years ago
Holger Vogt
e5c162f126
dc sweep fails after transient sim:
keep MODEDCTRANCURVE as provided by commit
7d8236766 ("b3ld.c, b4ld.c, b3v32ld.c: enable capacitance calculation during dc sweep", 2012-10-03)
Instead exclude current integration when MODEDCTRANCURVE is selected.
Unify setting ChargeComputationNeeded in b4vdld.c,
make it as in other b4xxld.c.
4 years ago
Holger Vogt
4c8324f166
VIN 3 0 PULSE (-1 1 2NS 2NS 2NS 50 NS 100 NS) is now standard
(missing dc value).
So revert the warning message:
VIN 3 0 dc 0 PULSE (-1 1 2NS 2NS 2NS 50 NS 100 NS) yields
a note message (not a warning)
4 years ago
Giles Atkinson
daad3fb3c5
Fix memory leaks found by valgrind in the paranoia script.
4 years ago
dwarning
67508eab37
more logical setup for absurd parameter input
4 years ago
dwarning
720f29851a
prevent crash for absurd parameter input
4 years ago
Holger Vogt
cc285741f5
Don't use bitwise operators, but logic operators
4 years ago
Holger Vogt
ff3580d70f
Avoid circular redundant function declaration.
Include vsrcext.h only via vsrcdefs.h, so VSRCinstance is defined.
4 years ago
Holger Vogt
cb17062344
Remove unused (preliminary)
4 years ago
Holger Vogt
be4df00678
add some missing prototypes
4 years ago
dwarning
d4f64da671
simplification of hicum2 model switches selfheat and nqs
4 years ago
dwarning
3d4d9b01d0
#bug 580: prevent crash in case of hicum2 default parameter set
4 years ago
dwarning
4038dd3a7f
#bug 580: prevent crash in case of hicum2 default parameter set
4 years ago
Holger Vogt
0e46f6f8a1
remove numerous unsigned int vs. int warnings
by setting all variables to type int.
Remove redundant function declarations by remmoving some includes
in span.c and vsrcdefs.h
In tmalloc convert int to size_t
4 years ago
dwarning
eaf67ac940
correct pnp type bipolar transistor current convention
4 years ago
Holger Vogt
3073d8c7d3
Fix a bug: remove excess ')'
4 years ago
Holger Vogt
8e80933cfa
If XSPICE is not selected, still send CKTspDump(ckt, freq, spPlot),
but without ipc (spPlot instead of undefined acPlot)
4 years ago
Holger Vogt
2915f8e991
In case of resistor valuues r150 (r + integer number),
return 150
R2 n1 n2 r150
In case of r23mod return error = 1 and val = 0, so
r23mod may be read as a model, not an instance parameter
R3 n3 n4 r23mod
4 years ago
Giles Atkinson
9ac4dab81a
Fix two crashes caused by trying to plot after circuit parsing failed.
4 years ago
Holger Vogt
321d53a4e9
Patch to avoid false reads and writes due to inconsitent
structs SPAN and NOISEAN.
Prevent using non-initialized variables.
4 years ago
Holger Vogt
61797c9317
Compile only when RFSPICE is selected in config.h
4 years ago
Holger Vogt
32a707fd22
Provide access to the necessary structs like cplx
4 years ago
Holger Vogt
d961c7c91d
add missing noisesp.c
4 years ago
Alessio Cacciatori
4ebf4901b9
S-parameters in ngspice
With this commit the patch provided by Alessio Cacchiatori the S-parameter is completed:
Noise simulation added with C matrix output
Y and Z matrix output enabled
To allow compiling with gcc, the dense.h inline functions have been put into denseinlines.h
4 years ago
Holger Vogt
a1eb0cc63d
If XSPICE is not selected, still send CKTspDump(ckt, freq, spPlot),
but without ipc (spPlot instead of undefined acPlot)
4 years ago
dwarning
45d5d9a764
remove duplicate pointer allocation
4 years ago
dwarning
20abe9ca38
white spaces
4 years ago
Holger Vogt
e99638c89f
Remove int <--> unsigned int warning
4 years ago
Holger Vogt
4e1ae255f6
Inlude code into #ifdef RFSPICE ... #endif
to allow compiling without pre-processor flag RFSPICE.
4 years ago
Holger Vogt
de572d2cdf
Remove in <--> unsigned int mismatch
4 years ago
Holger Vogt
c2d279a1ef
Remove trailing spaces.
4 years ago
Holger Vogt
3b0eb41c74
Enable compiling with --enable-sp for RF SPICE
Set preprocessor flag RFSPICE
Add new files and directory 'dense' ('dense' is still buggy)
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
0eb272243f
Enable RKM notation also for inductors (e.g. 1u2 for 1.2u)
4 years ago
roman
74787f0c33
Fix EXTERNAL type in isrc
4 years ago
dwarning
0c34ac019f
use total current for diffcap calculation
4 years ago