ECE4253 Digital Communications | |
Department of Electrical and Computer Engineering - University of New Brunswick, Fredericton, NB, Canada | |
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).
Circuit based on P(x) = x8+x7+x6+x4+x2+x+1
Sequence #1 (Starting with 0) |
States: 0 ⇒ 0, forever... |
Sequence #2 (Starting with 1) |
States: 1 ⇒ 235 ⇒ 158 ⇒ 79 ⇒ 204 ⇒ 102 ⇒ 51 ⇒ 242 ⇒ 121 ⇒ 215 ⇒ 128 ⇒ 64 ⇒ 32 ⇒ 16 ⇒ 8 ⇒ 4 ⇒ 2 ⇒ 1 |
Period = 17 (autocorrelation)
Output = 11010010110000000... |
Sequence #3 (Starting with 3) |
States: 3 ⇒ 234 ⇒ 117 ⇒ 209 ⇒ 131 ⇒ 170 ⇒ 85 ⇒ 193 ⇒ 139 ⇒ 174 ⇒ 87 ⇒ 192 ⇒ 96 ⇒ 48 ⇒ 24 ⇒ 12 ⇒ 6 ⇒ 3 |
Period = 17 (autocorrelation)
Output = 10111011101000000... |
Sequence #4 (Starting with 5) |
States: 5 ⇒ 233 ⇒ 159 ⇒ 164 ⇒ 82 ⇒ 41 ⇒ 255 ⇒ 148 ⇒ 74 ⇒ 37 ⇒ 249 ⇒ 151 ⇒ 160 ⇒ 80 ⇒ 40 ⇒ 20 ⇒ 10 ⇒ 5 |
Period = 17 (autocorrelation)
Output = 11100110011100000... |
Sequence #5 (Starting with 7) |
States: 7 ⇒ 232 ⇒ 116 ⇒ 58 ⇒ 29 ⇒ 229 ⇒ 153 ⇒ 167 ⇒ 184 ⇒ 92 ⇒ 46 ⇒ 23 ⇒ 224 ⇒ 112 ⇒ 56 ⇒ 28 ⇒ 14 ⇒ 7 |
Period = 17 (autocorrelation)
Output = 10001111000100000... |
Sequence #6 (Starting with 9) |
States: 9 ⇒ 239 ⇒ 156 ⇒ 78 ⇒ 39 ⇒ 248 ⇒ 124 ⇒ 62 ⇒ 31 ⇒ 228 ⇒ 114 ⇒ 57 ⇒ 247 ⇒ 144 ⇒ 72 ⇒ 36 ⇒ 18 ⇒ 9 |
Period = 17 (autocorrelation)
Output = 11001000100110000... |
Sequence #7 (Starting with 11) |
States: 11 ⇒ 238 ⇒ 119 ⇒ 208 ⇒ 104 ⇒ 52 ⇒ 26 ⇒ 13 ⇒ 237 ⇒ 157 ⇒ 165 ⇒ 185 ⇒ 183 ⇒ 176 ⇒ 88 ⇒ 44 ⇒ 22 ⇒ 11 |
Period = 17 (autocorrelation)
Output = 10100001111110000... |
Sequence #8 (Starting with 15) |
States: 15 ⇒ 236 ⇒ 118 ⇒ 59 ⇒ 246 ⇒ 123 ⇒ 214 ⇒ 107 ⇒ 222 ⇒ 111 ⇒ 220 ⇒ 110 ⇒ 55 ⇒ 240 ⇒ 120 ⇒ 60 ⇒ 30 ⇒ 15 |
Period = 17 (autocorrelation)
Output = 10010101010010000... |
Sequence #9 (Starting with 17) |
States: 17 ⇒ 227 ⇒ 154 ⇒ 77 ⇒ 205 ⇒ 141 ⇒ 173 ⇒ 189 ⇒ 181 ⇒ 177 ⇒ 179 ⇒ 178 ⇒ 89 ⇒ 199 ⇒ 136 ⇒ 68 ⇒ 34 ⇒ 17 |
Period = 17 (autocorrelation)
Output = 11011111111011000... |
Sequence #10 (Starting with 19) |
States: 19 ⇒ 226 ⇒ 113 ⇒ 211 ⇒ 130 ⇒ 65 ⇒ 203 ⇒ 142 ⇒ 71 ⇒ 200 ⇒ 100 ⇒ 50 ⇒ 25 ⇒ 231 ⇒ 152 ⇒ 76 ⇒ 38 ⇒ 19 |
Period = 17 (autocorrelation)
Output = 10110110100011000... |
Sequence #11 (Starting with 21) |
States: 21 ⇒ 225 ⇒ 155 ⇒ 166 ⇒ 83 ⇒ 194 ⇒ 97 ⇒ 219 ⇒ 134 ⇒ 67 ⇒ 202 ⇒ 101 ⇒ 217 ⇒ 135 ⇒ 168 ⇒ 84 ⇒ 42 ⇒ 21 |
Period = 17 (autocorrelation)
Output = 11101011010111000... |
Sequence #12 (Starting with 27) |
States: 27 ⇒ 230 ⇒ 115 ⇒ 210 ⇒ 105 ⇒ 223 ⇒ 132 ⇒ 66 ⇒ 33 ⇒ 251 ⇒ 150 ⇒ 75 ⇒ 206 ⇒ 103 ⇒ 216 ⇒ 108 ⇒ 54 ⇒ 27 |
Period = 17 (autocorrelation)
Output = 10101100110101000... |
Sequence #13 (Starting with 35) |
States: 35 ⇒ 250 ⇒ 125 ⇒ 213 ⇒ 129 ⇒ 171 ⇒ 190 ⇒ 95 ⇒ 196 ⇒ 98 ⇒ 49 ⇒ 243 ⇒ 146 ⇒ 73 ⇒ 207 ⇒ 140 ⇒ 70 ⇒ 35 |
Period = 17 (autocorrelation)
Output = 10111101001101100... |
Sequence #14 (Starting with 43) |
States: 43 ⇒ 254 ⇒ 127 ⇒ 212 ⇒ 106 ⇒ 53 ⇒ 241 ⇒ 147 ⇒ 162 ⇒ 81 ⇒ 195 ⇒ 138 ⇒ 69 ⇒ 201 ⇒ 143 ⇒ 172 ⇒ 86 ⇒ 43 |
Period = 17 (autocorrelation)
Output = 10100111011011100... |
Sequence #15 (Starting with 45) |
States: 45 ⇒ 253 ⇒ 149 ⇒ 161 ⇒ 187 ⇒ 182 ⇒ 91 ⇒ 198 ⇒ 99 ⇒ 218 ⇒ 109 ⇒ 221 ⇒ 133 ⇒ 169 ⇒ 191 ⇒ 180 ⇒ 90 ⇒ 45 |
Period = 17 (autocorrelation)
Output = 11111010101111100... |
Sequence #16 (Starting with 47) |
States: 47 ⇒ 252 ⇒ 126 ⇒ 63 ⇒ 244 ⇒ 122 ⇒ 61 ⇒ 245 ⇒ 145 ⇒ 163 ⇒ 186 ⇒ 93 ⇒ 197 ⇒ 137 ⇒ 175 ⇒ 188 ⇒ 94 ⇒ 47 |
Period = 17 (autocorrelation)
Output = 10010011110111100... |
In this example, a prime polynomial failed to give a maximum length sequence. For this polynomial of degree 8, the maximum length sequence would have a period of 28-1 states. Use of a prime polynomial is a necessary but not sufficient condition for a maximum length sequence. Only "primitive primes" give maximum length sequences. |
Modulo 2 addition is shown schematically equivalent to Exclusive-OR gates. |
2024-05-14 04:08:16 ADT
Last Updated: 04-09-25 |
Richard Tervo [ tervo@unb.ca ] | Back to the course homepage... |