• 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. RF Design
  3. Changing a parameter in the PDK model file using Variable...

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 63
  • Views 14775
  • 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 a parameter in the PDK model file using Variable in ADE

RFStuff
RFStuff over 10 years ago

Dear All,

I have a parameter "hfnoise" in my PDK model file. It takes some values which can be changed by creating a variable "hfnoise" in ADE.

I am adding the variable "hfnoise" into ADE. But the value is NOT being taken by the MODEL file.

In my netlist  the first part looks like :-

****

simulator lang=spectre
global 0
parameters T=1n hfnoise=0

***

Can anybody please tell how to fix this issue ?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    My guess is that the model file is also defining the same parameter, and has set it so that redefinedparams is ignore or warning. Because of this, whichever is defined last wins.

    If you use:

    envSetVal("spectre.envOpts" "netlistModelFileFirst" 'boolean t)

    before starting ADE (this could go in your .cdsinit file), then it will put the model file include before the parameters statements, and so your ADE variables will win over those defined in the model files.

    This option was added in (I believe) IC615 ISR3 (6.1.5.500.3). 

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • RFStuff
    RFStuff over 10 years ago

    Dear Andrew,

    Thanks a lot for your reply.

    No,

    Actually the Model Verilog-A model portion contains a variable as :-

    parameters hfn_flag= hfnoise.


    And if you open the pCell corresponding to the file, you will see hfn_flag -> 0 or 1 option which one can change manually for the Cell while instantiating.

    I put hfnoise as a parameter in Design Variable expecting that netlist will take hf_noise paarmeter value . But Alas !! that is NOT happening.

     

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

    If that's in the verilogA, then it's a syntax error - it would be parameter not parameters (maybe that's just a typo when you typed it into the forum). Whether it is is in VerilogA or Spectre, hfnoise must be defined somewhere before it is used - so that's the key to this. That said, if it is a VerilogA variable, then this is a different namespace from spectre parameters - so setting it from spectre (and hence ADE) may not be so easy - but it's really hard to tell without seeing the model files.

    Best solution is to contact customer support so that we can see the models (either if they're your own, or by knowing the exactly foundry PDK so that we can request access to it).

    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