• 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. Programmatically get type of cellview

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 144
  • Views 16173
  • 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

Programmatically get type of cellview

CClauson
CClauson over 13 years ago

Hello,

I'm just starting out with SKILL, and the task that I'm trying to accomplish is given a cellview, to get the type of the view (i.e., schematic, netlist, symbol, etc).  I've been looking through skdref.pdf, and I've gotten to where I know how to access properties and traverse the design hierarchy, as demonstrated by the following code fragment to print the entire hierarchy:

 foreach( lib ddGetLibList()
    printf("%s\n" lib~>name)
    foreach( cell ddGetObjChildren(lib)
        printf("\t%s\n" cell~>name)
        foreach( view ddGetObjChildren(cell)
            printf("\t\t%s\n" view~>name)
        )
    )
)

However, I can't figure out how to get the type of the view.  Is there any function to do that?

Thanks in advance for any help.

 

  • Cancel
  • StefanSL
    StefanSL over 13 years ago

     Hi CClauson,

    what about the following code, instead of using ddGetObjChildren:

    foreach( lib ddGetLibList()
        printf("%s\n" lib~>name)
        foreach( cell lib~>cells
            printf("\t%s\n" cell~>name)
            foreach( view cell~>views
                printf("\t\t%s\n" view~>name)
            )
        )
    )

    regards

    Stefan

     

    Hi CClauson,
    just found your code generates the same output as mine, so this
    isn't really an enhancement ;-)

    What do you expect from the view-type?
    The type of a view will always be ddViewType, you can get it
    from view~>type or by calling ddGetObjType(view)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    To get the view type, use this (in your inner loop):

    master=ddGetObj(lib~>name cell~>name view~>name "*")
    viewType=ddGetFileViewType(master)

    Regards,

    Andrew.

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

    Thanks for the replies!

    I tried this, but I got the error message:

     *Error* eval: undefined function - ddGetFileViewType

     I actually came up with a different way of doing what I needed to do, so the question is no longer urgent, but the problem is still open.

    Thank again

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    My apologies, I made a mistake when typing the post. The function should have been ddMapGetFileViewType.

    Sorry about that,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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