Holger Vogt
d5ef8a3660
Remove all entries connected to IPC, an outdated (>30 years)
method to link ngspice to a now defunct controller (ATESSE).
5 months ago
Holger Vogt
de7cec1735
AC noise: Update opertating point, if variable 'hertz' is given
1 year ago
briantofleeds
09d352be12
This does not fix noise analysis with klu.
It does add missing { and } when event-driven instances are not present.
Without this change CKTop will always be called again directly in NOISEan even
if CKTop was previously called by EVTop. This matches the intended
behavior before #ifdef KLU was added.
2 years ago
Holger Vogt
d27b888f13
Noise simulation is buggy when using the KLU solver. Thus for now it is disabled.
Use 'option sparse' instead.
2 years ago
Francesco Lannutti
7048a24b74
Added the KLU support to Noise Analysis
6 years ago
Holger Vogt
6ea2882c3b
Plug a memory leak
3 years ago
Holger Vogt
d53acbed8e
Add noise capability to XSPICE code models
Coded according to acan., AC analysis
MIF_NOI is not yet supported by any code model, so
MIF_AC is used (code models behave like in ac mode,
they are noiseless.
3 years ago
Holger Vogt
3c41ab1190
Formatting with MSVC2022
3 years ago
Holger Vogt
66c468087d
noisean.c, beautify the code
8 years ago
h_vogt
f640ef68c3
noisean.c, ensure correct user input:
number of points always > 0
single frequ measurement if 1 point given
9 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
rlar
7d92eae124
noisean, introduce a .control variable "sqrnoise" to deliver noise data in squared representation
use "set srqrnoise" (and "unset sqrnoise") to control this.
11 years ago
rlar
8d6726f0f4
noisean, deliver results in V/sqrt(Hz) and A/sqrt(Hz)
11 years ago
rlar
07ee771a96
noise analysis, bug fix, override ac magnitude of all vsrc/isrc devices
Bug report due to Hartmut Henkel in
>> [Ngspice-users] Noise analysis depends on ac parameter
The noise analysis internally depends on an ac analysis
to derive "inoise" from "onoise"
("onoise" is multiplied with the inverse ac gain from input to output)
This AC analysis used all the given ac magnitudes for all vsrc/isrc
devices in the deck.
This fix overrides all ac magnitudes with zero,
except for the given input device,
whose magnitude is set to one.
11 years ago
rlar
ea7372efe7
rewrite, useing IFerrorf()
OUTerror() and IFerror() are no more used,
but kept for compatibility
12 years ago
rlar
8803edc16b
tfanal.c noisean.c, bug fix which was introduced in "CKTfndDev(), rewrite"
the original CKTfndDev() was able to limit its search
for an instance with given name
to instances of a certain "type"
(this was a speed optimisation which is of no use anymore,
because we use a hashtable now)
the new CKTfndDev() does not consider "type"
thus, here in tfanal.c and noisean.c we have to check the "type"
after CKTfndDev() since we no longer can limit its search
to the given "type"
12 years ago
rlar
ddc78067cc
CKTfndDev(), drop `type' and `fast' argument
13 years ago
rlar
6a9a246526
CKTfndDev(), rewrite invocations where `*fast == NULL'
13 years ago
rlar
390dccd44b
CKTfndDev(), rewrite error expressions
13 years ago
rlar
5daa676163
CKTfndDev(), return the found instance instead of error code
now if (fast != NULL)
CKTfndDev(,,fast, )
is equivalent to
*fast = CKTfndDev(,,fast, )
13 years ago
rlar
7bacfc73d1
CKTfndDev(), express error return value outside of this function
if (fast != NULL) then
err = CKTfndDev(,, fast, );
is equivalent to
err = CKTfndDev(,, fast, );
err = *fast ? OK : E_NODEV;
13 years ago
rlar
6e7d70e4bb
CKTfndDev(), assert some facts
13 years ago
rlar
d9fbb36ac7
CKTfndDev(), unuse `type' argument
13 years ago
rlar
0ab6a6e463
CKTfndDev(), drop unused argument `modfast'
13 years ago
rlar
96e1d7eec6
cleanup OUTattributes() invocations
checked for object file invariance
13 years ago
rlar
29c57dd857
cleanup IFnewUid() invocations
checked for object file invariance
13 years ago
rlar
2f2da2bab2
cleanup OUTpBeginPlot() invocations
checked for object file invariance
13 years ago
rlar
11abda7a6b
noisean.c, cleanup comment
13 years ago
rlar
4ad4877e30
CKTfndDev(), drop unused argument `modname' which is always NULL
13 years ago
rlar
156c9ea086
cleanup CKTfndDev(), findInstance() invocation
13 years ago
rlar
4184aa8c10
cleanup, use array operator
checked for object file invariance on linux with
./configure --enable-debug=no --enable-maintainer-mode --with-readline=yes --enable-cider --enable-ndev --enable-pss --enable-xspice
13 years ago
Francesco Lannutti
e27d43cd0c
remove empty src/maths/ni/*.h include files
13 years ago
rlar
7d75ebcb81
unify OUTpBeginPlot() invocation
14 years ago
rlar
a7ac45c9cb
rename various analysis vars --> `job'
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
14 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
a3969da827
polish saj's resume fix, use it for `acan' as well
15 years ago
rlar
6613127f7d
bug fix, stepsize in `noisean'
15 years ago
h_vogt
e6c86b4d98
explicit casting double -> int etc.
15 years ago
rlar
b778c50bd6
code cleanup, some warnings, some casts, ...
15 years ago
rlar
23056573d8
code cleanup, drop NULL pointer casts
15 years ago
rlar
0b6a557334
code cleanup
15 years ago
rlar
7b3960506f
wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC
16 years ago
rlar
2540531c38
remove local prototypes, which are allready included
16 years ago
rlar
933bd11c43
use the type JOB, remove redundant casts
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