Display instance name in layout view

Discussion in 'Cadence' started by jbrand, Mar 23, 2006.

  1. jbrand

    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
     
    jbrand, Mar 23, 2006
    #1
  2. jbrand

    S. Badel Guest

    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
     
    S. Badel, Mar 23, 2006
    #2
  3. jbrand

    jbrand Guest

    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
     
    jbrand, Mar 23, 2006
    #3
  4. jbrand

    jbrand Guest

    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
     
    jbrand, Mar 23, 2006
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.