• 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. Getting devices instance model, terminals and nets

Stats

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

Getting devices instance model, terminals and nets

dragank
dragank over 3 years ago

Hi all.

I am using Virtuoso IC6.1.8-64b.500.17.

I am trying to use:

https://community.cadence.com/cadence_technology_forums/f/custom-ic-skill/41566/config-view-assignment/1360121#1360121

code to find all devices in hierarchy when top view is config view.

For each device i need to extract model name, terminals and for each terminal I need to get net name.

At most I can get so far is name of the device with pcdbInstName.

I am facing similar issue with:

  • <ICinstDir>/tools/hdb/examples/hdbTraverse.il
  • https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1Od0000000nVxnEAE&pageName=ArticleContent

I tried to apply get(inst "model") and get(inst "terminals") and they all return nil.

CCFgetHierModelNames works fine when top view is schematic view, but I have scenario when top view is config view also.

Any help would be appreciated.

Best regards,

Dragan

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    The code in the articles and posts is mostly concerned with gathering views used - but if you want to find the instance from a specific containing cellView, you'd do either foreach(inst cv~>instances ...) or inst=dbFindAnyInstByName(cv instName). Having done that, assuming the model name follows the usual convention, you'd use inst~>model and for the connections, you'd use inst~>instTerms and then inst~>instTerms~>net~>name 

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dragank
    dragank over 3 years ago in reply to Andrew Beckett

    One of the main issues I have is how to get "cv" argument for

    inst = dbFindAnyInstByName(cv instName)

    I would really avoid reinventing the wheel while having mentioned examples existing.

    But they all operate with lib/cell/view names.

    Best regards,

    Dragan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to dragank

    What's wrong with using dbOpenCellViewByType() with the lib/cell/view?

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dragank
    dragank over 3 years ago in reply to Andrew Beckett

    So far I can not list instances.

    Best regards,

    Dragan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to dragank

    Is the master lib/cell/view what you think it is? I’m not sure how this interfaces to any of the other code mentioned before, but maybe you’re opening the symbol view not the schematic (the switched or bound view )?

    I can’t check much because I’ve just boarded a plane and am answering on my phone. The code looks broadly reasonable though other than that. It’s a bit odd using sprintf and then println the result rather than just using printf, but that wouldn’t be the issue of course!

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dragank
    dragank over 3 years ago in reply to Andrew Beckett

    Library, cell, and view are correct.

    Code is navigating to MOSFETs as expected.

    I managed to get to terminals and nets in the following way:

    Now I got another issue.

    terminal->net->name is equal to terminal->name,

    so I can not tell to which net MOSFET electrodes are connected (gates especially) and that is main purpose of the script.

    Best regards,

    Dragan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • dragank
    dragank over 3 years ago in reply to dragank

    Thank you Andrew.

    As You mentioned "maybe you’re opening the symbol view" was the issue.

    Script now gives correct outputs.

    Best regards,

    Dragan

    • 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