Home > Community > Forums > Custom IC SKILL > Search a Instance in hierarchy

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: *

 Search a Instance in hierarchy 

Last post Mon, Jun 24 2013 1:32 PM by Andrew Beckett. 2 replies.
Started by SkVlsi 16 Jun 2013 05:04 AM. Topic has 2 replies and 666 views
Page 1 of 1 (3 items)
Sort Posts:
  • Sun, Jun 16 2013 5:04 AM

    • SkVlsi
    • Not Ranked
    • Joined on Fri, Sep 14 2012
    • Posts 8
    • Points 145
    Search a Instance in hierarchy Reply
    Hello,

    I want to  get a  location of certain instance in a layout cell in text file. I have writen a small skill code and it is working fine except for instance which are in level 1 and below. That  is i will get the location of inst which are on top level only. Can anyone help me to get it fix these problem. Thanks in advance.

    Following is the code that i have used

    procedure(lSch()
    let((inst_overlaps filename)
    cv=geGetEditCellView()
    filename="/dir1/filename.txt"
    myport = outfile(filename)
    foreach(inst cv~>instances
             if(inst~>cellName == "Xcell" then
     fprintf(myport "location of cell is : %L\n" inst~>xy) )  )
      )
    close(myport)))
    • Post Points: 20
  • Tue, Jun 18 2013 12:39 PM

    • theopaone
    • Top 50 Contributor
    • Joined on Tue, Feb 12 2013
    • Cedar Park, TX
    • Posts 136
    • Points 2,050
    Re: Search a Instance in hierarchy Reply

     I would probably search the instHeaders instead of the instances. The instHeaders point to the instances. There may be more than one instHeader for each cell name, if the cells are pcells:

    instHeaders = setof( ih cvId~>instHeaders ih~>cellName == "myCell" )
    instList = foreach(mapcan ih instHeaders ih~>instances)

    Now you can start probing the other masters for the same information.You will need to do this recursively, keeping track of the transform of the instances in each master. When you get back to the top, transform the orientations and print out your answer.

    Andrew may have an example which helps do this.

    Ted

     

    • Post Points: 20
  • Mon, Jun 24 2013 1:32 PM

    Re: Search a Instance in hierarchy Reply

    Or maybe you might find the leSearchHierarchy function easier?

    Andrew

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by SkVlsi at 16 Jun 2013 05:04 AM. Topic has 2 replies.