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) = x7+x5+x4+x3+x2+x+1
Sequence #1 (Starting with 0) |
States: 0 ⇒ 0, forever... |
Sequence #2 (Starting with 1) |
States: 1 ⇒ 126 ⇒ 63 ⇒ 97 ⇒ 78 ⇒ 39 ⇒ 109 ⇒ 72 ⇒ 36 ⇒ 18 ⇒ 9 ⇒ 122 ⇒ 61 ⇒ 96 ⇒ 48 ⇒ 24 ⇒ 12 ⇒ 6 ⇒ 3 ⇒ 127 ⇒ 65 ⇒ 94 ⇒ 47 ⇒ 105 ⇒ 74 ⇒ 37 ⇒ 108 ⇒ 54 ⇒ 27 ⇒ 115 ⇒ 71 ⇒ 93 ⇒ 80 ⇒ 40 ⇒ 20 ⇒ 10 ⇒ 5 ⇒ 124 ⇒ 62 ⇒ 31 ⇒ 113 ⇒ 70 ⇒ 35 ⇒ 111 ⇒ 73 ⇒ 90 ⇒ 45 ⇒ 104 ⇒ 52 ⇒ 26 ⇒ 13 ⇒ 120 ⇒ 60 ⇒ 30 ⇒ 15 ⇒ 121 ⇒ 66 ⇒ 33 ⇒ 110 ⇒ 55 ⇒ 101 ⇒ 76 ⇒ 38 ⇒ 19 ⇒ 119 ⇒ 69 ⇒ 92 ⇒ 46 ⇒ 23 ⇒ 117 ⇒ 68 ⇒ 34 ⇒ 17 ⇒ 118 ⇒ 59 ⇒ 99 ⇒ 79 ⇒ 89 ⇒ 82 ⇒ 41 ⇒ 106 ⇒ 53 ⇒ 100 ⇒ 50 ⇒ 25 ⇒ 114 ⇒ 57 ⇒ 98 ⇒ 49 ⇒ 102 ⇒ 51 ⇒ 103 ⇒ 77 ⇒ 88 ⇒ 44 ⇒ 22 ⇒ 11 ⇒ 123 ⇒ 67 ⇒ 95 ⇒ 81 ⇒ 86 ⇒ 43 ⇒ 107 ⇒ 75 ⇒ 91 ⇒ 83 ⇒ 87 ⇒ 85 ⇒ 84 ⇒ 42 ⇒ 21 ⇒ 116 ⇒ 58 ⇒ 29 ⇒ 112 ⇒ 56 ⇒ 28 ⇒ 14 ⇒ 7 ⇒ 125 ⇒ 64 ⇒ 32 ⇒ 16 ⇒ 8 ⇒ 4 ⇒ 2 ⇒ 1 |
Period = 127 (Maximum Length Sequence)
(autocorrelation)
Output = 1011011000101000001110110100111100001001101110100010001101011001 110011001011110101001010101110001111101111111001001000011000000... |
A maximum length sequence was found. For this polynomial of degree 7, the maximum length sequence has a period of 27-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 11111 which is prime, but does not give a maximum length sequence. |
Modulo 2 addition is shown schematically equivalent to Exclusive-OR gates. |
2024-05-15 04:23:56 ADT
Last Updated: 04-09-25 |
Richard Tervo [ tervo@unb.ca ] | Back to the course homepage... |