• 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. Model files defined in .cdsenv for spectre are not load...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 124
  • Views 17143
  • 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

Model files defined in .cdsenv for spectre are not loading

wgtkan
wgtkan over 5 years ago

Hello,
My understanding is that when launching cadence virtuoso loads different environment customization files in the following sequence:
1. .cdsenv
2. .cdsinit
I wanted to set up model files for spectre using this guideline provided in your support link.
spectre.envOpts modelFiles string "/path/file1.scs /path/file2.scs /path/file3.scs;section3"
I am not getting it to work. What happens that undefined model files are showing up in the model library.
My virtuoso version is:
Version IC6.1.8-64b.500.9
Spectre spectre191
After reading in the forum, I also placed
export CDS_LOAD_ENV="addCWD" in my settings so that the.cdsenv loads from my working directory instead of the home directory.
What am I doing wrong?
Thanks always for your help.

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 5 years ago

    When you say you are getting "undefined model files" - do you mean you are getting something else showing up and not the model files you've asked for? It's possible that there's a PDK you're using which is setting this environment setting in a libInit.il and that's then being set when that library is first accessed. If you don't mean that, please clarify what you do mean.

    Andrew

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

    Hello Andrew,

    Thank you so much for your prompt response. Yes. That is correct. "Undefined model files" that I haven't asked for are showing up. How do I unset this from loading up model libraries which I haven't asked for? I couldn't find libInit.il. 

    Thank you very much indeed. 

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

    Did you look for a libInit.il inside the directory for each library (most likely is that this is defined in a library from the PDK)? That's the most likely place.

    If it's not there, it's either going to be in an existing .cdsinit or .cdsenv somewhere else - or of course, if you're opening an existing ADE L state, ADE XL view, or maestro view, it's then defined within the test for that view already - changing the environment variable will not affect existing setups (because we can't distinguish between you having consciously set it or having been happy with the previous defaults, and overriding it would cause existing setups to break). So the cdsenv/cdsinit approach will only affect new tests or new ADE L setups.

    Regards,

    Andrew.

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

    Hello Andrew,

    After submitting the response I found your reply from five years ago located here.

    https://community.cadence.com/cadence_technology_forums/f/custom-ic-design/33217/how-to-add-a-list-of-model-files-into-ade-form-through-command-line

    I have a similar problem. This was your response.

    Maybe you're using a PDK that is already trying to set the model files and that is happening after you are setting it in the .cdsinit. This could be done either by it doing the envSetVal(), or I've also seen PDKs using the asiSetEnvOptionVal approach, but passing asiGetTool('spectre) as the first argument rather than asiGetCurrentSession().

    So do your customization, open the schematic, and then before starting ADE, check the output of:

    envGetVal("spectre.envOpts" "modelFiles")

    and

    asiGetEnvOptionVal(asiGetTool('spectre) "modelFiles")

    After opening the schematic and before opening ADEXL, I typed in CIW

    envGetVal("spectre.envOpts" "modelFiles")

    asiGetEnvOptionVal(asiGetTool('spectre) "modelFiles")

    I see the model files that the PDK defined which I haven't defined showing up. I am confused on how to force my new models defined through .cdsint or .cdsenv to take effect for new designs. In other words, I can I override the PDK, because it is using older models that I haven't defined?

    I am not understanding why the cdsenv/cdsinit approach of adding model files will not work for new designs?

    Thank you so much for your help and have a wonderful weekend. 

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

    Hello Andrew,

    After submitting the response I found your reply from five years ago located here.

    https://community.cadence.com/cadence_technology_forums/f/custom-ic-design/33217/how-to-add-a-list-of-model-files-into-ade-form-through-command-line

    I have a similar problem. This was your response.

    Maybe you're using a PDK that is already trying to set the model files and that is happening after you are setting it in the .cdsinit. This could be done either by it doing the envSetVal(), or I've also seen PDKs using the asiSetEnvOptionVal approach, but passing asiGetTool('spectre) as the first argument rather than asiGetCurrentSession().

    So do your customization, open the schematic, and then before starting ADE, check the output of:

    envGetVal("spectre.envOpts" "modelFiles")

    and

    asiGetEnvOptionVal(asiGetTool('spectre) "modelFiles")

    After opening the schematic and before opening ADEXL, I typed in CIW

    envGetVal("spectre.envOpts" "modelFiles")

    asiGetEnvOptionVal(asiGetTool('spectre) "modelFiles")

    I see the model files that the PDK defined which I haven't defined showing up. I am confused on how to force my new models defined through .cdsint or .cdsenv to take effect for new designs. In other words, I can I override the PDK, because it is using older models that I haven't defined?

    I am not understanding why the cdsenv/cdsinit approach of adding model files will not work for new designs?

    Thank you so much for your help and have a wonderful weekend. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • wgtkan
    wgtkan over 5 years ago in reply to wgtkan

    Hello Andrew,

    I got it. Thank you so much indeed.

    • 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