ilInst label question

Discussion in 'Cadence' started by whisker, Apr 13, 2005.

  1. whisker

    whisker Guest

    I am wanting to find an automatic method to annotate the owner of a
    schematic in the schematic's title block. The general method of
    ilInst~>cellView~>lib~>owner gives me the ownership of the library NOT
    the cell. I have used geQuerySelSet() and I do not see a way to get
    the cell's owner. Am I missing something? I did try creating an
    ILLabel in the title block symbol that used
    ddGetObjOwner(dbGetCellViewDdId(geGetEditCellView())) and this seemed
    to work, but I wondered if this was a kludged method. Any help would
    be greatly appreciated. Thanks.
     
    whisker, Apr 13, 2005
    #1
  2. ilInst~>cellView~>view~>owner if you want the cellView owner
    ilInst~>cellView~>cell~>owner if you want the cell owner

    your method would also be OK if you did:

    ddGetObjOwner(dbGetCellViewDdId(ilInst~>cellView))

    That's essentially a procedural interface way of doing my first suggestion.
    It's the same, really.

    Andrew.
     
    Andrew Beckett, Apr 13, 2005
    #2
  3. whisker

    whisker Guest

    Thanks, Andrew, I didn't realize that all the database information for
    the cellview was accessible in that fashion.

    On a related topic, are properties stored in the property bag able to
    be displayed via an ilInst label as well?

    whisker
     
    whisker, Apr 14, 2005
    #3
  4. Yes.

    ilInst~>cellView~>cell~>propName

    Or if you write a SKILL function, you can explicitly open the bag,
    get the value, close the bag, and return the property value.

    You can do whatever you like in an ILLabel.

    Regards,

    Andrew.
     
    Andrew Beckett, Apr 15, 2005
    #4
  5. whisker

    whisker Guest

    Thanks, Andrew, as always, you are a wellspring of knowledge.

    One last question. Is it possible to define properties of the cell or
    view or cellview that read an environment variable from the shell?
    When I define a property with type = ILExpr and value = getShellEnvVar(
    "PWD" ), it seems that it is NOT evaluated using SKILL and the ILLabel
    that I use to display the property just shows getShellEnvVar( "PWD" )
    instead of the path. Similarly, I tried setting the value to
    getWorkingDir() and again it just regurgitates getWorkingDir() instead
    to evaluating it using SKILL. It does this regardless of whether I do
    it for the cellview, cell, or view. I am not really after the path, I
    just used these for convenience of example.

    whisker
     
    whisker, Apr 15, 2005
    #5
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.