Back to Tech Projects

Sentinel-1 SAR on FPGA

I processed 1,000 raw Sentinel-1C radar echoes on a Tang Nano 20K FPGA. The board performed range compression and matched the Python integer model on all 4,096,000 retained complex samples. I used the host to focus the data into imagery and compare storage formats.

From satellite packets to range samples

Sentinel-1C acquired this Stripmap S2 scene over the Seattle area at 14:28:40 UTC on April 10, 2025, during acquisition B783. I decoded 1,000 consecutive VV bypass-mode instrument packets starting at byte 1,107,282,880. Each echo contained 18,574 complex I/Q samples. The 46,508,000-byte raw block gzipped to 36.36 MB, a 21.8% lossless reduction verified against the original SHA-256 digest.

The packet rank and pulse repetition interval counter identify the originating transmit pulse. I used its chirp parameters to build a floating-point matched filter in Python. The 4,396-sample chirp is longer than the intended 4,096-sample output window, so I correlated two overlapping 8,192-point blocks and retained 3,797 valid results from the first and 299 from the second. The full-width host reference kept all 14,179 valid range lags.

Fixed-point FFT and board verification

The Verilog core uses an in-place radix-2 FFT with one butterfly every eight clock cycles. Between forward and inverse passes, it multiplies the spectrum by streamed complex Q1.15 coefficients, reading bin pairs before overwriting them so the same sample RAM can feed the inverse FFT. The host restores scale after the unnormalized inverse transform.

Quarter-wave twiddle symmetry reduced the FFT and ROM from 44 to 40 block RAMs. The filter table would have required another 15 blocks on a board with 46 total. Streaming it kept the design within the memory budget. The short-upload build had a post-route timing estimate of 72.39 MHz and ran at 27 MHz in the board tests. The SRAM load was temporary.

Numerical and hardware checks
CheckResult
RTL FFT simulation8,192 forward and 8,192 inverse outputs matched Python
First complete echo on the board16,384 complex outputs matched before windowing
Full physical run1,000 echoes and 2,000 FFT blocks
Retained complex samples4,096,000 of 4,096,000 matched bit for bit
Largest observed stage widths18 bits per component forward, 26 bits inverse
Three fractional guard bits0.067% relative complex error before packing
Packed 12-bit I/Q0.207% relative complex error and zero strongest-peak shifts

The host packed each I/Q pair into three bytes with one float32 scale per echo, then gzipped the payload to 11,049,255 bytes. The archive matched the integer model’s archive byte for byte. Its 76.2% reduction from raw includes retaining about 29% of the valid range width.

UART throughput and CPU baseline

At 115,200 baud, per-command acknowledgments dominated the first hardware run. Bulk mode cut one full echo from 393.30 s to 25.80 s, a 15.2× improvement. Windowed readback cut returned data from 163,840 to 40,960 bytes per echo. The final upload mode filled the last 3,498 zeros of the second block on the FPGA, saving another 13,992 transmitted bytes per echo.

Physical board timing
Transfer modeScopeMeasured time
Per-command UARTOne echo, full readback393.30 s
Bulk UARTSame echo, full readback25.80 s
Valid-window readbackEchoes 0, 499, and 99915.11 s per echo
Short upload and windowed readbackFirst 10 consecutive echoes13.89 s per echo
Full short-upload run1,000 echoes13,894.42 s total

The full run spent 4,505.07 s uploading samples, 5,729.97 s streaming coefficients, and 3,563.44 s on readback. Estimated FFT core time was 63.11 s. A single-worker Intel Core i7-10610U baseline took 0.272 ms per echo for the same range window with decoded input and output already in RAM. That median came from seven trials, each repeating a warmed ten-echo workload 400 times. It measures the in-memory range transform, while the board timing includes serial transfers and verification.

What survived azimuth focusing

I used a host Range-Doppler focuser with packet timing, approximate orbit geometry, Doppler weighting, and range-cell migration correction. I focused a floating-point crop alongside the FPGA archive to isolate the effects of range selection. In their common interior, the archive had 0.140% relative complex error, 0.999999 coherence, and 0.0285 dB brightness error at the 95th percentile for reference pixels at or above median brightness. The brightest feature retained its position and width.

Focused floating-point and FPGA archive imagery with differences
Same-window comparison of the floating-point reference and the FPGA archive after host focusing.
Full-width SAR image with the FPGA range window outlined
The FPGA archive retained 4,096 of the 14,179 valid range samples per echo.

Full-width compression

I swept quantization depth, per-echo scaling, fixed and adaptive 256-sample blocks, and byte layout with gzip and Zstandard. I also compared encoding before and after azimuth focusing. The full-width archive grid contains 1,000 azimuth rows by 14,179 range columns.

Full-width host encoding results
ProductArchive sizeMeasured fidelity
Pre-focus 8-bit complex I/Q17.13 MB2.81% focused complex error
Pre-focus 10-bit complex I/Q25.56 MB0.697% focused complex error
Focused complex I/Q, 2D DCT and Zstandard13.85 MB2.44% complex error, 3.10° phase error at the 95th percentile
Focused 6-bit log magnitude, JPEG 20006.54 MB0.679 dB brightness error at the 95th percentile, +0.024 dB mean power bias

The complex archive was 70.2% smaller than the raw packet block. The intensity-only archive was 85.9% smaller and omits phase. Its PNG preview covers every range column over the central 348 azimuth rows, with a 35 dB display window.

Pre-focus archive size versus focused complex error across encoding settings
Pre-focus encoding sweep across bit depths, scaling strategies, and archive formats.
Post-focus rate-distortion charts for complex and intensity products
Host encoding after azimuth focusing. The complex and intensity products have different error metrics.
Host-focused reference and decoded SAR imagery shown on the same intensity scale
Same-scale comparison of the host-focused reference and decoded products.
Full-width grayscale radar strip decoded from the intensity archive
Open the original 14,179 × 348 PNG to inspect the decoded radar strip at full resolution.

Rate-matched FDBAQ comparison

I compared the focused complex codec with a local Flexible Dynamic Block Adaptive Quantization (FDBAQ) proxy tuned to 3.18 bits per raw I or Q component. The proxy used the published Huffman and reconstruction tables with a local rate selector. Both comparisons used full valid range coverage and two non-overlapping blocks from the same acquisition.

Payload size and focused complex error
Echo blockLocal FDBAQ proxyFocused complex codec
Original 1,000 echoes14.87 MB · 9.57%13.85 MB · 2.44%
Block 8,000 echoes later14.87 MB · 9.41%13.79 MB · 2.49%
Focused image and error comparison for the first Sentinel echo block
First block. The focused codec used about 7% fewer payload bytes than the local proxy.
Focused image and error comparison for the second Sentinel echo block
Second block from the same acquisition. The focused codec measured 2.49% complex error.

The images use experimental, uncalibrated slant-range coordinates. Validation against a co-registered Sentinel-1 Level-1 SLC, a verified nominal FDBAQ encoder, and a distinct acquisition remain open.