• 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. Search a Instance in hierarchy

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 16172
  • 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

Search a Instance in hierarchy

SkVlsi
SkVlsi over 12 years ago
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)))
  • Cancel
Parents
  • theopaone
    theopaone over 12 years ago

     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

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • theopaone
    theopaone over 12 years ago

     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

     

    • 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