World Library  
Flag as Inappropriate
Email this Article


Written in C
Available in English
Type Electronic circuit simulation
License New BSD license (free software)
Website .net.sourceforgengspice

Ngspice is a mixed-level/mixed-signal circuit simulator. It is the Open Source successor of Spice3f5. A small group of maintainers and the community of motivated users contribute to the ngspice project by providing new features, enhancements and bug fixes.

Ngspice is based on three free software packages: Spice3f5, Xspice and Cider1b1:

  • SPICE is the origin of all electronic circuit simulators, its successors are widely used in the electronics community.
  • Xspice is an extension to Spice3 that provides additional C language code models to support analog behavioral modeling and co-simulation of digital components through a fast event driven algorithm.
  • Cider adds a numerical device simulator to ngspice. It couples the circuit level simulator to the device simulator to provide enhanced simulation accuracy (at the expense of increased simulation time). Critical devices can be described with their technology parameters (numerical models), all others may use the original ngspice compact models.

Ngspice is, anyway, more than the simple sum of the packages above, as many people are contributing to the project with their experience, their bug fixes and their improvements giving ngspice additional features and improved robustness.

Status of Ngspice simulator

Ngspice implements three classes of analysis:

  • Nonlinear DC analyses
  • Nonlinear Transient analyses
  • Linear AC analyses

Transient analysis includes transient noise simulation. AC analysis includes small signal noise simulation, pole-zero and transfer function analysis.

Ngspice implements various circuits elements, like resistors, capacitors, inductors (single or mutual), transmission lines and a growing number of semiconductor devices like diodes, bipolar transistors, mosfets (both bulk and SOI), mesfets, jfet and HFET.

New models can be added to the simulator using:

  • Behavioral modeling: Internal B-, E-, and G-sources as well as R, C and L devices offer modeling by mathematical expressions, driven by node voltages, branch currents, parameters and constants.
  • The Xspice codemodel interface: This is a C-code interface that helps the modeling process by simplifying the access to simulator's internal structure.
  • ADMS verilog model compiler: The ADMS model compiler generates C-code from Verilog-A model descriptions for integration into ngspice.
  • C language coded models with spice format: As an open source project Ngspice allows new models to be linked to the sources and compiled.

Ngspice supports parametric netlists (i.e. netlists can contain parameters and expressions). Parametric macromodels, often released by manufacturers, can be imported as-is into the simulator. The old Spice2 netlists containing polynomial sources are correctly parsed. Ngspice provides an internal scripting language to facilitate complex simulation and evaluation control flows.

Ngspice is licensed under the New BSD license.

See also

External links

  • Official website
  • Download site
  • ngspice manual
  • Online version of ngspice
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Hawaii eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.