↓Skip to main content

Array partitioning for Dynamatic

Description #

Practical work on Dynamatic, an open-source high-level synthesis compiler that turns C into dynamically scheduled hardware circuits. Because the schedule is decided at runtime, the circuit can exploit parallelism that a static schedule has to give up on.

That advantage disappears at the memory interface. Every access funnelled through a single memory port serialises, and the dataflow circuit stalls waiting on it. Splitting an array across several banks lets independent accesses proceed in parallel, which lifts the throughput of the whole circuit.

The partitioning is macro driven: the source annotates an array with a partitioning directive, and the work was to make the compiler act on it. The result is an LLVM IR pass that reads those macro directives, splits the array across banks accordingly, and generates the corresponding memory interfaces in the emitted circuit.

Evaluation ran the partitioned and unpartitioned versions of standard HLS benchmark kernels through the CI/CD pipeline to check correctness and to weigh cycle counts against the resource cost of the extra banks and arbitration logic.


Link to GitHub Repository