Commit Graph

426 Commits

Author SHA1 Message Date
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
Holger Vogt c6b363ff4d Provide its own instal directory also for debug,
to not intermix standard and KLU ngspice.
2023-08-16 11:14:25 +02:00
Holger Vogt 464da80d92 Allow a separate installation directory Spice64_KLU for MS Windows and MSVC 2023-08-16 11:14:25 +02:00
Holger Vogt 8c505ef65b Set up to compile with MS VS2022 2023-08-16 11:14:23 +02:00
Holger Vogt 132957a5b3 Enable compiling with VS 2019
Add hicum2bindCSC.c to project
2023-08-16 11:14:22 +02:00
Holger Vogt 684e0a8779 Add XSPICE table models to MS project 2023-08-16 11:14:22 +02:00
Holger Vogt 30ee07b4c2 Re-enable compiling with Visual Studio 2023-08-16 11:14:21 +02:00
Holger Vogt ee0b52b779 Enable compiling with MSVC 2019
Remove reference to 'Visual Leak Detector'
Remove unused files from devices
Add custom build to invoke Flex_bison
2023-08-16 11:14:19 +02:00
Holger Vogt dbd5d18b99 remove unused file 2023-08-16 11:14:18 +02:00
Holger Vogt 30d09c62ae retarget the VS project to VS 2019
add mifbindCSC.c to vngspice.vcxpro
2023-08-16 11:14:17 +02:00
h_vogt 50b2694678 vngspice.vcxproj, <AdditionalLibraryDirectories>...Visual Leak Detector 2023-08-16 11:14:15 +02:00
h_vogt a0fe22bb75 VS21015 project files, enable OpenMP 2023-08-16 11:14:15 +02:00
h_vogt d829983a04 MS Visual Studio 2015 project files for KLU
KLU added, 32 bit and 64 bit
2023-08-16 11:14:15 +02:00
h_vogt 660b3172a3 config.h, add KLU macro definition 2023-08-16 11:14:15 +02:00
Holger Vogt bfb520086d Prepare ngspice-41 2023-08-13 11:56:35 +02:00
Holger Vogt b0ca2a667a Add missing pwlts cfunc.mod and ifspec.ifs 2023-08-13 11:30:31 +02:00
Holger Vogt 79c46b0c44 'current time' instead of 'actual time' 2023-07-31 14:30:45 +02:00
Holger Vogt 3b90c12307 Enable compiling with MSVC 2023-07-15 11:15:28 +02:00
Holger Vogt dcf9846d6e remove unused header file 2023-05-27 10:49:43 +02:00
Holger Vogt c90268321a Add files inpcompat.c, inpcompat.h to project 2023-05-27 10:38:57 +02:00
Holger Vogt 4a95de5cd7 We are developing towards ngspice-41 2023-04-01 17:31:59 +02:00
Holger Vogt 311ddeac0d Prepare for ngspice-40 2023-03-24 22:27:12 +01:00
Holger Vogt bcec3cb5e3 Updating links to ngspice web pages 2023-03-18 14:37:02 +01:00
Holger Vogt d4ee9af2e6 We are developing towards ngspice-40 2023-03-18 14:34:27 +01:00
Holger Vogt 5cb5d218c9 Remove the obsolete RETSIGTYPE, replace by void 2023-03-18 14:30:29 +01:00
Holger Vogt 4ed455ea19 fix comment 2023-01-27 16:10:09 +01:00
Holger Vogt 65cd01f3c5 fix comment 2023-01-27 16:09:51 +01:00
Holger Vogt 802ab2a2c5 Do not try to load *.osdi automatically 2023-01-27 16:09:38 +01:00
Holger Vogt b9eef23eed Update the example structure for OSDI/OpenVAF:
all compiled models into lib/ngspice
spinit updated to load the models via command 'osdi'
local calls with 'pre_osdi' commanted out.
2023-01-27 16:08:17 +01:00
Holger Vogt 71002aa42f Prepare for ngspice-39 2023-01-24 15:49:42 +01:00
Holger Vogt 029f2baff7 Add missing includes 2022-12-27 14:21:53 +01:00
Holger Vogt fa18c53c37 Update for all MSVC project files:
Update to VC2022 with v143 and /openmp:llvm (due to openmp task)
Add missing osdi files
Add missing udevices.c and logicexp.c
2022-12-27 14:11:33 +01:00
Holger Vogt f1636cac74 No longer needed, replaced by vngspice.vcxproj 2022-12-27 14:07:30 +01:00
Holger Vogt 4b03f664b3 Remove preprocessor flag XSPICE from MS project file, add it to config.h
instead.
Add OSDI-specific files to project.
2022-12-27 14:05:48 +01:00
Holger Vogt 6c741152f7 Revert "remove unused"
This reverts commit cc2707cfdb.
2022-12-27 14:05:22 +01:00
Holger Vogt c6b7e55a3f Move XSPICE preprocessor flag from vcxproj file to config.h 2022-12-27 14:02:51 +01:00
Holger Vogt dd6ab0a8bb Do not add to monitored files 2022-12-27 14:00:02 +01:00
Holger Vogt f58ae56193 Visual Studio 2022 project files,
replacing the original project files.
2022-12-27 13:57:54 +01:00
Holger Vogt c6f8e999df undefine XSPICE, define OSDI 2022-12-27 13:54:53 +01:00
Holger Vogt 0628b89fd4 remove unused 2022-12-27 13:54:21 +01:00
Holger Vogt 5d51107ff3 Add logicexp.c to fftw and shared project files 2022-12-11 15:21:30 +01:00
Brian Taylor 4e76586b6b Reduce the delays of 'zero' delay gates to 1.0e-11. Add decoder test for logicexpr and pindly. 2022-12-11 15:19:17 +01:00
Holger Vogt f1165052ad We are developing towards ngspice-39 2022-11-06 11:23:17 +01:00
Holger Vogt 5bc1660773 prepare ngspice-38 2022-10-16 16:59:34 +02:00
Holger Vogt 4cb6c93a1a Add bidirectional bridge to MS project file for icm digital 2022-10-08 16:49:21 +02:00
Holger Vogt 1d026475a2 pwlts: a pwl v/i source with time input, smoothing and limiting functions 2022-10-07 13:39:16 +02:00
Holger Vogt 26c687b088 enable evtcheck_nodes.c for MS Visual Studio 2022-10-07 13:21:02 +02:00
Holger Vogt 5cf6c23db8 Add udevices.c to project 2022-10-07 13:03:52 +02:00
Holger Vogt 9b056c0c2f enable compiling with VS 2019 2022-10-07 12:57:04 +02:00
Holger Vogt d8119aaca4 Don't set interactive mode 2022-10-07 12:40:07 +02:00
Holger Vogt 0faf386d45 We developing towards ngspice-38
The intermediate stage is named 37+
2022-06-23 08:33:01 +02:00
Holger Vogt a4e6d0eef5 Remove headers: both are available in VS 2019 and VS 2022.
Local stdint.h will lead to a compile error in VS 2022.
2022-05-14 16:33:17 +02:00
Holger Vogt 303cf0c92b Prepare ngspice-37 2022-05-11 13:48:33 +02:00
Holger Vogt 8a6231a813 fix typo, remove unsuitable comment 2022-04-25 21:34:21 +02:00
Holger Vogt 5c0b41d277 Update to config.h
Move relevant entries up to the top of the file

S-parameter and periodic steady state may be selected in config.h

CIDER and XSPICE are always selected and cannot be excluded
(will not compile without).
2022-04-25 21:33:57 +02:00
Holger Vogt a29e53528a Move selection of RFSPICE into config.h 2022-04-25 21:33:49 +02:00
Holger Vogt ed0580b914 Update to the VS project files:
Add sp simulation to shared ngspice and fftw
Remove a few old, invalid *.h file entries
2022-04-25 21:33:23 +02:00
Alessio Cacciatori 4ebf4901b9 S-parameters in ngspice
With this commit the patch provided by Alessio Cacchiatori the S-parameter is completed:
Noise simulation added with C matrix output
Y and Z matrix output enabled

To allow compiling with gcc, the dense.h inline functions have been put into denseinlines.h
2022-04-25 21:31:28 +02:00
Holger Vogt 246f9f5e9e d_pwm: Add a hybrid oscillator (analg control in, digital out) with PWM
(pulse width modulation) capability, oscillation frequency is a parameter.

The model has been derived from the d_osc example.
2022-04-25 21:27:26 +02:00
Holger Vogt 909fbc8988 Add RFSPICE (S parameter simulation) to VS for shared ngspice and fftw 2022-02-17 15:49:00 +01:00
Alessio Cacciatori 2c10c4aebd S parameter simulation
Command '.sp'
arbitrary number of ports
ports made with modified VSRC

Patch provided by Alessio Cacciatori
https://sourceforge.net/p/ngspice/discussion/127605/thread/7a2655c86f/
2022-02-17 15:48:00 +01:00
Holger Vogt 4b48c4c6ba We are now developing ngspice-36+ 2022-01-01 15:33:14 +01:00
Holger Vogt 2b19e924dd prepare ngspice-36 2021-12-20 11:27:41 +01:00
Holger Vogt 7f1a3bea20 .probe: Add the new file inpc_probe.c to the VS project files
and makefile.am in ngspice/src/frontend
2021-12-13 21:47:11 +01:00
Holger Vogt ced6b038a5 cpl gc: Add missing files to project file 2021-10-30 10:45:58 +02:00
Holger Vogt 9806fb3b9e cpl gc: Add missing files to project file 2021-10-30 10:45:30 +02:00
Holger Vogt 041264df03 No more meory leaks with existing cpl examples:
Add cpldelete.c and cplmdel.c
Delete the model parameters.
Add 2 missing memsaved().
2021-10-30 10:44:07 +02:00
Holger Vogt 4837773045 Add cplhash.h to project 2021-10-30 10:40:52 +02:00
Holger Vogt 684e940fc9 add cplhash.c to compile 2021-10-30 10:37:57 +02:00
Holger Vogt 1eb15de584 remove optran command from spinit 2021-10-29 16:37:56 +02:00
Holger Vogt 04a902ddf7 add potran to spinit d 2021-09-29 20:22:01 +02:00
Holger Vogt 4a1f7f950c spinit: add optran to the standard inits 2021-09-29 20:16:09 +02:00
Holger Vogt 0e72287af7 Add command 'write_ic'
Write out the right hand side status of the matrix in format
.ic = V(node_xx)
This may be possible at the end of a simulation or after a 'stop'
of the simulation, which may be resumed again afterwars. This
status may be used to start another simulation with these
parameters by inluding into the netlist.
2021-09-29 20:11:13 +02:00
Holger Vogt ec986b3fbc Add optran.c
New custom build commands as suggested by VS
2021-09-29 20:09:36 +02:00
Holger Vogt 4dac35bac9 optran.c also in MSVC 2021-09-29 20:00:50 +02:00
Holger Vogt bdd8991d84 We are now developing ngspice-35+ 2021-09-29 19:55:52 +02:00
Holger Vogt d9a140c213 Update for the caller to invoke shared ngspice
path to shared ngspice also via command line parameter
add some alter statement after bg_halt
some smaller fixes to outputs, messages upon exit etc.
2021-08-08 10:21:40 +02:00
Holger Vogt 896f7cbc6d Adding spinit with path (to be edited by the user) to code models 2021-08-06 12:31:16 +02:00
Holger Vogt 9ae6a76a05 Prepare ngspice-35 2021-07-22 20:38:24 +02:00
Holger Vogt fbab9a0fe2 Add an analog delay source for transient simulation
Internal circular memory of size tstop/tstep or user defined.
(aprox.) every tstep a value is stored.
Delay time in multiples of tstep, by control voltage or user defined.
Dc or ac sim will simply connect input to output.
2021-07-05 14:24:06 +02:00