Fig. 2. M-sequence PN generator.
An LFSR having a primitive polynomial will generate max-imal length sequence. Any polynomial is said to be primitiveif it satisfies two conditions.1) If the generator polynomial cannot be factorized2) If it’s a factor of
X
N
+ 1 where N=
2
m
-1 and m refersto the number of shift registers used.Any m-sequences satisfy the following three randomness prop-erties in every period of length N1) The number of ones and zeros are nearly equal2) Half the runs of ones and zeros have length 1,
14
havelength 2,
18
length 3, and
12
k
length k, (k
≤
n
)
3) Sequences will have a two valued autocorrelation func-tion which are helpful for good synchronization. If r(k)=
N n
=1
a
n
a
n
+
k
is the auto correlation function, then itsvalues are defined as
r
(
k
) =
N, K
= 0 mod N
−
1
,
else(1)m-sequences are not immune to cross-correlation problems,and they may have large cross-correlation values which are notgood in case of multiple access interfaces, it causes difficultyin differentiating users [3]. The cross correlation c(k) betweentwo different sequences has a value equal to 1/ (
2
m
-1). Wherec(k)=
N n
=1
a
n
b
n
+
k
. And a, b are the elements of differentsequences. The cross correlation value should be as low aspossible in order to obtain an optimum code. Welch obtaineda lower bound for the cross correlation between a set of Msequences [2].
c
(
k
)
≥
N
M
−
1
MN
−
1
∼
=
√
N
(2)
Fig. 3. maximal length sequence generator m= 3.
Figure 3, Illustrates the maximal length sequence generatorconsisting of 3 LFSR S1, S2 and S3 i.e. m= 3 and N = 7=
2
3
-1where N denotes the period of the sequences generated. Here(
X
3
+ X + 1) is a primitive polynomial which cannot befactorized and it’s a factor of polynomial(
X
7
+ 1), Table 1,Shows the generation of the output sequences.
TABLE IM-L
ENGTH SEQUENCE
S1 S2 S3 O/P Sequence1 0 0 11 1 0 11 1 1 00 1 1 11 0 1 00 1 0 00 0 1 1sequence repeats
B. GOLD SEQUENCES
Gold codes provide a very large number of codes, throughwhich we can attain less interference between the users. Goldcodes are obtained by linearly combining two m-sequences. If the m-sequences that are modulo-2 added to produce a goldcodes are chosen randomly, then the cross correlation of thecode may be quite poor. Thus, Gold sequences are generatedby the modulo-2 addition of preferred pairs of m-sequences.Finding preferred pairs of m-sequences is necessary in definingsets of Gold codes. A list of preferred pairs can be found inTable II. A pair of m-sequences u and v having period N =
2
n
-1 are preferred pairs if they satisfy the following properties.1) ’n’ is not divisible by 4 (i.e. n= 2(mod) 4)2) v = u[ q ] where
•
q is odd
•
q =
2
k
+1 or q =
2
2
k
-
2
k
+1
•
v is obtained by sampling
q
th
symbol of u.The Cross correlation between the preferred pairs is threevalued [3]
{−
t
(
n
)
,
−
1
,t
(
n
)
−
2
}
where
t
(
n
) =
1 + 2
(
n
+1)
/
2
if
n
is odd
1 + 2
(
n
+2)
/
2
if
n
is even(3)
TABLE IIL
IST OF PREFERRED PAIRS
[4]n N Preferred Polynomial (1) Preferred Polynomial (2)5 31 (5,2,0) (5,4,3,2,0)6 63 (6,1,0) (6,5,2,1,0)7 127 (7,3,0) (7,3,2,1,0)9 511 (9,4,0) (9,6,4,3,0)10 1023 (10,3,0) (10,8,3,2,0)11 2047 (11,2,0) (11,8,5,2,0)
As shown in figure 4, a Gold code sequence is generated byperforming bit by bit modulo-2 additions of two m-sequences.Due to their rapid synchronization and good correlation fea-tures these codes are widely used in GPS systems.
Leave a Comment