• 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. How to get the precise time instant of a strobed wavefo...

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 125
  • Views 6507
  • 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 get the precise time instant of a strobed waveform

sjwprcker
sjwprcker over 2 years ago

Hi All,

Assume in the waveform there are N1+N2 strobe points, the strobe time is defined by me which is T1 and T2.

How I can get the last strobe point time in the waveform N1 or 1st strobe point time in the waveform N2, e..g, by calculator?

 Thanks

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    Use the functions firstVal or lastVal (they return the first or last x point in a waveform). So for example: lastVal(VT("/N1"))

    Andrew 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sjwprcker
    sjwprcker over 2 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thanks for your feedback. 

    I need clarify my questions. E.g., there is one segment waveform, from 56s to 60s. The strobe points are defined in this segment. the 1st strobe point time is 56.00418s, the last second strobe point is 59.99998s, the last point is 60s since sim finish at 60s. I would like to pick up points to do fft, e.g, from the last second strobe point backword or from the 1st strobe point forward. 

    The firstval or lastval function just give me 56s and 60s as result. They are based on interpolation. What I need is the exact strobe point time. In the example, they are 56.00418s or 59.99998s. 

    Is there anyway to implement them?

    Thanks for your attention. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to sjwprcker
    sjwprcker said:
    The firstval or lastval function just give me 56s and 60s as result. They are based on interpolation. What I need is the exact strobe point time. In the example, they are 56.00418s or 59.99998s

    The firstVal and lastVal functions do not interpolate. My guess (and I do wish people would explain their problem with enough information) is that you are first extracting part of the waveform using clip() and then trying to use firstVal or lastVal on that? Perhaps use clipX() instead as this doesn't interpolate and only gives you actual points, and then you could use firstVal and lastVal.

    The last point is always output by the simulator (no interpolation is being performed). If you don't want that point to confuse things, run the transient for very slightly more than 60s and then clipX to the range you want.

    Alternatively, if in ADE, use variables to control what you're strobing and when, and then use the same variables in your dft expression (using VAR()).

    Overall though, I'm having to do a lot of guessing here as you've not really described your entire setup well. 

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sjwprcker
    sjwprcker over 2 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thanks for your feedback. Sorry not explain in detail enough for the 1st post. 

    Regarding to clipX(), i dont fine it in calculator. Can you point where I can find it?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to sjwprcker

    For now you need to type it in yourself. There's a change request or two asking for it to be, but there's also the idea that it could be consolidated with the existing clip() function. 

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • sjwprcker
    sjwprcker over 2 years ago in reply to sjwprcker

    Hi Andrew,

    I got clipX, it is available but not shown in the calculator explictly. 

    That is fine. I will try to use it. 

    • 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