Ngspice download (stable release)

All ngspice releases, starting from rework-10, can be downloaded from Sourceforge.net File Release System. Ngspice is released as a gzipped tar archive containing all source files of the simulator. They compile under various operating systems, e.g. LINUX, MS Windows, MAC, BSD, Solaris, and maybe others. Binary packages are distributed for MS Windows and MAC OS X.

  • ng-spice-rework: this is the latest stable release. It does not contain last minute code and experimental features. This is the release intended for end-users. All sources are assembled into a tarball for download. The binary packages for MS Windows and MAC OS X are to be found here as well.

If you want to compile ngspice by yourself, download and extract the sources from the tarball. Please see file INSTALL for instructions on compilation and installation of ngspice.

Ngspice download via browser or snapshot (code under development)

  • ngspice tree view of master branch: This is the master branch of the code actually under development. It contains the most recent features and has already got lots of testing. Use this link to access the individual source code files via your browser. Select 'Download Snapshot' from this page to download the complete and actual master branch source code. Check one of the 'Branches' buttons (or 'More Branches' to display all branches) to switch to another branch and then again use 'Download Snapshot'. Another development branch example is given in the next bullet point.
  • ngspice tree view of branch scope-inpcom-16: This is the current development branch with very recent source code additions. Not all of them may make it into the master branch or the next stable release. Use this link to access the source code files via your browser or download the complete snapshot by 'Download snapshot'. From time to time this branch will be upgraded by a new branch. See 'More Branches' to check for a new scope-inpcom-xx branch.

Ngspice download using git (code under development)

Using 'git' offers you a way to get access to all branches and to manage them. The following command will download the complete sources from the ngspice git repository via anonymous access. You will find the ngspice top level directory as [actual directory]/ngspice, containing a complete local git repository.

git clone git://ngspice.git.sourceforge.net/gitroot/ngspice/ngspice

Please see file INSTALL for instructions on compilation and installation of ngspice.

To fetch and incorporate new commits from sourceforge into your local git repository, please cd to directory ngspice and run

git pull

git pull will deny to overwrite modified files in your working directory. To drop your local changes first, you can run

git reset --hard

Be careful because this command may delete your local changes!

To switch to another branch, you may issue

git fetch

and then

git checkout new-branch-name

To learn more about git, which can be both powerful and difficult to master, please consult http://git-scm.com/, especially: http://git-scm.com/documentation which has pointers to documentation and tutorials.

Ngspice GUI

A simple GUI for starting ngspice and plotting (binaries for MS Windows) is available here.

Ngspice snapshot

Here you will find a snapshot of ngspice from the git master branch as 32 bit binaries for MS Windows. Updates are available only occasionally. Right click on a link and store the 7z file to your harddisk. ngspice 32 bit master contains the ngspice binaries with GUI, console and the shared ngspice dll.

Ngspice experimental

Here you will find some ngspice binaries (for MS Windows) which are provided for those interested in experimental code. Right click on a link and store the 7z file to your harddisk.

ngspice 32 bit devel contains 32 bit ngspice binaries with GUI, console and the shared ngspice dll. Sources are drawn from the scope-inpcom-6 branch at git.

ngspice 64 bit devel contains 64 bit ngspice binaries with GUI, console and the shared ngspice dll. Sources are drawn from the scope-inpcom-6 branch at git.

ngspice 64 bit utf-8 devel contains 64 bit ngspice binaries with GUI and console, with UTF-8 input and internal UNICODE wide char for I/O enabled. Sources are drawn from the utf-8 branch at git. In addition you will find GUIs for starting ngspice and plotting, made with Lazarus.

ngspice 32 bit klu devel contains a 32 bit ngspice binary with GUI, using the KLU matrix solver. Sources are drawn from the KLU-6+4 branch at git.

cuspice (ngspice 64 bit using CUDA, incl. CUDA redistributables, 24 MBit download size) contains a 64 bit ngspice binary with GUI, using the KLU matrix solver and CUDA (uses nvidia graphics card for acceleration). Sources are drawn from the CUSPICE-WIN branch at git.

The ngspice tclspice package includes all libraries and files necessary to run some tcl scripts with the ngspice tclspice dll. The package has been created with a modified BLT library, which serves for plotting. If you install the tcl/tk libraries version 8.6 from ActiveState, add the VS 2008 project file to the ngspice main directory, and set the appropriate links in the project file to the tcl/tk library and headers, you may compile ngspice tclspice for MS Windows yourself.

A more recent tclspice version, very experimental, is here as BLT library for VS2017, and VS 2017 project file, based on the master branch as of June 2017. Again: very experimental, not yet tested!

Ngspice download (old, obsolete stuff)

CVS repository is no longer used, still available, but may be switched down in the future.

Old releases (before rework-10), are available through this web site only (see the menu on the left), they are archived for historical purposes and are no longer maintained.