Commit Graph

426 Commits

Author SHA1 Message Date
Holger Vogt 760b12b14e Enable soundfile support for VS2022/2026 builds. 2026-05-10 16:36:11 +02:00
Holger Vogt 936ca5cec7 Update project files: integrate wave compilation
including sdnfile.dll and samplerate.dll, make
both project files more uniform.
2026-05-05 15:49:35 +02:00
Holger Vogt 65fd1e833f Add copying sndfile.dll and samplerate.dll 2026-05-05 15:48:01 +02:00
Holger Vogt 8efc138b73 Add wav to fftw version of shared ngspice 2026-04-30 13:06:30 +02:00
Holger Vogt 2c9f7a7ebf Use the most recent samplerate.dll from
https://github.com/libsndfile/libsamplerate/releases
2026-04-30 13:06:29 +02:00
Holger Vogt 302df8ddac Enable most recent build of sndfile.dll from
https://github.com/libsndfile/libsndfile
2026-04-30 13:06:29 +02:00
Holger Vogt 271e9ce6b1 Enable compilation of shared ngspice with wav support 2026-04-30 13:06:28 +02:00
Holger Vogt 7a88c3341d Enable compiling with *.wav (audio) file support. 2026-04-30 13:06:28 +02:00
Holger Vogt e1e0d08ad5 add files sndprint, vsjack 2026-04-30 13:06:25 +02:00
Holger Vogt 9007ffab23 Enable printing outputs with engineering exponents 2026-04-26 12:08:08 +02:00
Holger Vogt 3e4df63d05 Add ota to VC analog project 2026-04-22 08:45:28 +02:00
Seth Hillbrand 013408ac08 Implement MIFnoise(), the generic noise callback for all XSPICE code
models. Two discovery modes are supported: declarative, where models
define reserved parameter names (noise_voltage, noise_current,
noise_corner, noise_exponent) and get automatic noise sources and
programmatic, where models register sources via cm_noise_add_source()
during MIF_NOI analysis calls.

Also add an OTA (operational transconductance amplifier) code model as a
reference implementation that exercises the programmatic noise interface.
2026-04-22 08:45:27 +02:00
Holger Vogt 499c1d3dca We develop towards ngspice-47 2026-03-30 16:08:41 +02:00
Holger Vogt d93bc07c15 Prepare for ngspice-46 2026-03-25 13:59:09 +01:00
Holger Vogt e3bb6afb5d Add ifspec.ifs to MS Visual C project 2026-03-20 10:28:59 +01:00
Holger Vogt 2e5772e35e Add the non-nqs PSP103 OSDI model to spinit 2026-02-03 14:21:24 +01:00
Holger Vogt fe55cbe69f 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.
2026-02-03 14:18:55 +01:00
Holger Vogt 4d24b18f35 Remove all entries connected to IPC, an outdated (>30 years)
method to link ngspice to a now defunct controller (ATESSE).
2026-02-03 14:07:59 +01:00
Holger Vogt 48d28f9f4a Entries to old CLUSTER code removed. 2026-02-03 14:07:15 +01:00
Holger Vogt 65fc0ad8a6 Add analog code model astate.
It reports the previous state (delayed by 1 to 3 time steps)
of the input node. Single or differential voltage or current.
2026-02-03 13:57:57 +01:00
Holger Vogt 49b35ed3fc We are developing towards ngspice-46 2026-02-03 13:52:36 +01:00
Holger Vogt 724dc77b91 Prepare bug-fix release ngspice-45.2. 2025-09-05 23:59:35 +02:00
Holger Vogt 86ea9fee8a Prepare for ngspice-45 2025-08-29 15:01:45 +02:00
dwarning a44f7ce87a fix a wrong Release/Debug selection for console build 2025-07-29 11:03:57 +02:00
Holger Vogt 467485ae23 Add support for tlines code models 2025-07-29 11:02:08 +02:00
Holger Vogt 29d5584c56 Bug fixes:
fix function rdivide
fix a copy/paste bug in cpline
add copying of tlines
2025-07-29 11:01:57 +02:00
Holger Vogt 33efc5ed2c Add functions for VS non-C99-compatible complex data manipulation,
selected by #ifdef _MSC_VER switch.
Update tlines project file, correct buiuld sequence for
code models in vngspice.
Add tlines to spinit.
2025-07-29 11:01:30 +02:00
Holger Vogt 0aa5c92a58 Add project section (autom. done by VS) 2025-07-29 11:01:13 +02:00
Holger Vogt 85c600a923 Enable Visual Studio support for tline
FIXME: not yet complete, complex type incompatibility
2025-07-29 11:00:34 +02:00
Holger Vogt b628032d7d Add a generator for SEE (single event effects) pulses as a code model.
To be used like
aseegen1 NULL [%id(xcell.n1 m1) %id(xcell.n2 m2) %id(xcell.n1 m1) %id(xcell.n2 m2)] seemod1
.model seemod1 seegen (tdelay = 11n tperiod=25n tfall='tfall' trise='trise' let='let' cdepth='d')
see README.SEEgenerator for details
2025-07-29 10:39:58 +02:00
dwarning 8a49164aec ReleaseOMP x64 needs fftw-3.3-dll64 include directory 2025-05-24 11:22:58 +02:00
Holger Vogt dd07008b55 Remove ADMS related code 2025-05-24 11:17:56 +02:00
Giles Atkinson c7c85ecadc Add co-simulation with VHDL, using the GHDL compiler and d_cosim. 2025-05-24 11:05:33 +02:00
Holger Vogt 1a1d2558e8 We are developing towards ngspice-45 2025-05-24 10:50:59 +02:00
Holger Vogt 80d22fc802 Prepare the bug-fix release 44.2 2025-01-11 11:55:56 +01:00
Holger Vogt 6e5d084a02 "x64" was hardcoded into aux-digital.bat and is used in the compiling of digital.vcxproj.
That's problematic for trying to compile x86 or ARM64.

This patch makes digital.vcxproj pass the arch as arg2 to aux-digital.bat

Patch #120 provided by Mark Roszko
2025-01-09 13:21:15 +01:00
Holger Vogt 8eea1f0b41 Prepare ngspice-44 2024-12-26 15:01:10 +01:00
Holger Vogt deb3cd9809 Replace all BOOLEAN, BOOL, _Bool by bool
Remove all #undef bool (set in conjunction with #iclude <Windows.h>)
2024-12-15 10:25:28 +01:00
dwarning 40aa445ee8 unify os dependent time code in one file - rm win_time.c 2024-12-06 22:37:30 +01:00
dwarning 3faed1647a Reorder and renovate timer functions taking into account ngspice multiprocessor capabilities
by using available high performance functions first.
Deprecated ftime() still acts as a backup function.
Solution is portable for today's operating systems and compilers.
2024-12-06 22:35:02 +01:00
Holger Vogt 0fadbdc488 Don't compile with OpenMP support, as it is not used in KLU. 2024-11-02 22:40:28 +01:00
Holger Vogt 2d9e5fede6 /openmp:llvm removed from additional options for the 'Release' builds
(however keep it in the 'ReleaseOMP' builds).
2024-11-02 22:40:05 +01:00
dwarning c8959ba072 ignore visualc xspice verilog dir 2024-11-02 22:39:34 +01:00
Holger Vogt 82af46085d Enable using fftw3 as a build option of shared ngspice on Windows 2024-11-02 22:38:28 +01:00
Holger Vogt a96237061d Copy the correct spinit to ngspice/visualc 2024-11-02 22:33:36 +01:00
Giles Atkinson ce1ecca15e Add support for including Verilog simulation within an instance
of the d_cosim codemodel, using libvvp, the simulation runtime of
Icarus Verilog.  This complements the existing method using Verilator.
The new source code is built into two binary shared libraries,
ivlng.so (or .DLL) and ivlng.vpi that are loaded during simulation.
2024-11-02 22:30:07 +01:00
Holger Vogt a8c1104cfb 43+ developing towards ngspice-44 2024-11-02 22:21:51 +01:00
Holger Vogt f59a68321d When compiling console debug, use debug version of KLU 2024-07-08 14:41:07 +02:00
Holger Vogt 33939d3f50 Prepare ngspice-43 2024-06-22 17:06:45 +02:00
Holger Vogt 2c2c97104f Unify all spinit sources 2024-05-01 10:27:31 +02:00