• 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 get top_cell instances cellName i.e including de...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 13009
  • 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 get top_cell instances cellName i.e including depth

SUBBHAREDDY
SUBBHAREDDY over 16 years ago

Hi

I want to get instances present in top cell.

Not only top level instances,it has to search  instances present in top to bottom level.

How to get all those instances names.

Here with i had wriiten a code to get it,but i am able to trace it out onlu top level instances cell names only.

How to get instances cell Names present one level down.

 procedure(grep_instance(libname instname)
let((instId cv)
port = outfile("rpt.txt")
libId=ddGetObj(libname)
foreach(cells libId~>cells
if((cv=dbOpenCellViewByType(libname cells~>name "layout" nil "r")) then
instId=setof(x cv~>instances (x~>cellName == instname))
if(instId != nil then
fprintf(port "\n***INFO:Instance : %s  found in CELL : %s  \n" instname cells~>name)
);end if
dbClose(cv)
);endif
);end foreach
close(port)
);end let
);end procedure

grep_instance("IOLIB" "psvt")

 

Thanks and regards

Subbhareddy

 

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    For a comprehensive way of doing something similar, which supports both a view-list based approach, and use of a config (which is more complex), see sourcelink solution number 11300048 (just search for the number).

    Assuming you're talking about a schematic, for example. With layout it's easier because you don't need to do any view switching. A simple recursive function can achieve it with layout. Even with schematics, it's easy if you've just got a view list. Only configs make it more complex (because you need to honour the rules specified in the config).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 16 years ago

    For a comprehensive way of doing something similar, which supports both a view-list based approach, and use of a config (which is more complex), see sourcelink solution number 11300048 (just search for the number).

    Assuming you're talking about a schematic, for example. With layout it's easier because you don't need to do any view switching. A simple recursive function can achieve it with layout. Even with schematics, it's easy if you've just got a view list. Only configs make it more complex (because you need to honour the rules specified in the config).

    Regards,

    Andrew.

    • 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