• 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. Place pcell with default values

Stats

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

Place pcell with default values

SrBraj
SrBraj over 5 years ago
In the virtuoso layout view, place a pcell and change any param(eg "w") value. Now place the same pcell again, the param("w") will have changed param value, not the default value.
In the skill script I want to keep the default values every time I place the same pcell. What is the better way to implement this feature?
One way that I can think of is to read the "defVal" from CDF and assign it to the pcell.
Or in other words, I am looking for is the skill API which can do the same job as the "Defaults" button in the "Create Instance" dialog box.
 
Thanks and Regards
Saurabh
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    If you're placing an instance with SKILL, using dbCreateInst, it will have the default parameters. No need to do anything special. Or you could use dbCreateParamInst and you can pass specific parameter values - everything else will be at default. Neither of these will be influenced by what's on the form.

    If you want the create instance form to reset to defaults each time you use it, you can use:

    envSetVal("layout" "createInstResetCDF" 'boolean t)

    However, from your description, I suspect you don't need that unless your script is creating instances in a rather strange way.

    Andrew.

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

    If you're placing an instance with SKILL, using dbCreateInst, it will have the default parameters. No need to do anything special. Or you could use dbCreateParamInst and you can pass specific parameter values - everything else will be at default. Neither of these will be influenced by what's on the form.

    If you want the create instance form to reset to defaults each time you use it, you can use:

    envSetVal("layout" "createInstResetCDF" 'boolean t)

    However, from your description, I suspect you don't need that unless your script is creating instances in a rather strange way.

    Andrew.

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

    Hi Andrew

    Thanks for your reply. 

    I was using cdfUpdateInstParam() in my script, and this macro was setting the param value to changed param value instead of defaults.

    Thanks and Regards

    Saurabh

    • 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