Abstract
As Moore’s Law slows, hardware acceleration has become essential for maintaining performance gains. However, traditional CPU-FPGA integration is often limited by high communication overhead, restricting FPGAs to coarse-grained, monolithic tasks. This paper introduces Duet, a manycore-FPGA architecture that integrates embedded FPGAs (eFPGAs) as "first-class citizens" within a cache-coherent network-on-chip (NoC). By utilizing specialized Duet Adapters, Proxy Caches, and Shadow Registers, Duet enables high-efficiency, fine-grained hardware acceleration and hardware augmentation. Evaluation on a RISC-V-based manycore system demonstrates up to an 82% reduction in communication latency and a geometric mean speedup of 4.53x across diverse workloads.
Introduction
The slowing of Moore’s Law has shifted the focus of computer architecture toward specialized hardware acceleration. While Field-Programmable Gate Arrays (FPGAs) offer significant flexibility, their integration into modern systems-on-chip (SoCs) has historically followed a "coarse-grained" offloading model. In this model, only large, stable algorithms are offloaded to the FPGA to compensate for the high latency and low bandwidth of the CPU-FPGA interconnect.
This traditional approach suffers from two primary drawbacks. First, it leads to resource underutilization, as the host processor often remains idle while the FPGA computes. Second, the communication overhead makes it impractical to offload small, frequent tasks (fine-grained acceleration) or to use the FPGA to implement small hardware "widgets" that assist the CPU (hardware augmentation). Duet addresses these bottlenecks by treating the eFPGA as a peer to the CPU cores, integrated directly into the system's coherence fabric.
The Duet Architecture
Duet introduces a scalable architecture designed to bridge the gap between high-speed processors and slower reconfigurable logic. The system is built around three primary innovations:
1. Duet Adapters
These lightweight hardware units reside on the NoC and allow eFPGAs to participate in the system’s coherence protocol. Unlike traditional peripherals that require complex driver stacks and DMA transfers, Duet Adapters allow the FPGA to "snoop" on CPU caches and vice versa, enabling seamless data sharing at a cacheline granularity.
2. Proxy Caches
One of the most significant challenges in CPU-eFPGA integration is the clock speed disparity; eFPGAs typically run at a fraction of the processor's frequency. Duet solves this by placing a Proxy Cache in the fast processor clock domain. This cache handles complex coherence bookkeeping and timing-critical messages, shielding the slower eFPGA from being a bottleneck to the rest of the system's memory hierarchy.
3. Shadow Registers
To prevent CPU pipeline stalls during memory-mapped I/O (MMIO) requests, Duet utilizes Shadow Registers located in the fast clock domain. These registers provide immediate responses to CPU requests, allowing the processor to continue execution while the slower eFPGA processes the underlying data in the background.
Evaluation and Methodology
The authors implemented Duet (codenamed "Dolly") at the RTL level using the OpenPiton manycore research framework and 64-bit RISC-V Ariane cores. The architecture was evaluated using a suite of seven diverse benchmarks, ranging from mathematical functions (Tangent, Popcount) and data processing (Sorting, Dijkstra’s algorithm) to complex simulations (Barnes-Hut, PDES, and BFS).
Key Results
Duet demonstrates significant improvements over both non-coherent and uni-directional coherent baselines:
- Communication Efficiency: Duet reduced communication latency by up to 82% and increased effective bandwidth by up to 9.5x compared to standard integration methods.
- Performance Gains: The system achieved a geometric mean speedup of 4.53x over processor-only baselines. The most dramatic result was seen in Breadth-First Search (BFS) using lock-free queues, which achieved a 24.9x speedup.
- Area Efficiency: Despite the added hardware logic, Duet achieved a 0.39x lower Area-Delay-Product (ADP) than processor-only configurations, indicating that the performance gains far outweigh the silicon area costs.
- Scalability: The architecture scaled effectively from 4 to 16 cores, successfully mitigating the synchronization bottlenecks that typically plague software-only multi-threaded implementations.
New Paradigms for Acceleration
By lowering the barrier to communication, Duet enables two new modes of operation:
- Fine-grained Acceleration: Developers can partition algorithms so the CPU manages complex control flow while the eFPGA handles specific, compute-heavy inner loops.
- Hardware Augmentation: The eFPGA can be used to create specialized hardware "widgets," such as task schedulers or lock-free queues, which reduce the software overhead of synchronization in parallel programs.
Conclusion
Duet represents a shift in how reconfigurable logic is integrated into manycore systems. By treating the eFPGA as a coherent peer and decoupling clock domains through Proxy Caches, Duet enables a level of "harmony" between processors and FPGAs that was previously unattainable. The authors have open-sourced the Dolly prototype and its toolchain to facilitate further research into tightly coupled heterogeneous architectures.
Summary updated