A crazy idea to crash cadence session :-)

Discussion in 'Cadence' started by noreply, Jul 7, 2009.

  1. noreply

    noreply Guest

    Hi i was trying the following and my cadence session was caught up in
    a infinite loop(Based on the number of elements that were dumped in
    the layout i'm sure the loop got executed 499 times). and finally i
    had to kill cadence through my terminal(yes,Alt+F4 didn't work).
    Hey just giving this for fun(Please be sure that you don't loose any
    data).
    I wrote a file called "hi.il"
    Only two lines were present in the file
    line1:loadi "<path>/hi.il"
    line2:loadi "<path>/optimization.il";This was a pretty big program
    roughly 400 lines.

    Then in the CIW i wrote
    loadi "<path>/hi.il"

    Yes i loaded the same file. And it was an accident.
    Can anyone explain why the cadence ran into an infinite loop.(the
    line2 was executed 499 times)
    Thanks and regards,
    Lokesh rajendran.
     
    noreply, Jul 7, 2009
    #1
  2. noreply wrote, on 07/07/09 08:18:
    Well, the code it loading itself. Probably eventually it runs out of file
    handles, and so won't load any more files, at which point it would start
    returning back out of the nested recursive loads, executing line2 as it comes
    back up the "stack"...

    Clearly the code is wrong, because you wouldn't want to load a file from itself.

    Regards,

    Andrew.
     
    Andrew Beckett, Jul 8, 2009
    #2
  3. noreply

    noreply Guest

    Oh !! i got it,
    An amateur code writer can always be forgiven.
    Regards,
    Lokesh
     
    noreply, Jul 9, 2009
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.