seefree
Junior Member
![* *](https://designers-guide.org/forum/Templates/Forum/default/starblue.gif)
Offline
Posts: 10
|
Hi,
I tried create a model with random value at each run, below is the code:
parameter integer seed = 2; integer myseed, newseed; real vrand; analog begin myseed=seed+$random(); newseed=seed*$random(myseed); vrand = $rdist_normal( newseed, vmean, vsdev ); V(vp,vn) <+ vrand; end endmodule
I can run monte carlo analysis with different values, but same value for different runs, which makes it repeatable. In other words, when I re-run simulation, the value sequence from Random() function is the same. Can I create a model with the real random number? I tried to find a function in Verilog-A to get the system clock time to generize the rendom but couldn't find the function...
Thanks,
|