Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
import "primitives/core.fil";
comp Mac[#W, #N]<G: 1>(
@[G, G+1] left: #W,
@[G, G+1] right: #W,
@[G+#N, G+#N+1] acc: #W
) -> (
@[G+#N, G+#N+1] out: #W
) where #W > 0 {
m := new MultComb[#W]<G>(left, right);
s := new Shift[#W, #N]<G>(m.out);
a := new Add[#W]<G+#W>(s.out, acc);
out = a.out;
}
comp main<G: 1>(
@[G, G+1] in: 32
) -> (@[G+4, G+5] out: 32) {
s := new Shift[32, 2]<G>(in);
out = s.out;
}cdff47fcaThis file is pinned to the selected release. Download the original to open it in your design tool.