Home > Community > Forums > Custom IC SKILL > Long script runs out of memory


* 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: *

 Long script runs out of memory 

Last post 02-01-2013 5:33 PM by thomas1000. 4 replies.
Started by thomas1000 31 Jan 2013 09:18 AM. Topic has 4 replies and 901 views
Page 1 of 1 (5 items)
Sort Posts:
  • 01-31-2013 9:18 AM

    Long script runs out of memory Reply

    I have a SKILL script that runs out of memory and terminates Cadence when running on a medium-sized MMIC.  I will try assigning intermediate variables to nil after they are used but is there anything I can do either to increase memory or in general to redue its use?

    Filed under:
    • Post Points: 20
  • 01-31-2013 10:50 AM

    • marcelpreda
    • Top 150 Contributor
    • Joined on 01-19-2010
    • Bucharest, Romania
    • Posts 44
    • Points 715
    Re: Long script runs out of memory Reply

     Hi Thomas,

     Difficult to guess without having a pice of code.

    Anyhow there are few hints:

    - if possible, switch to a 64bit cadence version, probable yours is a 32bit

    - could be a OS limitation of memory/process 

    - you may need to change your data structures, from what I've noticed creating a lot of lists will exhaust the memory. Also, the extensive usage of hashes/associative_arrays makeTable(...)  may create memory problems.





    • Post Points: 20
  • 01-31-2013 10:54 AM

    Re: Long script runs out of memory Reply

    Thanks for the inputs.

    The version of Cadence is dictated by the foundry so the first option is out

    I will look into the second possibility on the OS

    I do have a number of lists and am now assigning them to nil when not in use - hopefully that will correct the issue.

    • Post Points: 20
  • 01-31-2013 11:02 AM

    • dmay
    • Top 25 Contributor
    • Joined on 07-17-2008
    • Allen, TX
    • Posts 393
    • Points 7,415
    Re: Long script runs out of memory Reply

    Do you have a Skill development license? If so, you can profile the performance and memory usage of your program:

    CIW->Tools->Skill Development
    Click on Skill Profiler
    From the profile menu, you can choose "Start Profiling Time" or "Start Profiling Memory".
    After the profiler has started, run your program. Since it is currently crashing Cadence, you'll want to run a smaller data set, or even ctrl-c to cancel the command before you crash.
    When your run has finished, press the "Stop" button on the profiler form (the square) and you'll see some information about the top memory users or time users.
    Press the Browse button (looks like a tree) and it will build a tree of your code to help you see your memory usage in your code hierarchy.
    Then examine the profile results to help pin point your memory hog. If you are able to get this far and isolate the problem code, then post it and we can help you improve it.

    If you don't have the profiler, you might want to post a sample of your code.


    • Post Points: 20
  • 02-01-2013 5:33 PM

    Re: Long script runs out of memory Reply

    Thanks.  That was helpful.  I was able to find the memory problem and solve it.  I had not needed to use the profiler much before but in this case it was helpful.

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by thomas1000 at 31 Jan 2013 09:18 AM. Topic has 4 replies.