prepare release 24
This commit is contained in:
parent
0511b35114
commit
271d49ada1
92
INSTALL
92
INSTALL
|
|
@ -3,9 +3,9 @@ Ngspice installation instructions
|
||||||
|
|
||||||
Table of contents
|
Table of contents
|
||||||
|
|
||||||
1 Ngspice installation
|
1 Ngspice installation (LINUX)
|
||||||
1.1 Prerequisites
|
1.1 Prerequisites
|
||||||
1.2 Install from tarball (e.g. ngspice-23.tar.gz)
|
1.2 Install from tarball (e.g. ngspice-24.tar.gz)
|
||||||
1.3 Install from CVS
|
1.3 Install from CVS
|
||||||
1.4 Advanced Install
|
1.4 Advanced Install
|
||||||
1.4.1 Most useful options
|
1.4.1 Most useful options
|
||||||
|
|
@ -22,14 +22,13 @@ Table of contents
|
||||||
9.1 How to make ngspice with MINGW and MSYS
|
9.1 How to make ngspice with MINGW and MSYS
|
||||||
9.2 make ngspice with MS Visual Studio 2008
|
9.2 make ngspice with MS Visual Studio 2008
|
||||||
9.3 make ngspice with pure CYGWIN
|
9.3 make ngspice with pure CYGWIN
|
||||||
9.4 make ngspice with CYGWIN and external MINGW32
|
9.4 ngspice console app with MINGW or CYGWIN
|
||||||
9.5 make ngspice with CYGWIN and internal MINGW32 (use config.h made above)
|
|
||||||
|
|
||||||
|
|
||||||
This file describes the procedures to install ngspice from sources.
|
This file describes the procedures to install ngspice from sources.
|
||||||
|
|
||||||
|
|
||||||
1 Ngspice Installation
|
1 Ngspice Installation (LINUX, maybe others)
|
||||||
====================
|
====================
|
||||||
|
|
||||||
1.1 Prerequisites
|
1.1 Prerequisites
|
||||||
|
|
@ -52,14 +51,14 @@ This file describes the procedures to install ngspice from sources.
|
||||||
information on ngspice and its usage.
|
information on ngspice and its usage.
|
||||||
|
|
||||||
|
|
||||||
1.2 Install from tarball (e.g. ngspice-23.tar.gz)
|
1.2 Install from tarball (e.g. ngspice-24.tar.gz)
|
||||||
|
|
||||||
This covers installation from a release distribution (for example
|
This covers installation from a release distribution (for example
|
||||||
ngspice-23.tar.gz, the so called tar ball).
|
ngspice-24.tar.gz, the so called tar ball).
|
||||||
|
|
||||||
After downloading the tar ball to a local directory unpack it using:
|
After downloading the tar ball to a local directory unpack it using:
|
||||||
|
|
||||||
$ tar -zxvf ngspice-23.tar.gz
|
$ tar -zxvf ngspice-24.tar.gz
|
||||||
|
|
||||||
Now change directories in to the top-level source directory (where this
|
Now change directories in to the top-level source directory (where this
|
||||||
INSTALL file can be found).
|
INSTALL file can be found).
|
||||||
|
|
@ -161,7 +160,7 @@ This file describes the procedures to install ngspice from sources.
|
||||||
--enable-adms
|
--enable-adms
|
||||||
ADMS is an experimental model compiler that translates
|
ADMS is an experimental model compiler that translates
|
||||||
Verilog-A compact models into C code that can be compiled into
|
Verilog-A compact models into C code that can be compiled into
|
||||||
ngspice. This is (as of ngspice-23) still experimental, some
|
ngspice. This is (as of ngspice-24) still experimental, some
|
||||||
features (e.g. noise) are missing. If you want to use it, please
|
features (e.g. noise) are missing. If you want to use it, please
|
||||||
refer to the ADMS section on ngspice web site.
|
refer to the ADMS section on ngspice web site.
|
||||||
|
|
||||||
|
|
@ -438,14 +437,13 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
|
|
||||||
9.1 How to make ngspice with MINGW and MSYS
|
9.1 How to make ngspice with MINGW and MSYS
|
||||||
|
|
||||||
Creating ngspice with MINGW is now a straight forward procedure,
|
Creating ngspice with MINGW is a straight forward procedure,
|
||||||
if you have MSYS/MINGW installed properly. Unfortunately this is rather
|
if you have MSYS/MINGW installed properly. You will need some enhancements
|
||||||
tedious because you will need several enhancements to the standard install,
|
to the standard install (FLEX and BISON have to be made available in MSYS).
|
||||||
especially if you want to include XSpice. Some links are given below which
|
Some links are given below which describe the procedures.
|
||||||
describe the procedures.
|
|
||||||
|
|
||||||
Installing from the tarball, e.g. ngspice-23.tar.gz, is now simple: After
|
Installing from the tarball, e.g. ngspice-24.tar.gz, is now simple: After
|
||||||
expanding, you may just run ./compile_min.sh from the ngspice-23 directory.
|
expanding, you may just run ./compile_min.sh from the ngspice-24 directory.
|
||||||
|
|
||||||
The default installation location of ngspice is the Windows path
|
The default installation location of ngspice is the Windows path
|
||||||
C:\spice. The install path can be altered by passing --prefix=NEWPATH
|
C:\spice. The install path can be altered by passing --prefix=NEWPATH
|
||||||
|
|
@ -459,7 +457,7 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
The procedure of compiling a distribution (for example, a tarball from
|
The procedure of compiling a distribution (for example, a tarball from
|
||||||
the ngspice website), is as follows:
|
the ngspice website), is as follows:
|
||||||
|
|
||||||
$ cd ngspice-23
|
$ cd ngspice-24
|
||||||
$ mkdir release
|
$ mkdir release
|
||||||
$ cd release
|
$ cd release
|
||||||
$ ../configure --with-windows ...and other options
|
$ ../configure --with-windows ...and other options
|
||||||
|
|
@ -467,7 +465,7 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
The useful options are:
|
The useful options are:
|
||||||
--enable-xspice (this requires FLEX and BISON available in MSYS, see below).
|
--enable-xspice
|
||||||
--enable-cider
|
--enable-cider
|
||||||
--disable-debug (-O2 optimization, no debug information)
|
--disable-debug (-O2 optimization, no debug information)
|
||||||
|
|
||||||
|
|
@ -514,8 +512,8 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
$ make install
|
$ make install
|
||||||
|
|
||||||
MINGW and MSYS can be downloaded from http://www.mingw.org/. The making of
|
MINGW and MSYS can be downloaded from http://www.mingw.org/. The making of
|
||||||
the code models *.cm for XSpice requires installation of BISON and FLEX to
|
ngspice and the code models *.cm for XSpice requires installation of BISON
|
||||||
MSYS. A typical installation was tested with:
|
and FLEX to MSYS. A typical installation was tested with:
|
||||||
|
|
||||||
bison-2.0-MSYS.tar.gz
|
bison-2.0-MSYS.tar.gz
|
||||||
flex-2.5.4a-1-bin.zip
|
flex-2.5.4a-1-bin.zip
|
||||||
|
|
@ -630,14 +628,9 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
#define NGSPICEBINDIR "D:/MySpice/bin"
|
#define NGSPICEBINDIR "D:/MySpice/bin"
|
||||||
#define NGSPICEDATADIR "D:/MySpice/share/ng-spice-rework"
|
#define NGSPICEDATADIR "D:/MySpice/share/ng-spice-rework"
|
||||||
|
|
||||||
nghelp.exe is deprecated and no longer offered, but still available in the binary
|
|
||||||
distribution.
|
|
||||||
|
|
||||||
If the code model files *.cm are not available, you will get warning messages,
|
If the code model files *.cm are not available, you will get warning messages,
|
||||||
but you may use ngspice in the normal way (of course without XSPICE extensions).
|
but you may use ngspice in the normal way (of course without XSPICE extensions).
|
||||||
|
|
||||||
ToDo: Some commands in how-to-ngspice-vstudio.txt and mentioned above
|
|
||||||
have to be translated to English.
|
|
||||||
|
|
||||||
|
|
||||||
9.3 make ngspice with pure CYGWIN
|
9.3 make ngspice with pure CYGWIN
|
||||||
|
|
@ -653,45 +646,12 @@ Most of the options now following are not well maintained, are not tested or eve
|
||||||
The procedure of compiling is the same as Linux.
|
The procedure of compiling is the same as Linux.
|
||||||
|
|
||||||
|
|
||||||
The next two compilation options (9.4, and 9.5) are deprecated and not tested.
|
9.4 ngspice console app with MINGW or CYGWIN
|
||||||
|
|
||||||
9.4 make ngspice with CYGWIN and external MINGW32
|
Omitting the configure flag --with-windows will yield a console ngspice.
|
||||||
|
You then will not have any graphics interface. In CYGWIN you may add --with-x
|
||||||
according to http://www.geocrawler.com/lists/3/SourceForge/6013/0/7321042/
|
for the X11 graphics (not available in mingw). A typical configure command
|
||||||
|
may look like
|
||||||
|
./configure --enable-adms --enable-xspice --enable-cider --enable-openmp
|
||||||
$ cd ng-spice-rework-18
|
--disable-debug CFLAGS=-m32 LDFLAGS=-m32 prefix=C:/Spice
|
||||||
$ export PATH="/cygdrive/g/gcc_mingw/bin:$PATH"
|
tested with TDM mingw.
|
||||||
$ autoconf
|
|
||||||
$ rm config.cache
|
|
||||||
$ ./configure --with-windows --prefix="/cygdrive/g/gcc_mingw/bin"
|
|
||||||
$ make clean
|
|
||||||
$ make 2> make.err
|
|
||||||
|
|
||||||
$ cp config.h config_ming.h
|
|
||||||
|
|
||||||
ngspice.exe is o.k.,but make tests does not work (cannot direct console
|
|
||||||
output into file). Needs to add .save "what" "where.test" to every input
|
|
||||||
(*.cir) file. Also all given output files have to be adapted to WINDOWS
|
|
||||||
(CR/LF instead of only LF at each line ending) for allowing proper comparison.
|
|
||||||
|
|
||||||
|
|
||||||
9.5 make ngspice with CYGWIN and internal MINGW32 (use config.h made above)
|
|
||||||
|
|
||||||
$ cd ng-spice-rework-18
|
|
||||||
$ rm config.cache
|
|
||||||
$ export CFLAGS="-mno-cygwin -g -O2"
|
|
||||||
$ export LDFLAGS="-L/lib/mingw"
|
|
||||||
$ export CPPFLAGS="-I/usr/include/mingw"
|
|
||||||
$ ./configure --with-windows
|
|
||||||
$ cp config_ming.h config.h
|
|
||||||
$ make clean
|
|
||||||
$ make 2> make.err
|
|
||||||
|
|
||||||
./configure does not work correctly: It finds headers and libs which are not
|
|
||||||
really available in the -mno-cygwin port of MINGW32. Therefore config.h is
|
|
||||||
not o.k.
|
|
||||||
|
|
||||||
ToDo: find appropriate presets for variables ?
|
|
||||||
rewrite tests for headers and libs (search exclusively in mingw
|
|
||||||
directories)
|
|
||||||
4
NEWS
4
NEWS
|
|
@ -1,3 +1,7 @@
|
||||||
|
Ngspice-24, Jan 29th, 2012
|
||||||
|
============
|
||||||
|
|
||||||
|
|
||||||
Ngspice-23, June 5th, 2011
|
Ngspice-23, June 5th, 2011
|
||||||
============
|
============
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ $netlistFile="ngspiceCkt";
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
sub version {
|
sub version {
|
||||||
return("23"); # the version only seems to be printed in interactive mode
|
return("24"); # the version only seems to be printed in interactive mode
|
||||||
}
|
}
|
||||||
|
|
||||||
sub runNoiseTest {
|
sub runNoiseTest {
|
||||||
|
|
|
||||||
|
|
@ -472,13 +472,13 @@
|
||||||
#define PACKAGE_NAME "ngspice"
|
#define PACKAGE_NAME "ngspice"
|
||||||
|
|
||||||
/* Define to the full name and version of this package. */
|
/* Define to the full name and version of this package. */
|
||||||
#define PACKAGE_STRING "ngspice 23"
|
#define PACKAGE_STRING "ngspice 24"
|
||||||
|
|
||||||
/* Define to the one symbol short name of this package. */
|
/* Define to the one symbol short name of this package. */
|
||||||
#define PACKAGE_TARNAME "ngspice"
|
#define PACKAGE_TARNAME "ngspice"
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
/* Define to the version of this package. */
|
||||||
#define PACKAGE_VERSION "23"
|
#define PACKAGE_VERSION "24"
|
||||||
|
|
||||||
/* Define if we want predictor algorithm */
|
/* Define if we want predictor algorithm */
|
||||||
/* #undef PREDICTOR */
|
/* #undef PREDICTOR */
|
||||||
|
|
@ -533,7 +533,7 @@
|
||||||
/* #undef TM_IN_SYS_TIME */
|
/* #undef TM_IN_SYS_TIME */
|
||||||
|
|
||||||
/* Version number of package */
|
/* Version number of package */
|
||||||
#define VERSION "23"
|
#define VERSION "24"
|
||||||
|
|
||||||
/* Define if we want spice2 sensitivity analysis */
|
/* Define if we want spice2 sensitivity analysis */
|
||||||
/* #undef WANT_SENSE2 */
|
/* #undef WANT_SENSE2 */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue