Display instance name in layout view

J

jbrand

Guest
I would like to display the instance name in a layout view. ie C9,
R10, I4, etc

I know that I can set the hierarchy depth to 0 to display it, but I
would like it displayed when viewing all depths. I have a piece of
skill that places the text at the top level of the design, but it is
not what I want to do. I would like the instance name to be displayed
as a property of an instance.

Is this possible to do?

Thanks,

Joe
 
Easy solution:

Go to Display Options. Under 'Show name of', choose 'instance' instead of 'master'.



Alternatively:

If you want to have a label, you need to change the label type to NLPLabel or ILLabel. Layout editor
doesn't allow you to do it interactively, therefore, you'll have to enter some SKILL in the CIW

ex: car(geGetSelSet())~>labelType = "NLPLabel"

For an NLPLabel, you can use the NLP expression '[@instanceName]' to display the instance name.

With an ILLabel, you can use the SKILL code 'ilInst~>name' to display the instance name.

More on NLP and IL labels in the schematic editor user manual.

Stéphane

jbrand wrote:
I would like to display the instance name in a layout view. ie C9,
R10, I4, etc

I know that I can set the hierarchy depth to 0 to display it, but I
would like it displayed when viewing all depths. I have a piece of
skill that places the text at the top level of the design, but it is
not what I want to do. I would like the instance name to be displayed
as a property of an instance.

Is this possible to do?

Thanks,

Joe
 
Hi Stéphane,

The easy solution only works when hiGetCurrentWindow()->stopLevel = 0.
I would like the layer data displayed and the instName displayed at the
same time. If hiGetCurrentWindow()->stopLevel = 20, then I get no
instName displayed.

I would like to place a pcell and have the instName be displayed as a
property of the instance.

I am still contemplating your alternate solution...

Joe
 
I figured it out. In my rod pcell code I have to add:

pcInst = dbCreateLabel(
pcCellView
list("TEXT" "drawing")
list(0.0 0.0)
"[@instanceName]"
"centerCenter"
"R0"
"stick"
100.0
)

dbSetq(pcInst "NLPLabel" labelType)

Thanks,

Joe
 

Welcome to EDABoard.com

Sponsor

Back
Top