• 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 15099
  • 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
  • wschwab
    wschwab over 11 years ago

    Hello Brian,

    In IC615 and IC616 exists an assistant (Window -> Assistants -> Dynamic Selection) which shows all shapes under cursor hierarchically in an assistant window..

    By typing ctrl <key> h you can freeze the display of the assistant window and select a shape there (if its in edit mode).

    Regards,

    Werner

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • bdjones1
    bdjones1 over 11 years ago

    Thanks Werner!

    Unfortunately I'm using an old process in 5.1.4.  The technologies that had this bindkey enabled were also in 5.1x, so I know it's possible.  Any thoughts on how to list the layers under the cursor in 5.1.4?

    I'll definitely give that a shot in IC61x though!

    Brian 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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
  • bdjones1
    bdjones1 over 11 years ago

    Perfect!  I haven't tested it much, but it works out of the box.

    I actually prefer to just print the layers to the CIW rather than display in the box, so I added a flag noBox to skip the display list box, and a simple printf("%L\n" lpps) after the if(! noBox) block.

    Many thanks!! 

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

    Glad I didn't spend too long doing a fancy form - I originally had it printing to the CIW too and thought I'd just add a simple form to display the results. Anyway, glad it does what you want!

    Regards,

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • 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