Please, how can I install or add model files in "xschem" library ? tt_models.sym ff_models.sym ss_mo...
s
Please, how can I install or add model files in "xschem" library ? tt_models.sym ff_models.sym ss_models.sym fs_models.sym sf_models.sym
t
I told you to post here before noticing that you had already posted here. : ) Please see my response in the #sky130 channel.
s
Thank u
@Tim Edwards you mean like thit:
m
hi
t
That looks like the right symbol, but in my open_pdks installation, the properties look like this:
Copy code
name=TT_MODELS
only_toplevel=true
format="tcleval( @value )"
value="** manual skywater pdks install (with patches applied)
* .lib \\$::SKYWATER_MODELS\\/models/sky130.lib.spice tt

** opencircuitdesign pdks install
.lib \\$::SKYWATER_MODELS\\/sky130.lib.spice tt

.param mc_mm_switch=0
.param mc_pr_switch=0
"
spice_ignore=false
s
okay, I will try to simulate using it and see Thank u :)
t
You can also just edit the block and change
.lib
to
".lib /usr/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt"
(be sure to add quotes, since the expression has spaces in it). In the above, the
format=
line is needed because the expression is using a Tcl variable name that needs to be evaluated, and the
.param
statements are not needed. I don't know if the
spice_ignore=
line is needed or not.
👍 1
s
@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.
👍 1
s
Thank you 🙂