• 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. Saving the results of the Monte Carlo simulation with the...

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 125
  • Views 12917
  • 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

Saving the results of the Monte Carlo simulation with the Spectre Netlist scripting

Jafar Shamsi
Jafar Shamsi over 4 years ago

Hello, 

I want to save each iteration of the Monte Carlo simulation using .print syntax. Because I want then read it using Matlab. 

Using the following code, I was happy to save specter results and read them using matlab. 

TRN1 tran stop=0.0200u errpreset=moderate write="spectre.ic" writefinal="spectre.fc" annotate=status maxiters=5 

print V(Vx1), I(Vx2),name=TRN1 to="VOUT.out"

However, I want to do the same thing for Monte Carlo simulation and print outputs for each iteration.

mc1 montecarlo numruns=300 seed=1 variations=all {
TRN1 tran start=0 stop=0.0200u
} 

print V(Vx1), I(Vx2),name=TRN1 to="VOUT.out"

However, I only have a single output file "VOUT.out" for a single simulation (maybe the last one). 

Any suggestion?Thinking

 

  • Cancel
Parents
  • ShawnLogan
    ShawnLogan over 4 years ago

    Dear Jafar,

    Have you included the option to save the statistics for all Monte Carlo simulation iterations? Please see the option I have checked in Figure 1? 

    Did I understand your question and problem correctly?

    Shawn

    Figure 1

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • FormerMember
    FormerMember over 4 years ago in reply to ShawnLogan

    Figure 1

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • FormerMember
    FormerMember over 4 years ago in reply to ShawnLogan

    Figure 1

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Jafar Shamsi
    Jafar Shamsi over 4 years ago in reply to FormerMember

    Thank you very much for your response. Actually, I am using Spectre in command-line mode.

    • 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