Commit Graph

7801 Commits

Author SHA1 Message Date
Holger Vogt 450ef9f411 Make types compatible, change from int to size_t 2026-04-05 14:05:59 +02:00
Holger Vogt 9fa4c4d7a4 Formatting
Replace tabs by spaces
2026-04-05 14:05:59 +02:00
Holger Vogt 85c4412584 Oversampling default is 1 2026-04-05 14:05:59 +02:00
Holger Vogt 1b3317e262 Remove source of memory errors: read and write beyond boundaries
caused segfaults.
2026-04-05 14:05:58 +02:00
Holger Vogt d67f5399d5 Just a small fix 2026-04-05 14:05:57 +02:00
Holger Vogt 10d1e4cc80 prevent a segfault when TSTOP less than TSTART in tran command 2026-04-05 14:05:57 +02:00
Holger Vogt 6f1d6ca779 allow other simulation types, e.g. ac
prevents crash
2026-04-05 14:05:57 +02:00
Holger Vogt dc6901b2b8 Enable standard search paths for *.wav file search. 2026-04-05 14:05:57 +02:00
Holger Vogt 5fa4d0185d add dot commands .sndprint, .sndparam in inp.c 2026-04-05 14:05:56 +02:00
Holger Vogt 57acba9c4e Formatting: tabs to spaces 2026-04-05 14:05:56 +02:00
Holger Vogt a182e57344 Remove unused 2026-04-05 14:05:56 +02:00
Holger Vogt d70efad370 replace exit() by controlled_exit() 2026-04-05 14:05:55 +02:00
Holger Vogt c637a4f776 declare functions and variables static, if so 2026-04-05 14:05:55 +02:00
Holger Vogt 4acb405d8a reformat vsjack.c 2026-04-05 14:05:55 +02:00
Holger Vogt 4a3e09be26 Use the current method to set the coefficients 2026-04-05 14:05:55 +02:00
Holger Vogt 3a1269519f reformat, set better error message for src_process() 2026-04-05 14:05:54 +02:00
Holger Vogt 38e68263af add progress report when entering wav output stage 2026-04-05 14:05:54 +02:00
Holger Vogt 3b6b10f452 add commands sndprint, sndparam with
associated functions com_sndprint and com_sndparam
2026-04-05 14:05:54 +02:00
Holger Vogt bc1d285679 add dotcards .sndparam and .sndprint 2026-04-05 14:05:54 +02:00
Holger Vogt 069429543d ngspice.h and controlled_exit() instead of exit() 2026-04-05 14:05:54 +02:00
Holger Vogt 8a6d98694e add sound capability to vsrc
see https://sourceforge.net/p/ngspice/patches/13/
2026-04-05 14:05:53 +02:00
Holger Vogt 6620f2b93e add files sndprint, vsjack 2026-04-05 14:05:53 +02:00
Holger Vogt 55189b01fe Remove obsolete adms branch 2026-04-04 15:25:06 +02:00
Holger Vogt 864ee815bc Update VSRC and ISRC pulse sources
Enable PW=0, improve 'incomplete' pulse specifications

TR negative or 0 --> TR = ckt->CKTstep
TF negative or 0 --> TF = ckt->CKTstep
if PW not given, but TR and TF --> PW = 0
PW < 0 --> PW = ckt->CKTfinalTime
PER <= 0 --> PER = ckt->CKTfinalTime
2026-04-04 15:23:01 +02:00
Holger Vogt 18cbaad36c Revert "V Pulse delivers erratic outputs, when not parameterized properly."
This reverts commit 7159d6aa4b.
2026-04-04 13:50:43 +02:00
Holger Vogt 5eb1b0a510 Revert "Move comment"
This reverts commit dd2a5fd062.
2026-04-04 13:50:36 +02:00
Giles Atkinson ae4a05158b Ugly fix for failing MacOS builds on github: move parse-binon.y to the top.
BUILT_SOURCES seems not to work.
2026-04-01 09:53:34 +01:00
Giles Atkinson 82c91abea4 Discard all XSPICE event data when using "-b -r", as there is no way
to access it.  An initial step for FR #105: "Esave + rawfile".
2026-04-01 07:35:20 +01:00
Giles Atkinson e42a9e6b5c Fix excessive forcing to lower-case in pure script files.
Add string comparisons as protected commands so they can be case-sensitive.
2026-04-01 07:35:20 +01:00
Giles Atkinson 3586cbcbea Fix crash when a "*ng_script_with_params" script is called
from a control section.
2026-04-01 07:35:20 +01:00
Holger Vogt 499c1d3dca We develop towards ngspice-47 2026-03-30 16:08:41 +02:00
Holger Vogt 4feeb94b12 Improve error message, make fprintf independent from OS 2026-03-30 16:03:19 +02:00
Holger Vogt 96404e9939 Exclude memory check for Apple Silicon
Not yet working as getAvailableMemorySize delivers wrong values.
2026-03-30 16:00:32 +02:00
dwarning 33b53f9df6 diode: correct charge reporting for soft recovery option 2026-03-27 10:31:46 +01:00
Holger Vogt f227a3abd6 Prevent a crash with shared ngspice when memory is exhausted:
Add a pre-check if available memory is sufficient. If not, bail out.
2026-03-27 10:31:30 +01:00
Holger Vogt d93bc07c15 Prepare for ngspice-46 2026-03-25 13:59:09 +01:00
Holger Vogt cd14f85cde Remove ft_skywaterpdk, replace it by variable no_auto_braces 2026-03-25 13:33:52 +01:00
Holger Vogt aab3371f36 A memory leak occurs when command 'step' is followed by 'quit'
without having reached the final TSTOP.
New function DCtran_step_quit() removes the leak.
2026-03-25 13:33:17 +01:00
Holger Vogt 2d3e032a3f Remove memory leak. 2026-03-20 16:59:22 +01:00
Holger Vogt af67662a3f In case of transient simulation error, bail out when fft is called. 2026-03-20 16:59:11 +01:00
geraldfournier 65e5ccb7bb Make fft scaling independent from rounding behaviour for odd data.
Add a time slot to fft span.
2026-03-20 13:37:06 +01:00
dwarning b3a78b02cc Special Nyquist scaling only for even length.
Let nyquist bin not empty for odd vector
2026-03-20 13:33:39 +01:00
Ralf Habacker 278841972c Add command line support for the 'version [-s|-f]' command
With this commit the mentioned ngspice command(s) are
also available on the command line. See ngspice --help
for more information.
2026-03-20 10:58:48 +01:00
Holger Vogt 88895f1394 Parameter np=xx added. xx may be a number or auto2n.
If np is not set, 'linearize' behaves as usual, (TSTOP-TSTART)/TSTEP + 1.5
If np=<number>, integer <number> is used
If np=auto2n, the number of points is 2^n, close to (TSTOP-TSTART)/TSTEP.
2026-03-20 10:58:36 +01:00
dwarning a0bf7f7e8a Diode soft recovery model based on the idea of A. Buermen with iterated charge node for diffusion charge and model parameter Vp.
Small simplifications in AC model and capacitance reporting are made. No self-heating for this effect. Pole-Zero and distortion
analysis is not implemented for this model extension.
2026-03-20 10:58:16 +01:00
Holger Vogt 38ce7778b3 Update 2 to warning messages if osdi or code model files cannot be loaded 2026-03-20 10:57:37 +01:00
Holger Vogt 7d0dce0e70 Update to warning messages if osdi or code model files cannot be loaded 2026-03-20 10:57:23 +01:00
Holger Vogt b5112b18e5 FM and FC exchange place in the parameter sequence of SFFM voltage
and current source, to become compatible with standard SPICE.
Fixes bug 832.
2026-03-20 10:57:00 +01:00
Holger Vogt f86018afe9 Do not give up when non-existing fft window is chosen,
but issue a message and go on.
2026-03-20 10:43:44 +01:00
Enrique 7a76310b6b Added parameter numPeriod so that the user can select the number of fundamental frequency periods used in the detection of the fundamental frequency and its harmonics. This is usefull when trying to recover the fundamental frequency and its harmonics from a noisy signal, like the output of a DCDC converter 2026-03-20 10:40:15 +01:00