Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1075

Why $random is not controlled by seed?

$
0
0

There is a segment of code below:

for(int i=0;i<10;i++)begin

$display("current random value: %0d", $random);

end

I use Cadence irun to compile and simulate this code. Although I add option " -seed random" to irun, but each time the result is same. It seems that $random is not controlled by -seed.

If I change $random to $urandom, it works! Each time I run, the result is not different.

So, my question is that, why $random is not controlled by -seed ???

Thanks.


Viewing all articles
Browse latest Browse all 1075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>