Ngspice Frequently Asked Questions
- Document Revsion: 1.5
- Document Maintainer: Paolo Nenzi
- Last Update: 09-10-2010
F.A.Q. Table of Contents
- 1. INTRODUCTION AND GENERAL INFORMATION
- 1.1 What is ngspice?
- 1.2 Why resurrecting Berkeley's Spice?
- 1.3 What is the project's goal?
- 1.4 What you are going to do?
- 1.5 Legal issues
- 1.6 What mailing lists exist for ngspice?
- 1.7 Are the mailing lists archived anywhere?
- 1.8 What newsgroups exist for ngspice?
- 1.9 Where can I get a copy of ngspice?
- 1.10 Where should I look on the World Wide Web for ngspice stuff?
- 1.11 Where should I look on the World Wide Web for Spice documentation?
- 2. DEVELOPMENT
- 2.1 What is the current version?
- 2.2 What are the latest features in the current release?
- 2.3 What does it look like?
- 2.4 Who are the authors of ngspice?
- 2.5 How can I report a bug/request for a feature?
- 2.6 How can I join the development?
- 3. SOLUTIONS TO COMMON MISCELLANEOUS PROBLEMS
- 3.1 What systems are supported?
- 3.2 I get errors when I try to compile the source code, why?
- 3.3 This document didn't answer my question. Where else can I look for an answer?
- 4. ADMINISTRATIVE INFORMATION AND ACKNOWLEDGEMENTS
- 4.1 Feedback
- 4.2 Formats in which this FAQ is available
- 4.3 Authorship and acknowledgements
- 4.4 Disclaimer and Copyright
- Spice3 is the most famous and used circuit simulator. It was developed University of California at Berkeley (UCB), by "a cast of thousand" (as they say).
- Cider is a mixed-level simulator that already includes Spice3f5 and adds a device simulator to it: DSIM. Cider couples the circuit level simulator to the device simulator to provide greater simulation accuracy (at the expense of greater simulation time). Critical devices can be described with technology parameters (numerical models) and non critical ones with the original spice's compact models.
- Xspice is an extension to Spice3 that provides code modeling support and simulation of digital components through an embedded event driven algorithm.
- The NG prefix has lot of meanings: Next Generation, New Good, etc. Choose or invent the one you prefer. The heart of the project is the ngspice program.
Xspice is a mixed-signal circuit simulator developed by GTRI (Georgia Tech Research Institute) at Georgia Institute of Technology. Xspice was originally developed as an extension over Spice3c1. Xspice introduces code modeling and a digital simulator into ngspice. The "home site" of Xspice is:
Cider is a mixed-level circuit and device simulator based on Spice3f5 that couples a device simulator (DSIM) to Spice. More information can be found at:
The merging process is done in parallel with bug fixing and improvement of the three simulators. The improvements are concentrated into 6 directions:
Compact models: the improvements in compact models will address mainly the implementation of additional effects not available in the original code. Device specific improvements are documented on ngspice's documentation and in the DEVICE file in project's tarball.
Improvements that affects all devices already implemented are: "dtemp" option to set instance's temperature relative to the circuit one and "m" parallel multiplier to simulate an arbitrary number of instances of the same kind connected in parallel.
Simulator's analyses: this is a low priority area. Planned improvements include the implementation of parametric analyses, to analyse the behaviour of the circuit as a parameter changes. Parameter sweep, Monte Carlo and Worst Case fall in this category. Network analysis (double bipole parameters extraction) is another planned improvement, even if they have alraedy been made available by suitable scripts (see manual).
Numerical analysis code: the improvements within the numerical code must be done with extreme care. Planned improvements are, the replacement of the Sparse library with the latest code Kenneth Kundert has released, available at:
Other planned improvements, but with very low priority, includes the use SuperLU library as possible Sparse library replacement (the library is available at http://crd.lbl.gov/~xiaoye/SuperLU) and the introduction of continuation metohds to aid DC convergence.
Spice language: The language used to input the circuit to the simulator has been extended and now allows the user to input parametric values for components (the numparam library). This is an experimental feature that will be improved in the future. Planned improvements includes the support for loading more than one circuit, netlist manipulation via command line (adding and removing instances).
Frontend: The design of a new spice frontend has not been successful and now is orphaned, since the is no interests and many free and commercial frontends are available. There is no planned improvement here.
Documentation: Commercial simulators come with very good manuals containing tutorials, description of models equations, example of use, suggestions, etc. Spice came with little documentation. The Spice3f manual, available on the Internet has been used as the basis for the new manual. It will be constantly improved during ngspice development and integrated with the documentation accompanying Xspice and Cider. This is a very time consuming task and probably the documentation will always be left slightly behind.
According to http://www.gnu.org/licenses/license-list.html, the modified BSD license belongs to the GPL-Compatible Free Software Licenses. Therefore the linking restrictions to readline, which have existed with the old BSD licence, are removed, as the readline manual at http://tiswww.case.edu/php/chet/readline/rltop.html states: Readline is free software, distributed under the terms of the GNU General Public License, version 3. This means that if you want to use Readline in a program that you release or distribute to anyone, the program must be free software and have a GPL-compatible license.
Users mailing list: <firstname.lastname@example.org> This list is for ngspice users, examples, problems, bug reports and general discussion on ngspice can be sent here.
Developers mailing list: <email@example.com> The list dedicated to ngspice development. Developers shold subscribe here, to follow the program development. May be used to send patches, and technical discussion on ngspice.
Send an empty message with Subject "help" to the following addresses to get instructions.
Send an empty message to the following address to Subscribe.
Documentation about the user interface of these mailing lists can be found at:
(look for the "Lists" link). Old messages from the pre-sourceforge age are available at:
The Spice Home Page:
The Spice Download Page:
- ngspice-24 (released on 01/31/2012)
There is no bureaucracy here.
Write a mail to the user's list describing the problem and providing information on the type of hardware, the flavour of operating system.