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

基于Template Haskell与SDF-AP的数字电路高层次综合

High-Level Synthesis of Digital Circuits from Template Haskell and SDF-AP

Hendrik Folmer, Robert de Groote, Marco Bekooij

AI总结:

本文提出一种基于Template Haskell和SDF-AP数据流模式的HLS方法,通过在高阶函数描述中加入时间与执行顺序约束,实现并行硬件综合,并在延迟和资源消耗上优于商用Vitis HLS工具。

摘要:

函数式语言作为高层次综合(HLS)工具的输入规范,能够指定数据依赖关系,但不包含时间概念或执行顺序。本文提出一种方法,利用数据流模型SDF-AP将时间与执行顺序概念添加到函数式描述中。SDF-AP由表达消耗与产生的模式组成,可用于约束资源使用。我们开发了一个HLS工具,能够基于以高阶函数表达的重复杂结构,并结合指定的SDF-AP模式,综合并行硬件,包括数据通路和控制通路。我们的HLS工具基于Template Haskell,根据给定模式生成抽象语法树,函数式描述使用Clash编译器生成VHDL/Verilog。案例研究表明,我们的HLS在资源消耗和时间行为上具有一致性。与商用HLS工具的比较显示,我们的HLS工具在延迟方面表现更优,有时在资源消耗方面也更优。本文提出的方法和工具为开发者提供了更高的透明度,并且与Vitis HLS工具的pragma所能实现的程度相比,能够更精确地指定所综合的硬件。

英文摘要:

Functional languages as input specifications for High-Level Synthesis (HLS) tools allow to specify data dependencies but do not contain a notion of time nor execution order. In this paper, we propose a method to add this notion to the functional description using the dataflow model SDF-AP. SDF-AP consists of patterns that express consumption and production that we can use to enforce resource usage. We created an HLS-tool that can synthesize parallel hardware, both data and control path, based on the repetition, expressed in Higher-Order Functions, combined with specified SDF-AP patterns. Our HLS-tool, based on Template Haskell, generates an Abstract Syntax Tree based on the given patterns and the functional description uses the Clash-compiler to generate VHDL/Verilog. Case studies show consistent resource consumption and temporal behavior for our HLS. A comparison with a commercially available HLS-tool shows that our HLS tool outperforms in terms of latency and sometimes in resource consumption. The method and tool presented in this paper offer more transparency to the developer and allow to specify more accurately the synthesized hardware compared to what is possible with pragmas of the Vitis HLS-tool.

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

↑