Home > Community > Forums > Custom IC SKILL > displaying properties when mouse pointer is pointed on fig

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 displaying properties when mouse pointer is pointed on fig 

Last post Thu, Feb 26 2009 9:20 PM by ramya. 5 replies.
Started by ramya 24 Feb 2009 02:42 AM. Topic has 5 replies and 2286 views
Page 1 of 1 (6 items)
Sort Posts:
  • Tue, Feb 24 2009 2:42 AM

    • ramya
    • Not Ranked
    • Joined on Wed, Feb 11 2009
    • Posts 9
    • Points 180
    displaying properties when mouse pointer is pointed on fig Reply

    Hi,

    When a mouse pointer is on some instance  or metal layer, the instance name or layer name has to displayed in a window or in dialogue box.

     

    can anyone suggest some ideas for this?

    • Post Points: 20
  • Tue, Feb 24 2009 8:16 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 394
    • Points 7,420
    Re: displaying properties when mouse pointer is pointed on fig Reply

    If you are using Cadence 6.1.x, under the Options menu there is a Dynamic Display form. From here, you can turn on a popup balloon that will display the shape and layer or an instance and it's name. There are many options on the form you can play with.

     If you are working in an earlier version of Cadence you'll have to write your own solution. For us, we wrote a wrapper routine for the select command. When a user selects an object using the left mouse button, information about that object is displayed in the CIW. This is simple enough to do:

    hiSetBindKey("Layout"     "None<Btn1Down>"         "reportMouseSel()")

    procedure(reportMouseSel()
       mouseSingleSelectPt()
       when(obj = css()
          case(obj~>objType
             ("inst"
                printf("Inst %s of cell %s\n" obj~>name obj~>cellName)
             )
             ("rect"
                printf("Rectangle on %L\n" obj~>lpp)
             )
             (t
                printf("Object is %s on lpp %L\n" obj~>objType obj~>lpp)
             )
          )
       )
    ); proc

    This is just an example. You can add as much or as little as you want to the reporting routine.

    -Derek

    • Post Points: 20
  • Wed, Feb 25 2009 9:36 PM

    • ramya
    • Not Ranked
    • Joined on Wed, Feb 11 2009
    • Posts 9
    • Points 180
    Re: displaying properties when mouse pointer is pointed on fig Reply

    Hi,

    thanks for your reply.

    i would like to know wat does css() mean?

    moreover if there are multiple objects at single selected point like when there are overlapping metals and contacts how can i display the properties of all overlapping metals and contacts at a location?

    • Post Points: 35
  • Thu, Feb 26 2009 6:47 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,587
    • Points 15,915
    Re: displaying properties when mouse pointer is pointed on fig Reply

     Hi Ramya,

    css() is shorthand for car of selected set . I don't think that it is documented, so it would actually be better to use something like the following in your code:

        car(geGetSelectedSet())

    For interactive things in the CIW css() is probably fine, but I would use the longer form above in any code stored in files. If you run the above longer form through the SKILL Lint checker it will achieve a good score, or at least it will not reduce your score. However, since css() is not documented (probably, I haven't checked recently), it will reduce your overall score.  You want to aim to reach 100 or be as close as you can for the Lint score.

     For the second  question, here you cannot use css() or geGetSelectedSet() as they refer to the set of objects that are selected. You will want something that takes an input point and gives you the shapes underneath. Let me look into that and get back, it is likely that you will want to use dbGetOverlaps() or dbGetTrueOverlaps() but these are a little more complex.

    Regards,

    Lawrence.

    • Post Points: 20
  • Thu, Feb 26 2009 7:30 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 394
    • Points 7,420
    Re: displaying properties when mouse pointer is pointed on fig Reply

    You could use gePointQuery to get a quick result:

    hiSetBindKey("Layout"     "None<Btn1Down>"         "reportMouseSel()")

    procedure(reportMouseSel()
       mouseSingleSelectPt()
       gePointQuery(hiGetCurrentWindow() hiGetCommandPoint() "myFilter")
    ); proc

    procedure(myFilter(obj)
      let(()
        when(eq(obj car(geGetSelSet()))
            printf("SELECTED: ")
        )
        case(obj~>objType
           ("inst"
              printf("Inst %s of cell %s\n" obj~>name obj~>cellName)
           )
           (t
              printf("%s on lpp %L in cell %s\n" obj~>objType obj~>lpp obj~>cellView~>cellName)
           )
        )
      ) ;let
    ) ;proc

    -Derek

    • Post Points: 5
  • Thu, Feb 26 2009 9:20 PM

    • ramya
    • Not Ranked
    • Joined on Wed, Feb 11 2009
    • Posts 9
    • Points 180
    Re: displaying properties when mouse pointer is pointed on fig Reply

    Hi,

    Many thanks for your reply.

    I tried using dbGetOverlaps() and dbGetTrueOverlaps() . But i got error mesaage saying invalid bounding box.

    my code was,

    d=geGetSelectedSet()

    b=d~>bBox

    list=dbGetTrueOverlaps(geGetWindowCellView() b)

    Can you suggest me some example for using these functions?

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by ramya at 24 Feb 2009 02:42 AM. Topic has 5 replies.