2014-10-28 20:42:09 +01:00
|
|
|
.\" Hey, EMACS: -*- nroff -*-
|
|
|
|
|
.\"
|
2000-04-27 22:03:57 +02:00
|
|
|
.\" Copyright (c) 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
|
2014-10-28 20:42:09 +01:00
|
|
|
.\"
|
|
|
|
|
.\" First parameter, NAME, should be all caps
|
|
|
|
|
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
|
|
|
|
.\" other parameters are allowed: see man(7), man(1)
|
|
|
|
|
.TH NGSPICE 1 "2014-10-28"
|
|
|
|
|
.\" Please adjust this date whenever revising the manpage.
|
|
|
|
|
.\"
|
|
|
|
|
.\" Some roff macros, for reference:
|
|
|
|
|
.\" .nh disable hyphenation
|
|
|
|
|
.\" .hy enable hyphenation
|
|
|
|
|
.\" .ad l left justify
|
|
|
|
|
.\" .ad b justify to both left and right margins
|
|
|
|
|
.\" .nf disable filling
|
|
|
|
|
.\" .fi enable filling
|
|
|
|
|
.\" .br insert line break
|
|
|
|
|
.\" .sp <n> insert n+1 empty lines
|
|
|
|
|
.\" for manpage-specific macros, see man(7)
|
2010-06-12 12:13:15 +02:00
|
|
|
.ds = \-\^\-
|
|
|
|
|
.SH "NAME"
|
2013-12-06 03:37:54 +01:00
|
|
|
ngspice \- circuit simulator derived from SPICE3f5
|
2010-06-12 12:13:15 +02:00
|
|
|
.SH "SYNOPSIS"
|
|
|
|
|
\fBngspice\fP [\fIoptions\fP] [\fIfile\fP ...]
|
|
|
|
|
.SH "DESCRIPTION"
|
|
|
|
|
This man page is just a small overview.
|
2014-10-28 20:42:09 +01:00
|
|
|
The primary documentation of ngspice is in the ngspice User's Manual,
|
2010-06-12 12:13:15 +02:00
|
|
|
which is available as a pdf file.
|
|
|
|
|
.SH "OPTIONS"
|
|
|
|
|
.TP
|
|
|
|
|
\fB\-n\fP or \fB\*=no\-spiceinit\fP
|
2014-10-28 20:42:09 +01:00
|
|
|
Don't try to source the file ".spiceinit" upon startup. Normally ngspice
|
2000-04-27 22:03:57 +02:00
|
|
|
tries to find the file in the current directory, and if it is not found then
|
|
|
|
|
in the user's home directory.
|
|
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-q\fP or \fB\*=completion\fP
|
|
|
|
|
Enable command completion. (defect)
|
2000-05-03 22:01:30 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-t\fP \fIterm\fP or \fB\*=term=\fP\fIterm\fP
|
|
|
|
|
The program is being run on a terminal with \fBmfb\fP name \fIterm\fP.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-b\fP or \fB\*=batch\fP
|
2013-12-06 03:37:54 +01:00
|
|
|
Run in batch mode.
|
2014-10-28 20:42:09 +01:00
|
|
|
ngspice will read the standard input or the specified
|
2013-12-06 03:37:54 +01:00
|
|
|
input file and do the simulation.
|
2014-10-28 20:42:09 +01:00
|
|
|
Note that if the standard input is not a terminal, ngspice will default
|
2013-12-06 03:37:54 +01:00
|
|
|
to batch mode, unless the \-i flag is given.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-s\fP or \fB\*=server\fP
|
2013-12-06 03:37:54 +01:00
|
|
|
Run in server mode.
|
|
|
|
|
This is like batch mode, except that a temporary rawfile is used and then
|
|
|
|
|
written to the standard output, preceded by a line with a single "@", after
|
|
|
|
|
the simulation is done.
|
|
|
|
|
This mode is used by the ngspice daemon.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-i\fP or \fB\*=interactive\fP
|
2013-12-06 03:37:54 +01:00
|
|
|
Run in interactive mode.
|
|
|
|
|
This is useful if the standard input is not a terminal but interactive mode
|
|
|
|
|
is desired.
|
|
|
|
|
Command completion is not available unless the standard input is a terminal,
|
|
|
|
|
however.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-r\fP \fIrawfile\fP or \fB\*=rawfile=\fP\fIfile\fP
|
|
|
|
|
Use \fIrawfile\fP as the default file into which the results of
|
2000-04-27 22:03:57 +02:00
|
|
|
the simulation are saved.
|
2000-05-03 22:01:30 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-c\fP \fIcircuitfile\fP or \fB\*=circuitfile=\fP\fIcircuitfile\fP
|
|
|
|
|
Use \fIcircuitfile\fP as the default input deck.
|
2000-05-03 22:01:30 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-h\fP or \fB\*=help\fP
|
2000-05-03 22:01:30 +02:00
|
|
|
Display a verbose help on the arguments available to the program.
|
|
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-v\fP or \fB\*=version\fP
|
2000-05-03 22:01:30 +02:00
|
|
|
Display a version number and copyright information of the program.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-a\fP or \fB\*=autorun\fP
|
|
|
|
|
FIXME
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-o\fP \fIoutfile\fP or \fB\*=output=\fP\fIoutfile\fP
|
|
|
|
|
All logs generated during a batch run (\fB\-b\fP) will be saved in \fIoutfile\fP.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fB\-p\fP or \fB\*=pipe\fP
|
|
|
|
|
Allow a program (e.g., xcircuit) to act as a GUI frontend for
|
2013-12-06 03:37:54 +01:00
|
|
|
ngspice through a pipe.
|
|
|
|
|
Thus ngspice will assume that the pipe is a tty and allows one to run in
|
|
|
|
|
interactive mode.
|
2010-06-12 12:13:15 +02:00
|
|
|
.PP
|
2013-12-06 03:37:54 +01:00
|
|
|
Further arguments are taken to be SPICE input decks, which are read
|
|
|
|
|
and saved.
|
|
|
|
|
(If batch mode is requested then they are run immediately.)
|
2010-06-12 12:13:15 +02:00
|
|
|
.SH "ENVIRONMENT"
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_LIB_DIR\fP
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_EXEC_DIR\fP
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_HOST\fP
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_BUGADDR\fP
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_EDITOR\fP
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_ASCIIRAWFILE\fP default \fI0\fP
|
2013-12-06 03:37:54 +01:00
|
|
|
Format of the rawfile.
|
|
|
|
|
\fI0\fP for binary, and \fI1\fP for ascii.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_NEWS\fP default \fI$SPICE_LIB_DIR/news\fP
|
|
|
|
|
A file which is copied verbatim to stdout when ngspice starts in interactive mode.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_MFBCAP\fP default \fI$SPICE_LIB_DIR/mfbcap\fP
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_HELP_DIR\fP default \fI$SPICE_LIB_DIR/helpdir\fP
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_SCRIPTS\fP default \fI$SPICE_LIB_DIR/scripts\fP
|
|
|
|
|
In this directory the \fIspinit\fP file will be searched.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_PATH\fP default \fI$SPICE_EXEC_DIR/ngspice\fP
|
|
|
|
|
.PP
|
|
|
|
|
various undocumented ngspice centric environment variables :
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBNGSPICE_MEAS_PRECISION\fP
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBSPICE_NO_DATASEG_CHECK\fP
|
|
|
|
|
.PP
|
|
|
|
|
Common environment variables :
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBTERM\fP \fBLINES\fP \fBCOLS\fP \fBDISPLAY\fP \fBHOME\fP \fBPATH\fP \fBEDITOR\fP \fBSHELL\fP
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fBPOSIXLY_CORRECT\fP
|
|
|
|
|
.SH "FILES"
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fI$SPICE_LIB_DIR/scripts/spinit\fP
|
|
|
|
|
The System's Initialisation File.
|
2000-04-27 22:03:57 +02:00
|
|
|
.TP
|
2010-06-12 12:13:15 +02:00
|
|
|
\fI\&.spiceinit\fP or \fI$HOME/.spiceinit\fP
|
|
|
|
|
The User's Initialisation File.
|
|
|
|
|
.SH "SEE ALSO"
|
2010-06-12 22:18:54 +02:00
|
|
|
sconvert(1), ngnutmeg(1), mfb(3), writedata(3), and
|
2000-04-27 22:03:57 +02:00
|
|
|
.br
|
2014-10-28 20:42:09 +01:00
|
|
|
ngspice User's Manual at \fBhttp://ngspice.sourceforge.net/docs.html\fP
|
2010-06-12 12:13:15 +02:00
|
|
|
.SH "BUGS"
|
|
|
|
|
Please report bugs to the ngspice project via
|
2000-04-27 22:03:57 +02:00
|
|
|
.br
|
2010-06-12 22:18:54 +02:00
|
|
|
\fBhttp://ngspice.sourceforge.net/bugrep.html\fP
|
2010-06-12 12:13:15 +02:00
|
|
|
.SH "AUTHORS"
|
2010-06-12 22:18:54 +02:00
|
|
|
\fBspice3\fP: Tom Quarles (quarles@cad.berkeley.edu)
|
2000-04-27 22:03:57 +02:00
|
|
|
.br
|
2010-06-12 22:18:54 +02:00
|
|
|
\fBnutmeg\fP: User interface: Wayne Christopher (faustus@cad.berkeley.edu)
|
2010-06-12 12:13:15 +02:00
|
|
|
.br
|
2010-06-12 22:18:54 +02:00
|
|
|
\fBngspice\fP: various authors (see \fBhttp://sourceforge.net/projects/ngspice/\fP)
|