Case study: new IP
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.
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.
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.
Out at once (fast path); its partner from the other link is dropped.
Waits for its partner: same length, same scrambler-seed tag, ending within a window set from the two links' rates.
LLRs added bit by bit; the sum's hard decision is checked against the FCS.
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.
Out alone, marked failed, once the window has passed.
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.
| Case | Target PER | Soft | Soft + flip |
|---|---|---|---|
| 12 Mbps, equal links | 10 % | +0.71 dB | +0.88 dB |
| 12 Mbps, equal links | 1 % | +0.76 dB | +1.11 dB |
| 12 Mbps, one link 2 dB weaker | 1 % | +0.57 dB | +0.76 dB |
| 54 Mbps, equal links (preliminary) | 1–10 % | about +0.45 dB | about +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.
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.
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.
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.
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) | LUT | WNS |
|---|---|---|
| One link, Xilinx Viterbi | 16.1 % | +0.312 ns |
| One link, HR-SOVA + LLR | 32.6 % | +0.312 ns |
| Two links + combiner + CRC flip | 61.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.
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