Home > Community > Forums > Functional Verification > Seeding $urandom_range

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Seeding $urandom_range 

Last post Tue, Mar 20 2012 9:41 AM by matumoto. 0 replies.
Started by matumoto 20 Mar 2012 09:41 AM. Topic has 0 replies and 2516 views
Page 1 of 1 (1 items)
Sort Posts:
  • Tue, Mar 20 2012 9:41 AM

    • matumoto
    • Not Ranked
    • Joined on Mon, Feb 13 2012
    • Posts 1
    • Points 5
    Seeding $urandom_range Reply

    I am confusing how to give seed value to $urandom_range();

    I can understand, by looking over LRM, as for $urandom(), seed value can be given as: 

     -----------------------------------

    int seed_value;

    $value$plusargs("SEED_VAL=%d", "seed_value");
    $urandom(seed_value);

    ----------------------------------- 

     

    Once again, to give a seed  value to $urandom_range,

    - $urandom(seed_value) preceding a call of $urandom_range  functions also as for $urandom_range()? 

    - srandom should be used?? 

    In relation to this question,  

    Is it correct -sv_seed simulator option makes no sense when all of the threads containing random function are seeded explicitly?  

     

     

    Thnak you, in advance, for your help.

     

    • Post Points: 5
Page 1 of 1 (1 items)
Sort Posts:
Started by matumoto at 20 Mar 2012 09:41 AM. Topic has 0 replies.