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() -> () {
  cells {
    r = std_reg(32);
  }
  wires {
    group do_r {
      r.write_en = 1'd1;
      r.in = 32'd1;
      do_r[done] = r.done;
      do_r[done] = !r.done ? 1'd1;
    }
  }
  control {
    do_r;
  }
}