• 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. can multiple functionality's assigned to same bindkey

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 142
  • Views 5009
  • 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

can multiple functionality's assigned to same bindkey

RAGHU2634
RAGHU2634 over 6 years ago

Hi,

Is there any way so we can assign multiple functionalities to the  same bindkey

For eg :

on selecting metal 1  & pressing( ctrl + 1 ) it is converted to metal2 .if (ctrl+1) is pressed i.e; twice  again it should change to metal3 & so on...

Note : I am not doing the above one . I am doing something similar. Please let me  know how to approach this

Thanks,

Raghu

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to RAGHU2634

    Hi Raghu,

    I'm guessing you want something like this:

    procedure(RNgetOverlapShape(overlap)
      if(listp(overlap) then
        RNgetOverlapShape(cadr(overlap))
      else
        overlap
      )
    )
    
    procedure(RNconnectivity(@optional pt (cv geGetEditCellView()))
      let((overlaps shape layerTable layers
          ; change this list to the metals in your technology
          (metalLayers list("Metal1" "Metal2" "Metal3" "Metal4" "Metal5" "Metal6"))
          stopMetals)
        unless(pt
          pt=hiGetCommandPoint()
        )
        overlaps=dbGetOverlaps(cv list(pt pt) t 20)
        ; collect the layers that appear at the point
        ; does this by flattening the overaps and finding
        ; the layer name of the final shape, then making a 
        ; unique list
        layerTable=makeTable('layerTable nil)
        foreach(elem overlaps
          shape=RNgetOverlapShape(elem)
          when(shape~>objType!="inst" && shape~>layerName
            layerTable[shape~>layerName]=t
          )
        )
        layers=layerTable->?
        foreach(layer layers
          remainingMetal=member(layer metalLayers)
          when(cdr(remainingMetal)
            ; not convinced this is really what you want...
            stopMetals=outfile("./stoplayers" "w")
            fprintf(stopMetals "stopLayers(\n %L" list(cadr(remainingMetal) "drawing"))
            when(cddr(remainingMetal)
              fprintf(stopMetals " %L" list(caddr(remainingMetal) "drawing"))
            )
            fprintf(stopMetals " t)\n")
            close(stopMetals)
            leMarkNet(
              pt
              ?stopLevel 20
              ?optionFile "./stoplayers"
              ?thickLine t
              ?markNetColor "y1"
            )
          )
        )
      )
    )
    
    procedure(RNconnectivityEFaddPoint(wid points)
      RNconnectivity(car(last(points)))
    )
    
    procedure(RNconnectivityEF()
      enterPoints(
        ?prompts list("Click at point to mark")
        ?addPointProc "RNconnectivityEFaddPoint"
      )
    )

    Note that I don't think using the stop layers like this is quite what you want. This code is trying to set the stop layers two above the metal layer the shape under the cursor. You can also call it from RNconnectivityEF() which uses enterPoints to prompt you to click, and then escape will end the prompting.

    Anyway, hopefully this gives you enough of a framework for you to adapt to your needs.

    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