• 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
  • FormerMember
    FormerMember over 5 years ago

    Hi Anuj,

    Please look at the following skill snippet for ideas:

                        wr->OldName = instancepointer->name
                        wr->NewName = pcreReplace( wr->pcre wr->OldName replaceValue 1)
                        if( wr->OldName != wr->NewName
                        then
                          instancepointer->name = wr->NewName
                          wr->Text = strcat( "set inst name: " wr->NewName)
                          wr->Replaced = wr->Replaced + 1
                        )

    You need to add a foreach loop to work on each of your instances.
    The pcre expression needs to be defined of course.
    In my case I use a wr->xx variables so I have only one local variable to define:
      let( ( wr)
     
        wr = ncons( nil)
    ...   

    Regards, William

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

    Thanks for your response William, but as I am still novice at SKILL, let me check the solution from Sheppie first Slight smile

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

    Thanks for your response William, but as I am still novice at SKILL, let me check the solution from Sheppie first Slight smile

    • 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