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
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
43f2182e56
Add com_optran.h and cplhash.h to their makefile.am
to have them as part of make dist.
4 years ago
Holger Vogt
bff90f1498
Put the gmin reversal into the comment
4 years ago
Holger Vogt
5424fd0d43
Reverse the sequence of dynamic-gmin and new-gmin.
The old method dynamic-gmin now comes first,
new-gmin will follow when the former has failed to converge.
4 years ago
Holger Vogt
d5dc757288
correct assignment of a variable value to a 1-bit-field
only by a logic comparison.
4 years ago
Holger Vogt
89eaf7739c
Remove unused variables
4 years ago
Holger Vogt
fb98f7873b
remove some compiler warnings
4 years ago
Holger Vogt
f9b743aa2a
remove compiler warnings
5 years ago
Holger Vogt
36dd77f63e
if step size in optran command is set to 0,
optran is deselected.
5 years ago
Holger Vogt
68c5eb2d6b
Add resistance sweep error message for failing optran
5 years ago
Holger Vogt
8708b6651b
Optran may throw an error message while in temp sweep
and optran fails: message added (in addition prevent a crash)
5 years ago
Holger Vogt
1b3e192bfd
errno needs to be nulled in Linux.
Its previous value will be returned after checking.
5 years ago
Holger Vogt
f06496c912
Enable command 'optran' in spinit or .spiceinit,
when the circuit is not yet loaded.
Then the optran data are stored in static variables,
until optran is called again with arg NULL from inp.c,
to set the data in ft_curckt->ci_defTask.
5 years ago
Holger Vogt
493cf73f7f
optran is only selected when the 'optran' command has been processed.
If not, the call to the OPtran() function returns the previous
'converged' value.
5 years ago
Holger Vogt
7f1fdd3934
Don't do optran, if command optran is not given.
5 years ago
Holger Vogt
711157e85d
Update comment: 0 is no initial iteration
5 years ago
Holger Vogt
2ef3f66f96
if 'set ngdebug' print out transient initial conditions also with UIC set.
5 years ago
Holger Vogt
41ead284f3
make the error detection work properly
5 years ago
Holger Vogt
4e03efacb7
Use InpEvaluate() instead of strtod to enable ngspice numbers
with scale factors Meg k m u n p f etc.
6 years ago
Holger Vogt
3be5926f2c
Reverse stepsize and finaltime in optran command,
stepsize first as in tran command.
6 years ago
Holger Vogt
bca099ca29
prevent crash if first breakpoint is beyond optran max time
6 years ago
Holger Vogt
b07a54b8e1
test of supply ramping
6 years ago
Holger Vogt
7de526237e
upon finishing 'optran', restore old CKTstep
remove unused
6 years ago
Holger Vogt
0eafec254e
safeguard command 'optran' against circuit no being loaded
6 years ago
Holger Vogt
cf61e1e564
add missing header
6 years ago
Holger Vogt
83e223fafc
header for optran
6 years ago
Holger Vogt
a20afc54a5
When we sre ready, reset CKTmaxstep to its previous value
6 years ago
Holger Vogt
3956095484
set maxstepsize to stepsize
6 years ago
Holger Vogt
ecdb3b9eb4
set the task values, not the ckt values,
because task is called only afterwards when
the simulation command is given.
6 years ago
Holger Vogt
fd36eb552f
set stepsize
6 years ago
Holger Vogt
ab6224767b
Add command 'optran' to set 6 flags for transient op
6 years ago
Holger Vogt
df0792818f
Transient op calculation added to the standard operating point code.
When standard iteration, gmin stepping and source stepping fail,
try a transient simulation (like tran with uic option) to
determine the op. Implemented for AC and Tran simulation.
7 years ago
Holger Vogt
c38b8e3615
Fix a bug in the 'dc' progress report
5 years ago
Holger Vogt
c75e4129f4
Plug another memory leak in LTRA transmission line
5 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
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
f10676a8aa
re-enable tran TSTART, which got lost in Commit [da7172] when UIC is set
6 years ago
Holger Vogt
c69a4d6633
fix typo
Reported by Ferdy in bug report #506
6 years ago
Kevin Zheng
efde6902a0
indentation
6 years ago
Holger Vogt
54d8c990c5
src/spicelib/analysis/dcpss.c
line endings Windows --> Linux
6 years ago