• 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. Mixed-Signal Design
  3. How to find the period of $urandom generator of Xcelium

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 64
  • Views 6709
  • 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

How to find the period of $urandom generator of Xcelium

nustisb1
nustisb1 over 2 years ago

I am trying to find the period( repetition of sequence) of $urandom generator but cannot calculate it is taking too much simulation time. can anyone tell me the period of the random number generator or after how many random sequences it will repeat sequence? and how I can find it.

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago

    It's a pseudo-random generator (the SystemVerilog standard does not say how it should be implemented) and any period will be absolutely huge (far bigger than you are likely to be able to simulate). Why are you worried about that? I don't think it's documented or even likely to have a predictable period (that may depend on the seed - I don't know, but it might).

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • nustisb1
    nustisb1 over 2 years ago in reply to Andrew Beckett

    Thanks, Andrew Beckett. Yes, you are right the period will be huge. I just want to know the limit of random sequences before it will start repetition in the case without seed.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 2 years ago in reply to nustisb1

    Well, I don't know for certain, but if the implementation uses the C random function which generates a 32-bit integer, that is documented as having a period which is approximately  16 * ((2^31) - 1) . I don't really understand why it matters - I'd be surprised if in any practical case you'd ever get through a cycle that large. If you really need to know, I think you'd need to ask customer support who in turn would need to ask R&D.

    Regards,

    Andrew

    • 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