Hi, I'm trying to open the pdk with xschem to star...
# xschem
j
Hi, I'm trying to open the pdk with xschem to start simulating, but I'm having problems, I already defined the pdk in bash and I get this error. (PDK gf180mcuC)
s
There is probably a syntax error in your xschemrc. The PDK variable usually sets the process variant (gf180mcuC) and this variable is appended to PDK_ROOT. Try to go through the xschemrc file and if there is no definition for PDK add one, may be something like:
set PDK gf180mcuC
j
Hi, I have the same error
s
You have set the
PDK
variable but the line above is using it. Move the PDK definition above it...
...
if {[info exists PDK_ROOT]} {
set 180MCU_MODELS ${PDK_ROOT}/${*PDK*}/libs.tech/ngspice/models
set PDK gf180mcuC
puts stderr "pdk installation: using $PDK_ROOT"
puts stderr "180MCU_MODELS: $180MCU_MODELS"
}
...
j
Hi, but now I have this problem
s
Edit your xschemrc file delete every line with PDK_ROOT, XSCHEM_LIBRARY_PATH, 180MCU_MODELS. add these 8 lines and set the paths according to your system installation. You will probably need to change only the 1st line.
Copy code
set PDK_ROOT /home/schippes/share/pdk
set PDK gf180mcuC
set XSCHEM_LIBRARY_PATH {}
append XSCHEM_LIBRARY_PATH ${XSCHEM_SHAREDIR}/xschem_library
append XSCHEM_LIBRARY_PATH :$PDK_ROOT/$PDK/libs.tech/xschem
append XSCHEM_LIBRARY_PATH :$env(PWD)
set 180MCU_MODELS ${PDK_ROOT}/$PDK/libs.tech/ngspice
set XSCHEM_START_WINDOW {tests/0_top.sch}