• 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. Finding the last value of a signal in a trasient simulation...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 9111
  • 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

Finding the last value of a signal in a trasient simulation ended by $finish_current_analysis

fyoh
fyoh over 3 years ago

Hi,

I have seen this post:

https://community.cadence.com/cadence_technology_forums/f/custom-ic-skill/23266/how-to-find-the-final-time-value-of-a-signal#

but I wanted to check if there's another solution.


Basically, I am using $finish_current_analysis to exit from a transient run when some checks are met. I know I can use autostop with some MDL code to calculate the final value, but I am looking if there's a much simpler solution in Assembler that I can invoke without improving my testbench. 

Thank you.

Fyoh

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    For some time there's been a built-in function in the calculator called lastVal() which does this (there's firstVal() too). So you could use lastVal(VT("/someSignal")) to find the final time value.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • fyoh
    fyoh over 3 years ago in reply to Andrew Beckett

    Thank you Andrew. 

    • 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