• 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. rename net via skill?

Stats

  • Locked Locked
  • Replies 14
  • Subscribers 146
  • Views 20269
  • 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

rename net via skill?

danmc91
danmc91 over 9 years ago

Is there a convenient way in skill to rename a net?  For example:

mynets=setof(x cv~>nets x~>name=="VDD!")

foreach(net mynets

  the_missing_rename_net_function(net "VDD")  ;; is there such a function?

)

Thanks

-Dan

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    You can't get the pin that way (because you can't guarantee it will be the third instance). Anyway, the trick here is to update the terminal. Because the terminal name can't be updated to a different width, you need to recreate it. This code will do that:

    cv=geGetEditCellView()
    term=dbFindTermByName(cv "RD<7:0>")
    pinFigs=foreach(mapcan pin term~>pins pin~>figs)
    newNet=dbMakeNet(cv "RD<31:0>")
    foreach(pinFig pinFigs
      dbSubFigFromPin(pinFig~>pin pinFig)
      dbCreatePin(newNet pinFig)
    )
    ; dbDeleteObject(term)
    schCheck(cv)

    What this does is find all the pin figures associated with pins on the original terminal name, and then pulls them off the old pin and creates a new pin associated with the new wider net.

    The dbDeleteObject isn't really necessary because the schCheck will clean up any terminals that aren't used any more (so I commented it out).

    Regards,

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    You can't get the pin that way (because you can't guarantee it will be the third instance). Anyway, the trick here is to update the terminal. Because the terminal name can't be updated to a different width, you need to recreate it. This code will do that:

    cv=geGetEditCellView()
    term=dbFindTermByName(cv "RD<7:0>")
    pinFigs=foreach(mapcan pin term~>pins pin~>figs)
    newNet=dbMakeNet(cv "RD<31:0>")
    foreach(pinFig pinFigs
      dbSubFigFromPin(pinFig~>pin pinFig)
      dbCreatePin(newNet pinFig)
    )
    ; dbDeleteObject(term)
    schCheck(cv)

    What this does is find all the pin figures associated with pins on the original terminal name, and then pulls them off the old pin and creates a new pin associated with the new wider net.

    The dbDeleteObject isn't really necessary because the schCheck will clean up any terminals that aren't used any more (so I commented it out).

    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