• 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. Renaming instances with a pattern in its name to a new ...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 15969
  • 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

Renaming instances with a pattern in its name to a new pattern

Anuj G
Anuj G over 5 years ago

Hi,

I am looking for a SKILL code to rename cells having a pattern in the instances in it to a new pattern.

Example:

All the instances in a having a pattern (say ABC) to be updated to a new cell name with the pattern (say XYZ)

Topcell (any or from a list)

cell1_ABC_corner --> cell1_XYZ_corner

cell2_ABC_edge --> cell2_XYZ_edge

...

...

Note: The referenced cells are from a different library.

Thanks & Regards,

Anuj

  • Cancel
Parents
  • Sheppie
    Sheppie over 5 years ago

    Hi Anuj,

    For exact this situation, I created the attached script. Load this script in CIW and it will add a menu to the CIW called Toolbox. Inside this menu, an item is added wich will open a GUI. With this, you can do various things, including what you're looking for. In order to achieve what you want, do the following (after you have loaded the code and selected it from the Toolbox menu...):

    1. Enable Copy to New (Target)
    2. Enable Delete Originals (Source)
    3. If you want to re-reference all currently used cells in other cells, enable Re-Reference Instances as well
    4. Select the library which holds the cells you want to rename
    5. Select all cells you want to rename
    6. Select all views you want to apply the rename to, usually it is to all views
    7. Select Same As Source for the target library (otherwise it wouldn't be a rename)
    8. Select Part-of-name Replacement For All (Source) Cells
    9. In Old, type the old part you want ot replace, in your example this is ABC, this can be a regular expression
    10. In New, type the new part (what should replace the old part), in your example this is XYZ
    11. If you have enabled number 3, you have to specify which libraries should be re-referenced
    12. Specify a log-file-name, or leave it as is
    13. Determine the Write mode, should it overwrite any existing cell if it exist?
    14. Finally, you can choose to do a dry-run first (highly recommended), which willdo all steps, except for the actual renaming, but it will tell you what it would have done. Examine the log-file to see if it is performing what you want it to do. If you're satisfied with the log, you can disable this and let it do it's thing (dry-run is much faster than the actual run though)

    As you can see in the screenshot of the GUI, this script can be used to do other types of renaming as well. Furthermore, it should work if you have a version control system for the Cadence database. It is tested with CLIOSoft, don't know whether or not it works with other systems (like Synchronisity or SVN).

    If you don't trust this code (which is perfectly fine), I suggest you make a full copy of the library in which the cells are that you want to rename. Make this copy using Cadence, no Linux copy. And then use this script to test it on this copy. That way, if things are not working as expected, you're not in trouble.

    Good luck!

    Kind regards,

    Sjoerd

    1067.BRRC.il.txt

    PS:

    Remove .txt from the filename, this forum does not allow to attach .il files, therefor I had to add .txt ...

    The file has been written in a text-editor with tab-size set to 8 spaces. When you set your editor to thai same size, it is easier to read and understand.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Anuj G
    Anuj G over 5 years ago in reply to Sheppie

    Thanks for the prompt response Sheppie, let me check on this.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Anuj G
    Anuj G over 5 years ago in reply to Sheppie

    Thanks for the prompt response Sheppie, let me check on this.

    • 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