random generator with exponential distribution with verilog

Status
Not open for further replies.

albert_new

Newbie level 3
Joined
Jul 27, 2013
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
20
Hi all,

I want to generate random signal with exponential distribution (exp(T/tau) tau is my constant) in verilog. Could you please advice me how I should do it?

Sincerely, Albert
 

I think I found it: something like that

reg [15:0] a ;
initial begin
a = $dist_exponential(60, 24);
end
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…