• 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 SKILL
  3. SKILL commands on clearing CIW history

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 19327
  • 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

SKILL commands on clearing CIW history

Alex Vasjanov
Alex Vasjanov over 11 years ago

 Hello cadence community,

 

I've have a question - is there any way (via SKILL commands) to clean the history (and even better - clear the cache and oher CIW inner memory cells as if you would start from scratch) in the main CIW window?

 

Now, explaining what I mean by the word "cleaning" and why I need it.

 

This operation is required when I'm doing huge calculations (say 2000 iterations of any type of analysis) via OCEAN scripts. The problem is simple - the script does calculations on say 2/3 of all required and then CIW vanishes without leaving any messages in the terminal. From my experience I can tell that the script does about 1500 or so iterations and then CIW vanishes.

 

 I'm very picky on what I save (aka save 'selected) and every iteration overwrites the results folder therefore work folder being overfilled by netlists and results is not the solution to this. This is also not a script problem because the script runs perfectly and finishes as intended when less iteration counts are set.

 

I assume that some sort of a inner buffer is overfilled, but don't have a clue whether that's the case. For example Matlab has "clear" and "clear all" commands to clean the buffer. Tried to search for something of that sort in the design framework II SKILL document, but found nothing. Did a quick search on this in other SKILL documents in the cdnchelp folder but to no avail.

 

I'm using  Virtuoso 5.10.41.500.6.150 (don't think that mattters, but still). Didn't try running the script on IC6.15.

 

Regards,

Aleksandr.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    I think you're simply running out of memory. If you are creating a lot of waveform objects in IC5141, it doesn't always trigger garbage collection soon enough (the process of cleaning up and reclaiming memory) on such objects. You might be able to improve matters by:

    1. Ensuring that variables are not referencing the waveform objects any more
    2. Explicitly calling gc() to encourage a garbage collection.

    There's no such thing as "clean the history" or "clear the cache" in Virtuoso - you can close cellViews (by doing File->Close Data) but this doesn't necessarily mean that all memory will be reclaimed.

    If you can move to IC61X (ideally IC615 or later), there is improved memory management with waveform objects, plus the fact that you can run in 64-bit mode which gives access to more memory.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Alex Vasjanov
    Alex Vasjanov over 11 years ago

     Hello, Andrew,

     

    Thanks for the suggestion. 

     

    I'm running calculations in 64 bit mode for reasons of larger memory capabilities. And in this particular script an STB analysis is active and no waveforms are plotted - only phase and gain margins are sent to log.

     

    Therefore I will try to call gc() as you suggested once in a while.

     

     Regards,

    Aleksandr.

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

    Aleksandr,

    You might be running the simulator in 64 bit mode but cannot be running the OCEAN script in 64 bit mode if you are using IC5141 since general 64 bit support was not added for virtuoso/icfb until IC614. In IC5141 only "layout" and the stream interfaces (and a couple of other bits and pieces) had 64 bit support.

    Kind Regards,

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Alex Vasjanov
    Alex Vasjanov over 11 years ago

     Andrew,

     

    Now I'm a bit confused. You are saying that IC5141 simulations are not able to do calculations on 64 bit basis either way - from ADE (enabling this option via setup->environment->run with 64 bit binary) and OCEAN? Or is this true only for OCEAN?

     

    Regards,

    Aleksandr

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

    Aleksandr,

    That setting in ADE (and equivalent in an OCEAN script) tells spectre to run in 64-bit mode (you'd see this in the spectre log file too). The icfb or ocean executable is still running in 32 bit mode which means that any post-processing calculations (I assumed that by calculations you meant the post-processing rather than the simulation itself) are constrained by a 32 bit memory limit. If you end up loading a lot of waveforms in your script, and insufficient garbage collection is being performed, you could run out of memory (a 32 bit executable has a maximum memory usage of less than 4Gb).

    Does that clear things up? Or have I confused you more? ;-(

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Alex Vasjanov
    Alex Vasjanov over 11 years ago

    Andrew,

     this is clear as a whistle. I assumed that ADE is equivalent to OCEAN, but questioned that to make sure.

     

    Thanks again for the explanations and the effort.

     

    Regards,

    Aleksandr

    • 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