You seem to have removed the contents of your post. Was that intentional?
I dont know what happened then.
I want to ask about oceanscript to run corner.
Setup to run for -40, 27 150degC separately. There is no problem when I run 27deg and 150, however in -40deg, it is not able to run.
error mgs: is unbound variable - temp
error while loading file - "xxx.ocn"
problem resolve if i remove temp in ocnPrint and use temp instead of foreach loop?
How can I run -40degC and print the result?
Here is my part of my script;
for each(corner myCors
ocnPrint("corner" corner "temp" y1 "vgs" vgs)
Have you tried defining y1 as a double prior to the foreach() statement? Specifically, prior to your foreach() statement, use a statement such as:
y1 = -40.0
foreach(y1 '(27.0 150.0 -40.0)
In this fashion, y1 is declared as a double. I have experienced similar errors if y1 is not defined prior to its use in temp().
I have used the same script for 27 and 150 deg. Both works fine.
I have define temp previous which is not included in the scipt in my first post.
this is my full script.
simulator( 'spectre )
resultsDir( "/xxx/spectre/schematic" )
analysis('ac ?start "1" ?stop
"1G" ?dec "50" )
analysis('dc ?saveOppoint t )
desVar( "cap_factor" 1 )
desVar( "iled" 16m )
desVar( "i" 848u )
option( 'temp "150.0"
saveOption( 'subcktprobelvl "5" )
temp( 150.0 )
myCors=list("ff_lib" "tt_lib" "ss_lib")
foreach(y2 '(1m 10m)
foreach(y3 '(1u 5u)
differnetial_psrr = dB20((VF("/psrr") - VF("/ref")))
plot( differnetial_psrr ?expr '( "differnetial psrr" ) )
differential_psrr_3dB_BW = cross(dB20(VF("/psrr")) (value(dB20(VF("/psrr"))
1) + 3) 1 "either" nil nil)
;plot( differential_psrr_3dB_BW ?expr '( "differential_psrr_3dB BW" )
differential_psrr_dB_DC = value(dB20((VF("/psrr") -
;plot( differential_psrr_dB_DC ?expr '( "differential_psrr_dB_DC" )
differential_psrr_dB_max = ymax(dB20((VF("/psrr") -
ctr = VAR("ctr")
iled = VAR("iled")
ocnPrint("corner" corner "temp" y1 "iled" iled
"ctr" ctr "differnetial_psrr_dc" differential_psrr_dB_DC
"differential_psrr_dB_MIN" differential_psrr_dB_max ?output
smlogan said:y1 = -40.0foreach(y1 '(27.0 150.0 -40.0)
Shawn - this is absolutely unnecessary. SKILL doesn't require you to "declare" variables - and the type of a variable may change over time. In fact the foreach will cause a local variable y1 to be defined for the duration of the foreach - when the foreach completes, the previous value will become visible again (or if it was not defined, it will be unbound). That's fine...
I looked at the latest code posted by Yen, and it works OK (I had to adjust it to reflect signal names in my own testcase ,but apart from that it worked fine).
The most likely issue was that you may have accidentally had:
i.e. a space between the temp and the open parenthesis. This would have caused temp to be seen as a variable, followed by a function call to a function called y1. And that would result in:
*Error* eval: unbound variable - temp*Error* load: error while loading file - "forum.ocn" at line 43