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+x5+x3+x2+1

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

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

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-13 18:38:15 ADT
Last Updated: 04-09-25
Richard Tervo [ tervo@unb.ca ] Back to the course homepage...