Abstract
HEROv2 is a fully open-source, full-stack research platform designed to facilitate architectural exploration of heterogeneous computing systems. It combines 64-bit host processors with 32-bit RISC-V accelerator clusters, providing a complete hardware-software stack that includes a custom LLVM-based compiler and an "AutoDMA" feature. HEROv2 enables cycle-accurate exploration that is significantly faster than traditional software simulators, bridging the gap between isolated component design and full-system integration.
Introduction
Designing modern heterogeneous systems is a complex, full-stack challenge. Researchers must navigate host-to-accelerator offloading, data sharing across disparate memory models, and the management of complex memory hierarchies by compilers. Traditional software simulators often face a "speed vs. accuracy" trade-off, while existing hardware prototypes are frequently closed-source or restricted to uniform data models. HEROv2 addresses these barriers by providing a modular, FPGA-based prototype that supports mixed-ISA and mixed-data-model environments.
System Architecture and Methods
The HEROv2 ecosystem integrates hardware, toolchain, and runtime components into a unified research environment.
Hardware Architecture
The platform utilizes an FPGA-based architecture featuring an application-class host (such as ARMv8 or RV64) and a programmable many-core accelerator (PMCA) based on clusters of 32-bit RISC-V cores. A high-performance on-chip network connects these components, while a hybrid IOMMU allows the accelerator to share the host’s virtual address space, simplifying the programming model for data sharing.
Toolchain and AutoDMA
A custom LLVM-based compiler handles "mixed-data-model" compilation, automatically promoting 32-bit pointers to 64-bit when necessary. A standout feature is the AutoDMA compiler plugin, which automates loop tiling and DMA transfer inference. This relieves programmers from the manual management of the accelerator's scratchpad memory (SPM), which traditionally increases code complexity significantly.
Runtime and OpenMP Support
HEROv2 supports OpenMP 4.5 offloading, enabling the use of industry-standard pragmas to target the accelerator. This allows for a seamless transition from high-level application code to optimized hardware execution.
Evaluation and Results
The platform was evaluated using the Polybench/ACC benchmark suite and the Darknet object detection framework, testing performance across application, toolchain, and architectural levels.
Performance and Efficiency
Applications running on local memory with DMA transfers achieved an average speedup of 4.3x (up to 5.3x for Darknet) compared to execution from external main memory. The AutoDMA feature provided speedups of up to 4.4x for programs with high spatial locality, achieving approximately 85% of the performance of handwritten code without requiring manual source modifications.
Key Insights
- Code Complexity: Manual DMA management can increase code complexity by over 2.6x. AutoDMA effectively mitigates this burden while maintaining high performance.
- System-Level Bottlenecks: Prototyping revealed that doubling on-chip network width can increase contention in the tightly-coupled data memory (TCDM), potentially decreasing performance by 10%—an insight that highlights the value of full-system evaluation.
- ISA Extensions: Utilizing Xpulpv2 RISC-V extensions provided an average 2.1x speedup over standard RISC-V, demonstrating the impact of microarchitectural optimizations.
Conclusion
HEROv2 offers a powerful, open-source foundation for heterogeneous computing research. While future work aims to improve compiler support for complex patterns and scale the architecture, the current platform already provides a high-throughput environment for real-world workload analysis. The entire project is available as open-source on GitHub.
Summary updated