• 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. Verilog A: Generate different $random values for each Monte...

Stats

  • Replies 6
  • Subscribers 125
  • Views 965
  • Members are here 0

Verilog A: Generate different $random values for each Monte Carlo iteration

MC20250412421
MC20250412421 25 days ago

Hi everyone !

I have a Verilog A block that uses the $random function as is (without any seed defined inside the Verilog A code). I have noticed while running Monte Carlo (default settings) that the Verilog A would always generate the exact same $random values for each MC iteration. 
I assume it is because the Monte Carlo seed which is 12345 is being fed into the Verilog A $random function ?
If that's the case, what is the best way to generate $random values that are different for each MC iteration ?

Thanks in advance for your answers !

  • Sign in to reply
  • Cancel
Parents
  • JankoK
    JankoK 24 days ago

    Hi,

    Interesting question... 

    I guess you could do something similar to this:

    How to do Monte Carlo mismatch variation on a VerilogA model

    That model deck is just a separate .scs (model file) where you add your statements (don't forget to include it in you Model Libraries). You can also define process{} too, for process variations, under that statistical statement.

    Let me know if it worked.

    Disclaimer: I have not tried this myself. 

    BR

    /Janko

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • MC20250412421
    MC20250412421 24 days ago in reply to JankoK

    Thanks a bunch for that answer !

    While Andrew's answer was a simpler solution for my problem (just having a different seed for each MC run), you showed me something I had no idea how to do before and that I'll be using from now on.

    So again, thanks a lot for that and have a great day !

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • MC20250412421
    MC20250412421 24 days ago in reply to JankoK

    Thanks a bunch for that answer !

    While Andrew's answer was a simpler solution for my problem (just having a different seed for each MC run), you showed me something I had no idea how to do before and that I'll be using from now on.

    So again, thanks a lot for that and have a great day !

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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