• 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. skill writing style

Stats

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

skill writing style

nrk1
nrk1 over 11 years ago
I am new to skill and was looking at skill codes available on the web. I found abMapAndWire.ils by Andrew Beckett and noticed that variables are assigned in the first form below rather than the second. What are the differences? and advantages of the former? Tried searching the web and this forum and couldn't find something that directly mentioned these, probably because I don't know the proper names for them.
 
Form 1 (syntax form???):
(setq pin (car (getq terminal pins)))
 
Form 2 (assignment???):
pin=car(terminal~>pins)
 
Also, in the skill language reference, the syntax is given as
setq( x 5 )
rather than
(setq x 5)
 
What are the differences? and the preferred way? 
 
Thanks 
Regards

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    Yes, the SKILL LISP mode is a bit verbose when it comes to expressions. In a number of LISP dialects the expression would be (setq a (* (- b c) d) (might be setf rather than setq). In SKILL however, the operator symbols can't directly be used as function names (they could, but they'd have to be escaped, which would be a bit clunky) - so instead we have wordy equivalents of the *, -, +, / functions etc.

    Regards,

    Andrew.

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

    Yes, the SKILL LISP mode is a bit verbose when it comes to expressions. In a number of LISP dialects the expression would be (setq a (* (- b c) d) (might be setf rather than setq). In SKILL however, the operator symbols can't directly be used as function names (they could, but they'd have to be escaped, which would be a bit clunky) - so instead we have wordy equivalents of the *, -, +, / functions etc.

    Regards,

    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