• 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. How to obtain path of an instance that is selected

Stats

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

How to obtain path of an instance that is selected

Peach99
Peach99 over 15 years ago

Hello I have a new problem!! I want to use the "OP" - function of the calculator in skill! When I want to use this function I need the path of the instance that is selected (example: OP("I1/I3/M5" , "vds") !!!! "I1/I3/M5" is the path!! When I have selected the instance M5 and I execute this function: geGetInstHier( getCurrentWindow() ) I only get the result: "I1/I3". By now I couldn't find out how I can get this path! Is there an another function or way to get this result? Please help me and please give me no source link, because I can't register me at the moment (I have no HostID at the moment, but I get it next week)! 

Regards

Daniel Pietsch

  • Cancel
  • dmay
    dmay over 15 years ago

    You will need to add the final instance to the path yourself. The geGetInstHier only returns the path to where you are in the hierarchy. You can then concatenate the name of the selected instance onto the path.

    curPath = geGetInstHier(getCurrentWindow())
    inst = car(geGetSelSet())
    fullPath = strcat(curPath "/" inst~>name)
    or
    sprintf(fullPath "%s/%s" curPath inst~>name)

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Peach99
    Peach99 over 15 years ago

     Thank you for the answer! It works!

     

    Best regards

    Daniel Pietsch

    • 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