• 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: can not delete history in a loop

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 15872
  • 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: can not delete history in a loop

Martyniuk
Martyniuk over 5 years ago

Dear All,

After moving to IC6.1.8-64b.500.7, my previously functioning MC scripts became more finicky about history entries.  Admittedly this previously working script had a lot of hacks in it. 

I have a loop where I want to overwrite the previous run's history and keep the same history name.

The error that I am stuck on is:

ERROR (EXPLORER-2406): A history entry named uncal.0 cannot be created.
There is already a history entry with that name.
Delete the existing entry or choose a different name.

My script has the following:

;ocnxlSetOverwriteHistory( t )
;ocnxlSetOverwriteHistoryName( "uncal.0" )
;ocnxlRenameCurrentHistory("old")
ocnxlHistoryPrefix( "uncal" )
ocnxlRun( ?mode 'monteCarlo ?nominalCornerEnabled t ?allCornersEnabled t ?allSweepsEnabled t)

The commented out lines were commands that I tried to overcome the error.  Is there a delete history command?  I figured that the two OverWrite commands would have worked.

The big picture is that I have a loop where a Monte Carlo simulation runs in order to calculate a correction, and then the simulation is rerun with the same seed and the correction applied.  During each iteration I do not want to accumulate data (psf files) after the outputs have been collected, so overwriting or deleting after each run would be sufficient.

Best regards,

Paul 

  • Cancel
Parents
  • Martyniuk
    Martyniuk over 5 years ago

    Some follow up:

    Since the error response guided me to delete or rename the history entry, and only renaming worked, I am going with the following ugly solution:

    ocnSetXLMode(“explorer”)

    ocnxlResultsLocation(    “/usr/simulation/mc_sim_results” )

    ocnxlSimResultsLocation( “/usr/simulation/mc_sim_results” )

    ocnxlHistoryPrefix( getCurrentTime() )

    ocnxlRun( ?mode 'monteCarlo ?nominalCornerEnabled t ?allCornersEnabled t ?allSweepsEnabled t)

    system( “rm -rf /usr/simulation/mc_sim_results”)

    This will create unique history entries so they will never collide again, and instead of rewriting the previous data to keep the size down, a system command is used to delete the entire folder.  The reason I want to overwrite or delete each run is because the psf file is very large in order to preserve the data required to be post processed, but once it is boiled down to a few numbers it can be discarded.  Also, accumulating psf outputs for each MC run and doing a cleanup after all of the MC iterations would take an unreasonable amount of disk space.

    There has to be a better way to gracefully delete or overwrite previous MC runs.

    Best regards,

    Paul

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to Martyniuk

    Hi Paul,

    I reproduced the problem myself, and then did a bit of searching and found existing CCR 2107828 for this (it's recognised as an issue, but R&D have not yet fixed it due to other urgent commitments).

    I worked around the issue by using:

    ocnSetXLMode("assembler") ; rather than "explorer"

    and then:

    ocnxlHistoryPrefix("uncal")
    ocnxlSetOverwriteHistory(t)
    ocnxlSetOverwriteHistoryName("Next History Run")

    and then at the very end you'd need to do:

    ocnxlEndXLMode("assembler")

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Martyniuk
    Martyniuk over 5 years ago in reply to Andrew Beckett

    Hi Andrew,

    Your solution works well. 

    Thanks,

    Paul

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Martyniuk
    Martyniuk over 5 years ago in reply to Andrew Beckett

    Hi Andrew,

    Your solution works well. 

    Thanks,

    Paul

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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