↓Skip to main content

Dynamatic + XLS: integrating dynamic and static HLS

Description #

My master’s thesis, currently in progress at ETH Zürich with the Digital Systems and Design Automation group.

The idea is to combine static and dynamic scheduling in a single circuit. Classical high-level synthesis schedules statically: the cycle each operation issues in is fixed at compile time, so the schedule has to budget for the longest path through the control flow graph whether or not that path is ever taken. Dynamatic schedules dynamically instead, wrapping every operation in a handshake so the circuit works out at runtime which branch was actually taken. Short paths then cost what they really cost, but every unit now carries ready/valid logic, and that costs area and combinational delay even where nothing was ever in doubt.

That overhead is what static islands are meant to reduce. An island is a group of operations that share a single dynamic interface instead of handshaking one by one.

              ┌─────────────────────────┐
              │ for (i = 0; i < N; i++) │
              └────────────┬────────────┘
                           │
                 ┌─────────▼─────────┐
                 │   if (a[i] > 0)   │  ← which side runs is decided at runtime!
                 └──┬─────────────┬──┘
                    │             │
             ┌──────▼───────┐  ╔══▼═════════════════╗
             │ x = a[i] + 1 │  ║ t0 = a[i] * c      ║
             │ b[i] = x     │  ║ t1 = t0 + d        ║
             └──────┬───────┘  ║ t2 = t1 * t1       ║
                    │          ║ t3 = t2 - e        ║
            2 ops   │          ║ b[i] = t3 * f      ║
                    │          ╚══╦═════════════════╝
                    │             ║
                    │             ║  static island (XLS): fixed latency and
                    │             ║  one dynamic interface for the whole
                    │             ║  block. Scheduled dynamically, each
                    │             ║  instruction would carry its own.
                    │             ║
                 ┌──▼─────────────▼──┐
                 │    loop latch     │
                 └───────────────────┘

The thesis comes down to two tasks:

  1. Letting static islands compile separately and within Dynamatic, which is where Google’s XLS comes in, since it already generates the statically scheduled units the islands need.
  2. Determining where the optimal island boundaries lie, which will require some creative thinking :).

The work is being upstreamed into Dynamatic as a series of pull requests.


Dynamatic · XLS