• 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. Weird behavior when using drGetWaveformYVec and drGetElem...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 9929
  • 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

Weird behavior when using drGetWaveformYVec and drGetElem with a logic signal

radustoica
radustoica over 3 years ago

Hello,

  I need to automatically process the results of some mixed-signal simulations, containing both analog and digital signals.

  I am using the drGetWaveformYVec function to get the Y values for these signals, then drGetElem to get the element values from the resulting vectors. This works ok for analog signals, but for the digital signals I see a weird behavior - the value returned by drGetElem makes no sense.

For example:

digital_voltage = v("some.logic.signal")

srrWave:0x3fa1b0d0

ymax(digital_voltage)

5.0

 yvec_digital_voltage = drGetWaveformYVec(digital_voltage)

srrVec:0x3fa5f3c0

drGetElem(yvec_digital_voltage 0)

192



Why would this happen? Is this the expected behavior? If yes, is there any possibility to check if a waveform comes from a digital signal, so that I can skip their processing?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    Yes, there's some special encoding of logic signals - the various states (0, 1, Z, X plus strength info) show up with some special numbers.

    Anyway, if you do drType(yvec_digital_voltage) or drGetWaveformYType(digital_voltage) they will return the symbol logic (so drType(yvec_digital_voltage)=='logic)

    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