• 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. Problem changing the net name of a pin through a script...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 15255
  • 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

Problem changing the net name of a pin through a script.

Bert007
Bert007 over 7 years ago

Hi all,

I am very new to skill coding and made this basic script to make the pin name and terminal name lowercase:

selected = geGetSelSet()
foreach(rectpin selected
rectpin~>pin~>term~>name = lowerCase(rectpin~>pin~>term~>name)
rectpin~>pin~>name = lowerCase(rectpin~>pin~>name)
 );foreach
The problem is that manually changing the pin name and terminal name changes the connectivity net name.
Doing this with a script doesnt. And changing the connectivity net name is not possible with a script and also not possible manually.
Does anyone know a solution to this problem?
Thanks in advance!
Bert
  • Cancel
Parents
  • mbracht
    mbracht over 7 years ago

    Hi Bert,

    When you say "connectivity" you mean the net name correct?

    Add this line into your foreach loop:

    rectpin~>pin~>term~>net~>name = lowerCase(rectpin~>pin~>term~>name)

    Changing a terminal name does not automatically change the name of the net this terminal is attached to.

    Max

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Bert007
    Bert007 over 7 years ago in reply to mbracht

    Hi Max,

    I get the error message: Cannot set attribute - name on that line. As far as I know this is linked to the terminal name and should be updated when the terminal name is updated.

    This is the case when you manually do it in the layout. Is there a way to an "apply after changing teh terminal name in a script?

    Thanks,

    Bert

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to Bert007

    Hi Bert,

    Actually the terminal name doesn't have to be the same as the net name; changing the term name (which you can do by setting the name attribute on the terminal object) does not update the net name.

    You cannot directly change the net name; you have to create a new net with the lowerCase name (e.g. using dbMakeNet) and then use dbMergeNet to merge the original net into the new net.

    Hopefully that gives you enough clues?

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to Bert007

    Hi Bert,

    Actually the terminal name doesn't have to be the same as the net name; changing the term name (which you can do by setting the name attribute on the terminal object) does not update the net name.

    You cannot directly change the net name; you have to create a new net with the lowerCase name (e.g. using dbMakeNet) and then use dbMergeNet to merge the original net into the new net.

    Hopefully that gives you enough clues?

    Regards,

    Andrew

    • 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