• 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. i am having a problem with rodAssignHandleToParameter

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 13614
  • 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

i am having a problem with rodAssignHandleToParameter

Adhil
Adhil over 13 years ago

this is my code

procedure(createALPHA(cv w l)
  let( (rectRodObj)
  ;; create a rectangle on metal1 with x & y dimensions set by w & l
  rectRodObj = rodCreateRect(
      ?name     "myRect"
      ?cvId     cv
      ?layer    list("ALPHA" "drawing")
      ?width    w
      ?length   l
      ?origin   list(0 0)
  )
  ;; create labels to show the w and l parameters
  ;; create a stretch handle for the width, in the X dimension, it
  ;; will display as "width = <value>" and change by 0.1 increments
  rodAssignHandleToParameter(
    ?parameter          "w"
    ?rodObj             rectRodObj
    ?handleName         "centerRight"
    ?stretchDir         "X"
    ?displayName        "width"
    ?displayExpression  "w"
    ?updateIncrement    0.2
  ); rodAssignHandleToParameter
  ); let
); procedure CCScreateBoxAndLabels
pcDefinePCell(
  list(ddGetObj("adhillib") "gp2_path1" "layout")
   (
    (rows 1)
    (cols 1)
    (finger_width 0.10)
   )
     
  let(((cv pcCellView) paramObj awidth alength bBox) 
  paramObj = dbCreateParamInstByMasterName(cv "adhillib" "gp2_path" "layout" "inst1"
   list(0 0)
   "R0"
   1
   list(
    list("rows" "float" rows)
    list("cols" "float" cols)
    list("finger_width" "float" finger_width))
   )
  bBox = paramObj~>bBox

awidth  = xCoord(upperRight(bBox)) - xCoord(lowerLeft(bBox))
alength = yCoord(upperRight(bBox)) - yCoord(lowerLeft(bBox))
println(awidth)
createALPHA(cv awidth alength)
cols = awidth/0.2
)
  )
 but i am getting the error

*WARNING* rodAssignHandleToParameter: w is an invalid parameter
*WARNING* rodAssignHandleToParameter: command failed

I am trying to use the handle on rodrectobj with an alpha layer to extend the pcell within

Adhil

  • Cancel
  • Adhil
    Adhil over 13 years ago

    i changed the code i get this

    procedure(CCScreateBoxAndLabels(cv w l "dnn")
      let( (rectRodObj)
      ;; create a rectangle on metal1 with x & y dimensions set by w & l
      rectRodObj = rodCreateRect(
          ?name     "myRect1"
          ?cvId     cv
          ?layer    list("ALPHA" "drawing")
          ?width    w
          ?length   l
          ?origin   list(0 0)
      )
          

      rodAssignHandleToParameter(
        ?parameter          "w"
        ?rodObj             rectRodObj
        ?handleName         "centerRight"
        ?stretchDir         "X"
        ?displayName        "width"
        ?displayExpression  "w"
        ?updateIncrement    0.1
      ); rodAssignHandleToParameter
      ); let
    ); procedure CCScreateBoxAndLabels

    pcDefinePCell(
      list(ddGetObj("adhillib") "encapRodPcell" "layout")
      (
        (w 0.2)
        (l 0.4)
      )
      let( ((cv pcCellView))
        CCScreateBoxAndLabels(cv w l)
    cols = w/0.2
     paramObj = dbCreateParamInstByMasterName(cv "adhillib" "gp2_path" "layout" "inst1"
       list(0 0)
       "R0"
       1
       list(
        list("rows" "float" 1.0)
        list("cols" "float" cols)
        list("finger_width" "float" 0.1))
       )

      ); let
    )
    /*
    the code compiles without errors, but the handle doesn't get assigned

     

    Adhil

     

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

    Adhil,

    Did you resolve this, given your other question? (the one I answered with the lambda)

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 13 years ago

     Hi Adhil,

    This code appears to work fine - I copied this and created something for the cell "gp2_path" that I could use with the code.

    Have you made sure that the "Stretch Handles" are turned on in the Display Options form?

    Hopefully this helps?

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Adhil
    Adhil over 13 years ago

    Hi Andrew and Lawrence

    Sorry for the late reply, but the code is working.I was not aware that the "Display stretch handles" was off. On the otherhand, thanks Andrew for your previous code, although i hope you could help me understand how it works.

    Thanks alot

    Adhil

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

    Adhil,

    I already gave an explanation in the other post...

    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