• 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. envRegSetTrigger() & environment customization

Stats

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

envRegSetTrigger() & environment customization

eager
eager over 14 years ago

Hi,

        I want to change the ModeFiles when there are many modelfile lists, I use asiSetEnvOptVal function to set the default value, later I want change it,but when i use asiSetEnvOptVal Function again, the ModelFiles don't change,then I find the other function:envRegSetTrigger(),but the second argument must be a func,and the format like this:setTrigger(g_name old_value new_value),I cann't find further more help in the manul,anyone can help me?and if I use this function whether I can change the ModelFiles?

Regarts

eager

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Assuming you really meant asiSetEnvOptionVal , that ought to work - but maybe you're calling it wrong. What exactly are you passing to the function, and are you expecting it to change only for new ADE sessions or for open ADE sessions?

    I don't think that envRegSetTrigger will help at all.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • eager
    eager over 14 years ago

    I use asiSetEnvOptionVal to set the initial modelfile,it is ok,when I use it for the second time,I open setup->modelpath to check,it doesn't change at all,but I use envGetVal to get the return value,it's really changed as I set, and I found if I close the ADE,then open a new one again,it will be changed, actually I except it to change for the current open ADE sessions,any wrong?what should I do? or must add any other function?

    Regards

    eager

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    You didn't answer my question about what you're passing to the function.

    My guess (again, this would be much easier had you answered my question, as it would avoid me having to guess) is that you're doing:

    asiSetEnvOptionVal(asiGetTool('spectre) 'modelFiles list(list("modelFile.scs" "NN")))

    or similar. If you pass the "tool" object as the first argument it will only affect the next time a new session is created. If you want to affect an existing session, you should pass the session object:

    asiSetEnvOptionVal(asiGetCurrentSession() 'modelFiles list(list("new.scs" "NN")))

    for example.

    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