$dist_normal system task

Status
Not open for further replies.

rettylee

Newbie level 6
Joined
Dec 9, 2010
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,355
Hi,guys:
I need to use $dist_normal to generate random data.The task $dist_normal has 3 parameters:SEED,MEAN,STDEV.I only want to maks sure the MEAN and STDEV,the SEED is random.
How can i use the first parameter of task $dist_normal(????,DATA1,DATA2)?
Anyone can help me ?
Thanks
 
Last edited:

From "SYSTEMVERILOG FOR VERIFICATION.A Guide to Learning the Testbench Language Features.":
" If you run the same test 50 times, each with a unique seed, you will get 50 different sets of stimuli. Running with multiple seeds broadens the coverage of your test and leverages your work. "

If you need only one set - use constant seed.
Else use unique seed.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…