arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.15073cs.PL
收藏

Cement2:面向高层次高效FPGA编程的时序硬件事务

Cement2: Temporal Hardware Transactions for High-Level and Efficient FPGA Programming

Peking University(北京大学)

Youwei Xiao, Zizhang Luo, Weijie Peng, Yuyang Zou, Yun Liang

AI总结:

针对现有FPGA开发抽象难以兼顾效率、性能与通用性的问题,提出时序硬件事务抽象并实现为嵌入Rust的Cement2框架,可在不损失性能与资源效率的前提下提升FPGA开发效率。

摘要:

硬件设计面临一项根本性挑战:在提升抽象层级以提高开发效率的同时,需维持对周期精度等底层细节的控制能力。采用SystemVerilog等语言的传统寄存器传输级(RTL)设计通过连线式连接组合模块,对行为正确性的保障能力较弱。高层次综合(HLS)及新兴抽象方法虽尝试解决该问题,但要么引入不可预测的开销,要么限制设计的通用性。事务级硬件描述语言(HDL)虽通过将设计抽象提升至原子可组合规则提供了颇具前景的基础,但这类语言仅对周期内行为建模,无法反映原生时序设计特性,阻碍了其在FPGA编程场景中的适用性与开发效率。本文提出时序硬件事务这一新抽象,在事务语言层面为设计者提供周期级时序感知能力。该方法对规则间的时序关系建模,支持描述动作跨多个时钟周期的规则,为描述多周期架构行为提供直观抽象。我们将该方法实现为嵌入Rust的事务级HDL——Cement2,支持硬件构造器编程以同时构建周期内事务与时序事务。Cement2的综合框架通过多轮分析与优化阶段降低描述抽象层级,生成高效硬件。借助Cement2的抽象,我们编写了RISC-V软核处理器、自定义CPU指令、线性代数核与脉动阵列加速器,依托高层次抽象提升了开发效率。评估表明,与手写RTL设计相比,Cement2未牺牲性能与资源占用,展现出对通用FPGA设计任务的高适用性。

英文摘要:

Hardware design faces a fundamental challenge: raising abstraction to improve productivity while maintaining control over low-level details like cycle accuracy. Traditional RTL design in languages like SystemVerilog composes modules through wiring-style connections that provide weak guarantees for behavioral correctness. While high-level synthesis (HLS) and emerging abstractions attempt to address this, they either introduce unpredictable overhead or restrict design generality. Although transactional HDLs provide a promising foundation by lifting design abstraction to atomic and composable rules, they solely model intra-cycle behavior and do not reflect the native temporal design characteristics, hindering applicability and productivity for FPGA programming scenarios. We propose temporal hardware transactions, a new abstraction that brings cycle-level timing awareness to designers at the transactional language level. Our approach models temporal relationships between rules and supports the description of rules whose actions span multiple clock cycles, providing intuitive abstraction to describe multi-cycle architectural behavior. We implement this in Cement2, a transactional HDL embedded in Rust, enabling programming hardware constructors to build both intra-cycle and temporal transactions. Cement2's synthesis framework lowers description abstraction through multiple analysis and optimization phases, generating efficient hardware. With Cement2's abstraction, we program a RISC-V soft-core processor, custom CPU instructions, linear algebra kernels, and systolic array accelerators, leveraging the high-level abstraction for boosted productivity. Evaluation shows that Cement2 does not sacrifice performance and resources compared to hand-coded RTL designs, demonstrating the high applicability for general FPGA design tasks.

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

↑