Hierarchical Task Partitioning and Runtime Support for Scratchpad-Based RISC-V Multicore Systems
Abstract
The increasing computational demands of real-time data-processing applications necessitate predictable, high-performance multicore computing platforms. A key consideration for such platforms is the mitigation of interference arising from memory contention. Phased execution is a flexible, software-driven approach to prevent this interference by restricting shared-memory access to mutually exclusive memory phases, while computation is limited to core-local memories. However, the capacity constraints of these local memories and the overhead of memory transfer limit the feasibility of the phased execution paradigm, necessitating extensive adaptations to the application code. To address this limitation, we propose a framework comprising a deployment toolchain and a runtime environment that automates task-binary partitioning and the orchestration of inter-task communication, thereby considerably reducing deployment effort. Its hierarchical task model hides memory-transfer overhead by overlapping the execution of one subtask with the loading of the next. This approach requires only basic annotations of the subtask structure and automatically extracts each subtask's dependencies from the control-flow graph, while maximizing instruction reuse between subtasks. We evaluate the framework using a radar-processing case study on a RISC-V multicore system. Compared with a coarse-partitioning baseline, the hierarchical approach reduces the average observed memory-transfer overhead by 26.4% and maximum data scratchpad memory usage by 6.82%.