Case study: new IP

Two frequencies, one frame: combining after decoding, in RTL and on the board

Two radios on one ZCU102 receive the same frame on two frequencies. Each link decodes on its own, at its own rate. When both copies fail, the FPGA adds their soft bit values and, if that still fails, flips the few least reliable bits the CRC points to. One frame goes to the host.

Ran on our side. RTL simulation on our own desktop build runner; board runs on a ZCU102 with two radio cards that we operate remotely. No customer code or customer machines were involved.

+0.76 dBsoft combining over selection at PER 1 %, RTL simulation, 12 Mbps
+1.11 dBwith the CRC-aided bit flip, same point
1700/1700simulated frame pairs where the RTL output equals the reference model's
89.5 %frames delivered on the board with both links, against about 54 % estimated for selection (preliminary; software attenuation, not a controlled PER curve)

New blocks in orange. The decoder is our soft-output Viterbi decoder (HR-SOVA), a drop-in for the licensed Xilinx core with the same ports and latency plus an LLR per decoded bit. LLRs are descrambled into the PSDU-bit domain, so the two links can use different rates and scrambler seeds and still be added bit for bit.

Why combine after decoding

Combining before the decoder gives more gain, but only if both links use the same rate and scrambler seed, and it needs about twice the buffer. Combining after the decoder keeps each link free to pick its own rate, which is what a two-frequency link needs when one channel is worse than the other.

The theory is our soft-source information combining work. A Python model came first and set the target: about +0.4–0.5 dB over selection in AWGN. The RTL then had to match that model, not just pass its own tests.

What the combiner does with each frame

  1. FCS ok

    Out at once (fast path); its partner from the other link is dropped.

  2. FCS failed

    Waits for its partner: same length, same scrambler-seed tag, ending within a window set from the two links' rates.

  3. both failed

    LLRs added bit by bit; the sum's hard decision is checked against the FCS.

  4. sum failed

    CRC-aided flip: subsets of the 8 least reliable bits are tried, one per clock; the first whose CRC change cancels the frame's syndrome is flipped. A false pass is at most about 6 in 10⁸ combined frames.

  5. no partner

    Out alone, marked failed, once the window has passed.

Simulation: the RTL, end to end

Two full openofdm_rx receivers with HR-SOVA and the combiner, in the Vivado simulator. AWGN with independent noise per link, 256-byte frames, carrier offset up to ±30 kHz. Every run's output was checked against the reference model, frame for frame.

one linkselectionsoft combiningsoft + CRC flip
12 Mbps, equal SNR on both links. Only distances along the SNR axis are meaningful: 0 dB is an arbitrary reference, because the RTL and the Python model differ by about 3 dB in absolute SNR for a reason not yet settled. Combined points below a few per cent are estimated by pairing every failed frame of one link with every failed frame of the other at the same SNR; curves stop where too few frames fail on both links to estimate.

Gain over selection, RTL simulation

CaseTarget PERSoftSoft + flip
12 Mbps, equal links10 %+0.71 dB+0.88 dB
12 Mbps, equal links1 %+0.76 dB+1.11 dB
12 Mbps, one link 2 dB weaker1 %+0.57 dB+0.76 dB
54 Mbps, equal links (preliminary)1–10 %about +0.45 dBabout +0.65 dB

Selection is what a two-link receiver gets by keeping whichever copy passes its FCS. The gains agree with the Python model within about 0.25 dB. 54 Mbps has fewer runs so far.

First on-board results

Both cards on the air in a self loop on 5180 and 5220 MHz, 12 Mbps, 256-byte frames, 200 frames per mode. The signal was weakened with the radios' own transmit attenuation only, down to where each link alone loses a large share of frames. A frame counts only if it reaches the host byte-exact with a good FCS.

Orange: combined in the FPGA. Grey: one link alone. Dashed outline: estimated, not measured.

Reading the numbers

At point 1, link 0 alone delivers 22 % and link 1 alone 41 %. If the links fail independently, keeping whichever copy passes would deliver about 54 %. The combiner delivers 89.5 %; with the flip turned off, 75 %. At point 2 the same order holds: about 72 % for selection, 91 % soft, 94.5 % with the flip.

The combiner's own counters show frames that failed on both links being rescued, by the soft sum and by the flip. They also count other networks' frames on the same channels, so the figures here use only the host's byte-exact count.

First on-board results, preliminary: software attenuation, not a controlled PER curve; selection estimated from the single-link rates assuming independent links, modes measured one after another, uncontrolled lab RF with foreign Wi-Fi traffic.

No dB gain is claimed on the board. A cabled set-up with fixed attenuators will give the final curve.

What the flow caught on the way

Clock domains. Card 1 has its own 40 MHz reference, so its data clock is not locked to the core, and the transmit interface had no FIFO. A testbench with clocks 80 ppm apart showed one OFDM symbol corrupted every 10 ns / Δf. An asynchronous bridge fixed it before the first board run.

Timing. The first two-radio build failed by −0.799 ns: generated constraints copied the receive-side exceptions to card 1 but not the transmit-side ones. The implementation gate stopped it.

Pairing. Replaying back-to-back traffic through the model showed that pairing on length and time alone loses frames once a link misses a header. The per-frame scrambler-seed tag fixed it.

On the board. In combining mode no frame first reached the host, though the combiner counted every one. No testbench had joined the combiner to the original receive interface. Fixed in RTL with a new testbench; every mode then passed 20/20 byte-exact.

Fits with room to spare

The full Battail/Fossorier SOVA needed 139.3k LUTs out of context, so two receivers would not fit. The Hagenauer variant needs 69.8k and keeps most of the combining gain in the model.

Build (XCZU9EG)LUTWNS
One link, Xilinx Viterbi16.1 %+0.312 ns
One link, HR-SOVA + LLR32.6 %+0.312 ns
Two links + combiner + CRC flip61.7 %+0.159 ns

Not claimed. No on-board dB gain yet. Simulation is AWGN only. 54 Mbps results are preliminary. The decoder matches the Xilinx core; it does not beat it.

New receiver IP, from model to board?

We build it against a reference model, verify the RTL frame for frame, and measure it on hardware with the controls written down.

Leo Zhang, PhD, BitExact Labs
leo@bitexactlabs.com · WeChat leocheungZR