FY3magic by JK4U.net
▶ Watch a pass
FY3magic / Demodulator & Viterbi in the FPGA / Two Viterbi decoders in hardware
Depuncturing · K = 7 · rate 3/4

Two Viterbi decoders in hardware

FengYun-3 protects its data with the CCSDS K = 7 convolutional code, punctured to rate ¾, on both QPSK branches. FY3magic runs both Viterbi decoders inside the FPGA — one trellis step per clock, soft decisions, in real time.

Before a decoder can work it must know where the puncturing pattern starts, which decoder output comes first and whether the bit stream is inverted. A new concept here: the FPGA works all of that out by itself — node synchronisation in hardware, no help from the host, re-acquired within milliseconds after a fade.

Erasures from the puncturing carry no weight in the metrics, exactly as in a software decoder — so the FPGA reaches the same threshold as SatDump's own decoder.

Convolutional code (K = 7)
G_1 = 171_8,\quad G_2 = 133_8, \qquad c^{(j)}_k = \bigoplus_{i=0}^{6} g^{(j)}_i\, u_{k-i}
Puncturing to rate 3/4
P = \begin{pmatrix} 1 & 1 & 0 \\ 1 & 0 & 1 \end{pmatrix}\qquad R = \frac{3}{4}
Add-compare-select (64 states)
\Gamma_k(s) = \min_{s' \to s}\Big[\,\Gamma_{k-1}(s') + \lambda_k(s' \to s)\Big], \qquad \lambda_k = \sum_{j} \big|\,r^{(j)}_k - (2c^{(j)}_k-1)\big|_{\text{soft}}
Soft I / Q4-bit metricsDepunctureinsert erasuresViterbi Iadd-compare-selectViterbi Qadd-compare-selectDifferentialFengYun codingASM correlatornormal / invertedCADU1024 bytes · RS(255,223)×4Node sync (hardware)puncturing phase · branch order · polarity — found by the FPGA itself, re-acquired in milliseconds
← PreviousCarrier recovery: Costas + FLL
More in Demodulator & Viterbi in the FPGA

Open in the interactive tour →

← Back to
←→ chapters · ↑↓ sections