@Soliman Mohammad In the xschem_sky130 examples i am gradually removing all these tt_models and using the standard way of specifying corners, this is done with a
.lib /path/to/sky130.lib.spice tt
changing simulation corner is achieved simply by changing the last 2 letters:
.lib /path/to/sky130.lib.spice ff
The location of the ngspice lib file depends on your open_pdks installation but should be something like:
.../share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice
Instead of specifying the actual path for the lib file installation i am using a tcl variable, set in the xschemrc (look at the bottom of this file), so the 'value' attribute of the code.sym symbol is:
.lib \$::SKYWATER_MODELS\/sky130.lib.spice tt
The backslash before '$' tells xschem not to interpret this character on its own, but leave it to tcl. Similarly the backslash before '/' tells xschem the slash and remaining characters are not part of the tcl variable name.