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