Roberto Di Lorenzo
12/20/2023, 10:14 AMname=TT_MODELS
only_toplevel=true
corner=tt
value="
**.lib \\$::SKYWATER_MODELS\\/sky130.lib.spice tt
**.include $::SKYWATER_STDCELLS/sky130_fd_sc_hd.spice
.lib /usr/local/share/pdk/sky130A/libs.tech/ngspice/sky130.lib.spice tt
.include /usr/local/share/pdk/sky130A/libs.ref/sky130_fd_sc_hd/spice/sky130_fd_sc_hd.spice
For each schematic i have a standard xschemrc
file, in analog testbench i just need to set corner like:
name=CORNER only_toplevel=false corner=tt
but here somethings is going wrong. Where is the mistake?Tim Edwards
12/20/2023, 2:06 PMxschemrc
define SKYWATER_MODELS
? What do you mean by a "standard" xschemrc
file? The one in the PDK? My xschemrc
file, which comes from the PDK, has:
set SKYWATER_MODELS ${PDK_ROOT}/${PDK}/libs.tech/ngspice
set SKYWATER_STDCELLS ${PDK_ROOT}/${PDK}/libs.ref/sky130_fd_sc_hd/spice
puts stderr "open_pdks installation: using $PDK_ROOT"
puts stderr "SKYWATER_MODELS: $SKYWATER_MODELS"
puts stderr "SKYWATER_STDCELLS: $SKYWATER_STDCELLS"
Roberto Di Lorenzo
12/20/2023, 2:18 PMTim Edwards
12/20/2023, 2:36 PMPDK_ROOT
and/or PDK
?Roberto Di Lorenzo
12/20/2023, 4:12 PMTim Edwards
12/20/2023, 9:27 PMSKYWATER_MODELS
. The one thing I do see in your original post is that the dollar sign and the slash are both backslash-escaped in your original source file's .lib
line, but not in the .include
line. I'm not sure which one of those is right, but I don't think they can both be right.Roberto Di Lorenzo
12/21/2023, 8:41 AMRoberto Di Lorenzo
12/21/2023, 8:42 AMTim Edwards
12/21/2023, 1:59 PM*.lib \$::SKYWATER_MODELS\/sky130.lib.spice tt
*.include $::SKYWATER_STDCELLS/sky130_fd_sc_hd.spice
One of those I suspect is due to the backslash-escape. The other may be due to a setting in xschem.Roberto Di Lorenzo
12/21/2023, 2:11 PMTim Edwards
12/21/2023, 2:15 PMRoberto Di Lorenzo
12/21/2023, 2:24 PMStefan Schippers
12/21/2023, 2:28 PMformat="tcleval( @value )"
that does the substitution of TCL variables.
so above the value="...."
add the format line.Stefan Schippers
12/21/2023, 2:32 PM