Commit Graph

3975 Commits

Author SHA1 Message Date
Brian Taylor fdf1a7d791 Merge branch 'pre-master-45' into bt_dev 2025-04-18 08:55:47 -07:00
Giles Atkinson cd6784a079 Event nodes can be plotted with offset by "iplot", like the
digitop option for "plot".  Offsets may be explicit or automatic with "-o".
A variable to set the offset is shared with "plot".  In plotcurv.c
suppress some warnings that should not apply to event nodes and do
not falsely claim that some vectors have only one x-value.
2025-04-12 18:20:19 +02:00
Giles Atkinson 1d435daed7 Support use of XSPICE event nodes with iplot.
In graf.c, local function set() is renamed setflag() to avoid conflict
with a newly-visible global function with the same name.
2025-04-12 18:20:19 +02:00
Holger Vogt f4963b1ada MS Windows: Get a canonical paths name: Important if
path length exceeds MAX_PATH, might happen when using  PDKs

Patch provided by  kreijstal
2025-04-12 18:12:54 +02:00
Holger Vogt c264b71e22 re-enable adding variables (path names) to list variable "sourcepath" 2025-04-10 23:59:22 +02:00
Holger Vogt 3bf94321e6 Improved error message, not using internal 'circbyline' 2025-04-10 23:51:34 +02:00
Holger Vogt 1445a51a2e New command 'save nointernals' to suppress outputting and
saving of internal device nodes, espicially needed for PSP
OSDI model. Output file size reduction is e.g. from 20GB to 200MB.
2025-03-28 14:20:32 +01:00
Brian Taylor 9b430ae6e4 Merge branch 'pre-master-45' into bt_dev 2025-03-27 16:20:11 -07:00
Holger Vogt c0775705e5 PS compatibility: MOS level 5 and Bip level 2
will create an error. ngspice then bails out, as no
such models are available. Hint to use OpenVAF, OSDI.
2025-03-10 12:55:29 +01:00
Holger Vogt 16fbe0fb8b Create a vector thdnm from THD calculation, e.g. thd11
New vector fournosave: if set, suppress creation of
vectors thd11 and fourier, usefull when writing a raw file.
2025-03-10 12:53:40 +01:00
Brian Taylor e7a7e8c64c Merge branch 'pre-master-45' into bt_dev 2025-03-01 17:35:38 -08:00
Giles Atkinson 83d3890490 Fix a bug where a node name is mis-identified as the model for
an OSDI device and remove a limit on node count.
Problem was reported by user Sam in ngspice-users.
2025-03-01 13:45:01 +01:00
Giles Atkinson 317378085b Tidy code in get_number_terminals(), removing unneeded copying. 2025-03-01 13:44:50 +01:00
Giles Atkinson fc76d4d63b Always check for GUI events during simulation, if any graphs exist.
Previously this check was only made if an iplot window existed.
The 100W.sp example displayed frozen windows with X11-based plotting.
2025-03-01 13:44:43 +01:00
Brian Taylor 2ce35885ff Merge branch 'pre-master-45' into bt_dev 2025-02-18 21:44:39 -08:00
Holger Vogt 0e032f30b1 Add a descriptive comment 2025-02-17 10:28:12 +01:00
Brian Taylor c3f798874d Merge branch 'pre-master-45' into bt_dev 2025-02-16 12:02:33 -08:00
Holger Vogt d7cb5c92ba 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-02-09 19:54:08 +01:00
Holger Vogt 5db715296d Remove ADMS related code 2025-02-07 14:03:51 +01:00
Holger Vogt 656511a6f9 Revert "Exclude terminal code from MINGW compiling,"
This reverts commit 0c4347bf19.
2025-02-07 13:04:51 +01:00
Giles Atkinson 1d8bec8909 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-02-07 13:01:14 +01:00
Holger Vogt 0c4347bf19 Exclude terminal code from MINGW compiling,
as locations of curses.h has changed and linking
to libncurses.a is not possible.
2025-02-04 09:38:15 +01:00
Brian Taylor 932f834a4c Merge branch 'pre-master-45' into bt_dev 2025-01-26 10:00:29 -08:00
Holger Vogt d71794bdbe Prevent a crash in case of incomplete stoks[] 2025-01-26 17:05:04 +01:00
Holger Vogt 51f5767666 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-01-19 16:53:37 +01:00
Holger Vogt 7353a2c81c Align title line to the numbers following 2025-01-18 23:56:33 +01:00
Holger Vogt b3460a7d23 Allow m parameter for B source with current output
Fixes bug no. 734
2025-01-17 14:08:17 +01:00
Giles Atkinson 8d28b17ef8 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-01-16 17:55:02 +00:00
b'Holger Vogt 0f3e45fb08 Merge /u/arpadbuermen/ngspice/ branch vadng-pre-45 into pre-master-45
https://sourceforge.net/p/ngspice/ngspice/merge-requests/27/
2025-01-14 10:48:24 +00:00
Holger Vogt 212660c7e9 Add to debug-out.txt an output without source file information.
Thus cluttering the view is reduced.
2025-01-10 15:15:58 +01:00
Holger Vogt 539ade0f38 If C= or Q= is omitted in the instance line of a behavioral capacitor,
select as default the C= formulation, not the Q= formula..
2025-01-10 10:59:56 +01:00
Árpád Bűrmen e1677a18c4 Per-device load timing support. 2025-01-10 08:16:12 +01:00
Giles Atkinson 8a9fd1eff2 Using XFlush() instead of XSync() avoids a round trip to the X server
on each call to DevUpdate().  That speeds plotting when using XQuartz
on Macintosh and makes iplot useable there.
2025-01-08 19:54:52 +01:00
Holger Vogt caa0a7f4a8 Fix a crash due to buggy user input.
Improve error message.
Reported in
https://gitlab.com/kicad/code/kicad/-/issues/19439#note_2277932762
2025-01-01 15:05:14 +01:00
Brian Taylor 0368a71f62 Merge branch 'pre-master-45' into bt_dev 2024-12-31 17:30:00 -08:00
Holger Vogt 0f5852afdb Revert "iplot on macOS is totally slow, thus unusable, due to problems with"
This reverts commit c79eb348a2.
2024-12-30 16:27:00 +01:00
Holger Vogt c79eb348a2 iplot on macOS is totally slow, thus unusable, due to problems with
repeated calls to XSync. Skipping them still allows iplotting.
2024-12-30 13:47:01 +01:00
Holger Vogt ce8480c690 Enable improved error message with nested .include. 2024-12-28 14:43:01 +01:00
Holger Vogt c7ee676e3d Improve the error message by hinting to the source of the error. 2024-12-28 14:42:49 +01:00
Holger Vogt a4e443fcce precautionary prevent passing instances which internally have got
upper case lettering. Removes a crash reported in
https://gitlab.com/kicad/code/kicad/-/issues/18648.
2024-12-27 11:18:00 +01:00
Holger Vogt ffde17441b Don't quote the subcircuit name in an X line 2024-12-27 11:15:09 +01:00
Giles Atkinson d549b882df Fix a crash that happens after an iplot window is zoomed and closed
while active.
2024-12-27 11:14:53 +01:00
Brian Taylor d631d7bc04 Merge branch 'pre-master-44' into bt_dev 2024-12-15 09:08:44 -08:00
Holger Vogt 1e4a6ac8b8 avoid memory leak by appending, not prepending the word 2024-12-15 10:29:32 +01:00
Holger Vogt a6ad2470f1 Add a flag compmod to struct card.
Set compmod to 1 if netlist line is included by command 'incpslt'
Guard special newcompat.hs sections by compmod
2024-12-15 10:29:23 +01:00
Holger Vogt 8b5a046cdb Remove again, not needed 2024-12-15 10:26:20 +01:00
Holger Vogt 8e9a115aa9 Update/remove comment(no longer valid) 2024-12-15 10:26:08 +01:00
Holger Vogt b7092ff19b Revert ABORTPROC to bool, where appropriate 2024-12-15 10:25:51 +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
Holger Vogt 04489d6d53 avoid memory leak by appending, not prepending the word 2024-12-13 15:11:49 +01:00