• 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. Trigger a Skill Code by Selecting/Deselecting an Instance...

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 144
  • Views 6728
  • 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

Trigger a Skill Code by Selecting/Deselecting an Instance in Schematic

mapReduce
mapReduce over 6 years ago

Hello,

Is there a way to call-back a user defined skill code after I select an instance in schematic. I found a similar question on this forum but they suggest using leRegUserLayerSelectionFilter. This function seems to create a user-defined filter option which is not exactly what I want.

Thanks!

  • Cancel
Parents
  • RiadKaced
    RiadKaced over 6 years ago

    Hi mapReduce

    The "leRegUserLayerSelectionFilter" is a Layout Editor function only as pointed out by @henkl. There is no equivalent in Schematic. However, what you are looking for is very easy with a custom Bindkey that redefines the deault selection bindkey. Here is an example where I'm overriding the LMB click for single selection with a custom function that does the selection and prints a message to the CIW about the instance being slected, here is the code.

    ; Define a custom function that overloads schSingleSelectPt()

    procedure(mySingleSelectPt()

      let((inst)

        ; Use the original selection function

        schSingleSelectPt()

        ; Print info about the selected Instance

        inst=car(geGetSelectedSet())

        printf("Instance %s (%s/%s)\n" inst~>name inst~>libName inst~>cellName)

      )

    )

    ; Redifine the bindkey. I always suggest to check the bindkey override

    ; from CIW -> Options -> Bindkeys. or with SKILL using

    ; hiGetBindKey("Schematics" "None<Btn1Down>")

    hiSetBindKey("Schematics" "None<Btn1Down>" "mySingleSelectPt()")

    Cheers,

    Riad.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • mapReduce
    mapReduce over 6 years ago in reply to RiadKaced

    Thanks Riad and henkl for the suggestion!

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • mapReduce
    mapReduce over 6 years ago in reply to RiadKaced

    Thanks Riad and henkl for the suggestion!

    • 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