• 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. Getting pulse width values with cross function (non-periodic...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 10063
  • 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

Getting pulse width values with cross function (non-periodic signal) using Calculator

Johanny Saenz
Johanny Saenz over 3 years ago

Hi all.

I want to get a vector of pulse width values for a non-periodic square signal using Calculator.

I'm using cross() function to perform measurements in the following way:

cross(VT("/p10keV1") 1.65 1 "falling"  t "time"  )-cross(VT("/p10keV1") 1.65 1 "rising"  t "time"  )

However, this expression just return the first substraction, not an array substraction (Be aware that I'm using multiple values on cross()).

What should I change to get all the arrays?

Thanks.

Jorge

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

    Jorge,

    Using "cycle" makes sense instead - that way the x-axis points for each cycle will align (otherwise the two transistions will be at different times):

    cross(v("CK" ?result "tran-tran") 0.5 1 "falling"  t "cycle"  nil )-cross(v("CK" ?result "tran-tran") 0.5 1 "rising"  t "cycle"  nil )

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Jorge,

    Using "cycle" makes sense instead - that way the x-axis points for each cycle will align (otherwise the two transistions will be at different times):

    cross(v("CK" ?result "tran-tran") 0.5 1 "falling"  t "cycle"  nil )-cross(v("CK" ?result "tran-tran") 0.5 1 "rising"  t "cycle"  nil )

    Regards,

    Andrew

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

    Thanks. It works as I wanted 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