• 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. hierarchical list of instances in a given layout

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 19309
  • 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

hierarchical list of instances in a given layout

ajni
ajni over 9 years ago

Hi 

How to get the lsiting of all the insatnces used in the layout given  database id of the cell without opening the layout in a window.

Thanks

vinutha

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Given what you are trying to do is not very precisely defined (you didn't say exactly what you want the result to look like or what you're trying to do with it), I'll suggest an answer that may or may not be appropriate. You can use the "fastTree" command from the UNIX prompt (or Tools->Print Hierarchy Tree in the CIW).

    If you want to do something else, please be clearer in explaining what you want.

    Kindest Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ajni
    ajni over 9 years ago
    Hi Andrew,

    I am working on a script to list the subcells in a library which is not used in any of the top cells we have .
    So, i get a list of all the subcells in a given library and comparing that list in the main cell
    I am using the command


    foreach(cellS layout_names
    instSearch = leSearchHierarchy(cell cell~>bBox 32 "inst" list(list("cell name" "==" cellS)))


    if(instSearch == nil then
    arrraySearch = leSearchHierarchy(cell cell~>bBox 32 "array" list(list("cell name" "==" cellS)))

    if(arrraySearch == nil then
    unUsedCells = append1(unUsedCells cellS)

    );end if
    );end if
    );end foreach

    But for a libray with 2 or 3 cells the time taken to list the unused subcells is less , but for a lib with more than 50 top cells and 100's of subcells it is taking lot of time.
    just because i do leSearchHierarchy every time . For the schematic view search i have used list =schGetCellViewListInSearchScope(cell "hierarchy" cell "schematic" "" "read" ) and it is very fast.
    so, i just wanted to check if there is anything i can do to reduce the time taken to search. If i dump the list of instances used in top cell to a file the search becomes very easy.

    Let me know if i am correct.

    Regards
    vinutha
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • marbs
    marbs over 9 years ago
    Hi Vinutha,
    Try,
    lePrintHierarchyTree()

    Best Regards,
    Marbs
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ajni
    ajni over 9 years ago
    In this script i need only the cellnames to be added to a list , so that i do remd(list 1 list2)
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    You could use this function to collect the cells used in a hierarchy:

    procedure(CCFcellsUsed(cv @optional (cellsUsed makeTable('cellsUsed nil)))
      let((realMaster)
        foreach(master cv~>instanceMasters
          realMaster=if(master~>superMaster master~>superMaster master)
          when(realMaster && !cellsUsed[realMaster]
            cellsUsed[realMaster]=t
            CCFcellsUsed(realMaster cellsUsed)
          )
        )
      )
      cellsUsed
    )

    Then something like:

    cellNamesUsed=makeTable('cellNamesUsed nil)
    foreach(cell CCFcellsUsed(topCellView)
      cellNamesUsed[cell~>cellName]=t
    )

    unusedCells=setof(cellName layout_names !cellNamesUsed[cellName])

    This will be much more efficient because you are only traversing the hierarchy once to collect what was used.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ajni
    ajni over 9 years ago
    Thanks a lot.
    • 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