• 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. extract connectivity using skill

Stats

  • Locked Locked
  • Replies 15
  • Subscribers 143
  • Views 20938
  • 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

extract connectivity using skill

posh
posh over 15 years ago

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 

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Harish,

    Seeing your code would probably have helped, but my guess is that you're not understanding the output of dbGetTrueOverlaps. If it's a top level (level 0) shape, you get it directly, but if down in the hierarchy (e.g. inside a via or an instance of some sort), you'll get a set of instance (or via) dbobjects prior to the actual object, which are giving  you the hierarchical path down to that shape. You can't pass this directly to dbCopyFig - instead you need to compute the appropriate transform and then copy the figure itself. I've usually used functions like this:

    /*****************************************************************
    *                                                                *
    *                (abGetOverlapTransform overlap)                 *
    *                                                                *
    * Get the transform needed to transform the shape in the overlap *
    *           into the current cell's coordinate system            *
    *                                                                *
    *****************************************************************/
    
    (procedure (abGetOverlapTransform overlap)
      (let (transform)
           (if (listp overlap)
    	   (setq transform (dbConcatTransform 
    			    (abGetOverlapTransform (cadr overlap))
    			    (or
    			      (dbGetq (car overlap) transform)
    			      (list (dbGetq (car overlap) origin)
    				    (dbGetq (car overlap) orient)
    				    1.0)
    			      )
    			    ))
    	   (setq transform (list 0:0 "R0" 1.0)))
           transform
           ))
    
    /***************************************************************
    *                                                              *
    *                 (abGetOverlapShape overlap)                  *
    *                                                              *
    *         get hold of the actual shape in the overlap          *
    *                                                              *
    ***************************************************************/
    
    (procedure (abGetOverlapShape overlap)
      (if (listp overlap)
          (abGetOverlapShape (cadr overlap))
          overlap))
    

    to compute the transform and find the shape, and then call:

    (dbCopyFig (abGetOverlapShape overlap) cellView (abGetOverlapTransform overlap))

    But you could also use geGetInstTransform() to find the transform from the overlap. In these examples, overlap is one of the items in the list of results from dbGetTrueOverlaps().

    Essentially at step 5 in your list, you are calling your function again - tracing the shapes from that. You need to keep track of shapes you've already seen, to avoid visiting them over and over again...

    Sorry, don't have time to go into more details.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Harish,

    Seeing your code would probably have helped, but my guess is that you're not understanding the output of dbGetTrueOverlaps. If it's a top level (level 0) shape, you get it directly, but if down in the hierarchy (e.g. inside a via or an instance of some sort), you'll get a set of instance (or via) dbobjects prior to the actual object, which are giving  you the hierarchical path down to that shape. You can't pass this directly to dbCopyFig - instead you need to compute the appropriate transform and then copy the figure itself. I've usually used functions like this:

    /*****************************************************************
    *                                                                *
    *                (abGetOverlapTransform overlap)                 *
    *                                                                *
    * Get the transform needed to transform the shape in the overlap *
    *           into the current cell's coordinate system            *
    *                                                                *
    *****************************************************************/
    
    (procedure (abGetOverlapTransform overlap)
      (let (transform)
           (if (listp overlap)
    	   (setq transform (dbConcatTransform 
    			    (abGetOverlapTransform (cadr overlap))
    			    (or
    			      (dbGetq (car overlap) transform)
    			      (list (dbGetq (car overlap) origin)
    				    (dbGetq (car overlap) orient)
    				    1.0)
    			      )
    			    ))
    	   (setq transform (list 0:0 "R0" 1.0)))
           transform
           ))
    
    /***************************************************************
    *                                                              *
    *                 (abGetOverlapShape overlap)                  *
    *                                                              *
    *         get hold of the actual shape in the overlap          *
    *                                                              *
    ***************************************************************/
    
    (procedure (abGetOverlapShape overlap)
      (if (listp overlap)
          (abGetOverlapShape (cadr overlap))
          overlap))
    

    to compute the transform and find the shape, and then call:

    (dbCopyFig (abGetOverlapShape overlap) cellView (abGetOverlapTransform overlap))

    But you could also use geGetInstTransform() to find the transform from the overlap. In these examples, overlap is one of the items in the list of results from dbGetTrueOverlaps().

    Essentially at step 5 in your list, you are calling your function again - tracing the shapes from that. You need to keep track of shapes you've already seen, to avoid visiting them over and over again...

    Sorry, don't have time to go into more details.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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