• 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. How do I to speicfy a list of external parameters and pass...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 126
  • Views 9660
  • 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 do I to speicfy a list of external parameters and pass it to ADE L for simulations?

john611
john611 over 3 years ago

I have several dozen parameters in my simulation netlist that need to be defined, mainly resistors and capacitors i.e. C0=, C1=, C3= ... etc. and R0=, R1=, R2= ...

I want to define these parameters in an external file and link it to the ADE L GUI.

So far the GUI suggests me to type those values beside each parameter, when I try to "netlist and simulate". I have too many parameters to type in the GUI.

I want to define the parameters in an external file, andt then link the file to my simulations. How do I do it?

  • Cancel
Parents
  • drdanmc
    drdanmc over 3 years ago

    I don't know how to directly point at a file but something like the following SKILL code lets you add design variables to the ADE-L GUI:

    session_id = asiGetSession(hiGetCurrentWindow())

    old_variables = asiGetDesignVarList(session_id) ;; if you want the existing variables

    ;; to set variables, create a list of name, value pairs like

    new_variables = list( list("MYVAR1" "3.2") list("MYVAR2" "123"))

    ;; and then

    asiSetDesignVarList(session_id new_variables)

    you could write SKILL code that access the existing list, updates/appends to it from the contents of a file, and then writes it back to the session.  If you or a coworker are proficient in SKILL then maybe the above small example will point you in the right direction or at least the right section of the manuals.

    -Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • drdanmc
    drdanmc over 3 years ago

    I don't know how to directly point at a file but something like the following SKILL code lets you add design variables to the ADE-L GUI:

    session_id = asiGetSession(hiGetCurrentWindow())

    old_variables = asiGetDesignVarList(session_id) ;; if you want the existing variables

    ;; to set variables, create a list of name, value pairs like

    new_variables = list( list("MYVAR1" "3.2") list("MYVAR2" "123"))

    ;; and then

    asiSetDesignVarList(session_id new_variables)

    you could write SKILL code that access the existing list, updates/appends to it from the contents of a file, and then writes it back to the session.  If you or a coworker are proficient in SKILL then maybe the above small example will point you in the right direction or at least the right section of the manuals.

    -Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to drdanmc

    In addition to Dan's suggestion, you could probably also just have an include file (with a .scs suffix) that you include via Setup->Model Libraries with:

    parameters C0=1p C1=2p C2=0.5p

    although the main challenge might be if ADE auto-discovers the missing variables and adds them in ADE too. I didn't check to see how this behaves in ADE L (and I can't remember off the top of my head).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • drdanmc
    drdanmc over 3 years ago in reply to Andrew Beckett

    I'm pretty sure during netlisting the missing variables are identified and put into the GUI with blank values.  I don't quite recall what ends up in the netlist at that point.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to drdanmc

    Just tested this, and it works OK provided you go to Simulation->Options->Analog and on the Check tab change redefinedparams to ignore or warning. What happens is that ADE discovers the variables, but it's netlisted as:

    parameters C0 C1 C2 C3
    include "extra.scs"

    (where extra.scs had my hand-written parameters statement). Because the extra.scs is included after the parameter definitions from ADE, then the value specified in the extra.scs wins (even if a value had been set in ADE).

    Andrew

    • Cancel
    • Vote Up +1 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