• 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. Is there a function for mathematics constant PI?

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 144
  • Views 29623
  • 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

Is there a function for mathematics constant PI?

richardyuan
richardyuan over 11 years ago
what's the expression for π in cadence skill?
  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    The gdm interface is a pretty lightweight implementation in SKILL of the underlying C APIs which are iterator based. The CDBA C APIs are similar, but those have been abstracted out to use lists so that's hidden from the user. That didn't happen with the GDM APIs, so they seem awkward in comparison. There's no appetite to go back and provide a stateless interface though, because we'd have to support both old and new APIs and that would just double the maintenance work for primarily philosophical benefits...

    defMathConstants does also feel slightly clunky, but I would have sooner had a predefined symbol with these values as properties rather than an API to retrieve a constant (it would be a pain to have to keep retrieving all the constants you need - you might end up with 19 function calls if you needed all of them, however unlikely that is). Of course you could argue it could have been implemented lots of different ways, including returning a DPL or a structure instance. However, it has been this way for 25 years probably and isn't going to change as there really is no benefit in making a change (as before, we'd have to support two ways, which seems overkill for a set of maths constants).

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    The gdm interface is a pretty lightweight implementation in SKILL of the underlying C APIs which are iterator based. The CDBA C APIs are similar, but those have been abstracted out to use lists so that's hidden from the user. That didn't happen with the GDM APIs, so they seem awkward in comparison. There's no appetite to go back and provide a stateless interface though, because we'd have to support both old and new APIs and that would just double the maintenance work for primarily philosophical benefits...

    defMathConstants does also feel slightly clunky, but I would have sooner had a predefined symbol with these values as properties rather than an API to retrieve a constant (it would be a pain to have to keep retrieving all the constants you need - you might end up with 19 function calls if you needed all of them, however unlikely that is). Of course you could argue it could have been implemented lots of different ways, including returning a DPL or a structure instance. However, it has been this way for 25 years probably and isn't going to change as there really is no benefit in making a change (as before, we'd have to support two ways, which seems overkill for a set of maths constants).

    Andrew.

    • 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