Home > Community > Forums > Custom IC SKILL > how to get top_cell instances cellName i.e including depth

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 how to get top_cell instances cellName i.e including depth 

Last post Thu, Jun 25 2009 1:51 AM by Andrew Beckett. 1 replies.
Started by SUBBHAREDDY 24 Jun 2009 11:05 PM. Topic has 1 replies and 947 views
Page 1 of 1 (2 items)
Sort Posts:
  • Wed, Jun 24 2009 11:05 PM

    how to get top_cell instances cellName i.e including depth Reply

    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

     

     

    • Post Points: 20
  • Thu, Jun 25 2009 1:51 AM

    Re: how to get top_cell instances cellName i.e including depth Reply

    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.

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by SUBBHAREDDY at 24 Jun 2009 11:05 PM. Topic has 1 replies.