Difference between revisions of "Ngspice"

From CBLFS
Jump to navigationJump to search
(Required)
 
(5 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
|}
 
|}
  
== Introduction to ngspice ==
+
----
Ngspice is a mixed-level/mixed-signal circuit simulator based on three open source software packages: Spice3f5, Cider1b1 and Xspice.
 
  
<b>Homepage:</b> http://ngspice.sourceforge.net
+
{{Package-Introduction|NgSpice is a mixed-level/mixed-signal circuit simulator based on three open source software packages: Spice3f5, Cider1b1 and Xspice.|http://ngspice.sourceforge.net}}
  
 
== Dependencies ==
 
== Dependencies ==
Line 31: Line 30:
  
 
Compile the package:
 
Compile the package:
 +
 
  ./configure --prefix=/usr &&
 
  ./configure --prefix=/usr &&
 
  make
 
  make
  
 
Install the package:
 
Install the package:
 +
 
  make install
 
  make install
  
Install the html and pdf documentation:
+
If you have [[TeTeX]] installed and would like to install the html and/or pdf documentation:
  install -v -m755 -d /usr/share/ng-spice-rework/html &&
+
 
 +
make -C doc html pdf &&
 +
  install -v -m755 -d /usr/share/ng-spice-rework &&
 
  cp -v doc/ngspice.pdf /usr/share/ng-spice-rework/ &&
 
  cp -v doc/ngspice.pdf /usr/share/ng-spice-rework/ &&
 
  cp -v doc/ngspice.html/*.html /usr/share/ng-spice-rework/html
 
  cp -v doc/ngspice.html/*.html /usr/share/ng-spice-rework/html
Line 46: Line 49:
 
=== 32Bit ===
 
=== 32Bit ===
  
  To do ...
+
Compile the package:
 +
 
 +
CC="gcc ${BUILD32}" USE_ARCH=32 \
 +
  ./configure --prefix=/usr &&
 +
make
 +
 
 +
Install the package:
 +
 
 +
make install
  
 
=== N32 ===
 
=== N32 ===
  
  To do ...
+
Compile the package:
 +
 
 +
CC="gcc ${BUILDN32}" USE_ARCH=n32 \
 +
  ./configure --prefix=/usr --libdir=/usr/lib32 &&
 +
make
 +
 
 +
Install the package:
 +
 
 +
make install
  
 
=== 64Bit ===
 
=== 64Bit ===
  
  To do ...
+
Compile the package:
 +
 
 +
  CC="gcc ${BUILD64}" USE_ARCH=64 \
 +
./configure --prefix=/usr --libdir=/usr/lib64 &&
 +
make
 +
 
 +
Install the package:
 +
 
 +
make install
 +
 
 +
If you have [[TeTeX]] installed and would like to install the html and/or pdf documentation:
 +
 
 +
make -C doc html pdf &&
 +
install -v -m755 -d /usr/share/ng-spice-rework &&
 +
cp -v doc/ngspice.pdf /usr/share/ng-spice-rework/ &&
 +
cp -v doc/ngspice.html/*.html /usr/share/ng-spice-rework/html
  
 
== Contents ==
 
== Contents ==
  
 
{| style="text-align: left;"
 
{| style="text-align: left;"
|-valign="top"
 
!Installed Directories:
 
|/usr/lib/ng-spice-rework, /usr/share/ng-spice-rework/{helpdir,scripts}
 
 
|-valign="top"
 
|-valign="top"
 
!Installed Programs:
 
!Installed Programs:
Line 68: Line 99:
 
! Installed Libraries:
 
! Installed Libraries:
 
|libbsim4.a
 
|libbsim4.a
 +
|-valign="top"
 +
!Installed Directories:
 +
|/usr/lib/ng-spice-rework, /usr/share/ng-spice-rework/{helpdir,scripts}
 
|}
 
|}
  
Line 89: Line 123:
 
|Calls the engine to simulate the electical circuits in FILE passed as an argument.
 
|Calls the engine to simulate the electical circuits in FILE passed as an argument.
 
|}
 
|}
 +
 +
[[Category:Science_Engineering]]

Latest revision as of 11:29, 18 August 2008

Download Source: ftp://ftp.geda.seul.org/pub/geda/dist/ng-spice-rework-17.tar.gz

Introduction to Ngspice

NgSpice is a mixed-level/mixed-signal circuit simulator based on three open source software packages: Spice3f5, Cider1b1 and Xspice.

Project Homepage: http://ngspice.sourceforge.net

Dependencies

Required

Configuration Information

--enable-sense2: Use spice2 sensitivity analysis.
--enable-intnoise: Enable noise integration in noise analysis.
--enable-smoketest: Enable "smoketest" compile.
--enable-xgraph: Enable xgraph compilation.

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package:

make install

If you have TeTeX installed and would like to install the html and/or pdf documentation:

make -C doc html pdf &&
install -v -m755 -d /usr/share/ng-spice-rework &&
cp -v doc/ngspice.pdf /usr/share/ng-spice-rework/ &&
cp -v doc/ngspice.html/*.html /usr/share/ng-spice-rework/html

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" USE_ARCH=32 \
./configure --prefix=/usr &&
make

Install the package:

make install

N32

Compile the package:

CC="gcc ${BUILDN32}" USE_ARCH=n32 \
./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package:

make install

64Bit

Compile the package:

CC="gcc ${BUILD64}" USE_ARCH=64 \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package:

make install

If you have TeTeX installed and would like to install the html and/or pdf documentation:

make -C doc html pdf &&
install -v -m755 -d /usr/share/ng-spice-rework &&
cp -v doc/ngspice.pdf /usr/share/ng-spice-rework/ &&
cp -v doc/ngspice.html/*.html /usr/share/ng-spice-rework/html

Contents

Installed Programs: nghelp, ngmultidec, ngnutmeg, ngsconvert, ngspice
Installed Libraries: libbsim4.a
Installed Directories: /usr/lib/ng-spice-rework, /usr/share/ng-spice-rework/{helpdir,scripts}

Short Descriptions

nghelp: Provides help for ng-spice-rework functions.
ngmultidec: Creates a subcircuit for coupled lines using uncoupled simple lossy lines.
ngnutmeg: Calls the engine to simulate the electical circuits in FILE passed as an argument.
ngsconvert: Converts various ng-spice-rework file types to other ng-spice-rework file types.
ngspice: Calls the engine to simulate the electical circuits in FILE passed as an argument.