• 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. Change parameters in pcDefinePCell code body

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13383
  • 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

Change parameters in pcDefinePCell code body

RVERP
RVERP over 12 years ago

Hi, I have a normal pcell that you can give certain parameters.  I want to check in this pcell if certain parameters are between a min and max value, and the reset the parameter to this value.  How is this done?

 

For now i tried a if else statement.
So I have parameter l, in the code body i check

if( l<minL then l = minL)

If I create an instance of this pcell, and enter a value lower as minL, this results in a pcell with correct l, only the value I initial entered is still visible in the instance parameters. 

Can I change this?

 

Thanks,

Rik 

  • Cancel
  • skillUser
    skillUser over 12 years ago

     Hi Rik,

    This is a case where CDF callbacks can be used to good effect - the PCell parameter would have an associated CDF parameter, and this parameter would have a callback so that when the value is entered/changed on a form (Edit Object Properties, Add Instance) the value is checked within the boundaries that you set up; the CDF callback can modify (e.g. reset to min or max) the value to provide feedback to the user (along with a printed statement in the CIW, perhaps?)

    Search for CDF callbacks if you need more help, or post follow-on questions here.

    Hope this helps!

    Regards,

    Lawrence.

    • 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