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