• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. how to let cadence start a simulation at certain time

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 126
  • Views 14659
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to let cadence start a simulation at certain time

loon
loon over 13 years ago

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!

    

   

  • Cancel
  • skillUser
    skillUser over 13 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Marc Heise
    Marc Heise over 13 years ago

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

     

    Marc

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    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.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information