Home > Community > Forums > Custom IC SKILL > How to find if a coordinate is on a net

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to find if a coordinate is on a net 

Last post Wed, Sep 17 2008 12:20 AM by bimukt. 3 replies.
Started by bimukt 15 Sep 2008 10:04 PM. Topic has 3 replies and 2540 views
Page 1 of 1 (4 items)
Sort Posts:
  • Mon, Sep 15 2008 10:04 PM

    • bimukt
    • Not Ranked
    • Joined on Mon, Sep 15 2008
    • Posts 2
    • Points 40
    How to find if a coordinate is on a net Reply

    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

    • Post Points: 35
  • Tue, Sep 16 2008 5:24 AM

    • istjohn
    • Not Ranked
    • Joined on Mon, Sep 15 2008
    • Posts 1
    • Points 20
    Re: How to find if a coordinate is on a net Reply

     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

     

    • Post Points: 20
  • Tue, Sep 16 2008 6:35 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 393
    • Points 7,415
    Re: How to find if a coordinate is on a net Reply

    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

    • Post Points: 5
  • Wed, Sep 17 2008 12:20 AM

    • bimukt
    • Not Ranked
    • Joined on Mon, Sep 15 2008
    • Posts 2
    • Points 40
    Re: How to find if a coordinate is on a net Reply
    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.
    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by bimukt at 15 Sep 2008 10:04 PM. Topic has 3 replies.