• 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. Callback writing

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 142
  • Views 6793
  • 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

Callback writing

FormerMember
FormerMember over 6 years ago

Hi all,

How can I get the cellName of the cell that I modify a parameter into an edit property from ?

I found for the libName:

((cdfgData~>id)~>lib)~>name

or

((cdfgData->id)->lib)->name

or

cdfgData->id->lib->name

but not for the cellName

thanks for your help,

Olivier

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    Olivier,

    The same could in theory be done with cdfgData->id->name but this is dangerous (for both cell name and lib name). The issue is that if you want to call CDF callbacks procedurally, you may then work with the instance CDF rather than the cell CDF, and the ->id points at the instance object rather than the cell object.

    I would probably do:

    libName = cdfgData->id->libName || cdfgData->id->lib->name
    cellName = cdfgData->id->cellName || cdfgData->id->name

    That means it would first try looking at the libName and cellName attributes on an instance object (which would work if the cdfgData is an instance CDF) and then the appropriate attributes if it's a cell object from cell CDF.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    Olivier,

    The same could in theory be done with cdfgData->id->name but this is dangerous (for both cell name and lib name). The issue is that if you want to call CDF callbacks procedurally, you may then work with the instance CDF rather than the cell CDF, and the ->id points at the instance object rather than the cell object.

    I would probably do:

    libName = cdfgData->id->libName || cdfgData->id->lib->name
    cellName = cdfgData->id->cellName || cdfgData->id->name

    That means it would first try looking at the libName and cellName attributes on an instance object (which would work if the cdfgData is an instance CDF) and then the appropriate attributes if it's a cell object from cell CDF.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • FormerMember
    FormerMember over 6 years ago in reply to Andrew Beckett

    Thank you Andrew,

    Work fine !

    • 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