StefanSchippers / xschem

A schematic editor for VLSI/Asic/Analog custom designs, netlist backends for VHDL, Spice and Verilog. The tool is focused on hierarchy and parametric designs, to maximize circuit reuse.
Other
317 stars 21 forks source link

Ngspice issue #220

Closed mcmurphy16 closed 1 month ago

mcmurphy16 commented 3 months ago

I have successfully installed xschem, and tried to run an already given circuit in the library. I'm able to generate the netlist but I'm not able to simulate. I'm attaching a screenshot, please help.

Screenshot from 2024-06-22 18-13-53

georgtree commented 3 months ago

I suspect that the issue is due to missing ngspice executable in PATH, could you run ngspice from terminal using the same command?

mcmurphy16 commented 3 months ago

Thanks for your response @georgtree. No, I don't think that ngspice is installed. Do I need to install it in some specific directory? Also can you share any resources to install ngspice on Ubuntu?

georgtree commented 3 months ago

There is no latest ngspice version distribution for Ubuntu as far as I know (on the ngspice official website). You can compile it from scratch, but there are available packages in some Ubuntu repositories: https://packages.ubuntu.com/search?keywords=ngspice (google how to install from them)

StefanSchippers commented 3 months ago

This xshem manual page explains how to install ngspice from the git sources: https://xschem.sourceforge.io/stefan/xschem_man/tutorial_xschem_sky130.html

## clone the source repository into a local ngspice_git directory
git clone https://git.code.sf.net/p/ngspice/ngspice ngspice_git
cd ngspice_git
mkdir release
./autogen.sh
cd release
## by default if no --prefix is provided ngspice will install under /usr/local/{bin,share,man,lib}
## you can add a --prefix=/home/username to install into your home directory.
../configure --with-x --enable-xspice --disable-debug --enable-cider --with-readline=yes --enable-openmp --enable-osdi
## build the program
make
## install the program and needed files.
sudo make install