• 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 SKILL
  3. stb Ocean/Skill examples

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 5114
  • 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

stb Ocean/Skill examples

dlbro
dlbro over 16 years ago

Does anyone have any examples of using the stability analysis (stb) Sprectre tool in Ocean/Skill? I've done extensive scripting in transient, AC, DC, noise, pnoise, etc... but this is the first time I've tried stb. Running stb is easy, I've seen some stuff on how to do phase margin and gain margin, but how do I plot the gain and the phase? I've searched Cadence and Source link and the internet to no avail. Is there any equivalent to VT(), VF(), VS() for stb?

Thanks in advance,

dlb

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

    Hi Dave,

    I'll step you through the process (even though you have a solution).

    1. Run the simulation with stb analysis enabled (in ADE)
    2. Results->Direct Plot->Main Form and select the stb analysis.
    3. Choose what you want to plot (e.g. Loop Gain, Magnitude, db20), and then hit the "Add To Outputs" button on this form. Similarly you could pick Phase Margin and "Add To Outputs"
    4. OK or Cancel the direct plot form (no need to plot anything)
    5. In the ADE Outputs pane you should see two outputs (if you did the above two choices) called "Loop Gain dB20" and "Phase Margin". Double click on one of these, or choose the Outputs-> Setup menu and select the output you are interested in.
    6. You'll see that the expression for loop gain is db(mag(getData("loopGain" ?result "stb"))) (essentially the same as what you found from the results browser), and Phase Margin is getData("phaseMargin" ?result "stb_margin") - you can cut and paste these expressions to your OCEAN script.

    This general "Add To Outputs" technique is often very useful.

    For saving an OCEAN script, do Session->Save OCEAN Script in your ADE window - any of the signals/expressions which are in your Outputs pane (added with "Add to Outputs" will be in the script.

    Hope that clarifies things,

    Regards,

    Andrew.

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

    Hi Dave,

    I'll step you through the process (even though you have a solution).

    1. Run the simulation with stb analysis enabled (in ADE)
    2. Results->Direct Plot->Main Form and select the stb analysis.
    3. Choose what you want to plot (e.g. Loop Gain, Magnitude, db20), and then hit the "Add To Outputs" button on this form. Similarly you could pick Phase Margin and "Add To Outputs"
    4. OK or Cancel the direct plot form (no need to plot anything)
    5. In the ADE Outputs pane you should see two outputs (if you did the above two choices) called "Loop Gain dB20" and "Phase Margin". Double click on one of these, or choose the Outputs-> Setup menu and select the output you are interested in.
    6. You'll see that the expression for loop gain is db(mag(getData("loopGain" ?result "stb"))) (essentially the same as what you found from the results browser), and Phase Margin is getData("phaseMargin" ?result "stb_margin") - you can cut and paste these expressions to your OCEAN script.

    This general "Add To Outputs" technique is often very useful.

    For saving an OCEAN script, do Session->Save OCEAN Script in your ADE window - any of the signals/expressions which are in your Outputs pane (added with "Add to Outputs" will be in the script.

    Hope that clarifies things,

    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