• 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. Knowing rerun number...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 125
  • Views 13094
  • 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

Knowing rerun number...

Larry Allen
Larry Allen over 15 years ago

Hey all,

I have a current limit circuit that I wanted to run over monte carlo simulations and trim the value at each mc state. Then I wanted to rerun those monte carlo states with the trimmed values at different temperatures. I wrote a veriloga block that does this for me and it works great except for the fact that I use a file in which I store a counter variable which keeps track of which mc state is being simulated. The problem comes in when the simulation terminates before all runs are done... The counter file isn't decremented all the way and the next time you run it reads the counter file's wrong value and ends up associating the wrong trimmed value to the mc state.

 What I would like to do, is to be able to read the re-run number directly into the veriloga code. I haven't found how to do this. Or to know that I'm at the 1st run and I can delete the counter file at the beginning and recreate it.

 Any ideas?

Any help is appreciated. Thanks,

Larry.

  • Cancel
  • skillUser
    skillUser over 15 years ago

     Hi Larry,

    Can you read information from the mcdata or mcparam file that is in the simulation run directory, under the montecarlo directory; e.g. <sim_root>/<cct_name>/spectre/schematic/montecarlo, to find out the last iterationrun number performed?  If there is useful data there, can your verilog module parse and read it in?

    Sorry, this is the only idea I have, but I hope it might be helpful.

    Regards,

    Lawrence.

    • 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