Commit Graph

927 Commits

Author SHA1 Message Date
Brian Taylor 13a3777aec Merge branch 'pre-master-47' into bt_dev 2026-04-02 12:00:27 -07:00
Holger Vogt 499c1d3dca We develop towards ngspice-47 2026-03-30 16:08:41 +02:00
Holger Vogt d93bc07c15 Prepare for ngspice-46 2026-03-25 13:59:09 +01:00
Holger Vogt cd14f85cde Remove ft_skywaterpdk, replace it by variable no_auto_braces 2026-03-25 13:33:52 +01:00
Holger Vogt aab3371f36 A memory leak occurs when command 'step' is followed by 'quit'
without having reached the final TSTOP.
New function DCtran_step_quit() removes the leak.
2026-03-25 13:33:17 +01:00
Holger Vogt ab5010506e A memory leak occurs when command 'step' is followed by 'quit'
without having reached the final TSTOP.
New function DCtran_step_quit() removes the leak.
2026-03-21 19:57:16 +01:00
Holger Vogt 7d0dce0e70 Update to warning messages if osdi or code model files cannot be loaded 2026-03-20 10:57:23 +01:00
Holger Vogt 81d3812db0 Add a user-settable variable measureprec to set the number of digits
when printing the measure outputs.
Internally this is a global variable measure_precision.
Enable all measure commands to recognize measure_precision when
printing an output.
Default value is 5 (yielding 6 digits after .?).
2026-03-20 10:28:28 +01:00
Holger Vogt 2301d2e6aa Update to warning messages if osdi or code model files cannot be loaded 2026-03-10 23:21:59 +01:00
Holger Vogt d163db99c7 Add a user-settable variable measureprec to set the number of digits
when printing the measure outputs.
Internally this is a global variable measure_precision.
Enable all measure commands to recognize measure_precision when
printing an output.
Default value is 5 (yielding 6 digits after .?).
2026-02-07 13:21:54 +01:00
Holger Vogt ab87bd57a4 Re-enable compiling with clang
Patch thanks to Gon Solo, issue 826
2026-02-03 14:25:18 +01:00
Holger Vogt b25ff08307 Moving window filtering with function 'newvec = mtimeavg(vec)'
Window of fixed time width given by 'set mtimeavgwindow=400u'
Length and scale of newvec resembles the original vetor vec.
Large vec and large mtimeavgwindow take their time.
OpenMP is used if available.
2026-02-03 14:23:32 +01:00
Holger Vogt 8737839f41 Add a function m3avg(vector) for filtering of trap ringing.
Moving average with D(n) = (C(n-1)/2 + C(n) + C(n+1)/2)/2
2026-02-03 14:20:08 +01:00
Holger Vogt 8d21c8e79b Make pred available always 2026-02-03 14:19:42 +01:00
Holger Vogt fe55cbe69f Enable optional voltage based truncation error correction.
This is selectable as 'option newtrunc' (--enable-Predictor is required)

Remove --enable-NEWTRUNC

Add three option parameters (default):
lteTrtol (500), lteReltol (1e-3), lteAbstol (1e-6)

Add new error function for TRAP, similar to GEAR
 (tentative, to be improved), in ckttrun.c

Enable PREDICTOR as default with Visual Studio.
2026-02-03 14:18:55 +01:00
Holger Vogt 4958221e92 Update comment to cktnumstates 2026-02-03 14:16:48 +01:00
Holger Vogt abdd936cb8 Add missing function prototypes 2026-02-03 14:15:52 +01:00
Holger Vogt 6304f0124b Remove unused functions from the IFfrontEnd struct. 2026-02-03 14:13:54 +01:00
Holger Vogt 6004d9aef9 Improve comments 2026-02-03 14:08:28 +01:00
Holger Vogt 48d28f9f4a Entries to old CLUSTER code removed. 2026-02-03 14:07:15 +01:00
Holger Vogt e25c70b2bb add new function gettok_node_br which adds braces { } on its list
of ignored characters.
2026-02-03 13:57:23 +01:00
Holger Vogt 0648d5e844 Spelling
Found by Lintian, patches provided by C. Schoenert
2026-02-03 13:55:23 +01:00
Holger Vogt 49b35ed3fc We are developing towards ngspice-46 2026-02-03 13:52:36 +01:00
Holger Vogt 857f826b0a Re-enable compiling with clang
Patch thanks to Gon Solo, issue 826
2026-02-03 13:42:25 +01:00
Holger Vogt 14363ba45a Moving window filtering with function 'newvec = mtimeavg(vec)'
Window of fixed time width given by 'set mtimeavgwindow=400u'
Length and scale of newvec resembles the original vetor vec.
Large vec and large mtimeavgwindow take their time.
OpenMP is used if available.
2026-01-20 15:24:52 +01:00
Holger Vogt 66dfc915e9 Add a function m3avg(vector) for filtering of trap ringing.
Moving average with D(n) = (C(n-1)/2 + C(n) + C(n+1)/2)/2
2025-12-28 23:19:58 +01:00
Holger Vogt a12bedb835 Make pred available always 2025-12-28 12:47:55 +01:00
Holger Vogt 99bddad736 Enable optional voltage based truncation error correction.
This is selectable as 'option newtrunc' (--enable-Predictor is required)

Remove --enable-NEWTRUNC

Add three option parameters (default):
lteTrtol (500), lteReltol (1e-3), lteAbstol (1e-6)

Add new error function for TRAP, similar to GEAR
 (tentative, to be improved), in ckttrun.c

Enable PREDICTOR as default with Visual Studio.
2025-12-27 22:46:27 +01:00
Holger Vogt 9fef242c50 Update comment to cktnumstates 2025-12-19 12:56:11 +01:00
Holger Vogt 83e2b284f3 Add missing function prototypes 2025-12-03 23:03:42 +01:00
Holger Vogt d93a11b8ea Remove unused functions from the IFfrontEnd struct. 2025-11-17 23:56:50 +01:00
Holger Vogt b8325efe24 Improve comments 2025-10-21 22:17:35 +02:00
Holger Vogt b260b4bc27 Entries to old CLUSTER code removed. 2025-10-19 22:27:21 +02:00
Holger Vogt 537116424f add new function gettok_node_br which adds braces { } on its list
of ignored characters.
2025-09-19 16:53:11 +02:00
Holger Vogt 8249142506 Spelling
Found by Lintian, patches provided by C. Schoenert
2025-09-13 12:18:05 +02:00
Holger Vogt 724dc77b91 Prepare bug-fix release ngspice-45.2. 2025-09-05 23:59:35 +02:00
Holger Vogt 0e8cc00070 We are developing towards ngspice-46 2025-09-02 17:07:07 +02:00
Holger Vogt 86ea9fee8a Prepare for ngspice-45 2025-08-29 15:01:45 +02:00
Holger Vogt 508ab3bd8c New CPPDUALS: re-enable compiling with CYGWIN 2025-07-29 10:48:46 +02:00
Holger Vogt 7f8f510e91 add missing makefile.am, copied from previous cppduals/duals 2025-07-29 10:48:31 +02:00
Holger Vogt 6af3cfac72 New cppduals from https://gitlab.com/tesch1/cppduals
downloaded may 1st, 2025
2025-07-29 10:48:21 +02:00
Holger Vogt 878d7e1ff9 Add function cm_get_neg_node_name
as cm_get_node_name delivers only the pos node.
2025-07-29 10:39:47 +02:00
Giles Atkinson 16aadef4c7 Add two new functions to the shared library API.
ngSpice_Raw_Evt() requests a callback that returns all the
XSPICE events for a specific node that occurred during the last timestep.
ngSpice_Decode_Evt() provides numeric and string versions of
the event data.  Also fix some warnings in sharedspice.c.
2025-05-24 11:27:57 +02:00
Giles Atkinson 44b620658e 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-05-24 11:27:37 +02:00
Giles Atkinson 5790dc2f4d Add two new XSPICE functions: EVTnew_value_call() and
EVTcancel_value_call().  EVTnew_value_call() specifies a function
to be called for each confirmed new value produced on an XSPICE
event node.  To be used to add event node support for iplot.
2025-05-24 11:27:03 +02:00
Árpád Bűrmen d659943d77 Per-device load timing support. 2025-05-24 10:56:33 +02:00
Holger Vogt 1a1d2558e8 We are developing towards ngspice-45 2025-05-24 10:50:59 +02:00
Holger Vogt 80d22fc802 Prepare the bug-fix release 44.2 2025-01-11 11:55:56 +01:00
Holger Vogt 8eea1f0b41 Prepare ngspice-44 2024-12-26 15:01:10 +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