The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 2nd, 2024, 12:17am
Pages: 1
Send Topic Print
Running multiple OCEAN sims (Read 4581 times)
Mark Zimmerman
New Member
*
Offline



Posts: 5
Santa Clara, CA
Running multiple OCEAN sims
Apr 28th, 2009, 3:30pm
 
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
Back to top
 
 
View Profile   IP Logged
analogue_guy
Community Member
***
Offline



Posts: 38

Re: Running multiple OCEAN sims
Reply #1 - Apr 29th, 2009, 7:27am
 
You would need an exception handling.

Try to run the simulation with the given variables, I am pretty sure that you will get problems (convergency etc. ...)
That is why you would need an exception handling. But simply try to run the simulation with the problematic variable values and you will know if it is really the case.
Back to top
 
 
View Profile   IP Logged
Mark Zimmerman
New Member
*
Offline



Posts: 5
Santa Clara, CA
Re: Running multiple OCEAN sims
Reply #2 - Apr 29th, 2009, 9:05am
 
I can run the simulations normally (outside of OCEAN) without problems.  I also don't have problems if I change the order of variables--the second simulation always exits with the same error.  

I am currently using a bdacosim simulator.  When I use spectreVerilog, I can execute multiple run() statements, however the simulations take ~10 times longer.  Any idea what bdacosim might be doing differently?
Back to top
 
 
View Profile   IP Logged
Andrew Beckett
Senior Fellow
******
Offline

Life, don't talk to
me about Life...

Posts: 1742
Bracknell, UK
Re: Running multiple OCEAN sims
Reply #3 - May 1st, 2009, 5:44am
 
Multiple run() calls are absolutely allowed in OCEAN scripts. I can only imagine there must be something wrong in the BDA ADE integration, since nothing appears wrong with what you're doing.

You're probably best contacting BDA about this.

Regards,

Andrew.
Back to top
 
 
View Profile WWW   IP Logged
Mark Zimmerman
New Member
*
Offline



Posts: 5
Santa Clara, CA
Re: Running multiple OCEAN sims
Reply #4 - May 1st, 2009, 9:11am
 
Andrew Beckett wrote on May 1st, 2009, 5:44am:
You're probably best contacting BDA about this.


Yeah, that's what we ended up doing on this side.  The ball's in their court, now, but I'll post an update to this thread if/when we get the problem figured out.  

Thanks again!
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.