Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > white noise generator

Reply
Thread Tools

white noise generator

 
 
MNQ
Guest
Posts: n/a
 
      08-03-2004
Hi All,

I need to create a pseudo random binary bit stream to be output from a cpld
in VHDL. I was thinking of creating a 32 or 33 bit register and loading it
with a fixed value and rotating that. Does this sound doable as a random
bit generator?
Thanks

Naveed


 
Reply With Quote
 
 
 
 
Jan De Ceuster
Guest
Posts: n/a
 
      08-03-2004
> Hi All,
>
> I need to create a pseudo random binary bit stream to be output from a cpld
> in VHDL. I was thinking of creating a 32 or 33 bit register and loading it
> with a fixed value and rotating that. Does this sound doable as a random
> bit generator?
> Thanks


Search on google for a PRBS generator. That should do the trick. Quite simple to
build also. Just your registers with some XOR ports... I sometimes like to use a
thing like this as a counter .

Jan

 
Reply With Quote
 
 
 
 
Ralf Hildebrandt
Guest
Posts: n/a
 
      08-03-2004
MNQ wrote:



> I need to create a pseudo random binary bit stream ...


> I was thinking of creating a 32 or 33 bit register and loading it
> with a fixed value and rotating that. Does this sound doable as a random
> bit generator?


A pseudo-random bit stream is a little bit more: It is based on a
primitive and irreducible polynomial over the Galois Field of 2. In
hardware it is nothing more than a vector, that is shifted, _but_ on
certain position fed back via XOR gates.

You simply have to find such a polynomial. Every book about
pseudo-random singal processing contains some. But you can also take the
polynomials from CRC generators - it is the same principle. If you
search for CRC polynomials you will often find pictures of them, so it
should be easy to model them in hardware.

Ralf
 
Reply With Quote
 
Kai Harrekilde-Petersen
Guest
Posts: n/a
 
      08-03-2004
Ralf Hildebrandt <Ralf-> writes:

> MNQ wrote:
>
>
>
>> I need to create a pseudo random binary bit stream ...

>
>> I was thinking of creating a 32 or 33 bit register and loading it
>> with a fixed value and rotating that. Does this sound doable as a random
>> bit generator?

>
> A pseudo-random bit stream is a little bit more: It is based on a
> primitive and irreducible polynomial over the Galois Field of 2. In
> hardware it is nothing more than a vector, that is shifted, _but_ on
> certain position fed back via XOR gates.
>
> You simply have to find such a polynomial. Every book about
> pseudo-random singal processing contains some. But you can also take
> the polynomials from CRC generators - it is the same principle. If you
> search for CRC polynomials you will often find pictures of them, so it
> should be easy to model them in hardware.


You can get a good list of polynomials from the online version of
"Numerical Recipes": http://lib-www.lanl.gov/numerical/

Regards,


Kai

 
Reply With Quote
 
Charles M. Elias
Guest
Posts: n/a
 
      08-06-2004
"MNQ" <> wrote in message news:<cenlj0$e6k$>...
> Hi All,
>
> I need to create a pseudo random binary bit stream to be output from a cpld
> in VHDL. I was thinking of creating a 32 or 33 bit register and loading it
> with a fixed value and rotating that. Does this sound doable as a random
> bit generator?
> Thanks
>
> Naveed


Naveed,

There is an excellent free VHDL package, "lfsrstd.vhd" on Ben Cohen's
website:
http://members.aol.com/vhdlcohen/vhdl/Models.html. This has
everything you will need to generate a maximal length pseudorandom
sequence using a linear feedback shift register (LFSR). Check it out.

Charles
 
Reply With Quote
 
MNQ
Guest
Posts: n/a
 
      08-09-2004
Thanks for the link Charles. I will take a look now.

Also Thanks for everyone's help so far. It has been very much appreciated

Naveed


"Charles M. Elias" <> wrote in message
news: om...
> "MNQ" <> wrote in message

news:<cenlj0$e6k$>...
> > Hi All,
> >
> > I need to create a pseudo random binary bit stream to be output from a

cpld
> > in VHDL. I was thinking of creating a 32 or 33 bit register and loading

it
> > with a fixed value and rotating that. Does this sound doable as a

random
> > bit generator?
> > Thanks
> >
> > Naveed

>
> Naveed,
>
> There is an excellent free VHDL package, "lfsrstd.vhd" on Ben Cohen's
> website:
> http://members.aol.com/vhdlcohen/vhdl/Models.html. This has
> everything you will need to generate a maximal length pseudorandom
> sequence using a linear feedback shift register (LFSR). Check it out.
>
> Charles



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Non-noise words are incorrectly recognised as noise words. Peter Strĝiman ASP .Net 1 08-23-2005 01:26 PM
Adding White Noise (Gaussian Noise) To A Set Of 3D Points Adam Hartshorne C++ 1 07-09-2005 07:19 PM
Noise about noise... Stacey Digital Photography 3 02-18-2005 05:57 AM
Noise Ninja custom noise print- worth the effort for stacked photo?? Jason Sommers Digital Photography 4 01-19-2005 06:54 AM
Canon 1Ds Mark II - Noise? What noise? Brian C. Baird Digital Photography 9 09-21-2004 09:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57