• 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 default value of a CDF parameter

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 143
  • Views 10301
  • 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 default value of a CDF parameter

RVERP
RVERP over 2 years ago

I have a CDF parameter where I want to change the default state of. The cdf already exists so the default state is already defined.

The parameter is a boolean and the default is t. But when I want to change this with parameter~>value=nil I get following warning:

*WARNING* Effective CDF parameter 'paramName', cell 'testCell', library 'testLib',
'defValue' field must be specified.

I suppose if it's already there that it's also specified. So is it not possible this way to change the default value of an existing cdf parameter?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    Of course. You use:

    cdf=cdfGetBaseCellCDF(ddGetObj("testLib" "testCell"))
    cdfFindParamByName(cdf "paramName")->defValue=nil

    You didn't show what you were actually doing, so it's hard to guess what you did wrong.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RVERP
    RVERP over 2 years ago in reply to Andrew Beckett

    Some parameters need their default changed, I do:

    cdf=cdfGetBaseCellCDF(ddGetObj("testLib" "testCell"))
    foreach(parameter cdf~>parameters when(condition parameter~>defValue=nil))

    This produces the error.


    I noticed in my initial message above I wrote parameter~>value=nil, this should of course be parameter~>defValue=nil

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RVERP
    RVERP over 2 years ago in reply to Andrew Beckett

    I just tried to use cdfFindParamByName to change the default value, it generates the same error.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RVERP
    RVERP over 2 years ago

    I included the details of the specific cdf parameter to give some insight:


    (description nil callback "cbProcedure" choices
    nil data cdf:0x0x3f3eb110 defValue t
    display "deGetEditCellView()->cellViewType == \"maskLayout\"" dontSave nil editable
    "deGetEditCellView()->cellViewType == \"maskLayout\"" formField nil id dd:0x396e40b0
    name "paramName" paramType "boolean" parseAsCEL
    nil parseAsNumber nil prompt "paramName"
    units nil storeDefault nil type
    "baseCellData" use nil value t
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to RVERP

    Nothing obvious here - I can't see why that would cause it to complain about the effective CDF when you're editing the base CDF.

    Can you dump the Base CDF from the Tools->CDF->Edit form (with Base selected) in the CIW and share the resulting file?

    It shouldn't make any difference whether you're using cdfFindParamByName or iterating through the ->parameters as you're doing.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RVERP
    RVERP over 2 years ago in reply to Andrew Beckett

    I'm afraid I can't do that since I'm not sure what kinds of NDA I will be violating with posting this publicly.

    I tried changing the default with the edit form, this works. Maybe it's the techno the CDF is originally coming from that gives the issue. I did these kind of changes before with a whole variety of different techno's and flavours and this is the first time it fails. In this case it's an older techno with a buggy CDF already from the fab.

    I created a workaround for my application using the CB to have a "secondary default" so for now my problem is solved. If this issue occurs again in another techno I think I'll have to contact customer support for this.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RVERP
    RVERP over 2 years ago

    I looked into this a bit further and I found out that I always get this warning when I try to set the default to nil. By coincidence the only thing I did before was to set the defValue of a boolean to t.

    So no matter what, when I want to set the defValue of a boolean to nil, it fails. Is there another procedure to set this to nil?


    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to RVERP

    It's a bug. I've reproduced it. I found an old CCR on this: 1683564 (there's an even older one too). As a workaround there's this article:

    How to change the defValue of a boolean CDF parameter in SKILL?

    Unfortunately the article has a limitation - it doesn't preserve the order of the parameters - it will recreate the boolean parameter at the end of the parameter list. It could be modified to do that, but would complicate matters considerably.

    You might want to request a duplicate CCR is filed by contacting customer support.

    Regards,

    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