• 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. Y-axis units and labels when plotting from ADE

Stats

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

Y-axis units and labels when plotting from ADE

mikewu999
mikewu999 7 months ago

I have a Skill function which takes the sum of the squares of a number of transient voltage waveforms. I can create a plot using this skill function via awvPlotExpression, I can create a name for the trace by using "?expr", I can use "?yaxisUnit" and "yaxisLabel" (even though these arguments are not documented in the VIVA skill manual under awvPlotExpression) to get the Y-axis to read as I want it - "P(uW)".

The problem comes when I send that trace to ADE from the plot window so that I can automatically plot that function for future runs. The trace name gets preserved (in the "Name" column in ADE) but i lose the unit and label information so that when I plot from ADE the Y-axis reads "-real(u" instead of "P(uW)".

Is there any way to preserve the unit and label settings when I plot directly from ADE?

  • Cancel
  • mikewu999
    mikewu999 6 months ago

    OK, I figured out a fix. Units and axis label are properties of the vectors that make up the waveform, not of the waveform. To set the Y-axis units and Y-axis labels of a waveform to P and W:

    waveformXVec = drGetWaveformXVec( waveform )
    waveformYVec = drGetWaveformYVec( waveform )
    waveformYVec~>name = "P"
    waveformYVec~>units = "W"
    waveform = drCreateWaveform( waveformXVec waveformYVec )

    When I do this I no longer need to use "?yaxisUnit" and "?yaxisLabel" in my awvPlotExpression call.

    The "name" and "units" properties for a vector are not well documented, I stumbled across them searching through old forum posts. The usual method to find possible properties of "drCreateVec('double 0)~>?" does not work, it returns nil.

    Is there a way to set those vector properties without dissecting and reassembling the waveform?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett 6 months ago in reply to mikewu999

    There's some convenience functions in this article I wrote many years ago, but essentially these are just using the same approach.

    How can I set the plot style or units on a trace automatically?

    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