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?
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.
In reply to dmay:
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?
In reply to 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:
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.
You could use gePointQuery to get a quick result:
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
In reply to skillUser:
Many thanks for your reply.
I tried using dbGetOverlaps() and dbGetTrueOverlaps() . But i got error mesaage saying invalid bounding box.
my code was,
Can you suggest me some example for using these functions?