FPGA

Acceleration on an Ultra96

Speeding up real workloads on a Zynq UltraScale+ board, from multicore and NEON SIMD on its ARM cores to custom FPGA kernels in Vitis HLS. All numbers were measured on the board.

20.6×FPGA vs. CPU, two compute units
417×HLS kernel, first design to final
9.7×NEON speedup on a filter
1.82×two-core pipeline

Multicore and SIMD

A video compression pipeline (scale, filter, differentiate, compress) split into a balanced two-core pipeline:

With NEON, the filters reached 8.0× and 9.7×, at or above the 8-lane ideal, once the coefficients were stored as bytes so the vector unit could skip widening every pixel.

An HLS matrix multiply

DesignLatencyDSP
Original24.66 ms5
Unrolled13.64 ms8
Pipelined, II = 10.059 ms320

Unrolling barely helped, because floating-point adds can't be reordered. Pipelining the outer loop and partitioning the buffers so 64 values could be read per cycle got it to II = 1.

Area-time plot: DSP and BRAM count against expected latency on a log scale for the three designs
Each step trades area for speed.

The full system

A larger streaming matrix multiply, tuned with dataflow inside the kernel, an out-of-order queue to overlap transfers, and a second compute unit. Device time against the CPU:

Vitis Analyzer timeline with kernel runs overlapping data transfers across two compute units
Kernel runs overlapping data transfers. The final build uses 89% of the chip's DSPs at 3.0 W.

← Back to the site