Introduction
Spatial architectures, such as Coarse-Grained Reconfigurable Arrays (CGRAs) and systolic arrays, have emerged as highly efficient solutions for data-parallel workloads. By mapping computation directly onto a grid of Processing Elements (PEs), these architectures minimize the overhead associated with instruction fetching and decoding. However, their performance often degrades significantly when encountering control-intensive code, such as complex if-else branching (branch divergence) or nested loops where operations occur outside the innermost loop (imperfect loops).
This paper introduces Marionette, a novel spatial architecture designed to overcome these limitations. By architecting a dedicated Control Flow Plane, Marionette enables PEs to autonomously coordinate reconfigurations, effectively decoupling control logic from data processing to achieve superior performance and hardware utilization.
The Challenge: Control Flow in Spatial Fabrics
Traditional spatial architectures typically handle control flow through two primary models, both of which possess inherent flaws:
- Von Neumann PEs: These PEs are "passive," relying on a centralized controller to manage task transitions. When a branch occurs, the entire array often stalls while the controller reconfigures the PEs, leading to significant latency.
- Dataflow PEs: These architectures use "tokens" to bake control information into the data stream. While this allows for more autonomy, the control and data remain "tightly coupled." A PE cannot prepare for its next task until the current data arrives, resulting in "bubbles" of idle time within the hardware pipeline.
Marionette addresses these issues by introducing a "temporally loosely-coupled" approach, allowing the control logic to "look ahead" and prepare the hardware before the data actually arrives.
The Marionette Architecture
Marionette’s core innovation is the physical and logical separation of control and data. This is achieved through several key mechanisms:
Autonomous Peer-to-Peer Control
Rather than relying on a central master controller, Marionette empowers PEs to send control signals—specifically instruction addresses—directly to their neighbors. This communication is facilitated by a specialized CS-Benes network, which eliminates the centralized bottleneck and allows for rapid, localized decision-making.
Proactive PE Configuration
Marionette utilizes a "Control Flow Sender" to transmit configuration information to subsequent PEs before the current computation is completed. By hiding the reconfiguration latency, the architecture ensures that PEs are ready to execute the next branch as soon as the data is available, maximizing throughput.
Agile PE Assignment
To handle imperfectly nested loops efficiently, Marionette employs a novel scheduling strategy. This strategy dynamically re-allocates hardware resources; for instance, if an outer loop finishes its task, those PEs can be instantly repurposed to assist with the inner loop. This flexibility ensures that hardware resources do not sit idle during complex execution flows.
Experimental Methodology
The researchers implemented Marionette in 28nm RTL to measure real-world area and power consumption, synthesizing the design at 500MHz. The architecture was evaluated using 13 diverse benchmarks from suites such as MachSuite, Mibench, and HosNa. These benchmarks covered a wide range of control-heavy tasks, including:
- General Purpose: Merge Sort, FFT, Viterbi, GEMM.
- Bioinformatics: Needleman-Wunsch (NW).
- Computer Vision: Hough Transform.
- Communication: CRC, ADPCM, SC Decode, and LDPC Decode.
Key Results and Insights
Marionette demonstrates substantial performance gains over existing state-of-the-art spatial architectures:
- Speedup: Marionette is 2.88× faster than Softbrain, 3.38× faster than TIA, 1.55× faster than REVEL, and 2.66× faster than RipTide.
- Utilization: For imperfect loops, Marionette improved PE utilization by an average of 21.57× compared to traditional static mapping methods.
- Area Efficiency: Despite adding a dedicated control network, Marionette is remarkably area-efficient. The control plane accounts for only 11.5% of the total area, a significant improvement over architectures like Softbrain or Plasticine, where the network-to-computing ratio can reach 47%–75%.
Physical synthesis results show the design occupies 0.151 $mm^2$ and consumes 152.09 mW, proving that sophisticated control handling does not require prohibitive hardware overhead.
Conclusion
The success of Marionette lies in its "Aha!" moment: decoupling control from dataflow. Much like modern CPUs decoupled memory access from execution to hide latency, Marionette allows the "brain" of the PE to anticipate future branches while the "muscles" finish current calculations. While the architecture currently relies on compiler support for loop analysis and PE assignment, it represents a major step forward in making spatial architectures viable for general-purpose, control-intensive computing. Future work will focus on scaling the CS-Benes network for larger arrays and exploring aggressive power-gating techniques for the decoupled control plane.
Summary updated