• 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. WaveScan postprocessing question

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 64
  • Views 13347
  • 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

WaveScan postprocessing question

pyohayo
pyohayo over 6 years ago

Hello,

I want to realize the folowing post-processing scenario:

  1. Clip a particular signal, according to the following condition: 
    clip(v("/grp1_clk" ?result "tran-tran") 0 cross(v("/grp1_adc" ?result "tran-tran") 0.9 1 "falling" nil nil))
  2. Then in this clipped signal I want to calculate the number of transitions. The command below get table of transitions
    cross(wave_33() 0.9 1 "rising" t "time"), where wave_33 - the waveform from p.1
  3. How to get the length of this table that is the number of transitions. The only way I found is to export table in Excel (.csv) and calculate it in Excel.

Probably dos exist some more "smart" method ?

Other question: how to use the name of clipped-signal expression from p. 1 (i.e. clipped_clk in my case) in the exprssion of p. 2 (wave_33 comes from WaveScan).

Thanks

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

    The wavescan calculator doesn't allow you to name expressions and then use them later on. The wave_33() comes from how you can select a waveform in the graph and use it in the calculator, but it is created on the fly. In ViVA you can send a waveform to the calculator with the expression used to create it, or you can give the expression a name and then use that - but in the ancient tool you're using, you can't.

    You could of course nest the expression:

    length(cross(clip(v("/grp1_clk" ?result "tran-tran") 0 cross(v("/grp1_adc" ?result "tran-tran") 0.9 1 "falling" nil nil)) 0.9 0 "rising"))

    The cross function, if given 0 as the crossing number (and omitting the t and "time" arguments) will return a list of the crossing points, and you can then use the SKILL length function to find how many there were.

    Andrew.

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

    The wavescan calculator doesn't allow you to name expressions and then use them later on. The wave_33() comes from how you can select a waveform in the graph and use it in the calculator, but it is created on the fly. In ViVA you can send a waveform to the calculator with the expression used to create it, or you can give the expression a name and then use that - but in the ancient tool you're using, you can't.

    You could of course nest the expression:

    length(cross(clip(v("/grp1_clk" ?result "tran-tran") 0 cross(v("/grp1_adc" ?result "tran-tran") 0.9 1 "falling" nil nil)) 0.9 0 "rising"))

    The cross function, if given 0 as the crossing number (and omitting the t and "time" arguments) will return a list of the crossing points, and you can then use the SKILL length function to find how many there were.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • pyohayo
    pyohayo over 6 years ago in reply to Andrew Beckett

    Works fine. Thanks 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