Predictable Accelerator Design with Time-Sensitive Affine Types

Rachit Nigam, Sachille Atapattu, Samuel Thomas, Zhijing Li, Theodore Bauer +4 more
4/9/2020
cs.PLcs.AR

Official code: cucapra/dahlia (152 stars, Scala, MIT, last commit 2026-01-05).

Abstract

Field-programmable gate arrays (FPGAs) provide an opportunity to co-design applications with hardware accelerators, yet they remain difficult to program. High-level synthesis (HLS) tools promise to raise the level of abstraction by compiling C or C++ to accelerator designs.

Show full abstract

Repurposing legacy software languages, however, requires complex heuristics to map imperative code onto hardware structures. We find that the black-box heuristics in HLS can be unpredictable: changing parameters in the program that should improve performance can counterintuitively yield slower and larger designs. This paper proposes a type system that restricts HLS to programs that can predictably compile to hardware accelerators. The key idea is to model consumable hardware resources with a time-sensitive affine type system that prevents simultaneous uses of the same hardware structure. We implement the type system in Dahlia, a language that compiles to HLS C++, and show that it can reduce the size of HLS parameter spaces while accepting Pareto-optimal designs.

View on arXivView PDF

Code Implementations(1)

cucapra/dahliaOfficial100%
MIT

Time-sensitive affine types for predictable hardware generation

15211Scala, RacketMay 22, 201811 months agoMIT
dahliafpga-programminghigh-level-synthesisopen-source-hardware

Similar Papers

Cite this paper

@article{nigam2020predictable,
  title  = {Predictable Accelerator Design with Time-Sensitive Affine Types},
  author = {Rachit Nigam and Sachille Atapattu and Samuel Thomas and Zhijing Li and Theodore Bauer and Yuwei Ye and Apurva Koti and Adrian Sampson and Zhiru Zhang},
  year   = {2020},
  eprint = {2004.04852},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.04852}
}

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/2004.04852.svg)](https://codeofpaper.com/paper/2004.04852)

Discussion