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

AnyHLS:带部分评估的高级综合

AnyHLS: High-Level Synthesis with Partial Evaluation

M. Akif Özkan, Arsène Pérard-Gayot, Richard Membarth, Philipp Slusallek, Roland Leissa, Sebastian Hack, Jürgen Teich, Frank Hannig

摘要:

FPGA在低功耗和高吞吐量计算方面表现出色,但它们的编程具有挑战性。传统上,开发人员依赖于硬件描述语言(如Verilog或VHDL)来指定寄存器传输级的硬件行为。高级综合(HLS)提高了抽象层次,但仍然需要FPGA设计知识。程序员通常编写编译指示注释的C/C++程序来定义应用程序的硬件架构。但是,每个硬件供应商都使用自己特定于供应商的编译指示集来扩展自己的C方言。这就阻碍了跨不同供应商的可移植性。此外,pragmas在语言中不是一等公民。这使得很难以模块化的方式使用它们或设计适当的抽象。在本文中,我们提出了AnyHLS,一种方法来综合FPGA设计的模块化和抽象的方式。AnyHLS能够通过诉诸程序设计语言特性(如类型和高阶函数)来提高现有HLS工具的抽象级别,如下所示:它依赖于部分评估来专门化和优化基于抽象库的用户应用程序。然后,为Intel和Xilinx FPGA生成特定于供应商的HLS代码。可移植性是通过在源代码中避免任何特定于供应商的杂注来实现的。为了验证生产力方面可实现的收益,引入了一个用于图像处理领域的库作为案例研究,并将其合成结果与该领域的几种最新领域特定语言(DSL)方法进行了比较。

英文摘要:

FPGAs excel in low power and high throughput computations, but they are challenging to program. Traditionally, developers rely on hardware description languages like Verilog or VHDL to specify the hardware behavior at the register-transfer level. High-Level Synthesis (HLS) raises the level of abstraction, but still requires FPGA design knowledge. Programmers usually write pragma-annotated C/C++ programs to define the hardware architecture of an application. However, each hardware vendor extends its own C dialect using its own vendor-specific set of pragmas. This prevents portability across different vendors. Furthermore, pragmas are not first-class citizens in the language. This makes it hard to use them in a modular way or design proper abstractions. In this paper, we present AnyHLS, an approach to synthesize FPGA designs in a modular and abstract way. AnyHLS is able to raise the abstraction level of existing HLS tools by resorting to programming language features such as types and higher-order functions as follows: It relies on partial evaluation to specialize and to optimize the user application based on a library of abstractions. Then, vendor-specific HLS code is generated for Intel and Xilinx FPGAs. Portability is obtained by avoiding any vendor-specific pragmas at the source code. In order to validate achievable gains in productivity, a library for the domain of image processing is introduced as a case study, and its synthesis results are compared with several state-of-theart Domain-Specific Language (DSL) approaches for this domain.

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

↑