Bursty traffic SystemVerilog

Status
Not open for further replies.

BartlebyScrivener

Member level 5
Joined
Feb 8, 2012
Messages
90
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
2,081
I would like to simulate a valid flag, on a clock edge, a certain percentage of the time. A simple way I have been doing this is to

valid <= ($urandom_range(100,1) <= RATE) ? 1 : 0;

So, if RATE was 50, valid will be high approximately 50% of the time. However, this is a pretty even traffic pattern. I would like to simulate traffic that comes in bursts, i.e more irregular, but still tend to an overall RATE over time.

Any ideas how to do this?

Many thanks.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…