| Login | | Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name. | |
| Who's Online | There are currently, 53 guest(s) and 0 member(s) that are online.
You are Anonymous user. You can register for free by clicking here | |
 | |
|
Verification Guild: Forums |
|
| View previous topic :: View next topic |
| Author |
Message |
spauls Junior


Joined: Apr 07, 2004 Posts: 5
|
Posted: Wed Apr 07, 2004 8:33 am Post subject: Random Generation in Verilog |
|
|
What is the difference between $dist_uniform and
$random in verilog for generation of random numbers. |
|
| Back to top |
|
 |
alexg Senior

![]()
Joined: Jan 07, 2004 Posts: 586 Location: Ottawa
|
Posted: Wed Apr 07, 2004 3:22 pm Post subject: |
|
|
It seems like there is no difference in disrtibution.
$dist_uniform(seed, min, max) is similar to :
min + {$random(seed)}%(max-min+1)
For both functions, distribution is uniform.
"Similar" means that both functions follows the same distribution rule, but generate different pseudo-random sequences for the same seed value.
Regards,
Alexander Gnusin |
|
| Back to top |
|
 |
spauls Junior


Joined: Apr 07, 2004 Posts: 5
|
Posted: Thu Apr 08, 2004 12:39 am Post subject: |
|
|
Hi ,
Do u have any manual or verilog book ,that describes verilog random behavior in detail
regards,
spauls |
|
| Back to top |
|
 |
alexg Senior

![]()
Joined: Jan 07, 2004 Posts: 586 Location: Ottawa
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|