• 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 Design
  3. How to enter a variable into a symbol

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 129
  • Views 14647
  • 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 enter a variable into a symbol

AdamDaniels
AdamDaniels over 15 years ago

 Hi,

Am trying to find out, whether it is possible to assign a global variable, which, for instance, is defined in the .cdsinit, to a label on a schematic or a symbol?

Thanks

Adam

  • Cancel
Parents
  • skillUser
    skillUser over 15 years ago

    Hi Adam,

    Actually in SKILL a variable value is simply accessed by referring to it, no $ etc. is required.  The {} syntax is an alternative to using progn() around one or more statements as a grouping mechanism - the last statement in the block determines the return value of the block (hence the 'n' in the name progn to return the value of the nth statement, there is also a prog1 which returns the value of the first statement and also executes the rest of the statements in the block).  In this case {myGlobalVarName} and myGlobalVarName should behave in exactly the same way and return the value of the named variable.

    Anyway, I'm glad you got it working however you achieved it!

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillUser
    skillUser over 15 years ago

    Hi Adam,

    Actually in SKILL a variable value is simply accessed by referring to it, no $ etc. is required.  The {} syntax is an alternative to using progn() around one or more statements as a grouping mechanism - the last statement in the block determines the return value of the block (hence the 'n' in the name progn to return the value of the nth statement, there is also a prog1 which returns the value of the first statement and also executes the rest of the statements in the block).  In this case {myGlobalVarName} and myGlobalVarName should behave in exactly the same way and return the value of the named variable.

    Anyway, I'm glad you got it working however you achieved it!

    Regards,

    Lawrence.

    • 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