Commit Graph

9598 Commits

Author SHA1 Message Date
Holger Vogt 12bb48cf41 Add examples for the IHP Open Source PDK 2026-07-08 22:47:31 +02:00
Brian Taylor 6fce461984 Paranoia_Parallel: a test suite for more than 100 test circuits,
running in parallel on a multi-core machine (12 min execution time
on a i9 9900, ngspice compiled with gcc, debug mode enabled.
Linux with Valgrind and Parallel are required.
2026-07-08 22:47:22 +02:00
Giles Atkinson 1123808aec Correct three comments. 2026-07-08 22:46:54 +02:00
Giles Atkinson 2c2bc4f435 In a shared library build, the option -fvisibility=hidden may be set
when compiling making entry point Cosim_setup inaccessible.  The problem
was reported at https://github.com/iic-jku/IIC-OSIC-TOOLS/issues/287,
but not reproduced.
2026-07-08 22:46:42 +02:00
Holger Vogt 9230554e26 Make the name of the added voltage source more verbose
(to avoid already existing source names).
2026-07-08 22:46:31 +02:00
Giles Atkinson 08d97e6f09 Fix Bug #775 - "Missing LDFLAGS in vlnggen", and add an option
(-stc c++14) that was needed in testing on Windows.
2026-07-08 22:46:16 +02:00
Giles Atkinson cb5fbed1f9 Feature Request 72 - "Printing hidden errors to terminal" suggests
showing errors in XSPICE code model support functions by default.
But errors may occur routinely and be handled by code.
To aid developers, setting variable "noisyxspice" will display the messages.

Also fix an error report in cm_event_queue(), remove XSPICE parse error
messages that are now shown twice and fix errors in d_source that
were seen with the new error reporting.
2026-07-08 22:45:58 +02:00
Giles Atkinson 0f0f80f34f Add new capabilities to the adc/dac_bridge XSPICE code models.
If either bridge has a single analog connection and two or more digital
connections it will act as a conventional multi-bit ADC or DAC.
When the low threshold is higher than the high threshold, adc_bridge
acts as a Schmitt trigger.
2026-07-08 22:45:21 +02:00
Giles Atkinson 37b6fda497 Simplify adc_bridge, also removing excess white space. 2026-07-08 22:44:59 +02:00
Holger Vogt 62f0b2d8cc New behavioral capacitor model:
- Replace E source by G source with parallel resistor to improve
  convergence.
- Add parallel resistor to avoid floating nodes
- Reduce refecrence C to 1u (and thus the max. current).
2026-07-08 22:44:49 +02:00
Holger Vogt 63d45e81ab Prepare for ngspice-47 2026-07-08 22:44:37 +02:00
Holger Vogt c961118650 Add error message if scale and data vector lengths do not match 2026-07-08 22:44:28 +02:00
Holger Vogt 8c68d55067 Update the copyright notice 2026-07-08 22:44:21 +02:00
Holger Vogt d7db4192a8 Replace lengthy call to CKTcircuit by new TSTOP and TSTEP macros 2026-07-08 22:44:10 +02:00
Holger Vogt 28df521b11 Set TSTEP and TSTOP also when MIF_DC, as this is needed
when initialising a code model during op before a tran sim.
2026-07-08 22:43:56 +02:00
Holger Vogt e2f397f9b5 Add two macros TSTEP and TSTOP to XSPICE 2026-07-08 22:43:50 +02:00
Holger Vogt 1caee7903e Improve the error messages when reading a state file.
Bail out when the read has not been successfull.
2026-07-08 22:43:42 +02:00
Holger Vogt 9a79af8a3e Add MODEDCTRANCURVE to enable returning capacitance upon dc sweep.
Exclude integration if MODEDCTRANCURVE is active (forward,
self-heat and reverse diode)..
2026-07-08 22:43:26 +02:00
Holger Vogt e073718c0e Add MODEDCTRANCURVE to enable returning capacitance upon dc sweep.
Exclude integration if MODEDCTRANCURVE is active.
2026-07-08 22:43:19 +02:00
Holger Vogt 95414ec09b No integration, if dc sweep is to return cpacitances 2026-07-08 22:43:08 +02:00
Holger Vogt 08f2541d34 Reset ckt->CKTag[0] and ckt->CKTag[1] upon successful return
from transient simulation.
2026-07-08 22:43:02 +02:00
Holger Vogt 62d70a242e A digital NAND gate 9-stage ring oscillator (less than 30ms simulation time) 2026-07-08 22:42:44 +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