Hadir Khan
05/14/2023, 4:26 AMStefan Schippers
05/14/2023, 7:43 AM.lib /path/to/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
.lib
line is missing in the .spice netlist the expected outcome is an ngspice error (can't find models).Hadir Khan
05/14/2023, 5:40 PMStefan Schippers
05/14/2023, 9:44 PMsudo apt install xterm
) it is a small package and it is a well working terminal emulator. Xschem uses by default xterm
when launching ngspice. Ngspice is run inside a terminal so after simulation is completed you may give additional commands to ngspice and see the error/warning messages. Of course you can use any terminal emulator with xschem (like gnome-terminal etc, see terminal
in xschemrc) but since most "modern" desktop environment terminals are half broken I suggest to use xterm.
Simulation results are saved by default into ~/.xschem/simulations
, however you can change the location by changing the netlist_dir
variable in xschemrc. You can also set variable local_netlist_dir
to 1 (set local_netlist_dir 1
) so the netlists will be automatically saved into the directory containing the schematic, in a simulation/
folder.
If you use xschem interactively by giving tcl commands you may do something like:
set netlist_dir [xschem get current_dirname]/spice; xschem netlist
to have the netlist saved into a spice/
folder into the directory containing the current schematic (this directory is not necessarily the current directory, like 'pwd').
You can also add:
set netlist_dir {}
in your xschemrc. This will set it to an empty value, forcing xschem to ask you to choose a netlist directory the first time you want to generate a netlist.set netlist_dir [pwd]
in xschemrc to force saving netlist and running simulations in the directory where you started xschem.Hadir Khan
05/14/2023, 10:59 PMecho $TERM
I got xterm-256color
which means I am using xtermStefan Schippers
05/16/2023, 10:57 PM