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) = x8+x6+x3+x2+1

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

Sequence #2 (Starting with 1)
States: 1 ⇒ 178 ⇒ 89 ⇒ 158 ⇒ 79 ⇒ 149 ⇒ 248 ⇒ 124 ⇒ 62 ⇒ 31 ⇒ 189 ⇒ 236 ⇒ 118 ⇒ 59 ⇒ 175 ⇒ 229 ⇒ 192 ⇒ 96 ⇒ 48 ⇒ 24 ⇒ 12 ⇒ 6 ⇒ 3 ⇒ 179 ⇒ 235 ⇒ 199 ⇒ 209 ⇒ 218 ⇒ 109 ⇒ 132 ⇒ 66 ⇒ 33 ⇒ 162 ⇒ 81 ⇒ 154 ⇒ 77 ⇒ 148 ⇒ 74 ⇒ 37 ⇒ 160 ⇒ 80 ⇒ 40 ⇒ 20 ⇒ 10 ⇒ 5 ⇒ 176 ⇒ 88 ⇒ 44 ⇒ 22 ⇒ 11 ⇒ 183 ⇒ 233 ⇒ 198 ⇒ 99 ⇒ 131 ⇒ 243 ⇒ 203 ⇒ 215 ⇒ 217 ⇒ 222 ⇒ 111 ⇒ 133 ⇒ 240 ⇒ 120 ⇒ 60 ⇒ 30 ⇒ 15 ⇒ 181 ⇒ 232 ⇒ 116 ⇒ 58 ⇒ 29 ⇒ 188 ⇒ 94 ⇒ 47 ⇒ 165 ⇒ 224 ⇒ 112 ⇒ 56 ⇒ 28 ⇒ 14 ⇒ 7 ⇒ 177 ⇒ 234 ⇒ 117 ⇒ 136 ⇒ 68 ⇒ 34 ⇒ 17 ⇒ 186 ⇒ 93 ⇒ 156 ⇒ 78 ⇒ 39 ⇒ 161 ⇒ 226 ⇒ 113 ⇒ 138 ⇒ 69 ⇒ 144 ⇒ 72 ⇒ 36 ⇒ 18 ⇒ 9 ⇒ 182 ⇒ 91 ⇒ 159 ⇒ 253 ⇒ 204 ⇒ 102 ⇒ 51 ⇒ 171 ⇒ 231 ⇒ 193 ⇒ 210 ⇒ 105 ⇒ 134 ⇒ 67 ⇒ 147 ⇒ 251 ⇒ 207 ⇒ 213 ⇒ 216 ⇒ 108 ⇒ 54 ⇒ 27 ⇒ 191 ⇒ 237 ⇒ 196 ⇒ 98 ⇒ 49 ⇒ 170 ⇒ 85 ⇒ 152 ⇒ 76 ⇒ 38 ⇒ 19 ⇒ 187 ⇒ 239 ⇒ 197 ⇒ 208 ⇒ 104 ⇒ 52 ⇒ 26 ⇒ 13 ⇒ 180 ⇒ 90 ⇒ 45 ⇒ 164 ⇒ 82 ⇒ 41 ⇒ 166 ⇒ 83 ⇒ 155 ⇒ 255 ⇒ 205 ⇒ 212 ⇒ 106 ⇒ 53 ⇒ 168 ⇒ 84 ⇒ 42 ⇒ 21 ⇒ 184 ⇒ 92 ⇒ 46 ⇒ 23 ⇒ 185 ⇒ 238 ⇒ 119 ⇒ 137 ⇒ 246 ⇒ 123 ⇒ 143 ⇒ 245 ⇒ 200 ⇒ 100 ⇒ 50 ⇒ 25 ⇒ 190 ⇒ 95 ⇒ 157 ⇒ 252 ⇒ 126 ⇒ 63 ⇒ 173 ⇒ 228 ⇒ 114 ⇒ 57 ⇒ 174 ⇒ 87 ⇒ 153 ⇒ 254 ⇒ 127 ⇒ 141 ⇒ 244 ⇒ 122 ⇒ 61 ⇒ 172 ⇒ 86 ⇒ 43 ⇒ 167 ⇒ 225 ⇒ 194 ⇒ 97 ⇒ 130 ⇒ 65 ⇒ 146 ⇒ 73 ⇒ 150 ⇒ 75 ⇒ 151 ⇒ 249 ⇒ 206 ⇒ 103 ⇒ 129 ⇒ 242 ⇒ 121 ⇒ 142 ⇒ 71 ⇒ 145 ⇒ 250 ⇒ 125 ⇒ 140 ⇒ 70 ⇒ 35 ⇒ 163 ⇒ 227 ⇒ 195 ⇒ 211 ⇒ 219 ⇒ 223 ⇒ 221 ⇒ 220 ⇒ 110 ⇒ 55 ⇒ 169 ⇒ 230 ⇒ 115 ⇒ 139 ⇒ 247 ⇒ 201 ⇒ 214 ⇒ 107 ⇒ 135 ⇒ 241 ⇒ 202 ⇒ 101 ⇒ 128 ⇒ 64 ⇒ 32 ⇒ 16 ⇒ 8 ⇒ 4 ⇒ 2 ⇒ 1
Period = 255 (Maximum Length Sequence) (autocorrelation)
Output =
1010110001100111000000111110100101010010000010000111011111101100
0011000100110000011010001010011010100001011100111101011111000111
0010100011110000100100101111001000100011011011100010110011001011
011001001110101010111011010110100111111110011011110111010000000...

A maximum length sequence was found. For this polynomial of degree 8, the maximum length sequence has a period of 28-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 1010111 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-15 21:40:02 ADT
Last Updated: 04-09-25
Richard Tervo [ tervo@unb.ca ] Back to the course homepage...