• 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 19334
  • 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
Parents
  • 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
Reply
  • 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
Children
No Data

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