Pseudorandom binary sequence explained
A pseudorandom binary sequence (PRBS), pseudorandom binary code or pseudorandom bitstream is a binary sequence that, while generated with a deterministic algorithm, is difficult to predict[1] and exhibits statistical behavior similar to a truly random sequence. PRBS generators are used in telecommunication, such as in analog-to-information conversion,[2] but also in encryption, simulation, correlation technique and time-of-flight spectroscopy. The most common example is the maximum length sequence generated by a (maximal) linear feedback shift register (LFSR). Other examples are Gold sequences (used in CDMA and GPS), Kasami sequences and JPL sequences, all based on LFSRs.
In telecommunications, pseudorandom binary sequences are known as pseudorandom noise codes (PN or PRN codes) due to their application as pseudorandom noise.
Details
of
bits, i.e.
for
.
A BS consists of
ones and
zeros.
A BS is a pseudorandom binary sequence (PRBS) if[3] its autocorrelation function, given by
has only two values:
C(v)=
\begin{cases}
m,ifv\equiv0 (modN)\
\\
mc,otherwise
\end{cases}
where
is called the duty cycle of the PRBS, similar to the duty cycle of a continuous time signal. For a maximum length sequence, where
, the duty cycle is 1/2.
A PRBS is 'pseudorandom', because, although it is in fact deterministic, it seems to be random in a sense that the value of an
element is independent of the values of any of the other elements, similar to real random sequences.
A PRBS can be stretched to infinity by repeating it after
elements, but it will then be cyclical and thus non-random. In contrast, truly random sequence sources, such as sequences generated by
radioactive decay or by
white noise, are infinite (no pre-determined end or cycle-period). However, as a result of this predictability, PRBS signals can be used as reproducible patterns (for example, signals used in testing telecommunications signal paths).
[4] Practical implementation
Pseudorandom binary sequences can be generated using linear-feedback shift registers.[5]
Some common[6] [7] [8] [9] [10] sequence generating monic polynomials are
PRBS7 =
PRBS9 =
PRBS11 =
PRBS13 =
PRBS15 =
PRBS20 =
PRBS23 =
PRBS31 =
An example of generating a "PRBS-7" sequence can be expressed in C as
- include
- include
- include
int main(int argc, char* argv[])
In this particular case, "PRBS-7" has a repetition period of 127 values.
Notation
The PRBSk or PRBS-k notation (such as "PRBS7" or "PRBS-7") gives an indication of the size of the sequence.
is the maximum number of bits that are in the sequence. The
k indicates the size of a unique
word of data in the sequence. If you segment the
N bits of data into every possible word of length
k, you will be able to list every possible combination of 0s and 1s for a k-bit binary word, with the exception of the all-0s word. For example, PRBS3 = "1011100" could be generated from
. If you take every sequential group of three bit words in the PRBS3 sequence (wrapping around to the beginning for the last few three-bit words), you will find the following 7 word arrangements: "
1011100" → 101 "1
011100" → 011 "10
11100" → 111 "101
1100" → 110 "1011
100" → 100 "
10111
00" → 001 (requires wrap) "
101110
0" → 010 (requires wrap)Those 7 words are all of the
possible non-zero 3-bit binary words, not in numeric order. The same holds true for any PRBS
k, not just PRBS3.
See also
External links
- -- the bit sequence for PRBS7 =
Notes and References
- Web site: PRBS Pseudo Random Bit Sequence Generation . TTi . 21 January 2016.
- Web site: PRBS non-idealities affecting Random Demodulation Analog-to-Information Converters . Daponte . Pasquale . De Vito . Luca . Iadarola . Grazia . Rapuano . Sergio.
- Web site: Articles on Correlation and Calibration . Naszodi . Laszlo . https://web.archive.org/web/20131111050840/http://www.scriptwell.net/correlation.htm . 11 November 2013 . dead.
- Web site: ITU-T Recommendation O.150 . October 1992.
- Paul H. Bardell, William H. McAnney, and Jacob Savir, "Built-In Test for VLSI: Pseudorandom Techniques", John Wiley & Sons, New York, 1987.
- Web site: PRBS (Pseudo-Random Binary Sequence) . Tomlinson . Kurt . Bloopist. 4 February 2015 . 21 January 2016.
- Web site: Maximal Length LFSR Feedback Terms . Koopman . Philip . 21 January 2016.
- Web site: What are the PRBS7, PRBS15, PRBS23, and PRBS31 polynomials used in the Altera Transceiver Toolkit? . . 14 February 2013 . 21 January 2016.
- Web site: An Attribute-Programmable PRBS Generator and Checker (XAP884) . Riccardi . Daniele . Novellini . Paolo . 10 January 2011 . Table 3:Configuration for PRBS Polynomials Most Used to Test Serial Lines . . 21 January 2016.
- Web site: O.150 : General requirements for instrumentation for performance measurements on digital transmission equipment . 1997-01-06.