Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Generating 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.

Regards

15 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Tricky: good point, i was thinking of pseudo-white noise as having a normal distribution, though i haven't checked.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored 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's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    you can use an LFSR. its easy to code looking at a diagram (try Wikipedia).