Kasami
Kasami
Multiple Access
4.5 m-sequence
Office Hours:
BKD 3601-7
Tuesday 9:30-10:30
Dr.Prapun Suksompong Tuesday 13:30-14:30
1 prapun.com/ecs455 Thursday 13:30-14:30
Binary Random Sequences
While DSSS chip sequences must be generated
deterministically, properties of binary random sequences are
useful to gain insight into deterministic sequence design.
A random binary chip sequences consists of i.i.d. bit values
with probability one half for a one or a zero.
Also known as Bernoulli sequences/trials, “coin-flipping”
sequences
A random sequence of length N can be generated, for
example, by flipping a fair coin N times and then setting the
bit to a one for heads and a zero for tails.
2
Binary Random Sequence
X-4 X-3 X-2 X-1 X-0 X1 X2 X3 X4
Coin-flipping sequence H H T H H T H T T
Bernoulli trials/sequence 1 1 0 1 1 0 1 0 0
Binary (indp.) random sequence -1 -1 1 -1 -1 1 -1 1 1
4
Note: A run is a subsequence of identical symbols within the sequence.
7
(See Section 13.4.1 in [Lathi, 1998])
CLK
(Degree: r = 3 use 3 flip-flops)
1 0 x 1x 1x
2 3
9
(See Section 13.4.1 in [Lathi, 1998])
CLK
(Degree: r = 3)
1 0 x 1x 2 1x 3
The gi’s are coefficients of a primitive polynomial.
11
Primitive Polynomial
Definition: A LFSR generates an m-sequence if and only
if (starting with any nonzero state,) it visits all possible
nonzero states (in one cycle).
Technically, one can define primitive polynomial using
concepts from finite field theory.
Fact: A polynomial generates m-sequence if and only if it is a
primitive polynomial.
Therefore, we use this fact to define primitive polynomial.
For us, a polynomial is primitive if the corresponding
LFSR circuit generates m-sequence.
12
Sample Exam Question
Draw the complete state diagrams for linear feedback shift
registers (LFSRs) using the following polynomials. Does either
LFSR generate an m-sequence?
1. x3 x 2 1
2. x3 x 2 x 1
13
Nonmaximal linear feedback shift
register
x3 x 2 x 1
14
m-Sequences: More properties
1. The contents of the shift register will cycle over all possible 2r-1 nonzero states
before repeating.
2. Contain one more 1 than 0 (Slightly unbalanced)
3. Shift-and-add property: Sum of two (cyclic-)shifted m-sequences is
another (cyclic-)shift of the same m-sequence
4. If a window of width r is slid along an m-sequence for N = 2r-1 shifts, each r-
tuple except the all-zeros r-tuple will appear exactly once
5. For any m-sequence, there are
One run of ones of length r
One run of zeros of length r-1
One run of ones and one run of zeroes of length r-2
Two runs of ones and two runs of zeros of length r-3
Four runs of ones and four runs of zeros of length r-4
…
2r-3 runs of ones and 2r-3 runs of zeros of length 1
00101110010111001011100101110010111001011100101110010111
16
Ex: Properties of m-sequence (con’t)
25-1 = 31-chip m-sequence
1010111011000111110011010010000
1010111011000111110011010010000
Runs:
11111 1
0000 1
111 1
000 1
11 2
00 2
1 4
0 4
There are 16 runs.
17
m-Sequences (con’t)
00101110010111001011100101110010111001011100101110010111
0010111
1001011
18
Autocorrelation and PSD
(Normalized) autocorrelations of maximal sequence and
random binary sequence.
20