• 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. Error using leSearchHierarchy()

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 144
  • Views 15650
  • 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

Error using leSearchHierarchy()

LeJonT
LeJonT over 15 years ago

Hi,

I am trying to use leSearchHierarchy() function to list all labels in a layout. Code below:

cellView = dbOpenCellViewByType( libName topCellName "layout" )
labelsInLayout = leSearchHierarchy( cellView cellView~>bBox 32 "label" list( ) )

But, instead of all labels hierarchically, it is listing the labels in Top View only.

Strange thing is, if I open the Top Layout using the editor and run the code again, it is listing all the lables in all levels. Same way, it is lisiting all the layers once the layout is closed too.

What can be the possible reason for this strange behaviour? Am I missing something? (I am using ic5.1.41)

 

-Thanks and Regards,

Leo 

  • Cancel
  • LeJonT
    LeJonT over 15 years ago

    Hi,

    This is the one solution that I found out.. 

    cellView = dbOpenCellViewByType( libName topCellName "layout" )
    cellViewID = dbOpenHier( cellView 32 ) ;open/bind master of insts contained in the cellview
    labelsInLayout = leSearchHierarchy( cellView cellView~>bBox 32 "label" list( ) )

     Any other options?

    -Leo 

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

    Leo,

    I replied by email earlier, but for some reason it did not appear - my suggestion was to use dbOpenHier, as you've found. If you've opened the design interactively, it may have opened the entire hierarchy (particularly if the stop level is set to maximum) - there's a cdsenv to control this. If you did it from SKILL using dbOpenCellViewByType(), it does not open the entire hierarchy unless you explicitly ask it to (with dbOpenHier) for efficiency reasons.

    So that is the best solution... You could also traverse the hierarchy itself, which would cause the masters to get elaborated as you request them, but since your search is so simple, using leSearchHierarchy does most of the work for you.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago
    Call dbOpenHier(cellView 32) first to ensure the hierarchy is opened. When you're opening in the layout editor, it's probably opening it to full depth.

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

    Hi Leo (and Andrew)

    Where do I get Information about the function leSearchHierarchy() ? I can't find it in my "Virtuoso Design Environment SKILL Reference"

    I am using Virtuoso 6.1.x, might this be a problem?

     

    Thanks a lot

     

    Milo

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

    Why not run "cdnshelp" and search for it?

    It will be in the layout editor SKILL functions manual (at a wild guess without checking).

    Regards,

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

    Hi Milo,

    As Andrew mentioned, you should be able to find it in cdnshelp. You will find it in "Layout SKILL Functions Reference" (sklayoutref.pdf) as well.

    Regards,
    Leo

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

    Hey,

    thanks for all the hints. cdnshelp seems to be broken in my installation. I will figure out that later :-)

    I found the documentation in the Layout SKILL Functions Reference as LeJonT pointed out. 

    Another good solution to my problem is using the binary "cdsFinder" as I discovered some days ago.

     

    Happy Layouting ;-)

    Milo

     

     

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

    > cdnshelp seems to be broken in my installation. I will figure out that later :-)

    Maybe you're running one of the early IC61 releases (6.1.0 or 6.1.1) which were before cdnshelp was introduced? If so, it would be "cdsdoc" in those releases. 

    Andrew.

    • 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