Commit Graph

9162 Commits

Author SHA1 Message Date
Holger Vogt 612a924ea3 Reformat spoutput.c
Replace tabs by spaces
2025-05-24 11:22:47 +02:00
Holger Vogt 46e4a67079 Some cosmetics for readability:
replace tabs by spaces
2025-05-24 11:22:37 +02:00
Holger Vogt 8d9988424b Fixes bug by patch 124 offered by kreijstal 2025-05-24 11:22:30 +02:00
Brian Taylor 08aff1ee17 Fix memory leak of parm when there is a closing ). 2025-05-24 11:22:16 +02:00
dwarning 34046a29c1 VDMOS: use Vdsat in mobility reduction formula 2025-05-24 11:22:09 +02:00
Holger Vogt 243bdff377 Formatting: tabs to spaces 2025-05-24 11:22:01 +02:00
Holger Vogt 7cf0129254 Add a descriptive comment 2025-05-24 11:21:52 +02:00
Árpád Bűrmen a8e54dfb31 Fixed MOS9 scaling. 2025-05-24 11:21:39 +02:00
Árpád Bűrmen cc8183a96c Fixed MOS3 scaling. 2025-05-24 11:21:32 +02:00
Árpád Bűrmen fcbee261ac Fixed MOS2 scaling. 2025-05-24 11:21:26 +02:00
Árpád Bűrmen 8e2859d30d Fixed MOS1 noise scaling. 2025-05-24 11:21:19 +02:00
dwarning fed39f18c9 diode: introduce few parameter aliases for compatibility to other simulators 2025-05-24 11:19:48 +02:00
Holger Vogt ef00416ebf Add a section without source info to the debug output.
Truncate .model lines in this section, as .model lines with
several hundred parameters may mask the relevant information.
2025-05-24 11:19:08 +02:00
Giles Atkinson f8c9da5ed5 The VPI module path should be first in the lib_args parameter. 2025-05-24 11:18:47 +02:00
Giles Atkinson 6c518d4212 Fix an infinite loop with "eprvcd -a" and a misleading comment.
The command now works without any event nodes.
2025-05-24 11:18:37 +02:00
Giles Atkinson 027fb7e9e8 Code to suppress a spurious warning of a non-existent parameter,
missed from e858ca9465.
2025-05-24 11:18:23 +02:00
dwarning ae1437cb52 VBIC: simplify nqs derivatives 2025-05-24 11:18:08 +02:00
Holger Vogt dd07008b55 Remove ADMS related code 2025-05-24 11:17:56 +02:00
Holger Vogt 216f462583 Automtically set optran step time for at least 50 iterations 2025-05-24 11:17:42 +02:00
Giles Atkinson ddd14cf84c Do not include term.h and curses.h in terminal.c without checking that
they exist.  Modern ncurses does not need curses.h to compile term.h
so that header has been removed.  Also make ncurses the last choice
when looking for tputs().
2025-05-24 11:17:25 +02:00
Giles Atkinson 5cfd87d6ad Do not link with the libraries needed for Ngspice itself. 2025-05-24 11:14:38 +02:00
Holger Vogt f553469224 Remove adms, ingnore option
Clears bug 736
2025-05-24 11:14:12 +02:00
Holger Vogt 2862d243d7 Add two simple Skywater PDK examples, inverter and ISCAS85 C7552 2025-05-24 11:13:43 +02:00
dwarning 20334c495c VBIC: lean and mean code revision 2025-05-24 11:05:58 +02:00
dwarning 22ef170bac VBIC: fix NQS problems in transient simulation by implementing adjunct network for excess phase 2025-05-24 11:05:50 +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
Giles Atkinson a50562430c Add .dylib file extension and improve some messages in d_cosim.
On Macos, the command "ghdl -e -shared ..." creates .dylib files.
2025-05-24 11:05:22 +02:00
Giles Atkinson f471461035 When parsing a XSPICE string-valued model parameter, break only
on a closing quote, string end or white space (if unquoted) and
unquoted ']' when parsing an array.  That allows generic value overrides
for GHDL models to pass through: "-gVar=value".  Previously, the string
was terminated on '='.  Also remove some dead and non-functional code.
2025-05-24 11:05:13 +02:00
Giles Atkinson 9786d3b8e2 Improve checking of XSPICE model parameters and tidy code.
Checking for null values moves from per-instance code to
per-device code, potentially removing duplicate error messages.
Limits on parameter values and sizes of array parameters that are
specified in the IFS files are now actually checked.
2025-05-24 11:04:55 +02:00
Brian Taylor 4149edd146 Fix circuits so that gtkwave tests run on MacOS. Add encoder/decoder example. 2025-05-24 11:04:13 +02:00
Brian Taylor 00ad25fbc9 Fix d_process named pipes example. Use the correct gtkwave command for MacOS.
The following is also required:
commit 527b8378e8
Author: Brian Taylor <lbwnet@comcast.net>
Date:   Wed Apr 10 13:24:48 2024 -0700

    Fix circuits so that gtkwave tests run on MacOS. Add encoder/decoder example.
2025-05-24 11:03:52 +02:00
Holger Vogt 2afd3d1ea8 Prevent a crash in case of incomplete stoks[] 2025-05-24 11:03:29 +02:00
Árpád Bűrmen 91040891f9 Temperature handling inconsistency in jfetnoise.c fixed. 2025-05-24 11:03:13 +02:00
Holger Vogt 796b4fd634 Fixes wrong @bxxx[i] return values of B source, ignoring the m parameter.
Reported in bug 734 by Stefan.
2025-05-24 11:00:32 +02:00
Giles Atkinson fd3827af40 Fix ordering of parameter definition and use.
Icarus Verilog no longer accepts use-before-definition.
Also slightly expand the README for Icarus Verilog examples.
2025-05-24 11:00:18 +02:00
Holger Vogt 0c2a287d3c Allow .probe I(XU1)
For device with more than 2 nodes, and alli not set, the vcurr_xxx
nodes did contain a probe_int_ section which made them to be
not saved. While o.k. for power measurement, this was not o.k. for
measuring current.
2025-05-24 11:00:11 +02:00
Holger Vogt 1abeb1290b Align title line to the numbers following 2025-05-24 10:59:47 +02:00
Holger Vogt c8dc858f9e use effective gate voltage 2025-05-24 10:59:39 +02:00
dwarning 3da74cacb6 VDMOS: use effektive Gatespannung for mobility reduction of Beta 2025-05-24 10:59:28 +02:00
Holger Vogt 26b197df33 Allow m parameter for B source with current output
Fixes bug no. 734
2025-05-24 10:59:04 +02:00
Holger Vogt edecf91437 options are not required 2025-05-24 10:58:45 +02:00
Giles Atkinson 933b5a4826 Use shell tests instead of AC_CHECK_HEADERS to find readline headers
on MacOS and silence complaints about non-literal header paths.
2025-05-24 10:58:30 +02:00
Giles Atkinson 47d2f4eb96 Fix warnings from autoconf by running the autoupdate tool and
adding an argument to AC_PROG_LEX.  The minimum required autoconf
version is set to 2.70 as that was the introduction of the
AC_PROG_LEX argument.
2025-05-24 10:58:18 +02:00
Giles Atkinson afb399a1f0 Fix Bug #733 -
"Pre-master-45 hangs forever on a circuit that works on older versions."
That was an infinite loop when parsing a line with just "*#",
introduced by commit fb63573b6b.  Also add some comments.
2025-05-24 10:58:08 +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 d659943d77 Per-device load timing support. 2025-05-24 10:56:33 +02:00
dwarning 457f3e87c6 .exe files are not part of the source code 2025-05-24 10:56:16 +02:00
Holger Vogt 7ecb5a5d45 Add some more debug output. 2025-05-24 10:56:03 +02:00
Holger Vogt 7e27bddc34 Remove unused code. 2025-05-24 10:55:43 +02:00
Holger Vogt e5d4d7d63f Add to debug-out.txt an output without source file information.
Thus cluttering the view is reduced.
2025-05-24 10:55:18 +02:00