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

Tydi-lang:一种用于类型化流硬件的语言--Tydi-lang编译程序开发人员手册

Tydi-lang: a language for typed streaming hardware -- A manual for future Tydi-lang compiler developers

Yongding Tian, Zaid Al-Ars, Peter Hofstee

摘要:

传输具有可变长度字段的复合数据结构通常需要设计在硬件设计之间不兼容的非平凡协议。当每个项目都设计自己的数据格式和协议时,硬件开发人员之间的协作能力就会减弱,这在开源社区中尤其是一个问题。因为当需要设计自定义协议时,协议的高级含义通常在转换为低级语言时丢失,所以需要额外的文档,对文档的解释引入了新的错误机会。Tydi规范(Tydi-spec)被提出来通过将复合和可变长度数据结构编码为类型并提供标准协议来在硬件组件之间传输类型化数据来解决上述问题。Tydi中间表示(Tydi-IR)通过定义类型化接口、类型化组件和类型化组件之间的连接来扩展Tydi规范。在这篇论文中,我们提出了Tydi-lang,一个流设计的高级硬件描述语言(HDL)。该语言结合了Tydi规范来描述类型化流,并提供模板来描述抽象可重用组件。我们还实现了一个从Tydi-lang到Tydi-IR的开源编译器。我们利用一个Tydi-IR到VHDL的编译器,并提出了一个模拟器蓝图来识别流传输瓶颈。我们展示了几个Tydi-lang的例子,将高级SQL转换为VHDL,以证明Tydi-lang可以有效地提高抽象层次,减少设计工作。

英文摘要:

Transferring composite data structures with variable-length fields often requires designing non-trivial protocols that are not compatible between hardware designs. When each project designs its own data format and protocols the ability to collaborate between hardware developers is diminished, which is an issue especially in the open-source community. Because the high-level meaning of a protocol is often lost in translation to low-level languages when a custom protocol needs to be designed, extra documentation is required, the interpretation of which introduces new opportunities for errors. The Tydi specification (Tydi-spec) was proposed to address the above issues by codifying the composite and variable-length data structures in a type and providing a standard protocol to transfer typed data among hardware components. The Tydi intermediate representation (Tydi-IR) extends the Tydi-spec by defining typed interfaces, typed components, and connections among typed components. In this thesis, we propose Tydi-lang, a high-level hardware description language (HDL) for streaming designs. The language incorporates Tydi-spec to describe typed streams and provides templates to describe abstract reusable components. We also implement an open-source compiler from Tydi-lang to Tydi-IR. We leverage a Tydi-IR to VHDL compiler, and also present a simulator blueprint to identify streaming bottlenecks. We show several Tydi-lang examples to translate high-level SQL to VHDL to demonstrate that Tydi-lang can efficiently raise the level of abstraction and reduce design effort.

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

↑