10 releases (6 breaking)

0.7.1 Feb 29, 2024
0.6.1 Oct 15, 2023
0.4.0 Jul 21, 2023

#1245 in Programming languages

Download history 13/week @ 2024-07-20 16/week @ 2024-07-27 9/week @ 2024-08-03 6/week @ 2024-08-10 4/week @ 2024-08-17 21/week @ 2024-08-24 43/week @ 2024-08-31 12/week @ 2024-09-07 13/week @ 2024-09-14 61/week @ 2024-09-21 29/week @ 2024-09-28 9/week @ 2024-10-05 36/week @ 2024-10-12 23/week @ 2024-10-19 28/week @ 2024-10-26 24/week @ 2024-11-02

112 downloads per month
Used in 7 crates (5 directly)

Custom license

140KB
3.5K SLoC

Built with Depot

A Compiler Infrastructure for Accelerator Generators

Calyx is an intermediate language and infrastructure for building compilers that generate custom hardware accelerators.

See the Calyx website, language documentation and the documentation for the source code for more information. Calyx's design is based on our paper.

Installation

Quick

If you want to try out the compiler, install it using cargo:

cargo install calyx

This will install the calyx binary can optimize and compile Calyx programs to Verilog or CIRCT.

Follow the getting started instructions.

Organization

This repository contains the source code for the following:

  • calyx-utils: Utilities for the Calyx compiler
  • calyx-frontend: Parser and frontend AST for the Calyx language.
  • calyx-ir: The Calyx intermediate language.
  • calyx-opt: Optimizations for the Calyx intermediate language.
  • calyx: The Calyx compiler driver.

You can also use the Calyx compiler as a library and implement your own optimizations. To do this, check out the example provided by the calyx-opt crate.

Dependencies

~5.5–7MB
~127K SLoC