Commit Graph

11110 Commits

Author SHA1 Message Date
Giles Atkinson 693a9df09f Add support for Verilator's --timing option, allowing use of delays
in Verilog source code.  Also add two parameters to d_cosim:
sim_args is used to pass string arguments to a Verilator simulation;
and lib_args is for future use.  In vlnggen, also check for two causes
of failure: a verilator error may lead to creation of interfering header
files; and misleading instances of verilated_shim.cpp can cause an obscure
failure (reported by Diarmuid Collins).
Use a generic name for the generated DLL in MSVC.CMD.
2024-11-02 22:29:54 +01:00
Giles Atkinson 4173d0e220 Allow trailing null connections to be omitted from XSPICE device
lines.  Also tidy some code,
2024-11-02 22:29:34 +01:00
Giles Atkinson 98076281c6 Changes to d_cosim to work with initial support for Icarus Verilog.
Fully resolve symbols on loading and tolerate attempts to set
output in the past.
2024-11-02 22:29:19 +01:00
dwarning 9c5507d1c8 vbic: have to load Vrxf/Itxf with value 2024-11-02 22:29:07 +01:00
dwarning 14402ea911 vbic: correct op reporting for excess phase model 2024-11-02 22:28:53 +01:00
dwarning 8c6fb7c5e0 format: rm misleading indentation 2024-11-02 22:28:39 +01:00
Holger Vogt 295be20859 Remove sourceinfo upon shared ngspice reset.
Remove memory leaks.
2024-11-02 22:28:21 +01:00
Holger Vogt a2ca4616b9 Memcpy only when p_word is not NULL
enable -fsanitize=address
2024-11-02 22:27:59 +01:00
Holger Vogt 28c501bfef Add #define RESMIN 1e-6 as a minimum resistor value 2024-11-02 22:27:44 +01:00
Holger Vogt a6240eed87 Stop the worker thread when running
Delete mutexes only after all other resets and delets.
2024-11-02 22:27:26 +01:00
Holger Vogt 250e9afd92 Set pl_lookup_table to NULL after freeing: allow another initialization 2024-11-02 22:27:08 +01:00
Holger Vogt fd72c3ce3e Bail out when state file is not found. 2024-11-02 22:26:53 +01:00
Holger Vogt d0ae65accf Add function ngSpice_Reset(void) to completely reset shared ngspice,
so that it may be restartet again by ngSpice_Init
2024-11-02 22:26:35 +01:00
Holger Vogt 4f8cfbf9f9 Update copyright 2024-11-02 22:26:20 +01:00
Holger Vogt cab4f8d3d6 File encoding is now UTF-8
change to letter µ
2024-11-02 22:22:22 +01:00
Mamoru TASAKA 099c0e65c2 misc/string.c: fix one byte ahead access in dup_string
In dup_string in misc/string.c , even if the destination
buffer is allocated with n_char bytes,
the source buffer `str` can be accessed up to only n_char bytes.
2024-11-02 22:22:06 +01:00
Holger Vogt a8c1104cfb 43+ developing towards ngspice-44 2024-11-02 22:21:51 +01:00
Brian Taylor 5b0c54a1ba Merge branch 'pre-master-44' into bt_dev 2024-11-02 11:18:20 -07:00
dwarning 47e3eac83c 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-11-02 16:58:56 +01:00
Brian Taylor 013ff65893 Merge branch 'pre-master-44' into bt_dev 2024-11-01 10:39:35 -07:00
Holger Vogt 3e6eb4bf6d New release_sh and debug_sh directories for making shared ngspice. 2024-11-01 11:53:41 +01:00
Holger Vogt 729ddd7c08 Add function ngSpice_nospiceinit(void) if you don't want to read .spiceinit 2024-10-30 13:37:45 +01:00
Holger Vogt a8eec8ee87 Bail out when the number of s parameter ports is less than 2. 2024-10-30 13:36:02 +01:00
Holger Vogt 7b3b36b1d9 Make the resistor name unique for a device with multiple unconnected nodes 2024-10-29 16:57:43 +01:00
Holger Vogt 5118369d20 Improve error message during setup of TXL or CPL 2024-10-28 12:41:14 +01:00
Holger Vogt 31b9075f88 If preprocessing is skipped, we still need the number of lines in the deck. 2024-10-27 15:18:34 +01:00
Holger Vogt 4847ce100e Prevent crash if number of lines is wrong/not available ... 2024-10-27 15:17:51 +01:00
Brian Taylor 31d513d57c Fix bug 483 again. Faulty merges of KLU changes for cider were
introduced in ngspice 42. These broke the fix.
2024-10-27 10:47:01 +01:00
Holger Vogt 73ce59aa84 Add a comment 2024-10-27 10:43:41 +01:00
Brian Taylor ffd3091325 Fix bug 483 again. Faulty merges of KLU changes for cider were
introduced in ngspice 42. These broke the fix.
2024-10-26 19:08:43 -07:00
Holger Vogt ceec478091 Vectors Cy_xxx are of type 'current'. 2024-10-26 23:25:02 +02:00
Brian Taylor 781e94b085 Merge branch 'pre-master-44' into bt_dev 2024-10-26 13:46:29 -07:00
Holger Vogt aa97a05f04 Use the correct type for each vector after S-parameter analysis.
Cy_1_1 is still missing (voltage as default).
2024-10-26 17:32:19 +02:00
Holger Vogt 8f6187b1ab Fix bug 711 reported by Sonia Edward 2024-10-25 23:41:42 +02:00
Holger Vogt 330ebb4018 Improve comment 2024-10-21 13:58:22 +02:00
Holger Vogt 9b8c7bd62f Fix bug no. 708, reported by Philip Sauvage. 2024-10-20 23:32:16 +02:00
Árpád Bűrmen 67df0c227b Minor change. 2024-10-17 17:09:52 +02:00
Árpád Bűrmen 106d2a93cf Minor change. 2024-10-17 17:09:36 +02:00
Árpád Bűrmen 45ed95d91e Minor change. 2024-10-17 17:09:20 +02:00
Árpád Bűrmen 759d3f86c1 OpenVAF-reloaded compiled model support. 2024-10-17 17:09:10 +02:00
Brian Taylor eb51bc90f7 Add save_files_only option to the gnuplot command.
The .plt and .data files are saved but gnuplot is not invoked.
For example:
  gnuplot name save_files_only plotargs
2024-10-10 15:21:10 -07:00
Brian Taylor 2cf6e80a70 Merge branch 'pre-master-44' into bt_dev 2024-10-10 11:23:33 -07:00
Holger Vogt 878ac0076a Allow plotting a single point in an ascii plot
(command .asciiplot)
2024-10-09 16:58:20 +02:00
Giles Atkinson 7c9ac42fd1 Fix Bug #698 -
"Initial transient solution assumes voltage source=0 even if it is not."
Cause was another error in ad5bb9eb8d, fix for Bug #607, which uncovered
an earlier latent bug.
2024-10-08 13:02:29 +02:00
Giles Atkinson e0079e1cd5 Improve an error message. 2024-10-08 13:02:21 +02:00
Giles Atkinson e658a0942b Try to clarify the mechanism of parameter substitution and add
an example of substituting an XSPICE vector parameter.
2024-10-08 13:02:06 +02:00
Brian Taylor 2232269217 Added: Error: Pole/zero analysis is not (yet) supported with 'option KLU'.
Use 'option sparse' instead.
2024-10-05 20:11:58 +02:00
briantofleeds 5b3b48b913 This does not fix noise analysis with klu.
It does add missing { and } when event-driven instances are not present.
Without this change CKTop will always be called again directly in NOISEan even
if CKTop was previously called by EVTop. This matches the intended
behavior before #ifdef KLU was added.
2024-10-05 20:11:46 +02:00
Holger Vogt 5493862a1d Some cosmetics 2024-10-05 20:05:54 +02:00
Holger Vogt 8422c1caa1 Revert the sign of ac_gain.real
Fix bug no 697, reported by Matthieu Guerquin-Kern
2024-10-05 19:59:43 +02:00