• 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 5111
  • 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
  • dlbro
    dlbro over 16 years ago

    Thanks Andrew,

    I wasn't able to figure out either method you suggested. For the first one, when I double click on the waveform it brings up the "Trace Attributes" form which doesn't have any SKILL expressions. Also, I can't see any way to save an Ocean script from the ADE.

    But, your suggestions pointed me to a different solution. If you pull up the result browser and select the stb-stb category it has the loopGain result, if you select this and then hit the calculator button you get:

         getData("loopGain" ?result "stb-stb")

    Then to plot the data just stick this in a phase() or db20() function:

        phase(getData("loopGain" ?result "stb-stb"))

        db20(getData("loopGain" ?result "stb-stb"))

    To get the phase margin, phase margin frequency, gain margin and gain margin frequency use:

         getData("phaseMargin" ?result "stb-margin.stb")

        getData("phaseMarginFreq" ?result "stb-margin.stb")

        getData("gainMargin" ?result "stb-margin.stb")

        getData("gainMarginFreq" ?result "stb-margin.stb")

    Thanks for the getting me unstuck.

    Dave Broughton

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • dlbro
    dlbro over 16 years ago

    Thanks Andrew,

    I wasn't able to figure out either method you suggested. For the first one, when I double click on the waveform it brings up the "Trace Attributes" form which doesn't have any SKILL expressions. Also, I can't see any way to save an Ocean script from the ADE.

    But, your suggestions pointed me to a different solution. If you pull up the result browser and select the stb-stb category it has the loopGain result, if you select this and then hit the calculator button you get:

         getData("loopGain" ?result "stb-stb")

    Then to plot the data just stick this in a phase() or db20() function:

        phase(getData("loopGain" ?result "stb-stb"))

        db20(getData("loopGain" ?result "stb-stb"))

    To get the phase margin, phase margin frequency, gain margin and gain margin frequency use:

         getData("phaseMargin" ?result "stb-margin.stb")

        getData("phaseMarginFreq" ?result "stb-margin.stb")

        getData("gainMargin" ?result "stb-margin.stb")

        getData("gainMarginFreq" ?result "stb-margin.stb")

    Thanks for the getting me unstuck.

    Dave Broughton

    • Cancel
    • Vote Up +1 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