• 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. spectreMDL montecarlo histogram

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 14788
  • 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

spectreMDL montecarlo histogram

swdesigner
swdesigner over 14 years ago

When you run montecarlo through spectreMDL, it generates a file containing statistics for the outputs. But, I would also like to look at the histograms so I know the statistics are valid.

Any clues on how to accomplish this through ADE?

The output files are in  binary, so I can't cook up a script to generate a histogram myself..

Thanks

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

    In IC61 there's a "histo" function in the calculator (in SKILL mode - i.e. what you'd get in ADE). If you use the results browser to open up the "raw" directory you get from simulation, and then open the "meas" database. For example, if using the MDL workshop that's in the MMSIM installation, you can run the montecarlo example:

     spectremdl -design dflip.scs -batch monte.mdl

    and then in ViVA open the tranmeas_meas-meas_montecarlo results. If you plot any of these normally, you'll get the values versus iteration number. Or you can use the histo function in the calculator on the expression - specify the number of bins, and if you want it to auto-scale use nil as the min and max value:

     histo(getData("rise_out" ?result "tranmeas_meas-meas_montecarlo") 10 nil nil)

    This function is not available in IC5141 - you can use the code in solution 11564594 to give you a histogram.

    Alternatively if you run "viva -expr MDL" or "wavescan -expr MDL" you can open the same result set and use the histo function in the MDL calculator. In this case you can leave min and max blank if you wish it to auto-scale.

    Regards,

    Andrew.

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

    In IC61 there's a "histo" function in the calculator (in SKILL mode - i.e. what you'd get in ADE). If you use the results browser to open up the "raw" directory you get from simulation, and then open the "meas" database. For example, if using the MDL workshop that's in the MMSIM installation, you can run the montecarlo example:

     spectremdl -design dflip.scs -batch monte.mdl

    and then in ViVA open the tranmeas_meas-meas_montecarlo results. If you plot any of these normally, you'll get the values versus iteration number. Or you can use the histo function in the calculator on the expression - specify the number of bins, and if you want it to auto-scale use nil as the min and max value:

     histo(getData("rise_out" ?result "tranmeas_meas-meas_montecarlo") 10 nil nil)

    This function is not available in IC5141 - you can use the code in solution 11564594 to give you a histogram.

    Alternatively if you run "viva -expr MDL" or "wavescan -expr MDL" you can open the same result set and use the histo function in the MDL calculator. In this case you can leave min and max blank if you wish it to auto-scale.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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