arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.21552cs.AR
收藏

最小化RISC-V:最大化FPGA效率

Minimum RISC-V: Maximum FPGA Efficiency

Altera Corporation(Altera公司)

Martin Langhammer, Bogdan Pasca, Gregg Baeckler

AI总结:

本研究设计轻量深度流水线RISC-V核心,提出同步编译应用二进制与专用处理器实例的优化方法,实现高频率、小体积的RISC-V,支持可预测多核密度规划。

摘要:

RISC-V处理器现已广泛应用于FPGA,多数FPGA厂商正用该指令集架构(ISA)取代其专有软CPU架构。尽管当代FPGA资源与功能日益丰富,但软处理器系统(含内存)通常占用不成比例的大体积,且相对于目标器件的潜力仅能提供有限性能。本研究首先设计了一款轻量且深度流水线的RISC-V核心,其中端器件中可运行在700 MHz以上,理想条件下每时钟周期可完成一条指令的提交。随后,我们开发并验证了一种新的优化方法,该方法可同时编译最终应用二进制文件与专用处理器实例;该方法将每条指令扩展为应用专用编码,在综合过程中移除未使用的数据通路与译码逻辑,生成的核心仍与原始程序汇编兼容,但不再与通用RISC-V二进制兼容。我们在RV32I(基础整数)、RV32M(整数乘法)及RV32F(单精度浮点)配置上实现了示例设计;优化后的RISC-V在Altera Agilex-5器件中仅需170个ALM,时序可达到775 MHz。最后,我们证明这些处理器可被封装在确定面积内,且可连续步进重复而不影响性能,支持可预测的多核密度规划。

英文摘要:

RISC-V processors are now widely available for FPGAs, with most FPGA vendors replacing their proprietary soft-CPU architectures with this instruction-set architecture (ISA). Although contemporary FPGAs are increasingly resource- and feature-rich, a soft processor system---including memory---often occupies a disproportionately large footprint and delivers only modest performance relative to the potential of the target device. In this work we first design a lightweight but deeply pipelined RISC-V core that can run above 700 MHz in a mid-range device and that is capable of retiring one instruction per clock under ideal conditions. We then develop and demonstrate a new optimization method that compiles the final application binary and a specialized processor instance contemporaneously. The method expands each instruction into an application-specific encoding, removes unused datapath and decode logic during synthesis, and yields cores that remain assembler-compatible with the original program while no longer being binary-compatible with a general-purpose RISC-V. We implement example designs on RV32I (base integer), RV32M (integer multiply), and RV32F (single-precision floating-point) configurations. Our optimized RISC-V is as small as 170 ALMs and closes timing at 775 MHz in an Altera Agilex-5 device. Finally, we show that these processors can be packed into a deterministic area and stepped-and-repeated continuously without material impact on performance, enabling predictable multi-core density planning.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑