arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.15679cs.SEcs.ARcs.PL
收藏

为Julia语言设计的高层次综合工具链

A High-level Synthesis Toolchain for the Julia Language

Imperial College London(帝国理工学院)

Benedict Short, Ian McInerney, John Wickerson

AI总结:

该工具链通过将Julia语言编写的内核自动编译为SystemVerilog,实现了FPGA上的高效计算,无需额外指令或修改。

摘要:

随着向exascale计算和数据驱动方法的推进,问题规模急剧增加,导致底层算法的计算需求也随之增加。这促使将计算任务卸载到通用计算硬件加速器(如GPU和TPU)上,并重新激发了使用FPGA设计问题特定加速器的兴趣。然而,目前问题特定加速器的开发过程面临“双语言问题”:算法通常用一种(通常是高级)语言开发,而内核则用另一种完全不同的抽象层次的语言实现,需要根本不同的专业知识。为了解决这个问题,我们提出了一种基于MLIR的编译器工具链,通过自动将用Julia语言编写的内核编译成SystemVerilog,而无需任何额外的指令或语言定制。我们的工具链支持动态和静态调度,直接与AXI4-Stream协议集成,以接口连接如片上和片外内存的子系统,并生成供应商无关的RTL。这个原型工具链能够综合一组信号处理/数学基准测试,能够在真正的FPGA设备上以100MHz的速度运行,达到由最先进的工具链生成的设计的59.71%至82.6%的吞吐量,这些工具链仅从低级语言如C或C++编译。整体而言,该工具链允许领域专家像平常一样用Julia编写计算内核,然后将其重新定向到FPGA上,而无需额外的pragma或修改。

英文摘要:

With the push towards Exascale computing and data-driven methods, problem sizes have increased dramatically, increasing the computational requirements of the underlying algorithms. This has led to a push to offload computations to general purpose hardware accelerators such as GPUs and TPUs, and a renewed interest in designing problem-specific accelerators using FPGAs. However, the development process of these problem-specific accelerators currently suffers from the "two-language problem": algorithms are developed in one (usually higher-level) language, but the kernels are implemented in another language at a completely different level of abstraction and requiring fundamentally different expertise. To address this problem, we propose a new MLIR-based compiler toolchain that unifies the development process by automatically compiling kernels written in the Julia programming language into SystemVerilog without the need for any additional directives or language customisations. Our toolchain supports both dynamic and static scheduling, directly integrates with the AXI4-Stream protocol to interface with subsystems like on- and off-chip memory, and generates vendor-agnostic RTL. This prototype toolchain is able to synthesize a set of signal processing/mathematical benchmarks that can operate at 100MHz on real FPGA devices, achieving between 59.71% and 82.6% of the throughput of designs generated by state-of-the-art toolchains that only compile from low-level languages like C or C++. Overall, this toolchain allows domain experts to write compute kernels in Julia as they normally would, and then retarget them to an FPGA without additional pragmas or modifications.

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

↑