• 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 change library name & cell name by SKILL

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 142
  • Views 7356
  • 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 change library name & cell name by SKILL

ajuvolkov
ajuvolkov over 16 years ago

Hello.

I need to change library name and cell name in all instances of the project.

See below simple example, when I attempt to change this parameter:

w = hiGetCurrentWindow()
cv = geGetWindowCellView(w)

inst=nthelem(1 cv~>instances)
inst~>libName="NEW_PROCESS"

 

but this returned:

*Error* setSGq: dbSetq: Can not set attribute - libName

 

How can I change this parameter? 

  • Cancel
Parents
  • skillUser
    skillUser over 16 years ago

    Hi,

    In addition to what Andrew has said, it may be more efficient to change the instHeader for the instances that you want to all change to a new master.  Find the instHeader, something like:

    ih = car(setof( instHead cv~>instHeaders instHead~>libName == "origLibName" && instHead~>cellName == "origCellName")

    dbSetInstHeaderMasterName(ih "NEW_PROCESS" ih~>cellName ih~>viewName)

    [I have not tested the above code, but it should work].  If the cell names are different, then you might want to have a mapping table for the from-to name mappings.  There are a few solutions in SourceLink for doing this too, for example:

    Solution 11300258
    Solution 11256326
    Solution 11406650
    Solution 11330954
    Solution 11330948
    Solution 11330942

    Take a look at the last two in particular, since they use the instHeader approach. Many of these will change multiple cells, or even a whole library. Did you look on SourceLink?

    If you need to re-reference all the cells to the same new library, why don't you use Edit->Rename Reference Library from the Library Manager menus?

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillUser
    skillUser over 16 years ago

    Hi,

    In addition to what Andrew has said, it may be more efficient to change the instHeader for the instances that you want to all change to a new master.  Find the instHeader, something like:

    ih = car(setof( instHead cv~>instHeaders instHead~>libName == "origLibName" && instHead~>cellName == "origCellName")

    dbSetInstHeaderMasterName(ih "NEW_PROCESS" ih~>cellName ih~>viewName)

    [I have not tested the above code, but it should work].  If the cell names are different, then you might want to have a mapping table for the from-to name mappings.  There are a few solutions in SourceLink for doing this too, for example:

    Solution 11300258
    Solution 11256326
    Solution 11406650
    Solution 11330954
    Solution 11330948
    Solution 11330942

    Take a look at the last two in particular, since they use the instHeader approach. Many of these will change multiple cells, or even a whole library. Did you look on SourceLink?

    If you need to re-reference all the cells to the same new library, why don't you use Edit->Rename Reference Library from the Library Manager menus?

    Regards,

    Lawrence.

    • 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