Saving Random Number seed in verilog

K

kd_apte

Guest
Hi

I want to generate a random number to perform some tests and I want to
save the random number seed
How do I do it.....?

Thanks in advance

kedar
 
"kd_apte" <kedar@indranetworks.com> wrote in message news:<0929505b3f30f01272a1b9b14cf53132@localhost.talkaboutprogramming.com>...
Hi

I want to generate a random number to perform some tests and I want to
save the random number seed
How do I do it.....?

Thanks in advance

kedar
1. Let environment (runscripts) to generate seed for you (system time
etc)
2. Write it to the separate file in results directory
3. Read this file in the beginning of simulation run to get the seed
(using for example $readmemh in verilog)

Next time, you have an option to replicate simulation, using the same
seed file. Otherwise, overwrite it with another seed value.

Regards,
Alexander Gnusin
 

Welcome to EDABoard.com

Sponsor

Back
Top