• 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. Skill Code to move or copy layers to _nm

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 1591
  • 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

Skill Code to move or copy layers to _nm

Mallappa T
Mallappa T over 9 years ago

Hi

 I am looking for little help to write a skill code which will copy or move layer to some _nm, that need to be like, pressing key 1 need to copy 1 grid or some _nm, prssing 2 need to copy next grid or some _nm(), if one grid equals 100nm, It need to copy when key 1 pressed it need to copy 100nm, If key 2 pressed need to copy 200nm, Please help me, Please do the needful.

Thank you Mallanna,

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

    Take a look in <ICinstDir>/tools/dfII/samples/local/leBindKeys.il . I'm showing the relevant lines from this file:

    ; legRpDelta : used below inside key bindings for Numeric Key Pad

    legRpDelta = 0.5

    list("<Key>KP_Equal"      "legRpDelta = 0.5")

    list("<Key>R4"            "legRpDelta = 0.5")

    list("<Key>R5"            "legRpDelta = 1.0")

    list("<Key>R6"            "legRpDelta = 2.0")

    list("Shift<Key>R7"       "leMoveCursor(-legRpDelta  legRpDelta)")

    list("Shift<Key>Up"       "leMoveCursor(          0  legRpDelta)")

    list("Shift<Key>R9"       "leMoveCursor( legRpDelta  legRpDelta)")

    list("Shift<Key>Left"     "leMoveCursor(-legRpDelta           0)")

    list("Shift<Key>Right"    "leMoveCursor( legRpDelta           0)")

    list("Shift<Key>R13"      "leMoveCursor(-legRpDelta -legRpDelta)")

    list("Shift<Key>Down"     "leMoveCursor(0           -legRpDelta)")

    list("Shift<Key>R15"      "leMoveCursor( legRpDelta -legRpDelta)")

    The idea is that there are some keys on the numerical keypad that set various values for the variable legRpDelta (you can customise these to values you want) and then the shift-arrow keys (and diagonals next to them I think - I don't have a numeric keypad on my keyboard) are set to move the cursor in a relevant direction by that amount.

    So the idea is that you start a move or copy, then hit the key to pick the delta you want, and then hit the appropriate key to move the cursor by the current delta. You can then of course move it multiple times.

    Or alternatively you can use the delta options on the F3 options form for move or copy (note the user units are typically in microns, so you'd be interested in moving by 0.1 or 0.2)

    Your request was a little imprecise and incomplete - you could move by 100nm, but in which direction? You could easily write something to do a specific move or copy using dbMoveFig or dbCopyFig - for example:

    foreach(obj geGetSelSet()
      dbCopyFig(obj obj~>cellView list(0.1:0 "R0" 1) ; Copy by 100nm to the right.
    )

    Regards,

    Andrew

    ; legRpDelta : used below inside key bindings for Numeric Key PadlegRpDelta = 0.5list("<Key>KP_Equal"      "legRpDelta = 0.5")list("<Key>R4"            "legRpDelta = 0.5")list("<Key>R5"            "legRpDelta = 1.0")list("<Key>R6"            "legRpDelta = 2.0")list("Shift<Key>R7"       "leMoveCursor(-legRpDelta  legRpDelta)")list("Shift<Key>Up"       "leMoveCursor(          0  legRpDelta)")list("Shift<Key>R9"       "leMoveCursor( legRpDelta  legRpDelta)")list("Shift<Key>Left"     "leMoveCursor(-legRpDelta           0)")list("Shift<Key>Right"    "leMoveCursor( legRpDelta           0)")list("Shift<Key>R13"      "leMoveCursor(-legRpDelta -legRpDelta)")list("Shift<Key>Down"     "leMoveCursor(0           -legRpDelta)")list("Shift<Key>R15"      "leMoveCursor( legRpDelta -legRpDelta)")

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

    Take a look in <ICinstDir>/tools/dfII/samples/local/leBindKeys.il . I'm showing the relevant lines from this file:

    ; legRpDelta : used below inside key bindings for Numeric Key Pad

    legRpDelta = 0.5

    list("<Key>KP_Equal"      "legRpDelta = 0.5")

    list("<Key>R4"            "legRpDelta = 0.5")

    list("<Key>R5"            "legRpDelta = 1.0")

    list("<Key>R6"            "legRpDelta = 2.0")

    list("Shift<Key>R7"       "leMoveCursor(-legRpDelta  legRpDelta)")

    list("Shift<Key>Up"       "leMoveCursor(          0  legRpDelta)")

    list("Shift<Key>R9"       "leMoveCursor( legRpDelta  legRpDelta)")

    list("Shift<Key>Left"     "leMoveCursor(-legRpDelta           0)")

    list("Shift<Key>Right"    "leMoveCursor( legRpDelta           0)")

    list("Shift<Key>R13"      "leMoveCursor(-legRpDelta -legRpDelta)")

    list("Shift<Key>Down"     "leMoveCursor(0           -legRpDelta)")

    list("Shift<Key>R15"      "leMoveCursor( legRpDelta -legRpDelta)")

    The idea is that there are some keys on the numerical keypad that set various values for the variable legRpDelta (you can customise these to values you want) and then the shift-arrow keys (and diagonals next to them I think - I don't have a numeric keypad on my keyboard) are set to move the cursor in a relevant direction by that amount.

    So the idea is that you start a move or copy, then hit the key to pick the delta you want, and then hit the appropriate key to move the cursor by the current delta. You can then of course move it multiple times.

    Or alternatively you can use the delta options on the F3 options form for move or copy (note the user units are typically in microns, so you'd be interested in moving by 0.1 or 0.2)

    Your request was a little imprecise and incomplete - you could move by 100nm, but in which direction? You could easily write something to do a specific move or copy using dbMoveFig or dbCopyFig - for example:

    foreach(obj geGetSelSet()
      dbCopyFig(obj obj~>cellView list(0.1:0 "R0" 1) ; Copy by 100nm to the right.
    )

    Regards,

    Andrew

    ; legRpDelta : used below inside key bindings for Numeric Key PadlegRpDelta = 0.5list("<Key>KP_Equal"      "legRpDelta = 0.5")list("<Key>R4"            "legRpDelta = 0.5")list("<Key>R5"            "legRpDelta = 1.0")list("<Key>R6"            "legRpDelta = 2.0")list("Shift<Key>R7"       "leMoveCursor(-legRpDelta  legRpDelta)")list("Shift<Key>Up"       "leMoveCursor(          0  legRpDelta)")list("Shift<Key>R9"       "leMoveCursor( legRpDelta  legRpDelta)")list("Shift<Key>Left"     "leMoveCursor(-legRpDelta           0)")list("Shift<Key>Right"    "leMoveCursor( legRpDelta           0)")list("Shift<Key>R13"      "leMoveCursor(-legRpDelta -legRpDelta)")list("Shift<Key>Down"     "leMoveCursor(0           -legRpDelta)")list("Shift<Key>R15"      "leMoveCursor( legRpDelta -legRpDelta)")

    • 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