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

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

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

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