Verification Guild
A Community of Verification Professionals

 Create an AccountHome | Calendar | Downloads | FAQ | Links | Site Admin | Your Account  

Login
Nickname

Password

Security Code: Security Code
Type Security Code
BACKWARD

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.

Modules
· Home
· Downloads
· FAQ
· Feedback
· Recommend Us
· Web Links
· Your Account

Advertising

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

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile  ProfileDigest    Log inLog in 

Random Generation in Verilog

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Verification Guild Forum Index -> Simulation
View previous topic :: View next topic  
Author Message
spauls
Junior
Junior


Joined: Apr 07, 2004
Posts: 5

PostPosted: Wed Apr 07, 2004 8:33 am    Post subject: Random Generation in Verilog Reply with quote

What is the difference between $dist_uniform and
$random in verilog for generation of random numbers.
Back to top
View user's profile
alexg
Senior
Senior


Joined: Jan 07, 2004
Posts: 586
Location: Ottawa

PostPosted: Wed Apr 07, 2004 3:22 pm    Post subject: Reply with quote

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
View user's profile Send e-mail
spauls
Junior
Junior


Joined: Apr 07, 2004
Posts: 5

PostPosted: Thu Apr 08, 2004 12:39 am    Post subject: Reply with quote

Hi ,
Do u have any manual or verilog book ,that describes verilog random behavior in detail
regards,
spauls
Back to top
View user's profile
alexg
Senior
Senior


Joined: Jan 07, 2004
Posts: 586
Location: Ottawa

PostPosted: Thu Apr 08, 2004 1:52 pm    Post subject: Reply with quote

The following link:
http://www-ee.eng.hawaii.edu/~msmith/ASICs/HTML/Verilog/LRM/HTML/14/ch14.a.htm#42294

describes some of these functions in a more detail.

Regards,
Alexander Gnusin
Back to top
View user's profile Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Verification Guild Forum Index -> Simulation All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
Verification Guild © 2006 Janick Bergeron
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.291 Seconds