Personal tools

Fast Accelerator Context Switch for PULP

From iis-projects

Jump to: navigation, search


Overview

Status: Available

Introduction

PULP (Parallel Ultra-Low-Power) [1] is an open-source multi-core computing platform. It consists of an advanced microcontroller architecture with a parallel computing cluster composed of 8 RISC-V, fully programmable 32-bit processing elements (PE) featuring DSP extensions targeting energy-efficient digital signal processing [2]. This computing cluster serves as an accelerator.

ControlPULP is a specialized version of PULP that focuses on predictability. It is used in the European Processor Initiative (EPI) [3] playing the part of a Power Controller Subsystem (PCS) dynamically adjusting the operating point of a High Performance Computing (HPC) processor to meet energy, power, and thermal constraints. The parallel computing cluster is used as an accelerator to parallelize the Power Control Firmware (PCF) [6] running on the PCS architecture. The PCF executes a multi-task control-law that involves optimal operating point computation and complex multi input, multi-output interaction with the external world. In order to fulfill this task, the FreeRTOS real-time OS layer is employed to schedule the PCF tasks.

Project

Context switching is the process of saving the context, i.e. registers and other machine state, determining the next task to be scheduled, and finally restoring the context of the potentially new, different task [5]. The PULP Cluster has been traditionally designed to accelerate Machine Learning Kernels for bare-metal applications, and optimized with energy-efficiency in mind. Nevertheless, it lacks optimization and flexibility for more real-time oriented scenarios.

The idea is to add context switching and virtualization capabilities to the cluster of ControlPULP allowing the operating system to schedule several accelerator tasks and let them run concurrently. This allows higher utilization of the cluster compute resources. For example accelerator tasks that wait for data from the DMA can block and let other accelerator tasks continue.

The goal of this project is to

  • Implement context switching capabilities in software as a baseline.
  • Identify opportunities to accelerate context switching and virtualization on the hardware level and implement these in ControlPULP.
  • Evaluate the resulting system in RTL simulation and/or on the FPGA (ControlPULP has an FPGA implementation).

Character

  • 10% Literature / architecture review
  • 50% RTL implementation
  • 30% Bare-metal C programming
  • 10% Evaluation

Prerequisites

  • Strong interest in computer architecture
  • Experience with digital design in SystemVerilog as taught in VLSI I
  • Experience with low-level programming in C


References

[1] https://github.com/pulp-platform/pulp (GitHub repository)

[2] https://ieeexplore.ieee.org/document/8715500

[4] https://www.european-processor-initiative.eu/

[5] https://ieeexplore.ieee.org/document/9474114/

[6] https://iis-git.ee.ethz.ch/giovanni.bambini/epi_pmu_ethz (Gitlab repository)