• 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 a schematic labeled net by SKILL

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 17035
  • 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 a schematic labeled net by SKILL

Aldo2
Aldo2 over 8 years ago

Hello,

I would like to rename a set of LABELED nets in a schematic using SKILL. The following script is my starting point.

procedure(renameNet(oldNet newNet)
  prog((cv net)
    cv=geGetEditCellView()
    net=dbFindNetByName(cv oldNet)
    net~>figs~>theLabel=newNet
    ;dbRenameNet(net newNet)
    schCheck(cv)
  )
)

I have some doubts to be clarified.

Is it sufficient to modify the label name or have I to use both "net~>figs~>theLabel=newNet" and dbRenameNet (e.g. because there are other properties I need to change)?

Does exist a straight command to modify names of both net and label?

dbRenameName only (without "net~>figs~>theLabel=newNet") doesn't work on a labeled net, is it correct?

If "net" having labeled "net01" is composed by n pieces of wires, then "net~>figs~>theLabel" is the following n+1 element list: ("net01" "net01" ... "net01"), correct?

Thank you very much

Best regards

Aldo

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    Aldo,

    I would always do this by changing the label and then calling schCheck - which will reconstruct the nets that have changed name rather than trying to do dbRenameNet myself. There's really no need to do that - and actually it can be quite tricky in some cases (certainly if you only want to rename some of the labels and not all of them, say). 

    Changing just the net name (with dbRenameNet) would be short-lived (you'd have to also call dbSetConnCurrent(cv)) - because the labels wouldn't change, and as soon as the schematic was "checked" again (e.g. with schCheck), then the net names would rename back again.

    Using net~>figs~>theLabel=newNet is probably not the best approach because it will end up adding a user defined property on each wire segment. net~>figs is a list of the shapes associated with the net, which is one per wire segment, plus the labels. So you probably should just do:

    setof(fig net~>figs fig~>objType=="label")~>theLabel=newNet

    That will only set theLabel on the objects which are actually labels.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Aldo2
    Aldo2 over 8 years ago
    Thank you very much Andrew
    • 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