Commit Graph

405 Commits

Author SHA1 Message Date
Holger Vogt 0e8cc00070 We are developing towards ngspice-46 2025-09-02 17:07:07 +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
Holger Vogt f541c6fb05 C:\Spice64 is again the default install directory for ngspice made by MSVC. 2024-01-14 14:31:02 +01:00
Holger Vogt a4ae81ec06 We are developing towards ngspice-43 2024-01-06 23:14:26 +01:00
Holger Vogt 1ad639d90a Add d_cosim to MS project file 2023-12-29 11:01:01 +01:00
Holger Vogt ce8f6c5017 prepare ngspice-42 2023-12-12 17:08:58 +01:00
Holger Vogt 7175a39448 Add files com_fileio.c, .h to shared and fftw ngspice 2023-11-30 20:10:41 +01:00
Giles Atkinson c18447f9f5 Add the support files for co-simulation with Verilog code
compiled by Verilator.  Also add script files to Visual Studio builds
that are already installed by the Makefile builds.
2023-11-27 20:55:59 +00:00
Giles Atkinson 3ba314d4bc New interpreter commands strstr, strslice, fopen, fread and fclose. 2023-11-27 14:58:01 +00:00
Giles Atkinson 566e2938f4 Add XSPICE code model d_cosim, a generic adaptor for digital cosimulation. 2023-11-27 14:50:21 +00:00
Holger Vogt 70e366021b Generate seed numbers from a microseconds clock, not a seconds clock 2023-11-17 18:35:21 +01:00
dwarning 42f882e4e4 add osdinoise.c 2023-11-04 19:36:31 +01:00
dwarning e67a6a1297 add osdinoise 2023-11-04 19:36:30 +01:00
Brian Taylor 3bb6e86015 Add Windows Visual Studio support for the Isotel d_process xspice digital model. The Isotel mixedsim-master/examples/embedded/motorforce C code needs to have minor changes for _MSC_VER defines, and are not included with this commit. The changes relate to using #pragma pack(push, 1)...#pragma pack(pop) around some structs, and setting stdin/stdout in binary mode. It is doubtful that the cfunc.mod will compile on mingw or cygwin since I don't know if they support pipe/fork/exec/spawn calls. The code builds and runs on Windows, Linux, and MacOS. In the future, Giles Atkinson is looking at allowing Xspice models to load shared libraries (.dll, .so) which will avoid creating and communicating with an external program. 2023-10-28 10:58:06 +02:00
Holger Vogt ce82c839e3 dependent project klu_complex added 2023-10-23 16:50:49 +02:00
Holger Vogt 930bd12dc2 Enable degug mode in shared ngspice with KLU 2023-09-23 16:51:28 +02:00
Holger Vogt d6418117b6 Add links to KLU_COMPLEX.lib 2023-08-30 23:33:29 +02:00
Holger Vogt 1d6113c017 Remove unused lib 'Visual leak detector' 2023-08-30 23:32:54 +02:00
dwarning b0420af7e3 include KLU in to project 2023-08-30 21:20:16 +02:00
dwarning c17cdecb1f update VS project file to KLU 2023-08-30 20:40:02 +02:00
Holger Vogt 134fffd5e0 Enable compiling the shared ngspice lib with KLU, using VS2022 2023-08-27 15:00:06 +02:00
Holger Vogt d5ceced24d We are developing towards ngspice-42 2023-08-19 23:54:36 +02:00
Holger Vogt 12d9394bd1 Add osdiitf.h to project 2023-08-16 11:14:25 +02:00