• 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 script to add prefix to existing pins on schemati...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 14809
  • 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 script to add prefix to existing pins on schematic

TommasoF
TommasoF over 5 years ago

Hi all,

I would need to take all the pins placed on an existing schematic and rename them by adding a prefix (or suffix). I navigated throughout the various threads of the forum and tried out several different solutions, but somehow they do not serve my need. I tried to write a script on my own, but I am a newbie on SKILL so it's not so easy...

Can somebody give me a hint on how to do that ?

thanks

Tommaso

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    Hi Tommaso,

    Simply renaming the pins (probably terminals is what you really mean) is simple:

    cv=geGetEditCellView()
    foreach(term cv~>terminals term~>name=strcat("PRE_" term~>name))

    However, in practice you also need to fix the wire labels too, and that can get a bit more complicated if you have bus/bundle wire names (I'm not going to write the code to do that). Assuming it's just simple wire names, something like this could do the job:

    prefix="PRE_"
    foreach(term cv~>terminals
      ; rename simple wire labels
      foreach(fig term~>net~>figs
        when(fig~>objType=="label" && fig~>theLabel==term~>name
          fig~>theLabel=strcat(prefix fig~>theLabel)
        )
      )
      ; rename the terminals
      term~>name=strcat(prefix term~>name)
    )
    ; re-extract connectivity
    schCheck(cv)

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • TommasoF
    TommasoF over 5 years ago in reply to Andrew Beckett

    Hi Andrew,

    thank you very much, that works perfectly!

    Tommaso 

    • 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