FPGA radios, verified from RTL to the air.

BitExact Labs helps small wireless and SDR teams take FPGA designs from RTL to a working board, with evidence at every step. The flow is operated by an AI coding agent and gated at every stage; an engineer makes the design and risk decisions, and nothing is accepted on the agent's word.

What
FPGA design and verification for wireless PHY and SDR
Platforms
Xilinx Zynq / Zynq UltraScale+, AD9361 radios, Linux drivers
Who
Leo Zhang, PhD; wireless and SDR researcher
Where
Vancouver, BC; English and Chinese
Every stage ends in a gate. A stage is done only when its gate passes.Failure on hardware: capture the IQ, write a new directed test, fix in RTL.
  1. Lint + CIVerilator lint, strict RTL build, transmitter samples equal to a Python referenceall greencloud CI, every push
  2. Block UVMSix IP testbenches, each against an independent reference modeltests pass, coverage metdesktop runner, xsim
  3. Chip UVMFrames end to end through TX, RX, ACK and loopback, configured as the driver doesall chip tests passdesktop runner, xsim
  4. Build gatesTiming, CDC, DRC, check_timing, packaged RTL identical to verified RTLWNS, WHS ≥ 0; cleanVivado lane
  5. Netlist simThe chip testbench on the synthesised netlistsame result as RTLVivado lane
  6. On the boardRegisters, loopback in the FPGA and over RF, IQ against a referencebyte-exact framesremote board scripts

openwifi, from RTL to the radio

openwifi is an open-source, real-time IEEE 802.11 baseband and MAC for Xilinx FPGAs with Analog Devices AD9361 radios. It already worked on hardware and is used by research groups. We put it through the gated flow, fixed what the flow found in the RTL, brought it up on a ZCU102 board, and used the same flow to build a new two-radio receiver on top of it.

All of this ran on our side, on open-source code: simulation and builds on our own desktop runner, Verilator checks on GitHub's hosted runners, board tests on a ZCU102 that we operate remotely. No customer code or customer machines were involved.

15issues found in a design that already worked on hardware; 13 fixed in RTL
11/11coverage spaces at target, including 120 rate × length × guard-interval bins
1000/1000frames byte-exact on the board, in the FPGA and over the radio
−71.6 dBworst-symbol EVM of IQ captured on the board, the int16 floor
Design
openofdm_tx, openofdm_rx, tx_intf, rx_intf, xpu (MAC), side_ch
Platform
Xilinx ZCU102 (XCZU9EG), two AD-FMCOMMS3 (AD9361) cards, Linux 5.15
References
An 802.11-2020 Python transmitter; generated and captured receiver vectors; a register model built from the driver's definitions
Chip testbench
Verified PHYs reused as the peer station: a second transmitter renders the frames a test wants, a second receiver decodes everything the device puts on air
Tools
Verilator, Vivado 2022.2 (xsim, implementation), Python, GitHub Actions, remote board access
Team
One engineer and an AI coding agent, 2026-11-25 to 12-03
Top view of a green ZCU102 board with a fan over the FPGA and two blue AD-FMCOMMS3-EBZ radio cards plugged in side by side along its right edge.
One of our ZCU102 boards with two AD-FMCOMMS3-EBZ radio cards, one on each FMC connector. Photo: BitExact Labs; labels blurred.

Every issue the flow found

Several are invisible to on-air checks. Issue A changes two coded HT-SIG bits on long HT frames; the receiver corrects them, so every frame still decodes. Only the bit-exact comparison catches it. With the fix, HT-SIG error rate at 3 dB SNR falls from 6.3 % to 1.7 %, about 0.5 dB of header margin.

#BlockIssueFound by

Fast IP models: receiver simulation about 6× faster

The Xilinx behavioural models of the receiver's multiplier, dividers and FFT took over 95 % of simulation time. The agent wrote bit- and cycle-exact replacements and proved them equal clock by clock, valid or not, across all 24 IP instances of an SNR sweep. Sign-off stays on the Xilinx models.

Xilinx modelsFast models
Vivado simulator, idle desktop, one simulation at a time, same seed, compile time excluded. All seven receiver tests: 3737 s → 637 s (5.9×).

On the board, single link

Bitstream loaded at run time on the board's stock image. Same tests for the original decoder and for our soft-output decoder.

TestXilinx ViterbiHR-SOVA + LLR
Registers (220)passpass
FPGA-internal loopback1000/10001000/1000
RF loopback (muted control)1000/1000 (0)1000/1000 (0)
Rate and length sweep51/5151/51
IQ capture vs reference42/4242/42
IQ capture, transmitter source100/100100/100
IQ capture, receiver source395/400*100/100
Frames delivered out of frames sent. * One 1.2 s gap of five captures in the first run, from a userspace stall; 3 × 100/100 on reruns. The sweep covers HT MCS 0–7, short GI and legacy 6–54 Mbps at 32, 200 and 1400 bytes.

New IP built with the same flow: a two-frequency receiver

Two radio cards on one ZCU102 send the same frame on two frequencies. Each link decodes on its own; the FPGA combines the two copies before handing one frame to the host. The theory is our soft-source information combining work.

New blocks in orange. The two links' soft bit values are added only after descrambling, which leaves each link free to pick its own rate. A frame that passes FCS goes out at once; a failed one waits for its partner; if both fail, LLRs are summed and up to eight least reliable bits are flipped against the CRC syndrome, one subset per clock.

Our decoder matches the Xilinx core

A soft-output Viterbi decoder written as a drop-in for the licensed Xilinx core: same ports and latency, plus an LLR output, bit-exact to its Python model. No evaluation-licence time limit.

Xilinx ViterbiHR-SOVA (ours)
Full-receiver RTL simulation, once with each decoder, both fed identical noise; 480 frames per point, bars show 95 % Wilson intervals. SNR is relative to what each rate requires. Neither decoder drops a frame at −2 dB. The tail difference (27/4/1 vs 30/8/3 frames) is too small to call a gain.

The two-radio build fits in about 61 % of the device

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.

XCZU9EG LUT use; right column is WNS. All builds meet timing with no unsafe clock pair.

Caught before hardware

DL-1. Card 1 has its own 40 MHz reference, so its DAC clock is not locked to the core, and the transmit interface has no FIFO. A testbench with clocks 80 ppm apart showed one OFDM symbol corrupted every 10 ns / Δf. An asynchronous bridge fixed it: 14/14 at ±80 ppm.

Timing. The first dual build failed by −0.799 ns: generated constraints copied receive-side exceptions to card 1 but not transmit-side ones. The S3 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. A per-frame tag, the 7-bit scrambler seed, fixed it.

Caught on the board

DL-2. In combining mode no frame reached the host (0/20), though the combiner counted every one. No testbench had joined the combiner to the original receive interface: a one-clock filter verdict, strobes one clock off, and back-to-back frames lost. Fixed in RTL with a new testbench.

On a fresh boot with the fix, every mode passes 20/20 byte-exact with good FCS: link 1 alone, both links combined in the FPGA, card 1 over RF, and both cards over RF in combining mode.

What the gain rests on. These clean-channel runs show the combined receiver working, not a gain. In RTL simulation (12 Mbps, AWGN) soft combining beats selection by 0.71–0.76 dB, and by 0.88–1.11 dB with the CRC-aided flip. First on-board results, preliminary, with software attenuation; not a controlled PER curve: 89.5 % of frames delivered against about 54 % for selection, where selection is estimated from the single-link rates assuming independent links, modes were measured one after another, in uncontrolled lab RF with foreign Wi-Fi traffic. No on-board dB gain is claimed until the cabled measurement. The decoder matches, not beats, the Xilinx core.

One engineer and an AI agent: what each did

The agent wrote the code, testbenches, scripts and documents, ran the flow and read the logs. The engineer chose among the options it laid out, approved anything touching the lab boards and did the physical work.

205 commits in nine days on top of upstream

Commits per day. Added about 7.5k lines of testbench, 3.9k of Python models and checkers, 1.5k of new RTL and 3.6k of documents; CI ran 194 S0, 62 S1/S2 and 22 S3 workflows.

In one recorded day, half the engineer's messages were approvals or choices

119 messages in one full day of seven parallel sessions (about 2.7k tool calls). Labelled by role by one person; one day only, so not a general rate.

The gates caught the agent's own errors too

Twelve agent errors in the recorded day cost time or a run. The agent caught seven itself, a later build step two (lint, a kernel module build) and the board three. Board errors were interface and set-up problems no simulation modelled. No message from the engineer that day corrected an RTL change, a test or a measured result.

agent itselflater build stepboardengineer
One square per error. None was caught directly by the engineer.

Research behind the work

Peer-reviewed work on software-defined radio, reliable wireless links, learning-based receivers and AI for chip design. Full list on Google Scholar.

Ways to work together

Fixed scope, written acceptance criteria, evidence every week. Everything is handed over so your team can rerun it.

EngagementWhat you getLength
Verification health checkOne IP block: test plan, a runnable testbench against an independent model, coverage report and a findings list you can reproduce. Fixed price.2–3 weeks
Verification environmentBlock- and chip-level UVM (or cocotb), register model, regressions and CI, handed over with documentation and training.By scope
Simulation to boardBuild gates for timing, CDC and DRC, register checks, loopback and IQ comparison against a reference on your board, remote or on site.By scope
Research platform supportopenwifi on your board and kernel; the licence-free decoder; FPGA feature changes (CSI, IQ or LLR export, MAC timing) delivered with tests; verification of RTL your group has changed; a data-path report you can cite. Authorship and acknowledgement agreed up front.By scope

Where each part runs

At your site

Your design and everything built on it

Your RTL, the testbenches written for it, regressions and CI on your servers (a self-hosted runner, set up the way we run ours), Vivado builds under your licences, tests on your boards. Results and reports stay with you.

At ours

Our IP and our set-up

Reference models, the licence-free decoder and the combiner, fast simulation models, our build runner, and a ZCU102 two-radio set-up for porting and comparison runs. Open-source work, such as openwifi changes, can run entirely with us.

Agreed per project

The agent and board access

The agent's language model is a cloud service: which of your files it may read, and under which provider account, is written down before work starts. Board access is remote, through your VPN and JTAG, or on site.

Who does what

The engineer

Sets scope and acceptance, decides what is a bug, a testbench error or a documented waiver, and makes every design trade-off.

The AI agent

Writes testbenches, model glue, RTL fixes and build and board scripts, runs the flow and drafts the reports. It cannot declare a pass.

The evidence

Every claim points to a run ID, commit or data file. Board measurements carry a control, such as the same test with the receiver muted.

Send us one block you are not sure about.

Tell us what it does and how you test it today. We will reply with what we would check first and what it would take. Run IDs, logs, reports and testbench excerpts are available under NDA.

Leo Zhang, PhD, BitExact Labs
Emailleo@bitexactlabs.com
WeChatleocheungZR
Based inVancouver, BC, Canada