Forum Discussion
Altera_Forum
Honored Contributor
15 years agoWhat kind of statistics? Uniform distribution, or normal distribution? A uniform distribution is fairly easy to generate using a linear feedback shift register. A normal (Gaussian) distribution can be generated by summing multiple LFSRs, or LFSR samples, or by filtering an LFSR. It depends on the rate at which you want to generate the random data.
Alternatively, you can always write a block of data to RAM, and then process that data. This method is nice for testing identical data in MATLAB, Modelsim, and in hardware. Cheers, Dave