Hi everyone, so I was trying to run the test examp...
# gf180mcu
c
Hi everyone, so I was trying to run the test examples that come with the GF180MCU after the installation (
test_nfet_03v3.sch
), which brought up this error to me when I was trying to run ngspice. Any thoughts on this? Thanks!
t
If you look at the original .sch file in the test directory, it should have an include line with a (Tcl) variable name in it---that gets substituted by xschem when it writes the netlist. If the variable is not defined, then you'll end up with an include statement that's missing a file location, which is what your screenshot is showing. The "xschemrc" file should be defining that variable, which suggests to me that you did not start xschem in a way that would pick up the xschemrc file (like copying the xschemrc file into the directory where you are running xschem).
c
Hi @Tim Edwards thanks for the reply. I have the
xschemrc
located in the same directory where I am running xschem. I was also following this tutorial video (

https://www.youtube.com/watch?v=USCmZuREMTE&t=154s

) to have my GF180MCU PDK set up, especially the environment variables as well as
xschemrc
file.
s
Ensure you have a
.spiceinit
file in the directory where the .spice file is generated (default:
~/.xschem/simulations
), with following content:
Copy code
set ngbehavior=hsa
set ng_nomodcheck 
# set filetype=ascii
set num_threads=4
This is necessary to correctly understand lib model files. I see also you are using
.inc
, this is wrong, use
.lib  blablabla typical
c
Thanks, @Stefan Schippers for the message. I actually solved it by doing exactly what you suggested (I missed the
.spiceinit
) which is why I deleted the thread that was asking for advice. Thanks anyway!