UNB ECE4253 Digital Communications
Department of Electrical and Computer Engineering - University of New Brunswick, Fredericton, NB, Canada

Linear Recursive Sequence Generator

Shift registers with feedback essentially divide polynomials to create distinctive binary sequences.

This online tool draws and analyzes digital circuits which generate Linear Recursive Sequences (LRS) based on a defining polynomial P(x). The circuit shown below is traced through all possible states. Maximum length sequences are identified. The autocorrelation of each sequence can also be checked (maximum 1023 bits).


Galois Implementation

* alternate configuration
Galois
Circuit based on P(x) = x7+x6+1

The circuit taps correspond to P(x) = (11000001) in reversed order as (10000011).
Taps: (10000011) (prime)
Sequence #1 (Starting with 0)
States: 0 ⇒ 0, forever...

Sequence #2 (Starting with 1)
States: 1 ⇒ 65 ⇒ 97 ⇒ 113 ⇒ 121 ⇒ 125 ⇒ 127 ⇒ 126 ⇒ 63 ⇒ 94 ⇒ 47 ⇒ 86 ⇒ 43 ⇒ 84 ⇒ 42 ⇒ 21 ⇒ 75 ⇒ 100 ⇒ 50 ⇒ 25 ⇒ 77 ⇒ 103 ⇒ 114 ⇒ 57 ⇒ 93 ⇒ 111 ⇒ 118 ⇒ 59 ⇒ 92 ⇒ 46 ⇒ 23 ⇒ 74 ⇒ 37 ⇒ 83 ⇒ 104 ⇒ 52 ⇒ 26 ⇒ 13 ⇒ 71 ⇒ 98 ⇒ 49 ⇒ 89 ⇒ 109 ⇒ 119 ⇒ 122 ⇒ 61 ⇒ 95 ⇒ 110 ⇒ 55 ⇒ 90 ⇒ 45 ⇒ 87 ⇒ 106 ⇒ 53 ⇒ 91 ⇒ 108 ⇒ 54 ⇒ 27 ⇒ 76 ⇒ 38 ⇒ 19 ⇒ 72 ⇒ 36 ⇒ 18 ⇒ 9 ⇒ 69 ⇒ 99 ⇒ 112 ⇒ 56 ⇒ 28 ⇒ 14 ⇒ 7 ⇒ 66 ⇒ 33 ⇒ 81 ⇒ 105 ⇒ 117 ⇒ 123 ⇒ 124 ⇒ 62 ⇒ 31 ⇒ 78 ⇒ 39 ⇒ 82 ⇒ 41 ⇒ 85 ⇒ 107 ⇒ 116 ⇒ 58 ⇒ 29 ⇒ 79 ⇒ 102 ⇒ 51 ⇒ 88 ⇒ 44 ⇒ 22 ⇒ 11 ⇒ 68 ⇒ 34 ⇒ 17 ⇒ 73 ⇒ 101 ⇒ 115 ⇒ 120 ⇒ 60 ⇒ 30 ⇒ 15 ⇒ 70 ⇒ 35 ⇒ 80 ⇒ 40 ⇒ 20 ⇒ 10 ⇒ 5 ⇒ 67 ⇒ 96 ⇒ 48 ⇒ 24 ⇒ 12 ⇒ 6 ⇒ 3 ⇒ 64 ⇒ 32 ⇒ 16 ⇒ 8 ⇒ 4 ⇒ 2 ⇒ 1
Period = 127 (Maximum Length Sequence) (autocorrelation)
Output =
1111111010101001100111011101001011000110111101101011011001001000
111000010111110010101110011010001001111000101000011000001000000...

A maximum length sequence was found. For this polynomial of degree 7, the maximum length sequence has a period of 27-1 states. This only happens when the characteristic polynomial is prime, as in this case. Use of a prime polynomial is a necessary but not sufficient condition for a maximum length sequence. For example, try 1001001 which is prime, but does not give a maximum length sequence.

See a detailed analysis and State Table for this circuit.

Specify the taps for your sequence
Binary Value:    Reversed

Modulo 2 addition is shown schematically equivalent to Exclusive-OR gates.

2024-05-13 18:31:54 ADT
Last Updated: 04-09-25
Richard Tervo [ tervo@unb.ca ] Back to the course homepage...