In the domain of Internet-of-Things (IoT) edge computing, designers face a significant challenge: delivering high-end performance for complex tasks like computer vision and audio processing within the strict power constraints of battery-operated devices. This research addresses this bottleneck by rethinking inter-core communication and synchronization in low-power RISC-V clusters.
The Synchronization Bottleneck in Parallel NTC
To maximize energy efficiency, modern embedded systems often employ Near-Threshold Computing (NTC), which operates circuits at very low voltages. While NTC is highly efficient, it results in lower clock frequencies. To compensate for this performance loss, designers group multiple simple cores into clusters.
However, parallel processing introduces a hidden "synchronization tax." When cores must wait for one another (barriers) or compete for shared resources (mutexes), they typically rely on software "spinlocks." In a spinlock, a core repeatedly polls a memory location, leading to two major inefficiencies:
- Wasted Energy: Cores consume full dynamic power while performing no useful work.
- High Latency: Software-based synchronization can take hundreds of cycles, making it impractical to parallelize fine-grained tasks where the management overhead exceeds the workload itself.
System Architecture: The Synchronization and Communication Unit (SCU)
To overcome these limitations, the researchers developed a lightweight Synchronization and Communication Unit (SCU) integrated into a RISC-V cluster. Unlike traditional software methods, the SCU moves synchronization logic into dedicated hardware.
Key architectural innovations include:
- Private Interconnects: Each core features a dedicated, single-cycle private link to the SCU. This bypasses the main system bus, preventing congestion during high-frequency synchronization events.
- Hardware Primitives: The SCU contains dedicated logic for barriers and mutexes. By handling these in hardware rather than shared memory, a barrier that requires 176 cycles in software can be completed in just 6 cycles.
- Restful Waiting: The system introduces a custom RISC-V instruction,
elw(event-load-word). When a core executeselw, the hardware immediately clock-gates the core, placing it in a zero-dynamic-power sleep state. The SCU wakes the core via a hardware signal only when the synchronization condition is met.
Area Efficiency and Scalability
A critical requirement for edge devices is area efficiency. Despite its performance benefits, the SCU is remarkably compact. Implementation in 22nm FDX technology shows that the SCU occupies less than 2% of the total cluster area.
As shown in the scaling analysis, the hardware implementation allows for constant-time barriers. While software barrier latency typically grows with the number of cores, the SCU maintains a 6-cycle cost regardless of whether the cluster contains 2 or 16 cores.
Experimental Results
The SCU was evaluated using tunable microbenchmarks and a suite of real-world DSP kernels, including Dijkstra’s algorithm, AES, FFT, and Neural Networks (FANN).
- Performance: The SCU improved performance by an average of 23%, with a peak improvement of 92% for the Dijkstra algorithm. It reduced the cycle cost of a barrier by up to 29x compared to standard software test-and-set (TAS) methods.
- Energy Efficiency: By enabling restful waiting and reducing overhead, energy efficiency improved by an average of 39%, peaking at 98% for Principal Component Analysis (PCA).
- Fine-Grained Parallelism: The SCU reduces the "minimum synchronization-free region"—the amount of work needed to justify parallelization—from approximately 1,700 cycles to just 42 cycles. This unlocks the ability to parallelize much smaller tasks than previously possible.
Conclusion
The Synchronization and Communication Unit (SCU) demonstrates that moving synchronization from software to hardware is a highly effective strategy for low-power clusters. By reducing synchronization overhead by up to 41x and enabling cycle-accurate power management, the SCU allows IoT edge devices to handle complex parallel workloads with unprecedented energy efficiency.
Summary updated