Commit Graph

9597 Commits

Author SHA1 Message Date
Holger Vogt bd6b0be4a3 Add function cm_get_deg_params(void) to obtain the set
of gegeneration model püarameters stored in struct agemods.

Re-sort the parameters in ifspec.ifs (preliminary)

Use cm_get_deg_params() to obtain the model parameters in cfunc.mod
2026-06-07 14:26:22 +02:00
Holger Vogt 5827715db1 simple netlist example with agemodel data. 2026-06-07 14:26:22 +02:00
Holger Vogt 48cbcfe3db Read the agemodel data, put them into global array agemods 2026-06-07 14:26:22 +02:00
Holger Vogt d263fba97e Always call the function.
Inside it will be decided, depending on not having ngbehavior=de,
to disregard the agemodels.
2026-06-07 14:26:21 +02:00
Holger Vogt e74b7e67f4 Add function readdegparams in file inpdeg.c 2026-06-07 14:26:21 +02:00
Holger Vogt 95f9638045 remove debug messages 2026-06-07 14:26:21 +02:00
Holger Vogt 775c14e9c8 make parameter l lower case, add parameter 'file' 2026-06-07 14:26:21 +02:00
Holger Vogt 1bca7095c8 Add a compatibility mode 'de' for degradation simulation. 2026-06-07 14:26:21 +02:00
Holger Vogt 5af898f2fb Add INSTNAME and INSTMODNAME to code model macros 2026-06-07 14:26:21 +02:00
Holger Vogt 1b1a8d6f15 Scale function for *constfac, scale Boltzmann.
Add *prevtime to allow checking for final time, and to
avoid double acces to deg evaluation.
Add missing parameter L.
If other than 4 nodes, bail out.
2026-06-07 14:26:21 +02:00
Holger Vogt 1cad3f0085 Use real parameters as default (NMOS 0.13 saturation) 2026-06-07 14:26:20 +02:00
Holger Vogt ef63c61521 Add degradation monitor code model to extradev 2026-06-07 14:26:20 +02:00
Holger Vogt f2805e15fb Add two macros TSTEP and TSTOP to XSPICE 2026-06-07 14:26:20 +02:00
Holger Vogt fad198de7b Improve the error messages when reading a state file.
Bail out when the read has not been successfull.
2026-06-06 16:15:24 +02:00
Holger Vogt 58c312f733 Add MODEDCTRANCURVE to enable returning capacitance upon dc sweep.
Exclude integration if MODEDCTRANCURVE is active (forward,
self-heat and reverse diode)..
2026-06-06 14:36:06 +02:00
Holger Vogt 2a0a3ab403 Add MODEDCTRANCURVE to enable returning capacitance upon dc sweep.
Exclude integration if MODEDCTRANCURVE is active.
2026-06-06 14:34:52 +02:00
Holger Vogt ae06dfe978 No integration, if dc sweep is to return cpacitances 2026-06-06 14:33:05 +02:00
Holger Vogt 88e94b26c4 Reset ckt->CKTag[0] and ckt->CKTag[1] upon successful return
from transient simulation.
2026-06-06 14:28:56 +02:00
Holger Vogt 507351ae01 A digital NAND gate 9-stage ring oscillator (less than 30ms simulation time) 2026-06-06 14:26:25 +02:00
Holger Vogt b1717822d2 Revert "A digital NAND gate 9-stage ring oscillator (less than 30ms simulation time)"
This reverts commit 2ef046704e.
2026-06-06 12:46:43 +02:00
Holger Vogt 2ef046704e A digital NAND gate 9-stage ring oscillator (less than 30ms simulation time) 2026-06-03 16:40:45 +02:00
Holger Vogt 72620328a1 Excluded integration during self-heating as well. 2026-06-01 19:48:50 +02:00
Holger Vogt d029ed02db Diode: No integration if dc sweep, but keep calculating capacitances 2026-06-01 11:02:45 +02:00
Holger Vogt 973b6b6d49 No integration if dc sweep, but keep calculating capacitances 2026-05-31 15:57:26 +02:00
Holger Vogt e53325583b Don't check for tperiod, which is not used when the
distributed pulse is applied.
2026-05-26 16:02:36 +02:00
Holger Vogt 037b6578f8 gain cell as an example for the declarative small signal noise approach 2026-05-24 09:58:53 +02:00
Holger Vogt b03f3cc8fe title update 2026-05-23 15:03:12 +02:00
Holger Vogt afac24be24 Re-format 2026-05-22 21:20:58 +02:00
Holger Vogt 7b045a99b2 improve comment 2026-05-22 21:16:16 +02:00
Holger Vogt 1ec7f8168f Make structure equal to dllitf.h
Fixes bug 840
2026-05-22 21:15:50 +02:00
Holger Vogt 8b32c743ae Update to the SEEgenerator as describes in README.SEEgenerator 2026-05-22 17:32:46 +02:00
Brian Taylor abcbcbd724 Completed and cleaned up memory leak fixes in:
inpc_probe.c outitf.c inpcom.c niiter.c
cherry-pick of this one commit should be OK.
2026-05-19 10:50:35 +02:00
Holger Vogt 7911d0870d Correct paths in example file 2026-05-15 01:00:56 +02:00
Holger Vogt 6b7cde537d Reset plot list to const plot. 2026-05-11 15:10:21 +02:00
Holger Vogt 3dce275b16 reset time to 0 upon initialisation of shared ngspice 2026-05-11 15:09:32 +02:00
Holger Vogt 95cf8738da Avoid compiler warning (VS2022) 2026-05-10 16:36:35 +02:00
Holger Vogt 760b12b14e Enable soundfile support for VS2022/2026 builds. 2026-05-10 16:36:11 +02:00
Holger Vogt 201ae8cac7 Allow building without soundfile libraries.
Emit error message if soundfile source is requested.
2026-05-10 16:35:28 +02:00
Giles Atkinson 7cba7ddee0 Allow building without soundfile libraries. 2026-05-10 15:31:58 +02:00
Giles Atkinson 96c81fd58c Add CPP macros to allow XSPICE macros to be used in local functions. 2026-05-10 15:31:52 +02:00
Giles Atkinson 785be3194c Fix two bugs in the "let" command:
"let plot.vec = ..." fails when creating a new vector;
 if the new vector does not exist, "let" may modify a "const" value.
It is likely that existing scripts rely on the second one,
so variable "sanelet" must be set to enable the fix.
2026-05-10 15:31:48 +02:00
Giles Atkinson 954242616d Filter duplicate entries in sourcepath. 2026-05-10 15:31:44 +02:00
Giles Atkinson 93567da529 Do not report an error when correctly indexing a length-1 vector. 2026-05-10 15:31:40 +02:00
Giles Atkinson 07ca1354eb Disable output redirection for "let" so that normal comparison
operators may be used.
2026-05-10 15:31:30 +02:00
Giles Atkinson 06afc7c1da Command "setplot new" may set name and description of the new plot. 2026-05-10 15:31:25 +02:00
Giles Atkinson 9ad729ec15 CMPP: also skip over single-quoted strings in code-model source. 2026-05-10 15:31:17 +02:00
Giles Atkinson 0f693a55d0 Fix Bug #776 -
"vlnggen fails to find verilator in MSYS2/MINGW64 on Windows 10".
Patch by Chaojun.
2026-05-10 15:31:13 +02:00
Holger Vogt 55dc72a01f Restrict time step equalising: don't do it with next breakpoit
at TSTOP, as simulations with may fail with ever decreasing time step.
2026-05-10 11:07:31 +02:00
dwarning b4ecedc616 vdmos bulk diode with smart recovery model 2026-05-09 15:55:27 +02:00
Holger Vogt 19217bf018 Fix a bug reported by Dmitriy, take 2: use 1 to length-1 2026-05-08 10:53:02 +02:00