Motherboard Forums


Reply
Thread Tools Display Modes

PRBS program generator

 
 





















Billy
Guest
Posts: n/a

 
      04-15-2004, 02:06 PM


Hi everybody,

I'm looking for a program to generate different PRBS in order to do a
new equipment test. the program should get as input a range and gives
as output a bit sequence with the length precised.

I need that to generate PRBS 2^9-1, 2^11-1, 2^15-1, 2^23-1, 2^31-1

Thanks in advance
Regards,

Bill
 
Reply With Quote
 
Don Taylor
Guest
Posts: n/a

 
      04-15-2004, 08:32 PM
(Billy) writes:
>I'm looking for a program to generate different PRBS in order to do a
>new equipment test. the program should get as input a range and gives
>as output a bit sequence with the length precised.


>I need that to generate PRBS 2^9-1, 2^11-1, 2^15-1, 2^23-1, 2^31-1


A little google searching will find you many examples of this.

Or the books "Numerical Recipes in X", where X is C, FORTRAN,...
has a section "Generation of Random Bits" that includes tables
of the taps to use for shift registers up to 100 bits long, has
several example programs and a description of the ideas behind
all this.

Here is their example for an 18 bit generator with taps 18,5,2,1

#define IB1 1
#define IB2 2
#define IB5 16
#define IB18 131072
#define MASK IB1+IB2+IB5

int irbit2(iseed)
unsigned long *iseed;
{
if (*iseed & IB18) {
*iseed=((*iseed ^ MASK) << 1) | IB1;
return 1;
} else {
*iseed <<=1;
return 0;
}
}

taps for 9,11,15,23,31 are
9,4
11,2
15,1
23,5
31,3
but if you dig into the math behind this there are many equivalent
sets of taps for most register lengths.
 
Reply With Quote
Reply

Thread Tools
Display Modes

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
Re: Microsoft's Ballmer Touts Vista-To-XP Downgrade Program Seaman Staines Dell 0 06-07-2008 03:40 AM
Skybuck's Universal Code 4,Delphi Demonstration Program Skybuck Flying Asus 8 05-28-2007 11:30 PM
No CD copy program exists on Vista BigRog Dell 12 05-20-2007 05:30 PM
Temp monitor program for Dual-Core Chip Graham Naylor Intel 7 04-19-2007 05:22 AM
simple program to locate ac97 in PCI space 010 010 Intel 0 12-10-2006 06:04 AM


All times are GMT. The time now is 05:14 AM.

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