lorenzo
66797fdebc
Fixes a memory corruption bug resulting from improper parsing
...
and accessing of array parameters in OSDI models
2026-02-03 14:17:59 +01:00
Holger Vogt
af28d2416d
free(info.errors) leads to a assertion error on the heap.
...
On Windows it reads:
is_block_type_valid(header->_block_use).
Memory for info.errors is allocated in the osdi device dll
during the call to
descr->setup_instance((void *)&handle, inst, model, temp,
connected_terminals, sim_params, &init_info);
(in fcn OSDIsetup(), line 254 of osdisetup.c).
Therefore ngspice is not the owner of this memory and thus cannot free it.
Fixes bug no. 803.
2026-02-03 13:53:46 +01:00
dwarning
6aba1f302b
allow showmod command for verilog-a models - feature request #100
2025-07-29 10:52:14 +02:00
Árpád Bűrmen
1b40f0d444
initializeLimiting -> iniLim, reorder sim_params for faster OSDI device evaluation.
2025-05-24 10:57:46 +02:00
Árpád Bűrmen
727f11edf0
Fixed incorrect OSDItrunc() state index when $limit is present.
2024-12-15 10:28:33 +01:00
Árpád Bűrmen
bf6ed080cf
Verilog-A $simparam("tnom") is in degrees Celsius.
...
Adjusted OSDI interfaces to reflect that.
2024-12-15 10:28:19 +01:00
Árpád Bűrmen
778b730393
Exposed more $simparams via OSDI.
...
initializeLimiting, epsmin, reltol, vntol, abstol
2024-12-15 10:28:06 +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
Árpád Bűrmen
16798edb36
Minor change.
2024-11-02 22:43:35 +01:00
Árpád Bűrmen
5f8ab0eb67
Minor change.
2024-11-02 22:43:28 +01:00
Árpád Bűrmen
9d2e2f77c0
Minor change.
2024-11-02 22:43:22 +01:00
Árpád Bűrmen
b40dcaa18d
OpenVAF-reloaded compiled model support.
2024-11-02 22:43:06 +01:00
Holger Vogt
1fef3835c9
Fix common typo: unkown -> unknown
2024-07-09 14:50:21 +02:00
Holger Vogt
5d207f7b43
Add environmental variable NGSPICE_OSDI_DIR. It may contain
...
a path for *.osdi files (compiled Verilog-A models). The search
sequence for a *.osdi file now is:
Absolute path (if any)
Linux home directory ~/
Path in NGSPICE_OSDI_DIR
Path of netlist loaded
Path of executable ngspice.exe
Path of 'Current working directory'
2024-05-01 10:33:14 +02:00
dwarning
a1210a257d
use only magnitudes in ac noise analysis even if openvaf compiled models deliver negative noise contributions
2024-03-26 19:59:23 +01:00
Holger Vogt
ace932e1b9
Patches provided by Carsten Schoenert: Misspellings, File access
2023-12-31 13:51:05 +01:00
Holger Vogt
d060cb82af
typo
2023-11-17 13:57:39 +01:00
dwarning
4e1452cdb7
rm compiler warnings
2023-11-04 19:36:31 +01:00
Pascal Kuthe
c21f87051a
always compute osdi noise powers
...
ngspice will reuse operating points for noise analysis so we can not trust
the mode flags
2023-11-04 19:36:30 +01:00
Pascal Kuthe
f66e0bf2ac
implement osdi noise support
2023-11-04 19:36:30 +01:00
Holger Vogt
9d84138216
Remove memory leak by not mallocing unused node_ids.
...
Remove some compiler warnings.
2023-09-09 23:35:54 +02:00
Holger Vogt
750d92c493
Fix a bug, not finding any instance parameters for PSP or R2_CMC
...
If already aligned, return input value, not 0.
2023-08-16 11:14:26 +02:00
Pascal Kuthe
499634df47
integrate OSDI with KLU
2023-08-16 11:14:25 +02:00
Holger Vogt
d658e0427c
Enable compilation with MSVC (alignof seems to be available only for C++)
2023-08-16 11:14:24 +02:00
Holger Vogt
6eb7e0ec82
Remove unused variable
2023-08-13 11:04:34 +02:00
Pascal Kuthe
e5d1885e39
make accessible
2023-05-27 10:47:11 +02:00
Holger Vogt
6c9994ea9f
Remove linker warnings in MSVC
2023-05-27 10:42:12 +02:00
dwarning
f34ff7e63c
Revert "implement typedpnjlim as optional limiter for verilog-a models"
...
This reverts commit f73d3b20a0 .
2023-03-18 22:31:04 +01:00
Markus Mueller
0caf1aa815
(fix) CALC_OP during transient analysis in OSDI interface
2023-03-18 14:34:37 +01:00
Holger Vogt
f83c89cce7
When path is NULL, we don't need to free it.
2023-03-18 14:33:59 +01:00
Markus Mueller
bd30bd4e85
fix memory leak more rigorously
2023-03-18 14:33:44 +01:00
Markus Mueller
d495333578
fix small memory leak in OSDI interface
2023-03-18 14:33:34 +01:00
dwarning
7ca305804d
ret variable only used for openMP enabled
2023-03-18 14:31:17 +01:00
dwarning
f73d3b20a0
implement typedpnjlim as optional limiter for verilog-a models
2023-02-03 12:57:53 +01:00
Pascal Kuthe
8063e56fdf
osdi: fix sigfault when using aliasparam
2023-02-03 12:07:11 +01:00
Holger Vogt
26cf1a7a57
max_align_t is used to examine the largest alignment requirement,
...
and it is expected to check the alignment value via alignof, not sizeof.
Otherwise, __attribute__((aligned)) can complain as required alignment
being invalid, e.g. on s390x.
Patch provided by Mamoru Tasaka, Fedora
2023-02-01 13:10:53 +01:00
holger
b3676bb763
enable make dist
2023-01-30 13:09:15 +01:00
Holger Vogt
167c708e69
Add searchpath for *.osdi relative to ngspice executable
2023-01-27 16:10:28 +01:00
Holger Vogt
be6bd990db
Error message to stderr
2023-01-27 16:09:19 +01:00
Pascal Kuthe
d0c35512ab
properly abort for invalid OSDI paramters
2023-01-23 12:04:10 +01:00
Holger Vogt
653db022ea
better comment
2023-01-20 15:08:26 +01:00
Holger Vogt
3260492987
Enhance the search path for osdi files: when not found rel. to
...
inputdir, search rel. to current working directory.
2023-01-20 15:08:14 +01:00
Francesco Lannutti
167ff74422
enable compiling without XSPICE on specific OSs
2023-01-09 16:32:54 +01:00
Francesco Lannutti
036775efa5
OSDI: fix const declaration, unused variables
2023-01-09 16:32:30 +01:00
Pascal Kuthe
b285fa6e1c
fix opvar readout
2022-12-27 14:08:46 +01:00
Pascal Kuthe
06229c2a46
fix typos
2022-12-27 14:08:26 +01:00
Pascal Kuthe
3be143423a
add openmp support for osdi
2022-12-27 14:08:08 +01:00
Holger Vogt
771155e463
Prevent double definition error when both OSDI and XSPICE are enabled.
2022-12-27 14:04:09 +01:00
Holger Vogt
f75e970ecf
Initialze sim_param_vals
2022-12-27 13:56:24 +01:00
Holger Vogt
77a86647f7
remove __attribute__, replace by __declspec
2022-12-27 13:55:53 +01:00