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 main(@go go: 1, @clk clk: 1, @reset reset: 1) -> (@done done: 1) {
  cells {
    e = std_eq(32);
    r = std_reg(1);
  }
  wires {
    group wait {
      r.write_en = e.out ? 1'd1;
      r.in = e.out;
      wait[done] = r.done;
    }
  }
  control {
    wait;
  }
}