• 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. Finding VDC() of a selected net

Stats

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

Finding VDC() of a selected net

jorankin
jorankin over 14 years ago
Hello,

I am using cadence icfb version 6.1.4.500.5

I am trying to do the following in SKILL code:

1. After a net is selected, find the DC voltage of that net.

   One would think this is easy by doing the following:

hierInfo=geGetInstHier(hiGetCurrentWindow())

SSN=geGetSelSet()~>net~>name

    name=strcat(hierInfo “/” SSN)

VDC(name)

But this doesn't always work, notably when a net is brought out a level or more of hierarchy than the current window you are in.

Thanks,
John
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago
    Hi John,

    geGetAdjustedPath() is the function you want.

    An example of this in use is in my solution http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNumber=11021500

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jorankin
    jorankin over 14 years ago
    Andrew,

    The help for "geGetAdjustedPath" says that it only "Reduces the given hierarchical net path to the shortest hierarchical name that is equivalent to this net." What I want is what the calculator would give me if I were to probe the net. So I'm not sure this is the right function.

    I  tried it out by doing:

    geGetAdjustedPath(hiGetCurrentWindow() geGetSelSet()~>net~>name)

    I get the following back:

    "dc_test_lowlevel<6>"

    But when I use the calculator, the following appears:

    VDC("/I0/dctest_highlevel<6> ")

    This is because the highest level that this net appears is at I0/, and within I0, this net is called dctest_highlevel<6> whereas at the level I actually probe this net, the name if the net is dc_test_lowlevel<6>. What I want is what the calculator gives me, but I haven't been able to find anything that gives me this information.

    Thanks,

    John
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago
    Hi John,

    It is the right function, but you need to give the full hierarchical path as the second argument and it will reduce it. It has to be a "rooted" path.

    In the solution I mentioned, there is a function CCSgetHierNetName which does this (I think - I'm on a train so can't see the code right now).

    Or you could use:

    wid=hiGetCurrentWindow()
    geGetAdjustedPath(wid strcat(geGetInstHier(wid) "/" car(geGetSelSet())~>net~>name))

    Regards,

    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • jorankin
    jorankin over 14 years ago

    Andrew,

           Ok yeh this worked. Thanks a lot!

     

    John

    • 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