• 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
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    Hi Adam,

    If I've understood you correctly, then the way to do this is to create a label on a symbol (the symbol itself, not an instance), and make the text of the label "myGlobalVarName" and set the label type to be "ILLabel".

    Then when you instantiate the symbol, that label will be an evaluated SKILL expression, and should show the value of the variable.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • AdamDaniels
    AdamDaniels over 15 years ago

    I assumed that as well, but it didn't work, it just prints the variable name... however, have since figured out the solution.

    I saw another post and was able to extrapolate the answer. What I need to write in the ILLabel field is {myGlobalVarName}. Not knowing anything about Skill I assume the {} are used to extract the value from a variable, a bit like $ in UNIX.

    Thanks for the reply,

    Adam

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • 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

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