• 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 Design
  3. Bindkey for layers below mouse cursor

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 126
  • Views 15339
  • 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

Bindkey for layers below mouse cursor

bdjones1
bdjones1 over 11 years ago

Hello,

At a previous company I had a bindkey (Shift+Home) that would display all layers below the mouse cursor.  This called a custom Skill function from the PDK, and I've been unable to replicate it or find a similar function.  Any suggestions on how to implement this?

Thanks!

Brian 

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

    Brian,

    How about this? I just threw it together (so not too much testing):

    /* CCFlayersUnderCursor.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Nov 07, 2013 
    Modified   
    By         
    
    Display the layers under the cursor - assume that
    you'd call this from a bindkey. This is not needed
    in IC61X since you have the dynamic selection assistant,
    but might be useful in IC5141.
    
    Call:
    
    CCFlayersUnderCursor()
    
    ***************************************************
    
    SCCS Info: @(#) CCFlayersUnderCursor.il 11/07/13.18:52:07 1.1
    
    */
    
    procedure(CCFlayersUnderCursor()
      let((point overlaps win cv shape lpps
          (lppsUsed makeTable('lppsUsed nil)))
        win=hiGetCurrentWindow()
        when(win
            cv=geGetEditCellView(win)
            point=hiGetPoint(win)
            when(point
              overlaps=dbGetTrueOverlaps(cv list(point point) t 32)
              ;--------------------------------------------------------------
              ; Collect the layer purpose pairs used in a table
              ;--------------------------------------------------------------
              foreach(overlap overlaps
                shape=if(listp(overlap) car(last(overlap)) overlap)
                when(shape~>lpp
                    lppsUsed[shape~>lpp]=t
                )
              )
              ;--------------------------------------------------------------
              ; Sort into alphanumerical order based on layer then purpose
              ;--------------------------------------------------------------
              lpps=sort(lppsUsed->?
                lambda((a b) 
                  case(alphaNumCmp(car(a) car(b))
                    (1 nil)
                    (-1 t)
                    (t minusp(alphaNumCmp(cadr(a) cadr(b))))
                  )
                )
              )
              ;--------------------------------------------------------------
              ; Convert to colon-separated strings of layer and purpose
              ; and then display in a list box
              ;--------------------------------------------------------------
              lpps=foreach(mapcar lpp lpps buildString(lpp ":"))
              if(lpps then
                hiDisplayListBox(
                  'CCFlayersUnderCursorListBox
                  "Layers under cursor"
                  lpps
                  ""
                )
              else
                printf("No shapes under cursor\n")
              )
            )
        )
      )
    )

     

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

    Brian,

    How about this? I just threw it together (so not too much testing):

    /* CCFlayersUnderCursor.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Nov 07, 2013 
    Modified   
    By         
    
    Display the layers under the cursor - assume that
    you'd call this from a bindkey. This is not needed
    in IC61X since you have the dynamic selection assistant,
    but might be useful in IC5141.
    
    Call:
    
    CCFlayersUnderCursor()
    
    ***************************************************
    
    SCCS Info: @(#) CCFlayersUnderCursor.il 11/07/13.18:52:07 1.1
    
    */
    
    procedure(CCFlayersUnderCursor()
      let((point overlaps win cv shape lpps
          (lppsUsed makeTable('lppsUsed nil)))
        win=hiGetCurrentWindow()
        when(win
            cv=geGetEditCellView(win)
            point=hiGetPoint(win)
            when(point
              overlaps=dbGetTrueOverlaps(cv list(point point) t 32)
              ;--------------------------------------------------------------
              ; Collect the layer purpose pairs used in a table
              ;--------------------------------------------------------------
              foreach(overlap overlaps
                shape=if(listp(overlap) car(last(overlap)) overlap)
                when(shape~>lpp
                    lppsUsed[shape~>lpp]=t
                )
              )
              ;--------------------------------------------------------------
              ; Sort into alphanumerical order based on layer then purpose
              ;--------------------------------------------------------------
              lpps=sort(lppsUsed->?
                lambda((a b) 
                  case(alphaNumCmp(car(a) car(b))
                    (1 nil)
                    (-1 t)
                    (t minusp(alphaNumCmp(cadr(a) cadr(b))))
                  )
                )
              )
              ;--------------------------------------------------------------
              ; Convert to colon-separated strings of layer and purpose
              ; and then display in a list box
              ;--------------------------------------------------------------
              lpps=foreach(mapcar lpp lpps buildString(lpp ":"))
              if(lpps then
                hiDisplayListBox(
                  'CCFlayersUnderCursorListBox
                  "Layers under cursor"
                  lpps
                  ""
                )
              else
                printf("No shapes under cursor\n")
              )
            )
        )
      )
    )

     

    • 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