• 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. How to reorder the CDF in SKILL?

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 14007
  • 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

How to reorder the CDF in SKILL?

GoRangers
GoRangers over 11 years ago

Hi,

I've been coding SKILL for a long time, and right now I'm basically doing this:

cdfid2 = cdfGetBaseCellCDF(cell2)

cdfid1 = cdfCopyCDF(cell1 "baseCellData" cdfid2)

cdfCreateParam(cdfid1  ?name  <blah blah blah> )

cdfCreateParam(cdfid1  ?name  <blah blah blah> )

....

cdfSaveCDF(cdfid1)

 

Basically I have a cell1 which borrows almost exactly the CDF from cell2--callbacks and all--and then adds a few more parameters.   My problem is, the additional parameters appear at the BOTTOM of the cdfgForm.  I need them at the top.   How do I reorder them?  I tried something along the lines of:

cdfid~>parameters = append1(cdr(cdfid~>parameters) car(cdfid~>parameters))

and it didn't work.  Attempts to modify cdfid~>parameters directly don't seem to respond.   cdfDump doesn't work very well, because that requires some manual invervention to inject the new parameters at the beginning before reloading it (unless you did some fancy SKILL/Python code to hack up the ascii cdfDump.il file).   Is there some command similar to hiInsertMenuItem where I just say, "I want this parameter to appear at this position, before this other parameter"?

thanks!

 

  • Cancel
  • skillUser
    skillUser over 11 years ago

    Hi "GoRangers",

    Sorry, but no, there is no method (that I know of) that allows us to insert a new CDF parameter at an arbitrary position in the parameter list. It sounds as though this would make a good enhancement request; if you interested, please create a case so that an enhancement request can be entered on your behalf.  The only way that I know of for doing this is to create the parameters in the desired order first.  I guess that you could write a utility function that grabs the parameters from the original that you want to copy and inserts the additional ones at the appropriate locations.  One function argument would say which cell to copy the base parameters from, and another function argument could be structured as a list of lists where each sublist defines which original parameter the new one will be inserted after, and then all of the parameter information (name, type, default value etc.).  Not entirely trivial, but not too difficult.

    Hopefully my ramblings may be somewhat helpful?

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • GoRangers
    GoRangers over 11 years ago

    cdfCreateParam, followed by cdfCopyParam.  I bet that'll work.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • GoRangers
    GoRangers over 11 years ago

    +1 Lawrence.

     Works like a charm.  Kinda obvious, once you mention it.

     

    • 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