A Compiler Infrastructure for Accelerator Generators

Rachit Nigam, Samuel Thomas, Zhijing Li, Adrian Sampson
2/19/2021
cs.PLcs.AR

Official code: calyxir/calyx (617 stars, Rust, MIT, Rust, last commit 2026-11-17).

Abstract

We present Calyx, a new intermediate language (IL) for compiling high-level programs into hardware designs. Calyx combines a hardware-like structural language with a software-like control flow representation with loops and conditionals.

Show full abstract

This split representation enables a new class of hardware-focused optimizations that require both structural and control flow information which are crucial for high-level programming models for hardware design. The Calyx compiler lowers control flow constructs using finite-state machines and generates synthesizable hardware descriptions. We have implemented Calyx in an optimizing compiler that translates high-level programs to hardware. We demonstrate Calyx using two DSL-to-RTL compilers, a systolic array generator and one for a recent imperative accelerator language, and compare them to equivalent designs generated using high-level synthesis (HLS). The systolic arrays are $4.6\times$ faster and $1.1\times$ larger on average than HLS implementations, and the HLS-like imperative language compiler is within a few factors of a highly optimized commercial HLS toolchain. We also describe three optimizations implemented in the Calyx compiler.

View on arXivView PDF

Code Implementations(1)

calyxir/calyxOfficial100%
RustMIT

Intermediate Language (IL) for Hardware Accelerator Generators

61777Rust, PythonJul 4, 20192 weeks agoMIT
compilerfpga-programminghigh-level-synthesisintermediate-languageopen-source-hardware

Similar Papers

Cite this paper

@article{nigam2021compiler,
  title  = {A Compiler Infrastructure for Accelerator Generators},
  author = {Rachit Nigam and Samuel Thomas and Zhijing Li and Adrian Sampson},
  year   = {2021},
  eprint = {2102.09713},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.09713}
}

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

Discussion