Module-per-Object:一种人驱动的C++高级综合设计方法
Module-per-Object: a Human-Driven Methodology for C++-based High-Level Synthesis Design
摘要:
高级综合(HLS)将FPGA带给以前不熟悉硬件设计的观众。然而,对于大多数程序员来说,使用HLS实现最高的结果质量(QoR)仍然是无法实现的。这需要详细了解FPGA架构和硬件设计,以便生成FPGA友好的代码。此外,这些代码通常与最佳编码实践相冲突,最佳编码实践倾向于代码重用,模块化和简洁。为了克服这些限制,我们提出了模块每对象(MPO),一个人驱动的HLS设计方法,旨在为硬件设计人员和软件开发人员有限的FPGA专业知识。MpO利用现代C++来提高抽象级别,同时改善QoR,代码可读性和模块化。为了指导HLS设计者,我们提出了MpO类的五个特征。每个特性都利用了支持HLS的现代C++功能的强大功能来构建基于C++的硬件模块。这些特性导致高质量的软件描述和高效的硬件生成。我们还提出了一个用例的MpO,我们使用C++作为中间语言的FPGA为目标的代码生成从P4,数据包处理域特定的语言。使用三个设计实验:一个数据包解析器,一个基于流的流量管理器,和一个数字上变频器的MpO方法进行评估。基于实验,我们表明,MpO可以媲美手写的VHDL代码,同时保持高抽象级别,人类可读的编码风格和模块化。与传统的基于C的HLS设计相比,MpO导致更有效的电路生成,无论是在性能和资源利用率方面。此外,MpO方法显著提高了软件质量,增强了参数化,同时消除了代码重复的发生。
英文摘要:
High-Level Synthesis (HLS) brings FPGAs to audiences previously unfamiliar to hardware design. However, achieving the highest Quality-of-Results (QoR) with HLS is still unattainable for most programmers. This requires detailed knowledge of FPGA architecture and hardware design in order to produce FPGA-friendly codes. Moreover, these codes are normally in conflict with best coding practices, which favor code reuse, modularity, and conciseness. To overcome these limitations, we propose Module-per-Object (MpO), a human-driven HLS design methodology intended for both hardware designers and software developers with limited FPGA expertise. MpO exploits modern C++ to raise the abstraction level while improving QoR, code readability and modularity. To guide HLS designers, we present the five characteristics of MpO classes. Each characteristic exploits the power of HLS-supported modern C++ features to build C++-based hardware modules. These characteristics lead to high-quality software descriptions and efficient hardware generation. We also present a use case of MpO, where we use C++ as the intermediate language for FPGA-targeted code generation from P4, a packet processing domain specific language. The MpO methodology is evaluated using three design experiments: a packet parser, a flow-based traffic manager, and a digital up-converter. Based on experiments, we show that MpO can be comparable to hand-written VHDL code while keeping a high abstraction level, human-readable coding style and modularity. Compared to traditional C-based HLS design, MpO leads to more efficient circuit generation, both in terms of performance and resource utilization. Also, the MpO approach notably improves software quality, augmenting parametrization while eliminating the incidence of code duplication.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。