[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

1062.0. "M-Sequence Generators" by WIENER::BUTTON (Derek BUTTON @VNO/FS-OPS) Wed Apr 19 1989 13:35

T.RTitleUserPersonal
Name
DateLines
1062.1Knuth or GolombCADSYS::COOPERTopher CooperWed Apr 19 1989 15:3413
    I'm about 98% sure that this question is answered in Knuth, vol II, but
    I don't have a copy here to check.
    
    The "bible" in this area is "Shift Register Sequences" by Solomon W.
    Golomb.  It analyzes the problem, and a host of related ones, in
    great depth and with a fair amount of rigour.  You should be able to
    obtain it by DEC internal inter-library loan, since at least one site,
    HLO, has a copy.
    
    If you just want the answer to your question with a minimum of extras,
    however, use Knuth.
    
    						Topher
1062.2I'll check later...RAMBLR::MORONEYSign your life away, on the dotted line...Wed Apr 19 1989 22:455
The TTL Cookbook covers these (as pseudo-random shift registers) briefly, and
they do have a table of connections for maximum-length sequences for register
lengths from 2 to 31.

-Mike
1062.3coding theory textbooks another sourceCTCADM::ROTHIf you plant ice you'll harvest windThu Apr 20 1989 11:0110
    Books on coding theory are another source of information.  In particular
    Peterson's book (MIT press) and Blahut's book - both titled "Theory of
    Error Correcting Codes" or some such - are very easy to understand.

    A classic paper by N. Zierler, "Linear Recurring Sequences" appeared in
    one of the SIAM journals around 1960 - it's probably a little hard to
    read without some algebra background but has lots of neat stuff so would
    be worth looking up.

    - Jim
1062.4 Thanks for you help.WIENER::BUTTONDerek BUTTON @VNO/FS-OPSMon Apr 24 1989 11:108
    Thank-you, Topher, Mike and Jim;  I got some good pointers and have
    started to follow up.
    The buzz-word "pseudo-random" (from Mike, I think), rang a very
    distant bell: something to do with a modulation technique for 
    high capacity communications links/satellite comms or...?  Who
    can get closer?
    
    	Derek.
1062.5RAMBLR::MORONEYSign your life away, on the dotted line...Mon Apr 24 1989 17:427
re .4:

The "pseudo-random" comes from the fact that if you look at a short sequence
of bits from them they appear to be random.  Of course, longer sequences
show a pattern.

-Mike
1062.6RAMBLR::MORONEYIt works!!Sun Apr 30 1989 18:3047
re .0:

>	So: My problem.  Does anyone have a formula or suggestion 
>	how I can calculate which element (x) will give me an
>	M-Sequence ?  For some registers, there are more than one
>	solution.

Maybe this will help:  For a shift register of length "n", the following
connections give a maximal-length sequence:

 n  XOR inputs
--------------
 2   1 and  2
 3   2 and  3
 4   3 and  4
 5   3 and  5
 6   5 and  6
 7   6 and  7
 9   5 and  9
10   7 and 10
11   9 and 11
15  14 and 15
17  14 and 17
18  11 and 18
20  17 and 20
21  19 and 21
22  21 and 22
23  18 and 23
25  22 and 25
28  25 and 28
29  27 and 29
31  28 and 31

For any of the above sequences, a second sequence which is the first sequence
"backwards" can be formed by counting from the other end when making the first
connection.  For example, for the sequence of length 31, a maximal-length
sequence can be formed by connecting the XOR gate's input to bits 3 and 31.
This is the same sequence as the 28-31 sequence, except it runs backward.
Adding an inverter to the feedback path gives an inverted sequence.

Maximal-length sequences of lengths 8, 12, 13, 14, and 16 can be obtained
by tapping the sequence at 4 points and XOR'ing them together with 3 XOR gates.

Sequences of nearly full-length of lengths 24, 26, 27, 30 can be obtained with
a single XOR gate.

-Mike
1062.7AITG::DERAMODaniel V. {AITG,ZFC}:: D'EramoMon May 01 1989 14:2019
	I thought I remembered reading that for something like

n  XOR inputs		polynomial
--------------		------------------
 2   1 and  2		x^2 + x + 1
 3   2 and  3		x^3 + x^2 + 1
 4   3 and  4		x^4 + x^3 + 1
 5   3 and  5		x^5 + x^3 + 1
		[...]
31  28 and 31		x^31 + x^28 + 1

	to give a sequence of length 2^n - 1, it was necessary and
	sufficient that the corresponding polynomial be irreducible
	as a polynomial over the two element field of integers modulo
	two.

	Can anyone verify/refute this?

	Dan
1062.8KOBAL::GILBERTOwnership ObligatesMon May 01 1989 21:2920
re .6:

>Maybe this will help:  For a shift register of length "n", the following
>connections give a maximal-length sequence:
>[...]

I noticed that the table was missing entries for n = 8, 12, 13, 14, 16, 19,
24, 26, 27, and 30.  For the connections that were listed, I believe the
cycle length is 2**n-1 (I verified this for n <= 20).  Here are connections
for maximal-length sequences for some of the other n:

 n  XOR inputs   cycle length
---------------------------------
 8   5 and  8    217 = %x000000D9
12  11 and 12   3255 = %x00000CB7
13  10 and 13   8001 = %x00001F41
14  13 and 14  11811 = %x00002E23
16   9 and 16  63457 = %x0000F7E1
19  13 and 19 520065 = %x0007EF81