Algorithm Search⌘K

Definitionadvanced

Frank code

Also called Frank polyphase code, Frank sequence.

A polyphase code of M squared chips with phases 2 pi m n / M, the rows of the DFT matrix in a row, which has zero periodic autocorrelation sidelobes and approximates a chirp.

The Frank code is a polyphase phase-coded waveform of N=M2N = M^2 chips whose phases are 2πmn/M2\pi mn/M for m,n=0,…,M−1m, n = 0, \dots, M-1. Its periodic autocorrelation is zero at every nonzero shift, and its aperiodic peak sidelobe falls roughly as 1/(πM)1/(\pi M) of the peak, −29.80-29.80 dB for 100 chips. It is in the same family as the Zadoff-Chu sequence, which has the same perfect periodic autocorrelation for every length, not only for squares. The binary Barker code stops at 13 chips, and the Frank code gives low sidelobes at longer lengths and keeps its peak under Doppler like the chirp it approximates.

Definition

Frank code. For an integer M≥2M \ge 2, let ω=ej2π/M\omega = e^{j 2\pi/M}. The Frank code of length N=M2N = M^2 is

amM+n=ωmn,m,n=0,1,…,M−1.a_{mM + n} = \omega^{mn}, \qquad m, n = 0, 1, \dots, M - 1.

So the chip with index ii has the phase 2π ⌊i/M⌋ (i mod M)/M2\pi\, \lfloor i/M \rfloor\, (i \bmod M)/M. Written as an M×MM \times M array, row mm is (1,ωm,ω2m,…,ω(M−1)m)(1, \omega^m, \omega^{2m}, \dots, \omega^{(M-1)m}): the code is the rows of the M×MM \times M DFT matrix, with the sign of the exponent reversed, placed one after the other.

A staircase chirp. Inside row mm the phase grows by 2πm/M2\pi m/M per chip, which is a constant frequency of m/(Mtc)m/(M t_c) for a chip length tct_c. So the code steps through MM frequencies, each held for MM chips, a staircase approximation of a linear frequency modulation pulse that sweeps a band of 1/tc1/t_c.

Perfect periodic autocorrelation (theorem). For every shift ss with s≢0(modN)s \not\equiv 0 \pmod{N},

r~[s]=∑i=0N−1a(i+s) mod N ai‾=0.\tilde r[s] = \sum_{i=0}^{N-1} a_{(i + s) \bmod N}\, \overline{a_i} = 0.

Proof. Write s=αM+βs = \alpha M + \beta with 0≤α,β<M0 \le \alpha, \beta < M, and i=mM+ni = mM + n. Let εn=1\varepsilon_n = 1 if n+β≥Mn + \beta \ge M and 00 otherwise. Then i+s=(m+α+εn)M+(n+β−εnM)i + s = (m + \alpha + \varepsilon_n)M + (n + \beta - \varepsilon_n M), and since ωM=1\omega^M = 1 the index reduction modulo NN and modulo MM do not change the power of ω\omega, so

ai+s ai‾=ω(m+α+εn)(n+β)−mn=ωmβ ω(α+εn)(n+β).a_{i+s}\,\overline{a_i} = \omega^{(m + \alpha + \varepsilon_n)(n + \beta) - mn} = \omega^{m\beta}\, \omega^{(\alpha + \varepsilon_n)(n + \beta)}.

For a fixed nn, the sum over mm of ωmβ\omega^{m\beta} is 00 if β≠0\beta \ne 0, so r~[s]=0\tilde r[s] = 0. If β=0\beta = 0, then εn=0\varepsilon_n = 0, the sum over mm is MM, and r~[s]=M∑nωαn\tilde r[s] = M\sum_n \omega^{\alpha n}, which is 00 since α≠0\alpha \ne 0. □\square

A sequence of constant magnitude with this property is called a CAZAC sequence (constant amplitude, zero autocorrelation).

Examples and non-examples

M=2M = 2. ω=−1\omega = -1 and the code is (1,1,1,−1)(1, 1, 1, -1), a binary code of 4 chips and a Barker code. Its aperiodic autocorrelation is 4,1,0,−14, 1, 0, -1.

M=3M = 3. In units of 2π/32\pi/3, the phases are (0,0,0, 0,1,2, 0,2,1)(0, 0, 0,\ 0, 1, 2,\ 0, 2, 1). Each group of three is one row of the DFT matrix.

M=4M = 4. The code has 16 chips with the phases 0,π/2,π,3π/20, \pi/2, \pi, 3\pi/2. The magnitudes of its aperiodic autocorrelation begin 16,1,1.414,1,0,1,1.414,1,0,…16, 1, 1.414, 1, 0, 1, 1.414, 1, 0, \dots, so the peak sidelobe is 2\sqrt 2, which is −21.07-21.07 dB.

Peak sidelobe against length. Computed from the codes:

MM NN largest ∣r[k]∣\lvert r[k] \rvert PSL
2 4 1 −12.04-12.04 dB
3 9 1 −19.08-19.08 dB
4 16 1.414 −21.07-21.07 dB
5 25 1.618 −23.78-23.78 dB
6 36 2 −25.11-25.11 dB
7 49 2.247 −26.77-26.77 dB
8 64 2.613 −27.78-27.78 dB
9 81 2.879 −28.98-28.98 dB
10 100 3.236 −29.80-29.80 dB

The ratio of the peak NN to the largest sidelobe is 30.90 for M=10M = 10, close to πM=31.42\pi M = 31.42: the PSL is about 1/(πM)1/(\pi M) for large MM (a rule from these values and the staircase chirp, not a theorem here). The periodic sidelobes were zero for every MM from 2 to 10, as the theorem says.

Doppler (computed with one sample per chip). For M=4M = 4, at a Doppler shift with νT=1\nu T = 1, the largest output is 0.85 of the peak, moved by one chip in delay, as for a chirp with its range-Doppler coupling. The Barker code of 13 chips has no peak left at zero delay at the same νT\nu T.

Non-example: Zadoff-Chu sequences. A Zadoff-Chu sequence of length NN has the phases −πun(n+c)/N-\pi u n(n + c)/N with c=N mod 2c = N \bmod 2, for a root uu coprime to NN. It is also CAZAC, but its phase is a smooth quadratic in nn, not a product of the row and column indices, and it exists for every NN. The two are often treated together as Frank-Zadoff-Chu sequences.

Non-example: a sampled chirp. A chirp sampled at one sample per chip has the phases πkn2tc2\pi k n^2 t_c^2, quadratic in nn. It is close to a Zadoff-Chu sequence, not to a Frank code, and it has zero periodic sidelobes only for special choices of the sweep.

Non-example: MM not an integer square root. For a length NN that is not a square, there is no Frank code. Use a Zadoff-Chu sequence or a P code of the same family.

  • Zadoff-Chu sequence. The Zadoff-Chu sequence is the other main CAZAC sequence. It is the reference signal of LTE and 5G, where the zero periodic autocorrelation matters.
  • Barker code. The Barker code is binary and has a lower PSL for the lengths at which it exists, up to 13 chips.
  • Costas array. A Costas array codes frequency, not phase, and its frequency order is a permutation, not a staircase. Its ambiguity function is close to a thumbtack, with no ridge.
  • Mismatched filter. For the Frank code of 16 chips, a mismatched filter of 47 taps lowers the PSL from −21.07-21.07 dB to −30.76-30.76 dB at a loss of 0.664 dB.
  • Pulse compression. Polyphase codes are used for pulse compression in digital radars, where the phases are generated directly.

References

  1. R. L. Frank, Polyphase codes with good nonperiodic correlation properties, IEEE Transactions on Information Theory 9(1), 1963, pp. 43 to 45 (the code with phases 2 pi m n / M, its periodic and aperiodic correlation)
  2. Nadav Levanon and Eli Mozeson, Radar Signals, Wiley, 2004, Chapter 6, Phase-Coded Pulse (polyphase codes, the Frank code and its ambiguity function)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/63SGZP/text.yaml