• 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
  • tweeks
    tweeks over 11 years ago

    tweeks said:

    For example, consider the awful gdm interface for copying Virtuoso cellviews

    OK, I was a little hard on poor gdm.  It's not objectively "awful", just "awfully stateful". :) 

    There are multiple schools of thought about how programming should be done; I come from the "write pure/side-effect-free/stateless code wherever possible" school that you tend to find more in books about Scheme than in books about Common Lisp, though you can write pure code in Common Lisp too, and impure code in Scheme using "set!" etc.

    One day I discovered that most of the SKILL I write can be thought of as application of the functional programming operatons "filter", "map", and "reduce" over the Cadence database: shapes, instances, cells in the hierarchy, etc.  Writing code in terms of these three higher-order functions tended to make things clearer: my code got simpler, temp variables were elided, etc.  That's why functional programming feels like the most natural style in SKILL for me, and why being forced to destructively update symbol property lists just to get the value of PI, or having to mutate a pointer inside a gdmSpecList object, is jarring: most of the time I work in this nice, pure, side-effect free world, but once in a while I have to get my hands dirty mutating data structures.

    Maybe I'm just fussy too.... :)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • tweeks
    tweeks over 11 years ago

    tweeks said:

    For example, consider the awful gdm interface for copying Virtuoso cellviews

    OK, I was a little hard on poor gdm.  It's not objectively "awful", just "awfully stateful". :) 

    There are multiple schools of thought about how programming should be done; I come from the "write pure/side-effect-free/stateless code wherever possible" school that you tend to find more in books about Scheme than in books about Common Lisp, though you can write pure code in Common Lisp too, and impure code in Scheme using "set!" etc.

    One day I discovered that most of the SKILL I write can be thought of as application of the functional programming operatons "filter", "map", and "reduce" over the Cadence database: shapes, instances, cells in the hierarchy, etc.  Writing code in terms of these three higher-order functions tended to make things clearer: my code got simpler, temp variables were elided, etc.  That's why functional programming feels like the most natural style in SKILL for me, and why being forced to destructively update symbol property lists just to get the value of PI, or having to mutate a pointer inside a gdmSpecList object, is jarring: most of the time I work in this nice, pure, side-effect free world, but once in a while I have to get my hands dirty mutating data structures.

    Maybe I'm just fussy too.... :)

    • 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