• 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. ENVIRONMENT VARIABLES

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 22825
  • 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

ENVIRONMENT VARIABLES

Julien Terrier
Julien Terrier over 9 years ago

Hello,

Currently I meet a problem with my environnement variable (from unix) and cadence virtuoso.

Sometimes I have to change an environment variable to work in dev mode ( It's an environment variable who I have created). But If my cadence virtuoso is already open it doesn't get the new value of my environment variable.

Description:

I work with cadence virtuoso to make some layout, i need to change of mode to load any skill procedure.

I go in my script, I change my environment variable "TOTO" in 1 then I source my script .mycsh.

In unix my environment variable is modified  now "TOTO" value is 1 whereas before it value was 0

I check in CIW ==> getShellEnvVar( "TOTO")  return of the function is not update the value is always 0

Therefore I stay in prod mode and I can't get the right path to load my skill procedure.

 

Please, could you tell me if there is an way to resolve my problem, thanks lot !

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    Hi Julien,

    This is hardly surprising. UNIX environment variables are inherited by child processes when they start. Subsequent changes to an environment variable in a parent process will have no impact on any already started child processes. This is nothing to do with Virtuoso - that's how UNIX works.

    You can however change the environment variable within the current process using SKILL, using the setShellEnvVar() function:

    setShellEnvVar("TOTO=1")

    That will set it for the Virtuoso process, plus any child processes from Virtuoso launched from that point onwards.

    Kind Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Julien Terrier
    Julien Terrier over 9 years ago
    Thank you for your fast and relevant answer.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Satyavada
    Satyavada over 5 years ago in reply to Andrew Beckett

    Hello Andrew, is there a way I can source a group of scripts before Virtuoso is launched, I want the tool to run these scripts before it launches.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 5 years ago in reply to Satyavada

    What kind of scripts are you talking about? Shell scripts (if so what flavour of shell script)? SKILL scripts, or something else? 

    Andrew

    • 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