• 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. How to find the final time value of a signal?

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 144
  • Views 20262
  • 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

How to find the final time value of a signal?

swdesigner
swdesigner over 13 years ago

( I did search the forum and support.cadence.. no luck)

Say my simulation terminates earlier than the input file specifies, I want to analyze the last 10 us of a waveform. 

How can I get tmax, which is the final timepoint?

xmax gives the time value corresponding to the max value that the signal attained.

Thanks

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

    Abhishek D said:
    Hi Andrew, I was also searching for the same answer and came across this thread. I would really appreciate if you can explain why that code is a better option for getting the time rather than the small command that can easily be done through Cadence Calc. Please pardon my ignorance in skill language. I am asking this question because I have 100s of GB data for waveform and I have to use the time as a variable in my ocean script. Best Regards Abhishek

     

    If you use the code that I provided, it will register some new functions in the calculator, so they are just as easy to use as the built-in functions. The ymax() approach is less efficient, because whilst it doesn't have to really generate a new waveform (the xval function simply takes the x-vector of the existing waveform and  creates a new waveform the x and y vectors the same as the original waveform), it still has to search along the entire waveform to find the greatest y value (which is in fact the greatest x value). My code simply looks at the last value, so is more efficient.

    Regards,

    Andrew.

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

    Abhishek D said:
    Hi Andrew, I was also searching for the same answer and came across this thread. I would really appreciate if you can explain why that code is a better option for getting the time rather than the small command that can easily be done through Cadence Calc. Please pardon my ignorance in skill language. I am asking this question because I have 100s of GB data for waveform and I have to use the time as a variable in my ocean script. Best Regards Abhishek

     

    If you use the code that I provided, it will register some new functions in the calculator, so they are just as easy to use as the built-in functions. The ymax() approach is less efficient, because whilst it doesn't have to really generate a new waveform (the xval function simply takes the x-vector of the existing waveform and  creates a new waveform the x and y vectors the same as the original waveform), it still has to search along the entire waveform to find the greatest y value (which is in fact the greatest x value). My code simply looks at the last value, so is more efficient.

    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