Commit Graph

7333 Commits

Author SHA1 Message Date
Holger Vogt e165e59a58 Efficiency: Remove setting the random seed to behind the options selection
Evaluate '.options cshunt=xx' earlier to allow the following:
Set the option by calling INPpas4() during parsing the circuit,
before .ic is set.
Ckt and Task cshunt are still set, but their values are available
only too late for INPpas4(), but may be used by command 'option'
(w/o parameters) for assessing the options and their values.
2021-04-09 15:14:14 +02:00
Holger Vogt 64f6e24ed6 enable cshunt for MS Windows fftw and shared ngspice 2021-04-09 15:13:55 +02:00
Holger Vogt 254d9927d1 Adding capacitors, one per voltage node 2021-04-09 15:13:45 +02:00
Holger Vogt 00bc5b97a1 Prepare Cshunt: add a cpacitor to each voltage node
Function inppas4() will add the extra caps, to be done.
2021-04-09 15:13:38 +02:00
Holger Vogt f7d8271e6c Add some comments for inppas1,2,3 2021-04-09 15:13:32 +02:00
Holger Vogt 73fdba3f1c Speed enhancement while reading large PDKs:
Line concatenation used tprintf, which uses vsnprintf,
which is very inefficient in Linux, MINGW, but efficient
using MSVC. Thus for the others a function cat2strings() is
introduced, which uses memccpy().
2021-04-09 12:19:30 +02:00
Holger Vogt 1f6b97cd7b Restrict the limit for exp function (linear growth when exponent
is larger than 14, commit [93a76d]) to the PSPICE compatibility
mode.
2021-04-09 10:56:04 +02:00
Holger Vogt 83592c4564 unify the evaluation of '.options scale=xx'
.option in a netlist will override 'options'
from spinit, .spiceinit or a script
'.options scalm=xx' yields a warning, it is not supported.
2021-04-08 16:34:41 +02:00
dwarning 8b0ce0eeff Correct scaling for area and pj geometry scaled diode (level=3) 2021-04-08 16:34:28 +02:00
dwarning fe2139d44e Introduce element parameter handling for geometry scaled diode (level=3) 2021-04-08 16:34:19 +02:00
dwarning 5023f5c7c1 Correct parameter handling for geometry scaled diode (level=3) 2021-04-08 16:34:07 +02:00
dwarning 4772d7af5c First attempt for geometry scaled diode (level=3) 2021-04-08 16:33:57 +02:00
Holger Vogt 39ab3fa4b2 Remove unused prototype 2021-04-03 10:53:27 +02:00
Holger Vogt 9c749ddc1a Avoid type 'bool', as ist is a built-in type in C++, not
equaling  'int' which ngspice is using.

Change bool to BOOL and ad a
typedef int BOOL;
2021-03-28 23:01:16 +02:00
Holger Vogt 6d339a4444 Add missing references to svg.c 2021-03-28 12:14:33 +02:00
Holger Vogt 6f9f361063 linking with readline failed
after OS upgrade to Big Sur
Install readline from Homebrew
Edit configure flag with link to new readline:
--with-readline=/usr/local/opt
2021-03-22 15:48:05 +01:00
Holger Vogt 9aabe5019a remove deprecated storage class 2021-03-21 14:18:50 +01:00
Holger Vogt 4d51a926b8 re-enable PostScript/SVG to file by pushbutton
on the ngspice plot window, avoid crash due to double freeing.
2021-03-17 16:16:57 +01:00
Holger Vogt c46ded303f remove memory leak 2021-03-17 16:15:21 +01:00
Holger Vogt 8f90a65cba Plotting with feh in macOS failes with --magick-timeout,
so replace it by --conversion-timeout, which does not do
in Linux or Cygwin.
2021-03-17 12:11:01 +01:00
Holger Vogt dcb421d438 Remove memory leaks in the SVG code 2021-03-16 20:54:06 +01:00
Holger Vogt bbf9f6a1d1 Free tmalloced Cfg.strings[i] 2021-03-16 15:12:49 +01:00
Holger Vogt 844a3038fb variables like color1 may override thie svg_intopts and svg_stropts.
Unsetting the variables will reset to the default.
Malloced colors and cfg.strings will be freed again.
Examples do show more of the options.
2021-03-16 13:55:18 +01:00
Holger Vogt 4291b582c1 more examples 2021-03-16 11:04:26 +01:00
Holger Vogt 951a0af6ff Add a second call to svg_intopts 2021-03-16 11:04:17 +01:00
Holger Vogt 09d932cc14 Shift colorID evaluation to a place after svg_stropts is read.
Remove unused.
2021-03-16 11:04:06 +01:00
Holger Vogt 1ec7212d41 Update to plotfiles
Plotting with gnuplot, png, svg and PostScript files
2021-03-10 21:15:05 +01:00
Holger Vogt d2266cbf5b libtool versioning added for Linux shared ngspice.
And commented out immediately, because not compatible
to KiCad, which is linking to libngsice.so.0.0.0
2021-03-10 15:59:19 +01:00
Holger Vogt 93186794d1 clarify call to gnuplot on Linux/Cygwin 2021-03-10 15:57:08 +01:00
Holger Vogt a98c23385c enable variable 'nolegend' for gnuplot 2021-03-09 23:09:12 +01:00
Holger Vogt 5bf2422caa Another SVG example input file 2021-03-07 22:13:08 +01:00
Holger Vogt 47f8bc1589 PostScript example input file 2021-03-07 22:06:07 +01:00
Holger Vogt ec4be5141b if 'set nounits' is given, plotting of the units is suppressed
(they may be added manually to the y and x labels for SI conformity).
2021-03-07 22:03:04 +01:00
Holger Vogt b5bf9e5d9c remove unused 2021-03-07 15:58:04 +01:00
Holger Vogt 3c9c5322cb enable svg also for console app on Windows 2021-03-07 15:57:43 +01:00
Holger Vogt 25c560570c updates for Cygwin/Linux fonts and font size 2021-03-03 20:42:03 +01:00
Holger Vogt 0a9a65313e remove unused args 2021-03-02 18:15:33 +01:00
Holger Vogt 7ac77e818e X11: Add a button for writing an SVG file to the plot window.
Update button texts.
Add a function hardcopySVG to write the SVG file, called by
clicking the SVG button.
2021-03-02 18:11:07 +01:00
Holger Vogt 05e3c9a988 correct description 2021-03-02 18:08:36 +01:00
Holger Vogt 9eed75b192 WinGUI: Make the text output from com_hardcopy available immediately
by call to function UpdateMainText.

Enable color for postscript output.
2021-03-02 12:15:23 +01:00
Holger Vogt 2c23c9c528 use feh for plotting *.svg in Cygwin 2021-03-01 00:33:39 +01:00
Holger Vogt 0a0b31e36e examples for creating svg output and plotting 2021-02-28 19:57:23 +01:00
Holger Vogt cf6a190c76 Separate color and b&w
b&w in the plot window is not(yet) supported.
2021-02-28 19:34:51 +01:00
Holger Vogt 2257e40703 Select black&white, if appropriate
Return colorID to previous values after hardcopying.
2021-02-28 17:04:43 +01:00
Holger Vogt b9c0617439 svg hardcopy example 2021-02-28 08:21:30 +01:00
Holger Vogt 4ba84ec931 use colorN as for normal plots
color0 is background
svg_intops and svg_stropts may set all parameters
2021-02-28 08:21:13 +01:00
Holger Vogt a34aeaa242 modified from Giles Atkinson's patch:
use hardcopy entries to set variables
maybe overridden by stropts and intopts list variables
2021-02-28 08:20:57 +01:00
Holger Vogt 3b4e6ea123 separate svg and postscript handling 2021-02-28 08:20:42 +01:00
Holger Vogt 286570c746 separate svg and postscript
suitable text placement for svg
2021-02-28 08:20:21 +01:00
Holger Vogt 982464d590 add generation of svg graphics file
based on patch no. 97 by Giles Atkinson
2021-02-28 08:20:01 +01:00