Professional Documents
Culture Documents
PN Seq
PN Seq
I. INTRODUCTION
Pseudo random binary sequences (PRBSs), also known as
pseudo noise (PN), linear feedback shift register (LFSR)
sequences or maximal length binary sequences (m
sequences), are widely used in digital communications,
instrumentation and measurements [Lathi(1998)]. In a truly
random sequence the bit pattern never repeats. A pseudo
random binary sequence is a semi-random sequence in the
sense that it appears random within the sequence length,
fulfilling the needs of randomness, but the entire sequence
repeats indefinitely. To a casual observer the sequence
appears totally random, however to a user who is aware of the
way the sequence is generated all its properties should be
known. PN sequences have several interesting properties,
which are exploited in a variety of applications. Because of
their good autocorrelation two similar PN sequences can
easily be phase synchronized, even when one of them is
corrupted by noise. A PN sequence is an ideal test signal, as it
simulates the random characteristics of a digital signal and
can be easily generated. The following fig. 1 shows the
overview of PN sequence.
B. Run Property
Among the runs of 1s and 0s in each period of a maximum
length sequence, one half the runs of each kind are of length
one-fourth are of length two, one eighth are of length three,
and so on as long as these fractions represent meaningful
numbers of runs[Hykin(2001)].
C. Correlation Property
Correlation is a measure of similarity between two
sequences. When the two sequences compared are different it
is the cross correlation and when they are the same it is the
autocorrelation. Mathematically, the correlation between
two sequences x (k) and y(k) as a function of the time delay m
is expressed as
L 1
b1
b2
2
a1
b1
b3
3
a2
b2
a3
y2
bk
Shift
Register
K
a4
b3
+ +
y1
b4
ak
b4
bk
+
y3
Modulo-2
Adder
+
y4
yk
y1
1
y1 a1 b1
0 if a1 b1
1 if a1 b1
y1 a1 b1
0 if a b1
Fig. 2. Correlator 1
1 if a1 b1
156
ISSN 2249-6343
International Journal of Computer Technology and Electronics Engineering (IJCTEE)
Volume 1 , Issue 2
Fig.2 shows a correlator of length K. One sequence ai is For example, the polynomial 1 + xI4 + x15 means that the
shifted through a K bit shift register and the output of each outputs from stages 14 and 15 are modulo- 2 added and fed
stage is applied to a set of K XNOR gate for comparison.
back to the input of first stage of a 15- stage register to get a
215 - 1 length sequence, as shown in Fig. 4.
D. Shift and add
B. Series-parallel method for high-speed PN generation
When a PN sequence is shifted and the shifted sequence
The maximum PN data rate depends on the type of logic
modulo-2 added to the un-shifted sequence with an
exclusive-OR gate, the result is the same PN sequence with device used. Since only one gate delay (due to the XOR gate)
some other shift. This is illustrated in Fig. 3, where a 15 bit PN is introduced in the feedback path the maximum PN rate can
sequence, a (k)), is arbitrarily shifted by4 bits to get, a (k - 4). be close to the highest operating frequency of the shift
The two sequences when modulo-2 added give a sequence register. The operating frequency of the PN sequence can be
which is a 3 bit shifted version, a (k - 3), of the original pushed beyond the shift register clock rate by using a
sequence a (k). Only when the PN sequence is modulo-2 high-speed multiplexer. This technique uses the
added to itself without shift is the result a sequence of zeros subsequence property of a PN sequence already discussed
[Li and Hykin (1995)]. A direct application of this property is [Gupta and Kumareshan (2005)]. As we can demultiplex a PN
in the generation of two identical sequences with a known sequence into two similar sequences at half the rate, we can
also multiplex two PN sequences to obtain a sequence at
large delay between them.
double the rate. However, the two sequences should
necessarily have a phase shift of half the sequence
2 -1=15 bits
length.Fig.5 shows the circuit for getting PN sequence of
length 27 -1 using series parallel method.
4
Start
D3Q3
D7 Q7
D2Q2
D6Q6
D1Q1
D5 Q5
S1
S2
Start
D4Q4
157
ISSN 2249-6343
International Journal of Computer Technology and Electronics Engineering (IJCTEE)
Volume 1 , Issue 2
but a preferred maximal sequences can only produce Gold
codes, as shown in Fig.8. Fig 11(e) & (f) shows the encrypted
1111
1111
0000
speech signal and its spectrum using Gold sequences.
1110
0111
1110
1101
0001
1101
0011
0010
Up
counter
Down
counter
1010
0001
0101
1000
E. Barker Sequences
Barker sequences are short length codes that offer good
correlation properties. A Barker code is a sequence of some
finite length N such that the absolute value of discrete
autocorrelation function r () 1 for 0. Barker
sequences have many advantages over other PN sequences
[Kumar et al. (2008)]. These sequences have uniformly low
auto-correlation side these pseudo-random or pseudo-noise
(PN) properties include, among other properties, (a) balance,
(b) run and (c) auto-correlation lobes (1), but the size of
these families is small. Fig.9 shows Barker sequence
generator.
0011
0100
1010
1001
1000
0100
1011
0101
0010
0110
0110
0111
1001
1100
Fig. 6 State diagrams for (a) binary counter and (b) PN generator
X1
X5
X2
X3
X4
XOR
NOR
PN generator
(2N-1)
Fig. 9 Barker Sequence Generator
F. Kasami Sequences
Kasami sequences are also PN sequences of length N =
2n-1, which are defined for even values of n there are two
classes of Kasami sequences: (i) small set of Kasami
sequences, (ii) large set of Kasami sequences. Small set of
Kasami sequences are optimal in the sense of matching
Welchs lower bound for correlation functions. A small set of
Kasami sequences is a set of 2n/2 binary sequences [Kumar et
al. (2008)]. Fig.10 shows Kasami sequence generator.
Output
N
LOAD
CO
CE
Clock
D. Gold Sequences
Gold sequences are generated by the modulo-2 operation of
two different m-sequences of same length. Any two msequences are able to generate a family of many non-maximal
product codes,
a4
a3
a2
a1
a0
g(D)=45
a'4 a'3
a'2
a'1
a'0
158
ISSN 2249-6343
International Journal of Computer Technology and Electronics Engineering (IJCTEE)
Volume 1 , Issue 2
IV. COMPARATIVE ANALYSIS
h( x ) x 6 x 5 1
h' ( x) x6 x5 x3 x2 1
h' [d 0 , d1 ,....d n1 ]
G. Correlation Measures
PN sequences of desired length are generated as described,
and the MSAAC and MSACC measures are computed for the
code set. Table.1 shows the correlation measures for PN
sequences of length 16 bits and Table.2 is correlation
measures for 32-bit PN sequences. From the results, among
all PN sequences m-sequences have low MSAAC values
since these sequences have single peak auto correlation
function. But these sequences are not suitable for speech
encryption since there is only one possible m-sequence of
given LFSR length. Gold codes have less MSAAC and
MSACC values and for a given length of m-sequence one can
generate more number of Gold codes so, these sequence
effectively remove the intelligibility of the speech signal by
de-correlating the speech samples. The MWH codes have
better auto correlation properties as compared to WH codes,
but they have poor cross correlation properties. OVSF codes
with some specific repetitive sequences gives less correlation
values. The MSAAC and MSACC values for OVSF codes
with repetitive sequences {-1,-1,-1, 1} are less and these
values are equal to the correlation values of MWH codes.
Table 1: Correlation measures for PN sequences of length16 bits
MSACC
Sequence
MSAAC
m-sequences
0.3467
WH codes
4.0625
0.7292
MWH codes
1.8125
0.8792
V. CONCLUSION
OVSF codes
1.8125
0.8792
MSAAC
MSACC
m-sequences
0.4807
WH codes
6.5938
0.7873
MWH codes
3.2188
0.8962
OVSF codes
3.2188
0.8962
Gold codes
0.6866
0.7451
Barker sequence
0.8127
1.0505
REFERENCES
159
ISSN 2249-6343
International Journal of Computer Technology and Electronics Engineering (IJCTEE)
Volume 1 , Issue 2
[1]
[2]
J.G.Proakis,DigitalCommunications.4thEdition.United
McGraw-Hill, 2000.
[3]
[4]
[5]
[6]
[7]
[8]
[9]
States:
160
ISSN 2249-6343
International Journal of Computer Technology and Electronics Engineering (IJCTEE)
Volume 1 , Issue 2
(a)
Fig.15: Aperiodic (a) auto-correlation function, (b) cross-correlation
function, of MWH sequence of length 64 bits
161