Mark Zimmerman
New Member
Offline
Posts: 5
Santa Clara, CA
|
I am trying to run multiple simulations from a single OCEAN script. For various reasons, I cannot use a parametric simulation. Instead I am, at one point, using a "foreach(" loop to step through various parameter values, and a desVar expression to set the parameter to the given value.
A portion of the code is shown below. The first iteration through the loop performs fine, and all three "NOTE" points are reached. The second time through the loop, however, the script aborts after NOTE1, with the following error:
*Error* fprintf/sprintf: format spec. incompatible with data - nil
Are multiple run() statements not allowed in Ocean scripts? I am running my script in Cadence Ver: ic5141_usr5 from the CIW window.
foreach( (iloadval index) '(0 50e-3 93e-3 150e-3 186e-3) '(1 2 3 4 5) desVar( "iload" iloadval ) ocnPrint( "NOTE1" ) run() ocnPrint( "NOTE2" ) Avg = average(clip(VT("/Vout") 0.000125 0.00015)) Ripple = (ymax(clip(VT("/Vout") 0.000145 0.00015)) - ymin(clip(VT("/Vout") 0.000145 0.00015)))*1000 AvgArray[index] = Avg RippleArray[index] = Ripple ocnPrint( "NOTE3" ) )
Thanks, --Noth Bus
|