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

Yongding Tian, Zaid Al-Ars, Peter Hofstee
12/12/2022
cs.PLcs.AR

Official code: twoentartian/tydi-lang (6 stars, Rust, Apache-2.0, Rust, last commit 2023-09-19).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

RustApache-2.0
61Rust, VHDLDec 25, 20213 years agoApache-2.0

Similar Papers

Cite this paper

@article{tian2022tydilang,
  title  = {Tydi-lang: a language for typed streaming hardware -- A manual for future Tydi-lang compiler developers},
  author = {Yongding Tian and Zaid Al-Ars and Peter Hofstee},
  year   = {2022},
  eprint = {2212.11154},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.11154}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.11154.svg)](https://codeofpaper.com/paper/2212.11154)

Discussion