Commit Graph

7740 Commits

Author SHA1 Message Date
Gerald Fournier 5610302c77 Fix nyquist bin normalization 2026-02-19 14:28:06 +01:00
Gerald Fournier ce3f3c6221 Fix FFT normalization 2026-02-19 14:27:57 +01:00
Gerald Fournier 053363f85d Fix freq bins in fft 2026-02-19 14:27:20 +01:00
Holger Vogt d163db99c7 Add a user-settable variable measureprec to set the number of digits
when printing the measure outputs.
Internally this is a global variable measure_precision.
Enable all measure commands to recognize measure_precision when
printing an output.
Default value is 5 (yielding 6 digits after .?).
2026-02-07 13:21:54 +01:00
Holger Vogt 5ec437f672 After an ac simulation, a tran measurement causes a segfault.
A check prevents this issue.
2026-02-03 22:40:04 +01:00
Holger Vogt 26c86841df Remove compiler warnings 2026-02-03 15:20:05 +01:00
Holger Vogt 857f826b0a Re-enable compiling with clang
Patch thanks to Gon Solo, issue 826
2026-02-03 13:42:25 +01:00
Holger Vogt 82e563b1b1 New analogue and digital device models from TI contain
the token GND in their subcircuit. Up to now ngspice has
declared GND as global and replaced it by 0.

Now, if PS is selected as compat mode, GND is not
declared as global, and is not replaced inside of a subcircuit.
2026-01-23 19:50:26 +01:00
Holger Vogt 14363ba45a Moving window filtering with function 'newvec = mtimeavg(vec)'
Window of fixed time width given by 'set mtimeavgwindow=400u'
Length and scale of newvec resembles the original vetor vec.
Large vec and large mtimeavgwindow take their time.
OpenMP is used if available.
2026-01-20 15:24:52 +01:00
Holger Vogt 75a8037f0c Exclude B voltage source, whan '.probe alli' is used.
It already gets a bxx#branch for current measurement.
2026-01-16 15:43:48 +01:00
dwarning 2813a943a7 Correct vgs assignment - bug found by K. OHara 2026-01-16 08:38:37 +01:00
dwarning 660ca46667 remove redundant definition and unused variable 2026-01-09 16:07:38 +01:00
dwarning 56168b4754 Minor change that helps VADistiller. 2026-01-09 12:57:49 +01:00
dwarning e8016ebf63 convert to lower case for spice2 input and remove few warnings 2026-01-08 22:35:52 +01:00
dwarning d239dd1afa rm ngnutmeg from build list of old apps 2026-01-08 22:34:10 +01:00
Holger Vogt e80fc7686b re-enable maling old app ngsconvert
ngnutmeg is still defect
2026-01-07 20:13:48 +01:00
dwarning 4cac271912 more realistic default values for case to ambient thermal resistance and device transconductances 2026-01-03 09:04:40 +01:00
dwarning 00803f7c1f Adapt VDMOS Vth temperature coefficient to usual notation with - for nch and + for pch. 2026-01-02 20:28:45 +01:00
Holger Vogt cd614b2e0f Add the non-nqs PSP103 OSDI model to spinit 2025-12-28 23:30:35 +01:00
Holger Vogt 66dfc915e9 Add a function m3avg(vector) for filtering of trap ringing.
Moving average with D(n) = (C(n-1)/2 + C(n) + C(n+1)/2)/2
2025-12-28 23:19:58 +01:00
Holger Vogt a12bedb835 Make pred available always 2025-12-28 12:47:55 +01:00
Holger Vogt 99bddad736 Enable optional voltage based truncation error correction.
This is selectable as 'option newtrunc' (--enable-Predictor is required)

Remove --enable-NEWTRUNC

Add three option parameters (default):
lteTrtol (500), lteReltol (1e-3), lteAbstol (1e-6)

Add new error function for TRAP, similar to GEAR
 (tentative, to be improved), in ckttrun.c

Enable PREDICTOR as default with Visual Studio.
2025-12-27 22:46:27 +01:00
Holger Vogt ebde8f43f1 Fix tiny bug. 2025-12-27 22:46:16 +01:00
Brian Taylor d0501da241 Add function to verify that subckt port directions are compatible with auto bridging. Use set ps_ports_and_pins=1 to see the port directions. 2025-12-27 22:40:59 +01:00
lorenzo a984a43b61 Fixes a memory corruption bug resulting from improper parsing
and accessing of array parameters in OSDI models
2025-12-20 11:31:24 +01:00
dwarning d610fa070a Diode sensitivity analysis: Exclude few parameters and add level 3 geometry parameter. 2025-12-19 18:20:25 +01:00
dwarning ee6cd951cd Fix the overlap in state vector for sensitivity states of diode and bjt model. 2025-12-19 17:03:08 +01:00
dwarning e1afc5cf09 KLU bindings for separate sw diode only if sw resistor is given 2025-12-19 14:07:47 +01:00
Holger Vogt 9fef242c50 Update comment to cktnumstates 2025-12-19 12:56:11 +01:00
dwarning 4f9fb4c641 Diode model level=2 (Fowler-Nordheim) is not supported. 2025-12-11 10:43:07 +01:00
Holger Vogt 83e2b284f3 Add missing function prototypes 2025-12-03 23:03:42 +01:00
dwarning c1acc44a55 This fixed #822 diode discontinuity problem
Base recombination current appears in reverse and breakdown region too.
2025-12-02 20:35:43 +01:00
dwarning 284d4308db Add optional switch for separate bottom and sidewall diode model - configuration is dependent from model parameter RSW
Further sidewall knee current parameter IKP is implemented.
2025-11-27 16:21:31 +01:00
Holger Vogt f8d341b05a Re-formatting 2025-11-24 14:02:42 +01:00
Holger Vogt 9cfbb2bc8c Add a comment 2025-11-23 10:37:47 +01:00
dwarning 7f75f09ecd general vdmos update 2025-11-20 15:09:04 +01:00
Holger Vogt d93a11b8ea Remove unused functions from the IFfrontEnd struct. 2025-11-17 23:56:50 +01:00
Holger Vogt f1baefd932 Remove a double entry 2025-11-17 18:41:12 +01:00
Holger Vogt c0bc939ed0 Enable guessing the vector type or SP analysis in batch mode. 2025-11-17 14:12:42 +01:00
Holger Vogt 051043a70a Remove variable and flag 'use_numparams'.
Not using numparam has not been a supported option for the last 20 years.
2025-11-16 12:12:48 +01:00
Holger Vogt b3eb6b12fe Try to equalise the last two time steps before a breakpoint,
if the second step would be smaller than CKTdelta otherwise.
2025-11-15 19:50:04 +01:00
Holger Vogt 95b8cee898 Using cbrt() instead of exp(log...) might be more efficient 2025-11-15 19:49:07 +01:00
dwarning 55e4f5377f VDMOS: apply m scaling fix for acld as well 2025-11-15 09:50:51 +01:00
Árpád Bűrmen 8d26e8b2cb VDMOS scaling fixed. 2025-11-14 09:34:57 +01:00
Árpád Bűrmen 807ff2b90c Minor change in VDMOS that helps VADistiller. 2025-11-14 09:34:57 +01:00
Holger Vogt c0d92ebd96 Update to commit
172fb6d66 ("Fix Bug 817 - "Global models are not visible from
with subcircuits". Remove code that can miscount the number of
nodes to be renamed.", 2025-10-08)
Keep checking for x lines with nesting. This re-enables
simulating large cxircuits (e.g. SRAMs) with deeply nested
subcircuit calls.
2025-11-12 11:23:24 +01:00
Holger Vogt 0a7ad07cc0 Add a variable 'debug-out-short' to enable a shortened debug-out.txt,
useful when large circuits are monitored, which otherwise may result
in GigaBit size of data.
2025-11-12 11:21:13 +01:00
dwarning 8c3d4d7990 vdmos convtest needs type for vd - load hack not needed anymore 2025-11-10 15:17:56 +01:00
dwarning 420838e4e8 vdmos: in case temp and dtemp is given - use dtemp and omit temp 2025-11-09 08:21:45 +01:00
dwarning 9802c7d0c6 correct gate and source resistor temperature update 2025-11-08 21:15:32 +01:00