• 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. Mixed-Signal Design
  3. Using a Design Variable in an input.scs File

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 64
  • Views 15791
  • 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

Using a Design Variable in an input.scs File

Cachi
Cachi over 12 years ago

Hello,

I am using an older version of Cadence which doesn't allow to use a design variable for a dc sweep analysis from the "Choosing Analysis" menu in ADE. So I wrote my own hysteretic dc sweep input.scs file in which I would like to use a design variable. But I do not know the correct syntax. I have tried the syntax used in Ocean scripts: desVar("vref") but that does not work.

 I'd appreciate your help on this.

Thank you.

Cachi 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Cachi,

    parameters vrefstart=0 vrefstop=1.5 vrefstep=0.05

    V1 (vrefin 0) vsource type=dc dc=1.0

    dc dc start=vrefstart stop=vrefstop step=vrefstep dev=V1 param=dc  hysteresis=yes

    Does that help?

    Alternatively, if you only want to put the analysis statements in the file, you can omit the parameters statements and then just define the vrefstart, vrefstop etc variables in ADE. ADE will netlist them as a parameters statement, but then your dc analysis in the included analysis "scs" file will pick up the parameter names. Essentially parameter names just have a simple reference in spectre syntax - no need to use VAR(), desVar(), etc.  ADE Design Variables corresponds to spectre variables - see "spectre -h  parameters".

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • UUinfini
    UUinfini over 11 years ago

    Hello Andrew,

    I saw that you are very familiar with Cadence. I have a problem for Veriglog A in Cadence, I hope you can help me. In fact I need to elaborate a stochastic model by coding in Verilog A executed under Cadence. My aim is to offer a medel with which the customers can do the Monte Carlo Analysis. But I used the functions like "$random", "$temperature" etc. to generate a seed for obtaining a parameter which changes each time of simulation. But finally it changes just according to the real time of simulation, but not according to different times of simulation. Do you have any experiences like this? Thank you for you response. 

    Best regards,

    UU

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

    UU,

    Please read the forum guidelines. You've posted this on the end of an old thread, sent me a direct message, and also posted it as a new thread elsewhere. The reason the forum guidelines ask you not to do the old thread bit or double posting is that it confuses people and makes it hard to track. Also, I generally ask people not to direct message me rather than posting in the forum - I'm not going to be more likely to post a reply if you do that - and in fact you're better off posting in the public forums because then you have multiple people who can answer (especially if I'm busy with my day job). Anyway, I've answered it here.

    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