Home > Community > Forums > Custom IC Design > how to let cadence start a simulation at certain time

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 how to let cadence start a simulation at certain time 

Last post Mon, Nov 14 2011 5:24 AM by Andrew Beckett. 3 replies.
Started by loon 11 Nov 2011 02:54 PM. Topic has 3 replies and 1441 views
Page 1 of 1 (4 items)
Sort Posts:
  • Fri, Nov 11 2011 2:54 PM

    • loon
    • Not Ranked
    • Joined on Fri, Jan 7 2011
    • Posts 8
    • Points 175
    how to let cadence start a simulation at certain time Reply

    Hi all,

           Due to the limitation, I want to start a simulation at night, I try to use ocean script to do that.

    There is a parameter startTime in run(), But I try several time to use run(?startTime "hour:minute"), it does not 

    work, simulation starts immediately. Can someone tell me how to do that?

          If run(?startTime xx:xx) does not work, what is the command in ocean to ask cadence hold for a while, for

    example, 1 minute, 10 minute, so I can get the current time every 1 /10 minute to compare with the time I 

    want to start simulation. 

     

    thanks!

        

       

    Filed under:
    • Post Points: 35
  • Fri, Nov 11 2011 6:03 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,587
    • Points 15,915
    Re: how to let cadence start a simulation at certain time Reply

    Hi,

    Have you considered trying "hiRegTimer" ?  It has two arguments, the first is a string of what you want to execute (so be careful, any string quotes in the function call would need to be escaped in this string argument to hiRegTimer) and the second argument is the delay before running the function, in 10ths of a second (e.g. 6000 would be 10 minutes).  I have not tried this out for Ocean scripts.

    hiRegTimer

    hiRegTimer(t_callbackStringx_tenthsofSeconds)=> t | nil

    Description

    Registers a SKILL function string that is executed after the specified time.

    Arguments

    t_callbackString
    SKILL function name (string) that is to be executed after the specified time (x_tenthsofSeconds) has passed.
    x_tenthsofSeconds
    Time, in tenths of seconds, after which the callback is executed.

     

    Hope this helps,

    Regards,

    Lawrence.

    • Post Points: 5
  • Mon, Nov 14 2011 1:06 AM

    • Marc Heise
    • Top 100 Contributor
    • Joined on Mon, May 4 2009
    • Feldkirchen, Bavaria
    • Posts 77
    • Points 1,310
    Re: how to let cadence start a simulation at certain time Reply

     I think you should set up a cronjob and let the operating system handle it.

     

    Marc

    • Post Points: 20
  • Mon, Nov 14 2011 5:24 AM

    Re: how to let cadence start a simulation at certain time Reply

    You can use run(?startTime "13:25") for example, but only when you're running in distributed mode. It doesn't work for local simulations.

    So if I have set up distributed processing (e.g. with LSF or SGE), and have hostMode('distributed) in the script, then ?startTime works fine (I just tried it).

    Andrew.

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by loon at 11 Nov 2011 02:54 PM. Topic has 3 replies.