Forum Discussion
Altera_Forum
Honored Contributor
16 years agoGenerating normally distributed random numbers
Hi,
Does anyone have any tips regarding how to generate normally distributed pseudo-random numbers in Verilog or VHDL? Any help would be most appreciated. Regards15 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- Tricky: good point, i was thinking of pseudo-white noise as having a normal distribution, though i haven't checked. --- Quote End --- a standard pseudo random number generator would have a flat distribution, with every number only appearing once in the sequence. You can try an make it appear more random by having more bits than you actually use, but after the entire sequence, every value appears the same number of times. - Altera_Forum
Honored Contributor
Tricky: good point, i was thinking of pseudo-white noise as having a normal distribution, though i haven't checked.
- Altera_Forum
Honored Contributor
If you are interested in LFSR automatic generated code, you could try this link to have a look :
http://www.jnicolle.com/?page=lfsr - Altera_Forum
Honored Contributor
--- Quote Start --- you can use an LFSR. its easy to code looking at a diagram (try Wikipedia). --- Quote End --- But can you make these easily Normally distributed (ie. bell curve with high probability around the centre of the range)? - Altera_Forum
Honored Contributor
you can use an LFSR. its easy to code looking at a diagram (try Wikipedia).