• 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. How to set system variable in CIW window

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 18164
  • 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 set system variable in CIW window

ExcaIibur
ExcaIibur over 6 years ago

The use scenario is that I want to load some ocean script from the CIW window with the syntax load("filename.ocn")

And in the ocean file, some system variable is quired, e.g. env(cellName)

However, I discovered that, if I defined the system variabler cellName after I launch virtuoso, then virtuoso cannot see this variable.

I would like to know whether what I observed is true and if true how to work around that.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago

    Assuming you're talking about UNIX environment variables, then setting a UNIX environment variable will not affect any child process previously launched from the process where you set the env var - this is how UNIX works.

    You can set a UNIX environment variable in SKILL using:

    setShellEnvVar("THEVARNAME" "myvalue") ; 

    and getShellEnvVar("THEVARNAME") would retrieve. 

    Perhaps that's what you want?

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • ExcaIibur
    ExcaIibur over 6 years ago in reply to Andrew Beckett

    I just tested it and indeed it did exactly what I want. Thanks for the information.

    • 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