• 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. Monte Carlo Ocean XL: Interrupting simulations in a scr...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 13321
  • 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

Monte Carlo Ocean XL: Interrupting simulations in a script

Martyniuk
Martyniuk over 5 years ago

Dear All,

In the past I would interrupt an ocean script by issuing a ctrl-c, and this would stop the present simulation.  I am finding that the behaviour is not the same with ocean XL(IC6.1.8-64b.500.7), and there is no response to ctrl-c.

I start ocean from the command line with just "ocean", and begin the script with either:

ocnSetXLMode("assembler") or ocnSetXLMode("explorer")

The simulation is a harmonic balance simulation, with APS selected and 16 threads.

To interrupt the script I find that I need to seek out the spectre PID and use kill -9. 

Is there a more interactive setup that I can use that will respond to an interrupt, or am I using the best practice?

Best regards,

Paul

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    Hi Paul,

    I don't think there's a good way of doing this, unfortunately. I think if you killed the running "ocean" or "virtuoso" session, it would (normally) kill any launched simulations too, but that's not that easy either. It appears there have been some discussions about this before in previous change requests, but I don't see any particularly good way of doing this right now. The issue is that OCEAN XL (often) launches the simulations via a background process and there's a lot of housekeeping that has to be done so interrupting it is not entirely trivial...

    One possibility is if you launch the simulations this way:

    ocnxlRun( ?mode 'sweepsAndCorners ?nominalCornerEnabled t ?allCornersEnabled t ?allSweepsEnabled t ?waitUntilDone nil)

    i..e with ?waitUntilDone nil 

    Then it doesn't block. You can then type:

    ocnxlEndXLMode()

    and it will stop any simulations and finish the script. Of course, you need to then wait until finished before calling ocnxlOutputSummary too.

    Unfortunately if you use the return value of ocnxlRun and pass this to ocnxlWaitUntilDone then you find that if you do control-C it does stop the simulations but then seems to hang virtuoso/ocean.

    Regards,

    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