Home > Community > Forums > Custom IC SKILL > extract connectivity using skill

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

 extract connectivity using skill 

Last post Fri, Jan 8 2010 7:08 PM by Andrew Beckett. 15 replies.
Started by posh 30 Dec 2009 09:30 PM. Topic has 15 replies and 6594 views
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts:
  • Wed, Dec 30 2009 9:30 PM

    • posh
    • Not Ranked
    • Joined on Thu, Dec 31 2009
    • Posts 12
    • Points 240
    extract connectivity using skill Reply

    Hi all,

    I am a new Skill User, iam trying to write a code for extracting a net from one cellview and put it into a different cellview (only the extracted net). i have read some previous threads but most of them were pointed to VXL. i do not have a VXL licence. so can anyone hint me how to extract a net using skill in VLE.

     

    thanks

    Harish Poshala 

     

    • Post Points: 35
  • Thu, Dec 31 2009 2:07 AM

    Re: extract connectivity using skill Reply

    Harish,

    In IC614 there's a new function to save the result of the "Mark Net" command to another cellView - leHiSaveAllHighLightMarkNet(). Unfortunately it doesn't really support a procedural approach to being called - it's just a UI function. However, with a bit of work, it can be made to respond to a procedural approach.

    In order to mark the net you want, if you know the coordinates of somewhere on the net, simply do:

    preXY(list(x y))
    leHiMarkNet()
    cancelEnterFun()
    

    And then to save the result to a cellView, you can use CCSsaveMarkNet() as defined below:

    procedure(CCSsaveMarkNetCB(lib cell view)
      let((form)
        form=hiGetCurrentForm()
        form->libName->value=lib
        form->cellName->value=cell
        form->viewName->value=view
        ;--------------------------------------------------------------------
        ; Form done needs to be done via a timer, otherwise the form
        ; gets stuck
        ;--------------------------------------------------------------------
        hiRegTimer(sprintf(nil "hiFormDone(%s)" form->hiFormSym) 1)
      )
    )
    
    procedure(CCSsaveMarkNet(lib cell view @optional (wid hiGetCurrentWindow()) "tttw")
      let((ddId)
        ;--------------------------------------------------------------------
        ; Delete the previous cellView to stop being prompted for overwrite
        ;--------------------------------------------------------------------
        ddId=ddGetObj(lib cell view)
        when(ddId ddDeleteObj(ddId))
        ;--------------------------------------------------------------------
        ; Fill in the form, via a timer - so is filled in after the save
        ; form is launched
        ;--------------------------------------------------------------------
        hiRegTimer(sprintf(nil "CCSsaveMarkNetCB(%L %L %L)" lib cell view) 0)
        leHiSaveAllHighLightMarkNet()
      )
    )
    

    All this can be done with VLS "L" licenses (no XL needed). You do need to ensure that you don't have a via (in the validVias constraint) which connects down to your diffusion layer, because otherwise connections will be made under the gate of  transistors by mark net.

    If you're using earlier versions, you'll need to write a shape tracer, which is quite a lot of work...

    Regards,

    Andrew.

     

    • Post Points: 20
  • Thu, Dec 31 2009 10:28 AM

    • babji
    • Top 500 Contributor
    • Joined on Thu, Apr 23 2009
    • hyderabad, Andhra Pradesh
    • Posts 24
    • Points 360
    Re: extract connectivity using skill Reply

     If DIVA works then ivExtract would work for this. It saves the extracted data in a view extract.  Try it.

    • Post Points: 5
  • Thu, Dec 31 2009 1:09 PM

    Re: extract connectivity using skill Reply

    BTW, I filed an enhancement CCR number 740427 for a proper API for Mark Net.

    Regards,

    Andrew.

    • Post Points: 5
  • Mon, Jan 4 2010 4:50 AM

    • posh
    • Not Ranked
    • Joined on Thu, Dec 31 2009
    • Posts 12
    • Points 240
    Re: extract connectivity using skill Reply

    Hi Andrew,

    Thanks for the reply. Unfortunately, iam Using an IC613 so i haven't got the idea of the function leHiSaveAllHighLightMarknet() and its features.

    i'll give a brief explanation of what iam trying to do

    1) Iam selecting a net in my top level (ex: vdd) by using xx = setof(x cvid~>shapes x~>net~>name == "vdd")

    2) now i need to traverse in to and out of the hierarchy to select the connectivity of vdd in my instances.

    3) once the net is traced i could use a dbCopyFig() function to copy the traced net.

    the problem is that i could not find any functions that could help me trace a net hierarchically.

    This code could be very helpful for me to find the shorts quickly. can u please guide me how i can do this

    thankyou

    Regards

    Harish Poshala 

    • Post Points: 20
  • Thu, Jan 7 2010 1:24 AM

    Re: extract connectivity using skill Reply

    Harish,

    One thing I don't understand - if you are using the base layout editor (not XL), how has the design got connectivity information present? Normally it's only XL (and GXL) which would add connectivity into the database?

    Also, it should be straightforward to move from IC613 to IC614 - it's just an update release (no license changes needed), so that might be your simplest option.

    You can select the shapes in the lower level cells by following the instTerms. There's some relevant posts on this before. For example Read and follow nets.Try searching a bit in the forums. I recall answering something similar elsewhere recently - it may have been here, or maybe on comp.cad.cadence (can't quite remember).

    Regards,

    Andrew.

    • Post Points: 20
  • Thu, Jan 7 2010 8:30 AM

    • posh
    • Not Ranked
    • Joined on Thu, Dec 31 2009
    • Posts 12
    • Points 240
    Re: extract connectivity using skill Reply

    Thanks Andrew,

    i have now got an XL version which made my life easier. But my question was is there a way to extract connectivity information in VLE like in some previous post i read about dbGetTrueOverlaps() could do the trick, but was not able to find a way how this could do. if possible for u can u give me a hint of how actually it could be done.

    I know the code would include a lot of work, but can u help me in finding a way to do it.  

    thanks

    Regards

    Harish 

     

     

    • Post Points: 35
  • Thu, Jan 7 2010 7:06 PM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 393
    • Points 7,415
    Re: extract connectivity using skill Reply

    Check out this post if you haven't already.

    http://www.cadence.com/Community/forums/p/11109/13204.aspx#13204

    Derek

    • Post Points: 5
  • Thu, Jan 7 2010 9:17 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: extract connectivity using skill Reply

     Hi Harish,

    I will add to what Derek and Andrew have said by providing an outline of how I would approach this in SKILL code:

    1. Get a starting point (xy provided perhaps by enterPoint() or
      enterPoints()) or starting shape from the user
    2. Obtain the object at the starting point (use gePointToFig()
      or dbGetOverlaps() with a depth of 0 for this)
    3. Check that the object is on a routing layer
    4. Add this object to the list of connected shapes
    5. Use dbGetTrueOverlaps() to find objects overlapping this
      shapes' bounding box (decide the hierarchy depth you wish to
      use)
    6. Filter the objects to remove non-adjacent connectivity layers
      compared to the current object, also filter any shape that is
      already on the list of connected shapes
    7. Add these objects to the list of connected shapes
    8. Repeat from Step 5. (recursive?) to follow connected shapes

    The above is just an outline for finding the "connected" shapes in a similar fashion to the Mark Net feature. You may wish to add highlights to show what is being processed. The decision of whether something is connected will depend on the layers used, you may wish to use information from the Technology File (IC5141) or the viaDefs (IC61x) similar to how Mark Net works.

    I hope that this information is helpful to you.

    Best regards,

    Lawrence.

    Filed under: ,
    • Post Points: 35
  • Thu, Jan 7 2010 10:11 PM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 393
    • Points 7,415
    Re: extract connectivity using skill Reply

    Step #5 needs to be expanded, or else you can get incorrect results. If you have several L shaped polygons or paths, the bounding box of those shapes could overlap shapes which are not connected. You actually have to break all shapes into rectangles and then do the overlap check on each rectangle. This part is not trivial for polygons, although, as discussed in the linked post, dbLayerTile could help with this.

    Derek

    • Post Points: 20
  • Thu, Jan 7 2010 10:18 PM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: extract connectivity using skill Reply

    Yes, thank you Derek - I did read through the linked post but I forgot to mention about fracturing any input polygons in my post above. The suggested algorithm is one from my head and not proven by any actual coding!  dbGetOverlaps can indeed produce overlaps where the bounding boxes of shapes overlap but the actual shapes do not - dbGetTrueOverlaps might help but it might also be too much of an overhead (it will be slower since it is a less simplistic function).

    Harish, do pay attention to Derek's comments since he has written functional code on this topic and I have not.

    Best regards,

    Lawrence.

    • Post Points: 20
  • Thu, Jan 7 2010 10:24 PM

    Re: extract connectivity using skill Reply
    Or save yourself the bother and use mark net in IC614, or use VXL to extract the connectivity.

    Why reinvent the wheel if it's already been invented ;-)

    Regards,

    Andrew
    • Post Points: 20
  • Fri, Jan 8 2010 2:26 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 393
    • Points 7,415
    Re: extract connectivity using skill Reply

    But there is so much more you can do when you actually get the objects on the hilighted net. We have dozens of functions that take advantage of the extracted net.

    • Calculate length/width
    • Get net names
    • Find connection names through the hierarchy
    • Find shorts
    • Check if the net is pinned at the top and even move the pin to the edge of the net
    • Add labels on the net
    • Report label or device markers on the net
    • Save the net to a separate cell
    • Cause the hilighting to stop if a supply pin is encountered (short to a supply)
    • Add features like tracing nets through buffers/repeaters

    This was one of the most useful tools we ever wrote. We waited until Mark Net was released, discovered that the first release was buggy and wrote our own. By the time Mark Net was fixed, we had something better.

    Derek

    • Post Points: 20
  • Fri, Jan 8 2010 12:32 PM

    • posh
    • Not Ranked
    • Joined on Thu, Dec 31 2009
    • Posts 12
    • Points 240
    Re: extract connectivity using skill Reply

    Thanks Derek, Lawrence and Andrew

    You guys are just unbelievable, I thought being a new skill user, i may never be able to write this code, but the amount of information and advices u give are simply outstandung. this gave me a lot of confidence.

    i have just started the code, and i shall fall back to u guys if i find any difiiculties.

    once again Thankyou verymuch

    Regards

    Harish

      

    • Post Points: 5
  • Fri, Jan 8 2010 4:01 PM

    • posh
    • Not Ranked
    • Joined on Thu, Dec 31 2009
    • Posts 12
    • Points 240
    Re: extract connectivity using skill Reply

    Hi Lawrence,

    Thank you very much for the outline. i have worked according to your outline with the following functions but held up at recursion,

    1) I selected an object from the layout by using obj=car(selectedSet())

    2) then i have done an overlap function for this by using list1 = dbGetTrueOverlaps(cv obj~>bBox list("m1" "drawing"))

    3) similar to step 2 i have done all the overlaps for m2 m3 and poly. Here i have got a problem that if i use a search level 0:4, the vias in the layout are also selected and when iam using a dbCopyFig() function it says that the vias are not dbObjects. can u help me why it not copying vias.

    4) At this point i have list4 whish contains all the dbobjects which overlap with my selected objects.

    5) Now if i want to know what objects are overlapping these list of objects, i'll be using a foreach , do u think we can do this in different way.

    please do comment or advise on these steps

    Thank you

    Regards

    Harish

                                                  

    • Post Points: 20
Page 1 of 2 (16 items) 1 2 Next >
Sort Posts:
Started by posh at 30 Dec 2009 09:30 PM. Topic has 15 replies.