• 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. Script to select all the shapes connected to a pin

Stats

  • Replies 3
  • Subscribers 143
  • Views 462
  • Members are here 0

Script to select all the shapes connected to a pin

GB20250109498
GB20250109498 3 days ago

Hi, Is there any way to select all the shapes connected to a pin in layout using Skill  script?

  • Sign in to reply
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett 2 days ago

    Assuming that the layout has connectivity (e.g. was done in Virtuoso Layout Suite XL), then maybe this is what you want? The idea is that you select the pins, and then call abSelectWholeNet() will then select everything on the nets for those pins. 

    /* abSelectWholeNet.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       May 16, 2001 
    Modified   Feb 26, 2009 
    By         A.D.Beckett
    
    Updated to work with layout in CDB, where vias are instances with instTerms
    on the net; in OA vias are directly attached to the net.
    
    ***************************************************
    
    SCCS Info: @(#) abSelectWholeNet.il 02/26/09.14:08:25 1.2
    
    */
    
    /***************************************************************
    *                                                              *
    * (abSelectWholeNet @optional (cellView (geGetEditCellView)))  *
    *                                                              *
    *   Select the whole of each net that is partially selected.   *
    *                                                              *
    ***************************************************************/
    
    (procedure (abSelectWholeNet @optional (cellView (geGetEditCellView)))
      (let (nets theNet)
           (foreach shape (geGetSelSet cellView)
                    (setq theNet (dbGetq shape net))
                    (unless (member theNet nets) (setq nets (cons theNet nets)))
                    )
           (foreach net nets
                    ;--------------------------------------------------------
                    ; Find all the figures on the net
                    ;--------------------------------------------------------
                    (foreach fig (dbGetq net figs)
                             (geSelectFig fig)
                             ) ; foreach fig
                    ;--------------------------------------------------------
                    ; Find all the vias on the net - only do this in CDB
                    ; when leIsContact function exists
                    ;--------------------------------------------------------
                    (when (isCallable 'leIsContact)
                      (foreach inst (dbGetq (dbGetq net instTerms) inst)
                               (when (leIsContact inst)
                                 (geSelectFig inst))
                               ) ; foreach inst
                      ) ; when 
                    ;--------------------------------------------------------
                    ; Find all the pin figures on the net
                    ;--------------------------------------------------------
                    (foreach pin (dbGetq net pins)
                             (foreach fig 
                                      (or 
                                        (dbGetq pin figs) 
                                        (list (dbGetq pin fig))
                                        )
                                      (geSelectFig fig)
                                      ) ; foreach fig
                             ) ; foreach pin
                    ) ; foreach net
           t
           ) ; let
      ) ; procedure

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • GB20250109498
    GB20250109498 2 days ago in reply to Andrew Beckett

    Hi Becket, Thanks for the quick reply.

    Looks like the script works only if the layout is annotation clean. It doesn't work if the layout doesn't have the connectivity.

    Thanks,

    Ganesh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • GB20250109498
    GB20250109498 2 days ago in reply to Andrew Beckett

    Hi Becket, Thanks for the quick reply.

    Looks like the script works only if the layout is annotation clean. It doesn't work if the layout doesn't have the connectivity.

    Thanks,

    Ganesh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett 13 hours ago in reply to GB20250109498

    Ganesh,

    You could run lceExtract(geGetEditCellView()) to run the connectivity extractor, and then use the code?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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