• 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. Mixed-Signal Design
  3. Cadence Virtuoso Result plot - slope change point

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 64
  • Views 4505
  • 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

Cadence Virtuoso Result plot - slope change point

asrf
asrf over 3 years ago

Hi all,

I have a question regarding plotting in cadence virtuoso result window.

so lets say we have a curve and its slope suddenly changes at point X (x axis, i.e sweep variable) Is there any formula or script that I can use to return me the value of X point ?

Thank you :)

  • Cancel
  • ShawnLogan
    ShawnLogan over 3 years ago

    Dear asrf,

    asrf said:
    so lets say we have a curve and its slope suddenly changes at point X (x axis, i.e sweep variable) Is there any formula or script that I can use to return me the value of X point ?

    Unless I am misunderstanding your question (always a possibility with me!), I believe the cross()  function will provide the x-axis value at the y value you specify. Hence, if you are plotting the slope and its value is positive and then becomes negative (i.e. its slope crosses 0.0), the syntax of the command might read:

    cross(v(<your_slope_signal>" ?result "tran") "0" 1 "falling" nil nil  nil )

    The cross() function with the arguments stated above finds the first x-axis value where <your_slope_signal> crosses 0.0 and returns this value. Alternative arguments to cross(0 will find all the x values where it crosses 0 as a waveform.

    Did I understand your need and does this make sense to you arsf?

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • asrf
    asrf over 3 years ago in reply to ShawnLogan

    thank you for your time. I am familiar with cross.

    my slope does not change its sign. Imagine that is 10 then become 20 suddenly.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 3 years ago in reply to asrf

    Dear asrf,

    asrf said:

    I am familiar with cross.

    my slope does not change its sign. Imagine that is 10 then become 20 suddenly.

    Then, in this case, if it crosses 20, then set the value of "0" to "20". If it only reaches the value of 20 and never exceeds 20 (i.e., never actually crosses 20) and was 10, set the value of "0" to some value between the 10 and 20 (potentially use the interpolate function argument if you like).

    Shawn

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to ShawnLogan

    Also, if it’s some threshold on the slope, you’d presumably use cross of the derivative (the deriv function) of the waveform. 

    You just need to find some way to quantify what you mean by “sudden”.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • asrf
    asrf over 3 years ago in reply to ShawnLogan

    I found a way actually I ca define min and max slope and make cross point in the middle of them. Thank you this helped alot 

    • 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