• 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. do I have to write full path for my simulation model?

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 125
  • Views 15366
  • 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

do I have to write full path for my simulation model?

Pic Hao
Pic Hao over 6 years ago

Hello,

we usually enter full path of simulation model (e.g. /A/B/C/my_model.lib.scs) before start simulation.

I'm wandering: is there anyway to set a default path (e.g. /A/B/C) to spectre? Then I just enter "my_model.lib.scs" before start simulation and simulator will find model file under /A/B/C automatically.

the advantage of such a thing is: when i porting design from process X to process Y, i don't have to update model path (assuming exacting the same model name) for my saved state.

Thanks a lot.

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

    There are several approaches you could take here:

    1. Specify the model file as $MODELDIR/my_model.lib.scs
    2. Specify the model file as my_model.lib.scs and then add $MODELDIR in the Include Paths in Setup->Simulation Files - this has been supported since IC616 ISR9 (before that ADE didn't understand use of UNIX env vars in this field)
    3. Specify the model file as my_model.lib.scs and then also set the environment variable SPECTRE_DEFAULTS before starting Virtuoso:
      setenv SPECTRE_DEFAULTS -I$KITHOME/models/spectre
      (for example). This adds the specified argument (-I in this case - see "spectre -h" for more details) to the spectre command line whenever spectre is launched). It then gives the include path to be wherever you want.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Pic Hao
    Pic Hao over 6 years ago in reply to Andrew Beckett

    Hi Andrew, thanks for your suggestions. I followed your approach 3 by "setenv SPECTRE_DEFAULTS /net/artery_proj/bowhao/Process_Files/Model_Files/umc55nm_LP". and it works (log file displayed content of  "SPECTRE_DEFAULTS").

    i specified model file as "sim_model.lib.scs" (full path is: /net/artery_proj/bowhao/Process_Files/Model_Files/umc55nm_LP/sim_model.lib.scs), and run simulation. while simulator failed to find it. did i missed anything, or did I set SPECTRE_DEFAULTS correctly?

         

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Pic Hao
    Pic Hao over 6 years ago in reply to Andrew Beckett

    Hi Andrew, thanks for your suggestions. I followed your approach 3 by "setenv SPECTRE_DEFAULTS /net/artery_proj/bowhao/Process_Files/Model_Files/umc55nm_LP". and it works (log file displayed content of  "SPECTRE_DEFAULTS").

    i specified model file as "sim_model.lib.scs" (full path is: /net/artery_proj/bowhao/Process_Files/Model_Files/umc55nm_LP/sim_model.lib.scs), and run simulation. while simulator failed to find it. did i missed anything, or did I set SPECTRE_DEFAULTS correctly?

         

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to Pic Hao

    You omitted the -I before the /net/...

    You should have done:

    setenv SPECTRE_DEFAULTS -I/net/artery_proj/bowhao/Process_Files/Model_Files/umc55nm_LP

    The -I is necessary to specify the include path.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Pic Hao
    Pic Hao over 6 years ago in reply to Andrew Beckett

    Hi Andrew, it works after I added "-I". thanks a lot. (for other viewers: it's a uppercase i, not lowercase L).

    one more thing is: if i launch 2 virtuoso individually (based on 2 different process), setenv works for both virtuoso and then spectre will find model file under exactly the same path.

    is there anyway to set different path for different virtuoso? so i can identify process model by path (instead of model file name), and keep model file name unchanged.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 6 years ago in reply to Pic Hao

    Yes, simply set the environment variable to the new value before you start the second virtuoso:

    setenv SPECTRE_DEFAULTS -I/path/to/process1
    virtuoso &
    setenv SPECTRE_DEFAULTS -I/path/to/process2
    virtuoso &

    once a process is launched, you can happily change the value of an environment variable in the parent shell, because child processes inherit the environment at the time the child process was launched - further changes in the parent do not affect the child.

    Regards,

    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