• 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. Changing the parameter inside model file for creating multiple...

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 126
  • Views 17446
  • 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

Changing the parameter inside model file for creating multiple corner cases.

sidm
sidm over 4 years ago

Hi All,

I wish to seeks some advise on performing multiple simulations using ADE-XL. I have to vary a parameter inside the model file whose value changes from 1 to 5. It is a switch provided inside the model file.

Is there a way to add these 5 cases (i.e. changing the value of the switch from 1 to 5) as corners inside ADE-XL so as to simulate all these 5 cases in one go ?

My present corner setup looks as shown below with 9 corners already setup. I need to simulate the above 5 cases at each of these 9 corners i.e. I need to change the value of the switch from 1 to 5 inside the model file at each of the below 9 corners.

Any hints will be great help.

regards

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    If there's some variable that can be set from ADE, you can either add that variable into the corners and set up the value in each corner as 1:1:5 (from 1 to 5 in steps of 5). That means that each corner would have 5 sub-corners. Or you could do a sweep of the variable as well as the corners, which would avoid you needing to add the sweep to each corner.

    It's a bit hard to see because your image is very small - and also I don't know how you are expecting to vary this "switch".

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sidm
    sidm over 4 years ago in reply to Andrew Beckett

    Thanks for the reply Andrew, I have tried to attached the image. Is this better.

    My experience has been if we click on the image then it pops up as a clear image.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to sidm

    It was sharp, but small (yes, I know about clicking on it). So it's not any better. However, that's not really the crux of the issue - I'm not sure how you're expecting to vary this "switch" you refer to.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sidm
    sidm over 4 years ago in reply to sidm

    Hi Andrew adding few more details to the previous message.

    I have 9 corners setup already with 3 temperatures and 3 voltage values as show in the image.

    Now at each of these corner what I have to do as of now is to go inside the model file and change the value of parameter (switch) from 1 to 5.

    The model file is attached in the model libraries. This parameter inside the model file cannot be set as a variable inside ADE-XL and hence i need to manually change it every corner.

    for example :

    Temp = 150degC, vdd= 1.8v , switch = 1

    Temp = 150degC, vdd= 1.8v , switch = 2

    Temp = 150degC, vdd= 1.8v , switch = 3

    Temp = 150degC, vdd= 1.8v , switch = 4

    Temp = 150degC, vdd= 1.8v , switch = 5

    Temp = 27degC, vdd= 1.8v , switch = 1

    Temp = 27degC, vdd= 1.8v , switch = 2

    and so on .....

    I was wondering if this manual task of changing the switch from 1 to 5 can be reduced with the help of the tool ?

    regards

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to sidm

    Why can't you set it inside ADE XL? Since you didn't describe what you're having to change, it's really hard to tell you what to do!

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sidm
    sidm over 4 years ago in reply to Andrew Beckett

    Hi Andrew

    to include the Process variation I need to go inside the model file and change the value of a switch. For example for SS i need to change the value of switch to 1, for FF i need to change it to 2

    I can add a variable with the same name inside ADE XL but that doesn't seem to bring any process variation hence I have to change it inside the model file only at each corner.

    for example to run a corner at Temp = 150degC, vdd= 1.8V across 3 process variation SS FF & TT i will have to go inside the model file each time and update the value of the switch to make it as SS , FF or TT

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to sidm

    OK, if you are just changing the value of a particular parameter on a top level (i.e. not within a subckt) parameters line in the model file, then I think all you'd need to do is:

    1. envSetVal("spectre.envOpts" "netlistModelFileFirst" 'boolean t) in your .cdsinit file
    2. In the test, put Simulation->Options->Analog on the Misc tab, enter "redefinedparams=warning" in the Additional Parameters field
    3. Then define yourself a variable with the name of the parameter in the spectre model file and you can set it in your variables or corners.

    Because the spectre model file is loaded first, then you override it with the value from ADE, and have told spectre that it's OK to redefine parameters (by default it would error out if you defined the parameter more than once), this should work.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Firdos
    Firdos over 4 years ago in reply to Andrew Beckett

    Hello Andrew,

    I also need same type of thing. 

    I want to make a variable in my model file and want to access this variable from ADE Explorer/Assembler. How can I do it? Please help me on it.

    I have also asked this question in Forum, but I didn't get any reply.

    https://community.cadence.com/cadence_technology_forums/f/custom-ic-design/48665/how-to-add-variable-in-model-files

    above is the link to the question that I have asked.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to Firdos
    Firdos said:
    Please help me on it.

    I think the post immediately above this describes how to do this...

    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