• 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. How to find if a coordinate is on a net

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 14030
  • 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

How to find if a coordinate is on a net

bimukt
bimukt over 16 years ago

I neeed to find if a coordinate is on a metal1 net.

The net is a randomly drawn path on a layout.Is there any skill function available

  • Cancel
  • istjohn
    istjohn over 16 years ago

     You could always turn the point into a small bbox and use dbGetTrueOverlaps to see what nets are under it. Or, if you want the most accurate method, you can do something like this:

    cv=geGetEditCellView()
    foreach(net cv~>nets
    foreach(fig net~>figs
    if( absIsPointInsideFig(fig pt ) then
    foundNet = net~>name
    );if
    );foreach
    );foreach
    foundNet ;name of net under point

     

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

    Another simple approach is to use gePointQuery. This is similar to geSingleSelectPt except that it doesn't do the selection. The routine takes three arguments: window id, coordinate and filter function.

    result=gePointQuery(hiGetCurrentWindow() 10:20 "myFilter")

    procedure(myFilter(fig)
        if(fig~>layerName=="metal1" && fig~>objType=="path"
            t
            nil
        )
    )

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • bimukt
    bimukt over 16 years ago
    HI John,
     
    I need to find if the coordinate is on the net.Actually my script will move all pins to the routing grid.I have found the coordinate of the nearest routing grid and move the pin there.
    I need to check that the new position of the pin is on the same net otherwise the pin will lose the connectivity with parent net.
     
    When I found the net from the pin and use the function this returned nil for a coordinate on the net.I gave the dbId of the net for this.
     if( absIsPointInsideFig(fig pt )
    also to give the id of a figure ...I probed all figs by net~>figs.....there was no fig found..
     
    In this case how will I check the coordinate is on the net.
    • 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