A binary sequence (BS) is a sequence a 0 , … , a N − 1 {\displaystyle a_{0},\ldots ,a_{N-1}} of N {\displaystyle N} bits, i.e.
A BS consists of m = ∑ a j {\displaystyle m=\sum a_{j}} ones and N − m {\displaystyle N-m} zeros.
A BS is a pseudorandom binary sequence (PRBS) if3 its autocorrelation function, given by
has only two values:
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 N = 2 k − 1 {\displaystyle N=2^{k}-1} , 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 a j {\displaystyle a_{j}} 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 N {\displaystyle N} 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
Pseudorandom binary sequences can be generated using linear-feedback shift registers.5
Some common678910 sequence generating monic polynomials are
An example of generating a "PRBS-7" sequence can be expressed in C as
In this particular case, "PRBS-7" has a repetition period of 127 values.
The PRBSk or PRBS-k notation (such as "PRBS7" or "PRBS-7") gives an indication of the size of the sequence. N = 2 k − 1 {\displaystyle N=2^{k}-1} is the maximum number11: §3 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.12: §2 For example, PRBS3 = "1011100" could be generated from x 3 + x 2 + 1 {\displaystyle x^{3}+x^{2}+1} .13 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:
Those 7 words are all of the 2 k − 1 = 2 3 − 1 = 7 {\displaystyle 2^{k}-1=2^{3}-1=7} possible non-zero 3-bit binary words, not in numeric order. The same holds true for any PRBSk, not just PRBS3.14: §2
"PRBS Pseudo Random Bit Sequence Generation". TTi. Retrieved 21 January 2016. http://www.tti-test.com/go/tgxa/prbs.htm ↩
Daponte, Pasquale; De Vito, Luca; Iadarola, Grazia; Rapuano, Sergio. "PRBS non-idealities affecting Random Demodulation Analog-to-Information Converters" (PDF). https://www.imeko.org/publications/tc4-2016/IMEKO-TC4-2016-14.pdf ↩
Naszodi, Laszlo. "Articles on Correlation and Calibration". Archived from the original on 11 November 2013. https://web.archive.org/web/20131111050840/http://www.scriptwell.net/correlation.htm ↩
"ITU-T Recommendation O.150". October 1992. http://www.itu.int/rec/T-REC-O.150-199210-S ↩
Paul H. Bardell, William H. McAnney, and Jacob Savir, "Built-In Test for VLSI: Pseudorandom Techniques", John Wiley & Sons, New York, 1987. ↩
Tomlinson, Kurt (4 February 2015). "PRBS (Pseudo-Random Binary Sequence)". Bloopist. Retrieved 21 January 2016. http://blog.kurttomlinson.com/posts/prbs-pseudo-random-binary-sequence ↩
Koopman, Philip. "Maximal Length LFSR Feedback Terms". Retrieved 21 January 2016. https://users.ece.cmu.edu/~koopman/lfsr/index.html ↩
"What are the PRBS7, PRBS15, PRBS23, and PRBS31 polynomials used in the Altera Transceiver Toolkit?". Altera. 14 February 2013. Retrieved 21 January 2016. https://www.altera.com/support/support-resources/knowledge-base/solutions/rd02142013_406.html ↩
Riccardi, Daniele; Novellini, Paolo (10 January 2011). "An Attribute-Programmable PRBS Generator and Checker (XAP884)" (PDF). Xilinx. Table 3:Configuration for PRBS Polynomials Most Used to Test Serial Lines. Retrieved 21 January 2016. http://www.xilinx.com/support/documentation/application_notes/xapp884_PRBS_GeneratorChecker.pdf ↩
"O.150 : General requirements for instrumentation for performance measurements on digital transmission equipment". 1997-01-06. https://www.itu.int/rec/T-REC-O.150-199605-I/en ↩