calyx 0.7.1

Compiler Infrastructure for Hardware Accelerator Generation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import "primitives/core.futil";
import "primitives/memories/comb.futil";

component foo(a: 32) -> () {
  cells {}
  wires {}
  control {}
}

component main() -> () {
  cells {
    f = foo();
  }
  wires {}
  control {
    invoke f(b = 32'd10)();
  }
}