• 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. SKILL command to copy a library, including categories

Stats

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

SKILL command to copy a library, including categories

Aldo2
Aldo2 over 5 years ago

Hello,

I used ccpCopy command to copy a library using SKILL. Is it possible to copy categories as well?

Thank you

Best regards,

Aldo

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

    Hi Aldo,

    Yes, it seems to work. For example:

    miscCat=gdmCreateSpec("analogLib" "" "" "Misc.Cat" "CDBA")
    dl=gdmCreateSpec("RFworkshop" "" "" "" "CDBA")
    src=gdmCreateSpecList()
    dst=gdmCreateSpecList()
    gdmAddSpecToSpecList(miscCat src)
    gdmAddSpecToSpecList(dl dst)
    ccpCopy(src dst t)

    Note that it won't show up unless you either copy the top level category (e.g. analog.TopCat in the example above) - the updater will automatically rename that to RFworkshop.TopCat - or you recreate the top level category using the ddCat API.

    Andrew.

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

    Thank you Andrew.

    And for selecting them, I have to use a statement like:

    foreach(cellId ddGetObj(libNameNew)~>files...

    picking out *.Cat and *.TopCat files only, or there is an alternative way?

    Thank you

    BR,

    Aldo

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

    Hi Aldo,

    You could use the category APIs, so starting with ddCatGetLibCats(ddGetObj("analogLib")) to get the names of the library level categories, but then you'd have to find any sub-categories too. So pragmatically it might just be easier to pattern match for anything ending in .Cat or .TopCat (even though that feels wrong to me, it's probably simplest).

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to Aldo2

    Hi Aldo,

    You could use the category APIs, so starting with ddCatGetLibCats(ddGetObj("analogLib")) to get the names of the library level categories, but then you'd have to find any sub-categories too. So pragmatically it might just be easier to pattern match for anything ending in .Cat or .TopCat (even though that feels wrong to me, it's probably simplest).

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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