• 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 Code to Delete Net connceted to Instance terminal

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 144
  • Views 17186
  • 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 Code to Delete Net connceted to Instance terminal

member70
member70 over 16 years ago

Need a skill code to delete net connected to a specific instance terminal

 

 

  • Cancel
  • kbhow
    kbhow over 16 years ago

    Hi,

    You can filter out all connecting net with specific terminal and delete it. Try this...

     cv = geGetEditCellView()

    terminal_id = setof(x cv~>terminals x~>name == <terminal_name>)

    foreach( net_id terminal_id~>net

        foreach( fig net_id~>figs

            dbDeleteObject(fig)

        )

    )

     

    This will delete all figures that belong to the input terminal.

     

     

     

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

    Rather than using the setof(x cv~>terminals...) part, you could simply use dbFindTermName(cv "terminal_name")

    Regards,


    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • member70
    member70 over 16 years ago

    Thanks Guys

    It works, but it deleted the net in the entire schematic, I just need to delete that connection to the instance only or locally and not globally

    Do I need to re-map the net connected to my instance to something else before I delete ?? If so how ??

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 16 years ago

    You can get instTerm information from an instance or from the net. Since your original post referred to a net, you might use some of the following code:

    net = dbFindNetByName(cvId netName)
    foreach(instTerm net~>instTerms
        when(instTerm~>inst~>name == <some criteria>
            dbDeleteObject(instTerm)
        )
    )

    You can also access instTerms on an instance using instId~>instTerms.

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • kbhow
    kbhow over 16 years ago

    Thanks Andrew,

    Thanks for enhancing the script!!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • member70
    member70 over 16 years ago

    Nope it is not working yet

    Let me be more specific

    Say instance nfet with four terminals, the bulk of which is connected to net name "x"

    Some where else there are a bunch of devices connected to net name "x" as well

    I need to remove the bulk of nfet from "x" and say map it to netname "y",changing the connectivity of only the nfet and not anything else

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dmay
    dmay over 16 years ago

    Details, details. This is quite a bit different from your first post.

    You'll still want to delete the incorrect instTerm information using the code from my previous post. At this point, you just need to create the new connection using dbCreateConnByName. This routine takes the netId, instanceId and a terminal name.

    nety = dbFindNetByName(cvId "y")
    nfetInst = car(setof(x cvId~>instances x~>cellName=="nfet")) ;this simply gets one placement of your nfet instances
    dbCreateConnByName(nety nfetInst "bulk") ; this assumes the bulk pin on the nfet is called bulk

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Adrian Nistor
    Adrian Nistor over 14 years ago

     Sorry for bringing this old topic to live, but ...

    I have a question regarding the same problem: In the layout (without skill), if accidentally I pass with a path, having the information of net X, overthe pins of one or more terminals, for all terminals the isntTerm information is created saying that that specific pin is connected to net X; If I remove the path with the net  X (because it was a mistake) and I want to add the correct net to each pin of each affected instance, I can not do this because LayoutXL is saying (with an error marker) that Iam overlapping net X with the correct net;

    So .. my question: What are the solutions for a layouter (not a skill programmer) to fix this problem: to change the connectivity of the pins of some existing instances (so the instTerm information) without deleting and adding the instances again ? 

     

    Thank you,

    Best Regards,

    Adrian

    • 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