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

用于加速器发电机的更可靠的基础设施

A Compiler Infrastructure for Accelerator Generators

Rachit Nigam, Samuel Thomas, Zhijing Li, Adrian Sampson

摘要:

我们提出了Calyx,一种新的中间语言(IL)编译成硬件设计的高级程序。Calyx结合了一个类似硬件的结构化语言和一个类似软件的控制流表示与循环和条件。这种分裂表示使一类新的硬件为重点的优化,需要结构和控制流的信息,这是至关重要的高层次的编程模型的硬件设计。Calyx编译器使用有限状态机降低控制流构造,并生成可合成的硬件描述。我们已经在一个优化编译器中实现了Calyx,该编译器可以将高级程序转换为硬件。我们演示了花萼使用两个DSL到RTL编译器,脉动阵列生成器和一个最近的命令式加速器语言,并将它们与使用高级合成(HLS)生成的等效设计进行比较。脉动阵列的$4.6\times$速度更快,$1.1\times$平均比HLS实现更大,并且类似于HLS的命令式语言编译器是高度优化的商业HLS工具链的几个因素之一。我们还描述了在Calyx编译器中实现的三个优化。

英文摘要:

We present Calyx, a new intermediate language (IL) for compiling high-level programs into hardware designs. Calyx combines a hardware-like structural language with a software-like control flow representation with loops and conditionals. This split representation enables a new class of hardware-focused optimizations that require both structural and control flow information which are crucial for high-level programming models for hardware design. The Calyx compiler lowers control flow constructs using finite-state machines and generates synthesizable hardware descriptions. We have implemented Calyx in an optimizing compiler that translates high-level programs to hardware. We demonstrate Calyx using two DSL-to-RTL compilers, a systolic array generator and one for a recent imperative accelerator language, and compare them to equivalent designs generated using high-level synthesis (HLS). The systolic arrays are $4.6\times$ faster and $1.1\times$ larger on average than HLS implementations, and the HLS-like imperative language compiler is within a few factors of a highly optimized commercial HLS toolchain. We also describe three optimizations implemented in the Calyx compiler.

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

↑