• Tidak ada hasil yang ditemukan

Spectral properties of the chip sequence

2.5 Chip sequence

2.5.1 Spectral properties of the chip sequence

2.5.1.1 Infinite period

We wish to find the power-spectral density of a random chip sequence of infinite length. A chip sequence is not a stationary process, since if timest1 andt2 both lie inside the same ∆T interval, then the correlation is exactly 1, and if they live in different ∆T intervals, the correlation is 0, and hence there is some absolute time dependence. Signals with this discrete structure are a type of cyclostationary process.

The autocorrelation function of a random signal is defined

rtt(t, τ) =Ex(t)¯x(t−τ) (2.5.3)

and if the signal is wide-sense stationary, then so is the autocorrelation and we havertt(t, τ) =rtt(τ).

In this case, the Wiener-Khinchin theorem shows how to calculate the power spectral density (PSD) Ψ:

Ψ(f) =Frtt(τ). (2.5.4)

The theorem is useful because stationary signals are not necessary square-integrable, and so care must be taken when using the Fourier transform. When x is square-integrable, then the direct formula for the PSD is:

Ψ(f) = lim

T→∞

E|x(fˆ )|2

T (2.5.5)

where ˆxis understood to be the Fourier transform ofxrestricted to the domain [−T /2, T /2].

Let g be a boxcar signal; that is, it is zero everywhere except it is 1 on the interval [0,∆T].

Then a chip sequencec(t) with infinite period can be viewed as a superposition of shifted versions of

±g. Neither the shifting nor the ±1 affects|G(f)|, so intuitively the PSD of an infinite-period chip sequence is just|G(f)|2/T using (2.5.5). It turns out this is correct, and we can make it rigorous as follows, using a subtle trick (see, e.g., [BM90]) to makec(t) stationary. This is also known as the time-average autocorrelation function [Pro01].

The autocorrelation ofc(t) is

rtt(t, τ) =Ec(t)c(t+τ) =

X

j=−∞

X

k=−∞

E(cjck)g(t−k∆T)g(t+τ−j∆T) (2.5.6)

=

X

k=−∞

g(t−k∆T)g(t+τ−k∆T) (2.5.7)

due to the independence ofck andcj. This is not stationary because it depends on τ and t.

The insight is that a time shift ofc(t) will have the same PSD (since it only changes the phase of the Fourier transform), so we’ll consider a random shift of the chip sequence by an amount

0 5 10 15 20 25 30

−130

−125

−120

−115

−110

−105

−100

−95

Freq (GHz)

Power(dB)

PSD for chip sequence of infinite repetition rate Simulation: N=4096, grid=6.25ps, # trials=150

M.C. simulation theory

Figure 2.21: PSD Ψ of a chip sequence with infinite repetition rate; see (2.5.9). This plot was generated by averaging many sample realizations of very long chip sequences. The chip sequence is modulated atfs= 5 GHz.

φ∼U[0,∆T]. The expectation is now taken overci and overφ.

Taking the expectation over φis just the integral from [0,∆T] divided by ∆T. Each term k in the sum is an integral from [k∆T,(k+ 1)∆T], and thus thet dependence integrates out:

rtt(t, τ) =rtt(τ) = 1

∆T Z

−∞

g(t)g(t+τ)dt.

We are now in position to use the Wiener-Khinchin theorem (2.5.4), and take the Fourier trans- form with respect to τ (we can change the order of integration using Fubini’s theorem since the integrands are well-behaved). UsingFg(t+τ)(f) =ei2πf tG(f), we have

Ψ(f) = 1

∆T Z

−∞

g(t)ei2πf tG(f)dt

=G(f)

∆T Z

−∞

g(t)ei2πf tdt

=G(f)

∆T G(f¯ ) =|G(f)|2/∆T (2.5.8)

which agrees with the intuition. In our system,g is a rectangular window, so using (2.5.2),

Ψ(f) = 1 fs

sinπf /fs

πf /fs

2

. (2.5.9)

See Figure 2.21 for a plot. Most of the power falls inside the first lobe from [−fs,+fs].

2.5.1.2 Finite period

The actual RMPI design repeats the PRBS chip sequence everyNchip. Since c(t) is then periodic, it has a Fourier series representation, which we now derive.

0 5 10 15 20

−0.4

−0.2 0 0.2 0.4 0.6 0.8 1

Lag

Sampleautocorrelation

LFSR,r= 4, L= 24–1 = 15 randn, period L randn, infinite period

Figure 2.22: Sample autocorrelations of some PRBS sequences. The LFSR is of maximal lengthL= 2r1. For lags greater than 1 and less thanL, the autocorrelation of the LFSR is1

L, whereas it is 0 in this region for a random sequence. Therandnsequences are the signs of a pseudo-random sequence generated with Matlab’s default randnroutine which approximates a Bernoulli random variable very well.

0 1.25 5 10 15 20 25

−140

−120

−100

−80

Frequency (GHz)

Power/frequency (dB/Hz)

chip sequence of periodicity 4, i.e. 1250.0 MHz rate

0 0.38 5 10 15 20 25

−140

−120

−100

−80

Frequency (GHz)

Power/frequency (dB/Hz)

chip sequence of periodicity 13, i.e. 384.6 MHz rate

0 5 10 15 20 25

−140

−120

−100

−80

Frequency (GHz)

Power/frequency (dB/Hz)

chip sequence of periodicity 60, i.e. 83.3 MHz rate

0 5 10 15 20 25

−140

−120

−100

−80

Frequency (GHz)

Power/frequency (dB/Hz)

chip sequence of periodicity 128, i.e. 39.1 MHz rate

Figure 2.23: Spectrum of finite length PRBS. The longer the periodicity in the PRBS, the finer the grid spacing, which in general is advantageous. Each row is generated by a differentNchip. Contrast this to the smooth spectrum of a chip sequence of infinite length in Figure 2.21.

Let Nchipbe the repetition length of the chipping sequence (Tchip=Nchip∆T; see Table 2.1 on page 45). Then the Fourier series is

ˆ

c[k], 1 Tchip

Z Tchip

0

c(t)e−i2πkt/Tdt

= 1 T

Nchip−1

X

n=0

Z (n+1)∆T n∆T

cnei2πkt/Tdt

= 1 T

Nchip−1

X

n=0

cn T

−i2πk

ei2πk(n+1)/Nchip−ei2πk(n)/Nchip

= sin(πk/Nchip) πk

Nchip−1

X

n=0

cnei2πk(n+12)/Nchip.

With the convention that sin(0)/0 = 1, this holds for any integerk. Note that this would be periodic

inNchip if it were not for the sinc term. For nonzerok,

ˆ

c[k+τ Nchip] = sin(πk/Nchip+πτ) π(k+τ N)

Nchip−1

X

n=0

cnei2πk(n+12)/Nchip(−1)τ = k k+τ Nchip

ˆ

c[k] (2.5.10)

and for zerok, ˆc[τ Nchip] = 0 ifτ 6= 0.

To get the Fourier transform from the Fourier series, we haven

ˆ c(f) =

X

k=−∞

ˆ

c[k]δ(f − k Tchip

) (2.5.11)

which has discrete spacingTchip. It is almost periodic in Nchip/Tchip=fs, except for the decay of k/(k+τ Nchip) from equation (2.5.10).

To find the power-spectral density of a finite-length sequence, we revisit (2.5.6). The double sum no longer collapses to j = k but rather j = k+j0Nchip for any integer j0. Otherwise, the same reasoning holds, and the equivalent of (2.5.8) is

Ψ(f) =|G(f)|2

∆T

X

j0=

ei2πf j0Tchip

=|G(f)|2

∆T 1 Tchip

X

k=−∞

δ(f− k Tchip

) = 1 Nchip

sinπf /fs

πf /fs

2

X

k=−∞

δ(f− k Tchip

) (2.5.12)

where we used the Poisson summation formula [Mal08]:

X

k=−∞

ei2πkt/T =T

X

k0=−∞

δ(t−k0T).

If the PRBS is generated via a linear-feedback shift register (LFSR), the statistics change slightly, due to the extra correlation. In particular, outputs cn of a maximal LFSR with r taps, where L=Nchip= 2r−1, have exactly (L+ 1)/2 values of +1 and (L−1)/2 values of−1. Furthermore, half the runs of consecutive +1 or −1 are of length one, one-fourth are of length two, one-eighth are of length three, etc. [PSM82]. The effect of this is seen in Figure 2.22; in contrast to a random sequence, the autocorrelation is not 0 whenτ >∆T. The properties of LFSR are relevant since the Northrop Grumman design uses Gold codes, which are based on LFSR output. Properties of LFSR sequences have been much studied since they are used in spread spectrum communication and can also be converted into 2D masks for use in coded aperture interferometry. For reference we give the one-sided PSD of a LFSR sequence with lengthNchip[PSM82]:

Ψ(f) = Nchip+ 1 Nchip2

sinπf /fs

πf /fs

2

X

k=−∞

δ(f− k Tchip

), f >0 (2.5.13)

and Ψ(0) =N 1

chip2δ(0).This is quite similar to (2.5.12).