• 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. interpolation for xmin calculation

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 126
  • Views 14328
  • 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

interpolation for xmin calculation

RobinCommander
RobinCommander over 9 years ago

As an addition to phase margin & gain margin in some AC open loop simulations I have been also been calculating the vector margin which can be useful.

I calculate it thus:

stb_x = xmin((abs((v("/Ampout" ?result "ac") - complex(-1.0 0.0)))**2))

stb_dB = (- db20(value(v("/Ampout" ?result "ac") stb_x)))

To get more accurate results I need to add more points/decade which can slow things down in swept simulations, I assume this is because only the data points are used in the xmin calculation. I was wondering if interpolation could somehow be used in the xmin calculation so I can speed up the simulations. Or maybe there is some other way of doing this calculation.


Thanks,

Robin

  • Cancel
Parents
  • RobinCommander
    RobinCommander over 9 years ago
    Andrew,

    I didn't think there would be an easy answer for the interpolation, but thought it worth trying here.

    I think I got the expressions for evaluating the vector margin from here:
    www.circuitdesign.info/blog/2012/02/creating-a-nyquist-plot-with-cadence

    I didn't check if the **2 was useful, so maybe it isn't needed.

    Sometimes when sweeping a parameter in ac analysis I found the phase margin would improve but gain margin reduce so I started looking for another measure of stability for a third opinion.
    Also phase & gain margins are measured at single points which might miss any peaking between these two measurement points.

    Regards,
    Robin
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • RobinCommander
    RobinCommander over 9 years ago
    Andrew,

    I didn't think there would be an easy answer for the interpolation, but thought it worth trying here.

    I think I got the expressions for evaluating the vector margin from here:
    www.circuitdesign.info/blog/2012/02/creating-a-nyquist-plot-with-cadence

    I didn't check if the **2 was useful, so maybe it isn't needed.

    Sometimes when sweeping a parameter in ac analysis I found the phase margin would improve but gain margin reduce so I started looking for another measure of stability for a third opinion.
    Also phase & gain margins are measured at single points which might miss any peaking between these two measurement points.

    Regards,
    Robin
    • 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