• 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. Get all other cells used in a given cell

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 18066
  • 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

Get all other cells used in a given cell

CClauson
CClauson over 13 years ago

Hello,

Given a cell, I'm wondering if there's any easy way to programmatically get all other cells used in that cell's design.

Code looks something like this:

;;winId has type "window", as tested
;;by function wtypep()
myCell = windId->cellView

Now, given myCell, how can I create a list of other cells that are referenced in myCell's design?

Also, I have a more general question:  If I'm given a type in SKILL, is there any easy way of finding the documentation for what members it has, like Javadoc?  If this were Javadoc, I'd go to the "window" type, see that it has a "cellView" member.  I'd then go to that type's doc, which would probably answer my question.

Thanks in advance for any advice that can be offered.

 

  • Cancel
Parents
  • CClauson
    CClauson over 13 years ago

    Okay, I think I got this worked out.  Here's the solution I ended up using:

     procedure(getSchematicDBsInSchematicDBs(cvId)
        prog( (
            ;;local variables
            retlist
            newcvId
        )
        retlist = nil ;;initialize return list to empty list
        foreach(master cvId->instanceMasters ;;iterate through symbol cellviews referenced in this schematic
            ;;try to find a schematic cellview for this symbol cellview,
            ;;will return nil if none can be found (and, unfortunately, issue a warning in the CIW!)
            newcvId = dbOpenCellViewByType(master~>libName master~>cellName list("schematic"))
            if(newcvId ;;if didn't return nil
                retlist = cons(newcvId retlist) ;;append to beginning of return list
            )
        ) ;;end foreach
        return(retlist)
        ) ;;end prog
    )

    The only downside of this is that it issues warnings in the CIW.  If there was some way to avoid that it would be nice, but this works reasonably for now.

     Thanks for the help!

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • CClauson
    CClauson over 13 years ago

    Okay, I think I got this worked out.  Here's the solution I ended up using:

     procedure(getSchematicDBsInSchematicDBs(cvId)
        prog( (
            ;;local variables
            retlist
            newcvId
        )
        retlist = nil ;;initialize return list to empty list
        foreach(master cvId->instanceMasters ;;iterate through symbol cellviews referenced in this schematic
            ;;try to find a schematic cellview for this symbol cellview,
            ;;will return nil if none can be found (and, unfortunately, issue a warning in the CIW!)
            newcvId = dbOpenCellViewByType(master~>libName master~>cellName list("schematic"))
            if(newcvId ;;if didn't return nil
                retlist = cons(newcvId retlist) ;;append to beginning of return list
            )
        ) ;;end foreach
        return(retlist)
        ) ;;end prog
    )

    The only downside of this is that it issues warnings in the CIW.  If there was some way to avoid that it would be nice, but this works reasonably for now.

     Thanks for the help!

     

     

    • 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