Quantcast
Channel: Cadence Technology Forums
Viewing all articles
Browse latest Browse all 63732

Forum Post: RE: Verilog $random seems to be not random

$
0
0
Okay, I found that (for whatever reason) it works when I place the seed variable outside of the for loop: @ ( initial_step ) begin seed=32134 for (1=0; i<10; i=i+1) begin myvar[i]= $rdist_uniform(seed,-1,1) end end

Viewing all articles
Browse latest Browse all 63732

Latest Images

Trending Articles



Latest Images

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