• 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. generate histogram from multiple run automatically

Stats

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

generate histogram from multiple run automatically

olalivier
olalivier over 4 years ago

Hi there, 

I need to run multiple times, with different setups the same simulation and plot the histogram of a measurement from these simulations. It's almost like a "monte-carlo' like simulation but it's a tran-noise simulation. The simulation is the one described in this post : https://community.cadence.com/cadence_technology_forums/f/mixed-signal-design/46773/can-t-evaluate-value-of-a-tran-signal-at-derived-value

I run the same simulation multiple times using a "dummy" variable. By dummy I mean the variable does not affect a circuit parameter. At the end of this multiple runs I'd like to automatically plot the histogram of the value I measure, in this case : 

time_read_t = cross(VT("/read") 1.65 1 "falling" nil nil nil)

value_read = value(VT("/vout") time_read_t)

Is there a way to plot this histogram ?

Thank you very much for your help.

Olivier 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    Hi Olivier,

    In my case where I replicated (to some extent) your setup, my value_read is called sinVal (but the expression matches yours). I'm sweeping a variable (dummySeed) which I then use as the value of the seed on the transient noise options form (using VAR("dummySeed"). I then swept that from 1 to 100 (1:1:100) and I get a plot of the value read at the read time versus the sweep.

    If you then select that trace, and then in the ViVA graph do Measurements->Histogram. Pick the number of bins you want (I picked 10) and any other special options you like and set the Plot Mode to (say) New Subwindow. Hit Plot. You'll then get the histogram.

    In order to get this every time, I then selected the histogram (in the legend, say) and did Right Mouse->Send To->ADE. This adds a new expression into your ADE outputs. In Assembler, change the "Eval Type" column for that output to be "sweeps" (rather than "point") so that the histogram is computed across the sweep (note, in ADE Explorer the Eval Type column isn't shown by default - you have to go to the column headings in the Outputs pane and do Right Mouse and enable the Eval Type column). Here's my setup (ADE will change the colour of the output to indicate that it's not a "point" expression):

    Here's what I get from the plot after simulation:

    Hope that helps!

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • olalivier
    olalivier over 4 years ago in reply to Andrew Beckett

    Hi Andrew, thank you very much for your help. This is something I did not know. Actually I've never even  noticed you could change this parameter from point to sweep. This is a very useful thing I'll use a lot, for sure.

    Have a good day.

    Olivier 

    • 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