Home > Community > Forums > Custom IC SKILL > Using Skill to Select Vias not fully enclosed by metal

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: *

 Using Skill to Select Vias not fully enclosed by metal 

Last post Tue, Aug 27 2013 12:44 PM by Andrew Beckett. 3 replies.
Started by Terry S 12 Aug 2013 10:41 AM. Topic has 3 replies and 622 views
Page 1 of 1 (4 items)
Sort Posts:
  • Mon, Aug 12 2013 10:41 AM

    • Terry S
    • Not Ranked
    • Joined on Tue, Jan 25 2011
    • Phoenix, AZ
    • Posts 3
    • Points 45
    Using Skill to Select Vias not fully enclosed by metal Reply

    Is there a way to only select vias that cross a shape boundry?

    I have a very large FET that has numerous Source and Drain Vias and the top level metal covering them now has to be slotted leaving a large amount of existing Vias to be manually deleted where the slots pass over them.

    I can generate another layer that consists of simply the slots and then, if CDS OA 6.1.5 has the capability, then one could simply select only the Vias that touch the newly created shapes.

    Is that possible to do in Skill?

    Thanks

    Terry 

    Filed under: , ,
    • Post Points: 20
  • Fri, Aug 16 2013 10:20 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 396
    • Points 7,445
    Re: Using Skill to Select Vias not fully enclosed by metal Reply

    Use the bBox from your slots and then this Skill command to get your vias. Finally you can use geSelectFig for each of the vias.

    dbViaQuery(
    d_cellviewId
    l_bBox
    [ x_startLevel ]
    [ x_stopLevel ]
    [ n_filterSize ]
    [ l_transform ]
     )
         => ld_via | nil

    Returns a list of all the vias in a cellview whose bounding boxes overlap the region specified by l_bBox.

    Derek

    • Post Points: 20
  • Fri, Aug 16 2013 10:34 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,595
    • Points 16,045
    Re: Using Skill to Select Vias not fully enclosed by metal Reply

    Hi Terry,

    Building on what Derek suggested (nice tip!), here is some more code around it.  Assume that the slot shapes have been selected and then stored in a list, in my example I used testShapes and 'lcv' is the layout cellview database object, then you can identify and delete the overlapped vias like this:

    
    vias = apply('nconc foreach(mapcar shape testShapes dbViaQuery(lcv shape~>bBox )))
    mapcar('dbDeleteObject vias)
    

    The first step build a "flat" list of the list-of-list shapes returned by the foreach-mapcar; the dbViaQuery might return more than one shape. Then map the function dbDeleteObject over this list to delete each via found.

    Hopefully this will answer your question?

    Regards,

    Lawrence.

    • Post Points: 20
  • Tue, Aug 27 2013 12:44 PM

    Re: Using Skill to Select Vias not fully enclosed by metal Reply

    A little further optimization (just to give an alternative and illustrate some of the flexibility of SKILL) - use:

    vias=foreach(mapcan shape testShapes dbViaQuery(lcv shape~>bBox))
    mapc('dbDeleteObject vias)

    The foreach mapcan will append the lists as it goes along - no need to use the apply 'nconc afterwards. And for the deletion, since there's not much likelihood that you'll want the return value of the mapcar (which will be a list of t's and nil's depending upon the success of the dbDeleteObject), use mapc which just returns the original list (and so is cheaper).

    Regards,

    Andrew.

     

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by Terry S at 12 Aug 2013 10:41 AM. Topic has 3 replies.