Forum Discussion
Altera_Forum
Honored Contributor
14 years agomodelling interarrival times
Hello, I am interested to model inter arrival times for my design based on exponential distribution. I first tried to write a simple model which given below. I have two clarification...
Altera_Forum
Honored Contributor
14 years agoThanks once again. I actually want to use it for the test bench and want to use it in my real time implementation too.
For the implementation I am planning to do something like the following. I am new to the field of statistical modeling, so kindly correct me if I am wrong. a. Storing the generated inter-arrival time into memory b. Set a counter (which is synced to system clock) corresponding to the inter-arrival time and decrement it till it becomes 0. c. Once the counter is 0, read the frame. will continue till all the frames are read. --- Quote Start --- to generate arrival times with an exponential distribution, what I usually do is this: delta_t = - log(u)/rate where "u" is a uniform random value [0,1] and and delta_t is the interval between two events --- Quote End --- I am more interested to know about your implementation. Do you use $dist_uniform or $random for uniform random value. Do you implement log using PLI or is there a native support.