SPICE in Linux
November 26th, 2006 liewsheng Posted in Electronics, ngspice | Hits: 29407 | 3 Comments »
Woh….spice girls har, where where?? Haha…is in Linux machine. SPICE is stand for ‘Simulation Program with Integrated Circuit Emphasis’ and was inspired by the application to IC design, which made computer simulation mandatory. To run a simulation in Linux, you will need a ng-spice and you can freely download from here.
After finish download, you can follow the step show in Install From Tarball, you will need to enable a xspice feature:
./configure --enable-xspice
To simulate a circuit, of cause you will need a circuit file:
ngspice -b circuit.cir
-b here will process the file in batch mode and will not enter the ng-spice command prompt. This will print all the output on the screen, if you want result print in a file:
ngspice -b circuit.cir -o simulate.out
For more information about SPICE syntax, can go to visit SPICE 3 User Manual.







December 2nd, 2006 at 11:09 am
[...] Last post, I only intro how we can save the data and plot in text files. Actually we can plot the SPICE data in graphical mode, but you will need ‘gwave’ and a SPICE raw file. So go and get gwave: [...]
November 19th, 2007 at 2:22 pm
Good collection of consumer electronics I have seen at Staples store through Couponalbum.com….!
September 11th, 2011 at 5:39 am
Is possible to plot the component’s comportment in a graphic, or it just generates the file with measures on the circuit nodes from a netlist file?