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

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

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

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