• 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 12924
  • 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
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    Jafar,

    I think your question is more of a command-line question (rather than running from ADE that Shawn's talking about).

    I think the simplest is just to use addto instead of to in the print statement:

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

    You might need to remove the file before you start the simulation though to stop it appending previous runs.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • Jafar Shamsi
    Jafar Shamsi over 4 years ago in reply to Andrew Beckett

    Thank you Andrew,

    I really appreciate your help. That's the solution.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Jafar Shamsi
    Jafar Shamsi over 4 years ago in reply to Andrew Beckett

    Thank you Andrew,

    I really appreciate your help. That's the solution.

    • 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