*Error* def : function is write protected and cannot be redefined

Discussion in 'Cadence' started by RC MURALI, Jan 18, 2010.

  1. RC MURALI

    RC MURALI Guest

    Hi,

    I am getting the following message in icfb CIW, if I try to reload any
    of my skill utilites.

    *Error* def : function is write protected and cannot be redefined

    How to get rid of this?

    Thanks & Regards,
    Murali RC
     
    RC MURALI, Jan 18, 2010
    #1
  2. RC MURALI wrote, on 01/18/10 10:11:
    I'm guessing you have:

    sstatus(writeProtect t)

    in your .cdsinit or in your code somewhere. If you don't add this, then
    functions will not be write protected.

    Note that write protection is stored on the function at the time it is created -
    so it's no good to just enter:

    sstatus(writeProtect nil)

    after the function is defined - it honours whatever status it was at definition
    time.

    You can also switch to debug mode, and then write protected functions can be
    overwritten:

    sstatus(debugMode t)

    Regards,

    Andrew.
     
    Andrew Beckett, Jan 18, 2010
    #2
  3. RC MURALI

    RC MURALI Guest


    Thanks Andrew. It worked.

    Where can I find the name of the different Internal System Variables?

    Say in this case, we have used "debugMode" "writeProtect".
     
    RC MURALI, Jan 19, 2010
    #3
  4. RC MURALI wrote, on 01/19/10 04:50:
    Open the documentation (cdnshelp in IC61X, and cdsdoc in IC5141) and search for
    "sstatus". Or search for writeProtect.

    Or look in <ICinstDir>/doc/sklangref/sklangref.pdf or
    <ICinstDir>/doc/sklanguser/sklanguser.pdf (the same manuals that the search
    above will use).

    Did you try looking in the documentation?

    Regards,

    Andrew.
     
    Andrew Beckett, Jan 19, 2010
    #4
  5. RC MURALI

    RC MURALI Guest

    Thanks. I got it.
     
    RC MURALI, Jan 21, 2010
    #5
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.