• 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 code to disable all callbacks

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 143
  • Views 15015
  • 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 code to disable all callbacks

Genas
Genas over 5 years ago

Can anybody assist with a Skill code /function to disable all callbacks

  • Cancel
Parents
  • mbracht
    mbracht over 5 years ago

    Hi,

    What do you mean with "all callbacks"? The term generally  callback refers to any Skill code that is triggered by an event as opposed to being called explicitly. Do you talk about CDF callbacks or callbacks in a GUI or what exactly? Disabling literally all callbacks will render your virtuoso session useless.

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Genas
    Genas over 5 years ago in reply to mbracht

    I want to actually disable the callback controlling the width and length of a device. For example, device range is enforced by a callback so a user cant enter any value outside the range . I want to disable this property temporarily so i can enter values outside the allowed range. 

    Given a pmos with w = [ 2 -9 ],  I want to enter a value of 1.

    The callback currently doesn't allow that, so I want to bypass it and enter any value

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mbracht
    mbracht over 5 years ago in reply to Genas

    Ok that sounds like a CDF callback. You don't need Skill to delete these. You may edit them in the CDF editor. In the CIW goto

    Tools - CDF - Edit...

    then pick library and cell from the combo boxes, locate the parameter in question and there you may modify the callback to your hearts content.

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Genas
    Genas over 5 years ago in reply to mbracht

    Yes, it is a cdf callback scenario, can I do this with skill because I am running in virtuoso no graph mode, so I dont have access to the GUI

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Genas
    Genas over 5 years ago in reply to mbracht

    Yes, it is a cdf callback scenario, can I do this with skill because I am running in virtuoso no graph mode, so I dont have access to the GUI

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

    This code will do what you want:

    /********************************************************************
    *                                                                   *
    *               CCFresetCallback(lib cell paramName)                *
    *                                                                   *
    *      Resets the callback in the effective CDF to blank. Does      *
    * so by creating user CDF as needed, copying the parameter from the *
    *                 base CDF, and resetting it there.                 *
    *                                                                   *
    ********************************************************************/
    
    procedure(CCFresetCallback(lib cell paramName)
      let((ddId cdf userCdf param userParam)
        ddId=ddGetObj(lib cell)
        userCdf=cdfGetUserCellCDF(ddId) || cdfCreateUserCellCDF(ddId)
        userParam=cdfFindParamByName(userCdf paramName) 
        unless(userParam
          cdf=cdfGetBaseCellCDF(ddId)
          param=cdfFindParamByName(cdf paramName) 
          userParam=cdfCopyParam(userCdf param)
        )
        userParam->callback=""
        t
      )
    )

    Regards,

    Andrew

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

    Andrew,

    Thanks for this code!
    What I don't understand though is why the CDF callbacks get triggered in nograph mode in the first place. I always figured CDF callbacks were form callbacks and in such do require a graphic environment.

    Max

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

    Max,

    That's a very good point, and one I overlooked.

    One possibility is that a replay file is being used which is still interacting with the form, and another is that a generic function (such as abInvokeCdfCallbacks or CCSinvokeCdfCallbacks is being used to trigger the callbacks after a database change; however, if it was that then they have the ability to omit calling specified callbacks anyway, so I assume that can't be it).

    We'll need Genas to explain...

    Andrew.

    • 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