• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. How to dump il labels associated with an instance in sc...

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 144
  • Views 14694
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to dump il labels associated with an instance in schematic

pmathur
pmathur over 14 years ago
Hi Experts,

I am trying to dump all the interpreted labels associated with an instance in my test schematic. There is only one instance in this schematic. I wrote following code for this task, following piece of code when run interatively give me correct result (correct il Labels. But when I use same in my test procedure I get empty string for iilString. Seems like limitation of cdsParam( ). I am wrong or Is there an alternate way to get the task done.

=========code=====

srcCvId=geGetEditCellView()
instCDF=cdfGetInstCDF(car(srcCvId->instances))
;;Dumping IL Labels
                foreach(_illable  parseString(instCDF~>paramLabelSet)
                      _iilString=cdsParam(_illable)

                      printf("CellName=%L TestcaseName=%L ilLable=%L" cellName testcaseName _iilString)
                      fprintf(tmpport "CellName=%L TestcaseName=%L ilLable=%L" cellName testcaseName _iilString)
                      );end foreach
                fprintf(tmpport "#END IlLables \n")
;;End Dumping IL Labels

==============

Thanks & Best Regards

Prashant Mathur

 
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    You cannot do this. As is said in the documentation for cdsParam :

    This function uses information about the instance currently being drawn in order to compute the data returned by the schematic editor during a redraw. Consequently, cdsParamis only intended to be called as the value of an ILLabel on a symbol, and is not intended for direct evaluation during a program. If it is invoked directly, information on the current drawn instance will not be available.

     If you try to fool it by setting ilInst - it does not work - it always shows the "current" instance (usually the one selected, or last one drawn).

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • pmathur
    pmathur over 14 years ago

     Hi Andrew,

    Is there an alternate way to get these IL Labels ?

    Thanks & Regards

    Prashant Mathur

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Prashant,

    Not without a reasonable amount of work. You could use the ael.* functions to set things up so that the expressions can be evaluated - e.g. using aelSetLineage() to set the hierarchical path, and calling aelEnvCreate, aelEnvCompile, aelEnvExecute etc  to evaluate the expressions.

    Why do you want to do this anyway?

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • markbeck
    markbeck over 14 years ago

    I'd actually also like to know how to do this.

    One reason to do this, is that you wish to be able to auto generate attached labels displayed on a schematic in order to be able to manipulate / size / move them through scripts.

    When you select an instance, there is no associated labels to manipulate so you have to create them.
    i.e. if you select an instance and query it's textDisplays property, it's usually nil until you select a displayed label associated with the selected instance and move it.  Then, the textDisplay is manipulatable. 

    I tried using the ael calls to generate the labels as you suggested, but I have not had any luck.

    For example:
      d_cv = (caar geGetObjectSelectedSet())
      l_env = (list d_cv) ; create the lineage list
      x_env = aelEnvCreate('f); create the ael environment
      aelSetLineage(x_env l_env); set the lineage
      aelEnvInterpret(x_env "cdsPararm(1)") ; Returns nil....

    Is there another (better) way to generate the labels on an instance other than evaluating the .il instance labels?
    Is there something obvious about what I'm doing wrong in the ael example code?

    Thanks,
    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Mark,

    When I dug a bit further, it simply isn't possible - you'd have to recognize the cdsParam() and essentially replicate what it's doing. Far from trivial. "cdsParam(1)" isn't an AEL expression, so evaluating it makes no sense either...

    In order to move and manipulate them, you don't need to evaluate them. You probably just need to create the text display using dbCreateTextDisplay - just as what happens if you've already moved it. The text display only gets created if needed.

    Sorry if that's a bit vague - I've a ton of things to catch up with after being on vacation... so don't have the chance to try this myself.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • markbeck
    markbeck over 14 years ago

    Thanks for looking into this.  I was able to implement the 'selectText' function with the dbCreateTextDisplay() function.

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information