Soliman Mohammad
09/27/2021, 12:41 PMTim Edwards
09/27/2021, 12:46 PMSoliman Mohammad
09/27/2021, 12:46 PMSoliman Mohammad
09/27/2021, 1:18 PMMonica Aziz
09/27/2021, 1:22 PMTim Edwards
09/27/2021, 1:22 PMname=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
Soliman Mohammad
09/27/2021, 1:26 PMTim Edwards
09/27/2021, 1:26 PM.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.Stefan Schippers
10/01/2021, 9:16 AM.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.Soliman Mohammad
10/05/2021, 3:42 AM