• 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 20283
  • 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
  • Quek
    Quek over 9 years ago

    Hi Dan

    You can use dbRenameNet function. Please refer to $CDSHOME/doc/skdfref/skdfref.pdf for more details.

    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • danmc91
    danmc91 over 9 years ago
    Thanks! I was looking in the "Connectivity Creation and Modification Functions" section by dbCreatNet, dbMakeNet, dbMergeNet, etc. dbRenameNet was hiding in a different part of the manual.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 9 years ago

    Hi Dan

    I also have no idea why it is hiding in the cellview database section. : )

    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Staf Verhaegen
    Staf Verhaegen over 9 years ago

    dbRenameNet gives still problems for me. I want to rename a NET named RD<7:0> to RD<31:0>. When I run execute dbRenameNet(net "RD<31:0>") I get:

    *WARNING* (DB-270502): Illegal name width - RD<31:0>


    I got net from a schematic cell view, e.g.

    cell = dbOpenCellViewByType("libname" "cellname" "schematic")

    net = car(cell->nets)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ebecheto
    ebecheto over 9 years ago

    try "RD\<31:0\>"

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

    ebecheto said:

    try "RD\<31:0\>"

    Huh? That's not going to work. No idea why you suggested that. That's an illegal name in Virtuoso. For a start, SKILL would complain about the backslashes (unless you used two) and even then the database would tell you this is an invalid name.

    The issue here is that  you're trying to rename the net and the existing net consists of 8 signals, and you're expecting that to magically map onto a 32-bit wide net - how would the signals map? I suspect even the old way of doing it (before dbRenameNet was introduced) wouldn't work - this was to use dbMakeNet() to create the new net name and then dbMergeNet to merge them together. I think they must have the same width otherwise it doesn't make sense.

    However, since this is a schematic, the right thing to do is to change the label (or pin) associated with the net and then run schCheck() to re-extract the connectivity). Messing at the database level might work but as soon as you check-and-save again, it would have reverted.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Staf Verhaegen
    Staf Verhaegen over 9 years ago

    Andrew Beckett said:
    However, since this is a schematic, the right thing to do is to change the label (or pin) associated with the net and then run schCheck() to re-extract the connectivity). Messing at the database level might work but as soon as you check-and-save again, it would have reverted.

    One complication, the net name is determined by an output pin and I don't seem to find the label that determines the name of the pin. The only thing I do find representing the name of the output is a net, but I can't rename that net.

    I can get the RD<7:0> output pin instance in the following way:

    pin = nth(3 cell->instances)

    How do I go on then to rename it to RD<31:0> ?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ebecheto
    ebecheto over 9 years ago

    try "RD\<31:0\>"  ;<== Huh? That's not going to work. No idea why you suggested that.

    My mistake, i wrote without thinking, i though it was like in the calculator, OP("MN0\\<0\\>" "??"), so you are double right, as usual...

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • Staf Verhaegen
    Staf Verhaegen over 9 years ago

    Thanks,

    That did the trick (and of course I knew the third pin was no guaranteed to be the RD net one).

    Staf.

    • 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