• 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. Are there SKILL functions to modify cds.lib?

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 10525
  • 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

Are there SKILL functions to modify cds.lib?

MorrisDH
MorrisDH over 3 years ago

I am using shell commands to modify cds.lib because I've not found a skill command that will do this.

Add a library

shell("echo DEFINE myLib /path/to/myLib >> cds.lib")

ddUpdateLibList()

Delete a library

shell("cat cds.lib | grep -v myLib >> xx ; mv xx cds.lib")

ddUpdateLibList

Is there a SKILL funtion that will add or remove libraries from cds.lib?

  • Cancel
Parents
  • AurelBuche
    AurelBuche over 3 years ago

    Hi, I don't think there is any public function to do so

    Even in Cadence support articles, they use system calls How to work with an modified/updated cds.lib file within a SKILL script?

    You might delete in a more elegant way using sed (or in a safer way by adding UNDEFINE in your cds.lib) though

    Cheers

    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • AurelBuche
    AurelBuche over 3 years ago

    Hi, I don't think there is any public function to do so

    Even in Cadence support articles, they use system calls How to work with an modified/updated cds.lib file within a SKILL script?

    You might delete in a more elegant way using sed (or in a safer way by adding UNDEFINE in your cds.lib) though

    Cheers

    Aurélien

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to AurelBuche

    To add a library to the cds.lib, you can just use ddCreateLib - if the library directory already exists, all this does is add it to the cds.lib

    I don't believe there's a function just to remove an entry from the cds.lib (simplest is to concatenate an UNDEFINE statement to the end). The ddDeleteObj function will remove it, but it also removes the library from disk which you probably don't want.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • MorrisDH
    MorrisDH over 3 years ago in reply to AurelBuche

    Not sure how to duplicate the functionality in sed. I like the UNDEFINE suggestion. Thanks,

    • 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