#ir #compiler

calyx-opt

Compiler Infrastructure for Hardware Accelerator Generation

9 releases (5 breaking)

0.6.1 Oct 15, 2023
0.6.0 Aug 31, 2023
0.5.0 Aug 22, 2023
0.4.0 Jul 21, 2023
0.1.1 Apr 30, 2023

#83 in Programming languages

Download history 38/week @ 2023-08-15 87/week @ 2023-08-22 249/week @ 2023-08-29 95/week @ 2023-09-05 51/week @ 2023-09-12 45/week @ 2023-09-19 54/week @ 2023-09-26 38/week @ 2023-10-03 133/week @ 2023-10-10 182/week @ 2023-10-17 155/week @ 2023-10-24 192/week @ 2023-10-31 19/week @ 2023-11-07 56/week @ 2023-11-14 30/week @ 2023-11-21 58/week @ 2023-11-28

167 downloads per month
Used in 2 crates (via calyx)

Custom license

1MB
22K 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

~6.5MB
~123K SLoC