• 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. Use the spectre relay component

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 14938
  • 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

Use the spectre relay component

dineshp
dineshp over 8 years ago

Hi,

analogLib has a cell called "switch" which has 5 parameters, open voltage, closed voltage, open switch resistance, close switch resistance and multiplier. the documentation says that the spectre element used is "relay" and spectre -h relay gives more parameters, including hysteresis. Can somebody please tell me how to use these and set these parameters in the symbol available in analogLib? If this is not possible, alternately can somebody please explain how I can define a symbol and specify the spectre element in a model file with all the parameters I want?

Many thanks.

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

    The extra parameters (hysteresis, vth, trans, etc) are all model parameters and so can't be specified on the instance directly.

    The way to handle this would be to copy the component from analogLib into your own library, and the use Tools->CDF->Edit CDF in the CIW, select "Base CDF" as the type to edit, pick your copy of the component and add a new parameter "model" with Parse as Number set to "No" and Parse As CEL set to "Yes" (that's not too important probably); you can put "model" in the Other Parameters in the Spectre Simulation Information tab (again, not essential unless you've set the Display Condition callback on the model parameter to artParameterInToolDisplay('model) (this is only worth worrying about if you want to use the switch component for other simulators, maybe).

    Then when  you instantiate the switch you can specify the model name (e.g. myrelay) and then you can create a file, called myrelay.scs with:

    model myrelay relay hysteresis=0.1 ropen=100G rclosed=0.1 // whichever parameters you want

    Then reference this file via Setup->Model Libraries in ADE.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 8 years ago

    The extra parameters (hysteresis, vth, trans, etc) are all model parameters and so can't be specified on the instance directly.

    The way to handle this would be to copy the component from analogLib into your own library, and the use Tools->CDF->Edit CDF in the CIW, select "Base CDF" as the type to edit, pick your copy of the component and add a new parameter "model" with Parse as Number set to "No" and Parse As CEL set to "Yes" (that's not too important probably); you can put "model" in the Other Parameters in the Spectre Simulation Information tab (again, not essential unless you've set the Display Condition callback on the model parameter to artParameterInToolDisplay('model) (this is only worth worrying about if you want to use the switch component for other simulators, maybe).

    Then when  you instantiate the switch you can specify the model name (e.g. myrelay) and then you can create a file, called myrelay.scs with:

    model myrelay relay hysteresis=0.1 ropen=100G rclosed=0.1 // whichever parameters you want

    Then reference this file via Setup->Model Libraries in ADE.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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