UPM – RISC-V processor with custom CGRA-based extensions
| ID: R2 | Licence: Solderpad Hardware Licence v2.1 |
Owner: UPM |
Contacts: joseandres.otero@upm.es alfonso.rodriguezm@upm.es |
| Short Description | Multi-grain Coarse-Grained Reconfigurable Array (CGRA) accelerator coupled with an open-source RISC-V processor through custom ISA extensions (tight) and/or memory-mapped interfaces (loose), to support 1) automatic SW-to-HW code offloading using HW composition, 2) edge AI capabilities in the RISC-V ecosystem. |
| Key features | – Elastic CGRA with spatial dataflow execution, without instruction time-multiplexing – Multicore, cache-coherent SoC with Linux-capable CVA6 RISC-V cores and CGRA accelerator tiles – DMA-based data movement, interrupts, shared buffers and optional IOMMU – GNU/Linux and K3s support, so that containerised workloads can use the CGRA – FPGA implementation, with a potential path towards ASIC |
| Require | Application code with hardware acceleration requirements at the edge. |
| Provide | Acceleration infrastructure at the edge. |
| Input | Binary files for processor (application executable), CGRA accelerator (CGRA configuration bitstream), and the static configuration bitstream for the FPGA. |
| Output | Heterogeneous and hardware-accelerated execution of the application. |
| User | – Cloud and edge service providers, and companies with their own on-premise acceleration resources, that want to offer reconfigurable acceleration without hardware design – Reconfigurable-computing and RISC-V developers, embedded/edge-system architects, compiler and runtime developers, and researchers working on heterogeneous hardware acceleration and resource management |
| Benefits for the user | – Compute-intensive kernels run on the CGRA, while control, sequential and operating-system tasks stay on the RISC-V cores – Reconfigurable acceleration usable from Linux applications and containers, with code offloaded automatically by the CGRA compiler – No RTL code and no FPGA-specific tools needed: accelerated workloads are deployed as containers, as in purely software scenarios – Device-specific details hidden by the CGRA, so the same approach can be used on FPGA devices with different cost and performance |
| Download | github.com/des-cei/strela github.com/des-cei/x-trela github.com/des-cei/strela_cva6 github.com/des-cei/cgra_gen (compilation framework, see the CGRA compiler) |
| Role in MYRTUS | Heterogeneous, hardware-accelerated edge node of the MYRTUS infrastructure (Edge layer), programmed through the CGRA compiler of the DPE. |
| TRL@M0 | 3-4 |
| TRL@M36 | 4-5 |
General description
The RISC-V processor with custom CGRA-based extensions is a heterogeneous computing platform that combines an open-source RISC-V processor with STRELA, a dynamically reconfigurable, multi-grain coarse-grained reconfigurable array (CGRA). The control-intensive sections of an application remain on the RISC-V cores, while the computing-intensive ones, typically loops, are offloaded to the CGRA. As both are integrated on the same device, the two parts of the application collaborate efficiently on the same workload. The CGRA was already available for microcontroller-grade RISC-V systems before the project.
The CGRA is a two-dimensional array of processing elements (PEs) with neighbour-to-neighbour connections. Each PE provides a reduced set of integer arithmetic and logic operations, together with the logic needed for conditional paths. The array uses elastic logic, with a valid/ready pair for each data signal: once configured, it computes a kernel without time-multiplexing instructions, and the hardware itself keeps the alternative paths of the dataflow synchronised, without compiler or programmer intervention. Depending on the kernel, its datapath can be replicated through loop unrolling to exploit data-level parallelism, split into several sub-graphs computed one after the other when it does not fit the array, or mapped as a single graph. The FPGA fabric can be reconfigured at different levels of granularity: coarse-grained for large fabric regions, medium-grained for regular two-dimensional computing structures, and fine-grained for LUT contents and PE functionality.
Figure 1. CGRA integration (memory-mapped) on X-HEEP, a microcontroller system based on a RISC-V core.
Figure 2. Detailed view of the memory-mapped CGRA-based accelerator.
Figure 3. Detailed view of one PE of the CGRA accelerator.
MYRTUS Extension/Contribution
Within the project, the platform has evolved from a single RISC-V core coupled with the CGRA into a multicore, cache-coherent architecture integrating several Linux-capable RISC-V cores with CGRA-based acceleration. This makes it suitable for application-grade GNU/Linux systems and for heterogeneous edge computing, where workloads need both general-purpose processing and application-specific parallel acceleration. The main contributions are:
- X-HEEP integration. The CGRA was first integrated with the X-HEEP RISC-V platform, providing an initial processor-based environment to control and access the accelerator.
- CVA6 integration. The CGRA was then coupled with the application-grade CORE-V CVA6 processor through an AXI-based memory-mapped interface, so that software running on the processor can configure the accelerator and exchange data with it through a standard hardware interface.
- DMA-based data movement. A DMA wrapper transfers data efficiently between system memory and the CGRA, reducing the involvement of the processor during accelerator execution.
- GNU/Linux support. A Linux driver makes the CGRA usable within an application-grade RISC-V software environment, rather than as an isolated hardware accelerator.
- Multicore CVA6-based SoC. The architecture has been extended to a multicore system with up to four CVA6 cores connected through a network-on-chip, built on the open-source ESP platform from Columbia University. The CGRA is integrated as an accelerator tile, with interrupt support, and operates as part of a heterogeneous multicore system.
- Shared-buffer support. A user-space library based on the Linux dma-buf framework manages shared buffers and coordinates accelerator execution and data exchange between the CGRA, the processor cores and system memory, hiding most of the device-specific memory management from applications.
- Optional IOMMU support. An optional IOMMU lets the CGRA access shared buffers through virtual addresses, with better memory protection and isolation.
- K3s and containerised workloads. The platform has been integrated with K3s, the lightweight Kubernetes distribution, so that containerised applications can access and use the CGRA.
- FPGA-based implementation with ASIC potential. The platform is implemented and evaluated on FPGA; its modular organisation and standard interfaces provide a potential basis for future integration in a RISC-V-based ASIC or heterogeneous SoC.
The code to be offloaded on the CGRA is selected and mapped automatically by the MLIR-based CGRA compiler developed by UPM in the MYRTUS DPE, which also generates the software that drives the accelerator from the RISC-V cores.
Integration in the continuum
The CGRA is part of the FPGA-based edge nodes of UPM in the MYRTUS reference infrastructure. These nodes, based on ARM processors with the CGRA or with ARTICo³, an UPM architecture for adaptive hardware acceleration, run GNU/Linux and are FPGA agents of a K3s cluster, with an x86 virtual machine as control plane. UPM first prototyped the Kubernetes (K3s) and Liqo support for heterogeneous reconfigurable systems with ARTICo³, on FPGA boards with different amounts of resources mimicking the edge, the fog and the cloud.
Through Liqo, the UPM cluster is the centre of a federation with the edge and fog clusters of other partners, which it represents as virtual nodes. Containerised hardware acceleration is deployed on the boards through the standard K3s workflow, and the FPGA agents are exposed as deployment targets to the MYRTUS orchestration layer: a workload is first assigned to the virtual node of a cluster and then bound to the target board. Connectivity with the Distributed Knowledge Base through its standard APIs has been tested from these nodes. Power consumption and computing performance are monitored at run time with the framework extended by UPM together with UNICA and UNISS, described in Monitoring and Observability, and predictive models built on these traces guide local workload scheduling in the MIRTO cognitive engine.
The multicore RISC-V + CGRA SoC runs a RISC-V port of K3s, from a community initiative backed by Horizon Europe projects, and works as a K3s agent: containerised applications, together with the libraries to share buffers, configure the CGRA and synchronise its execution, are scheduled by the K3s server and executed on the CGRA, like on any other node of a lightweight Kubernetes cluster. Since K3s does not yet support RISC-V officially, this node is kept in a separate cluster rather than in the federated one, to avoid interoperability issues.
Technology Benefits and Innovations
The core benefit of the platform is the integration of spatially reconfigurable acceleration with a Linux-capable RISC-V computing platform: compute-intensive kernels are mapped onto the CGRA while control-oriented functionality remains on the general-purpose processors, combining software flexibility with specialised hardware acceleration.
Spatially reconfigurable acceleration
Unlike instruction-based accelerators, which time-multiplex operations on a limited number of processing resources, the CGRA maps operations spatially onto configurable processing elements, so that many of them execute concurrently. Different spatial mappings can be used depending on the parallelism, structure and complexity of the application, so the programmable resources adapt to different acceleration requirements instead of being restricted to a fixed hardware configuration.
Open and extensible RISC-V foundation
Being based on open RISC-V processors, the platform integrates custom accelerators without depending on a proprietary instruction set, with full flexibility in the design of the processor-accelerator interface. The CGRA has been integrated in RISC-V systems ranging from lightweight microcontrollers (X-HEEP) to Linux-capable single-core and multicore systems (CVA6, ESP), showing its adaptability to systems with different processing capabilities and software support.
Heterogeneous processing
General-purpose multicore processors are flexible but may be inefficient on highly parallel kernels, while fixed-function accelerators are fast on specific workloads but hard to adapt when requirements change. Combining RISC-V cores and a CGRA lets each part of a workload run on the most appropriate resource, which suits applications that mix irregular control flow with regular, data-parallel computation.
Linux, container and cloud-edge integration
GNU/Linux makes the CGRA accessible from application software, and K3s lets accelerator-based workloads be deployed and managed as containers. Reconfigurable hardware acceleration is thus connected to the software infrastructure used across the cloud-edge continuum, and the CGRA becomes part of a software-managed edge node driven by standard operating-system and orchestration mechanisms.
Portability and reuse of acceleration resources
The CGRA hides the low-level, device-specific details of the FPGA, so that offloaded code is described as software rather than as hardware and the same flow can target devices with different cost and performance profiles. Reconfigurable resources can be reused by different workloads over time, and shared among several users, which makes better use of the acceleration infrastructure, for example in AI workloads where energy efficiency matters.
FPGA implementation and future ASIC integration
The FPGA implementation provides a flexible environment to develop and validate the CGRA, its integration with the processor, the communication mechanisms and the software stack, while the modular organisation and standard interfaces open a path towards future ASIC or heterogeneous SoC implementations.
Users
On the market side, the platform, together with its CGRA compiler, is of interest to cloud and edge service providers, and to companies with their own on-premise acceleration resources in fields such as industry, healthcare or smart cities. They can offer reconfigurable acceleration services across the cloud-edge continuum, also for AI and machine-learning workloads in different application domains, and distribute workloads across heterogeneous FPGA devices, without writing hardware description code or depending on a specific device.
The expected users also include researchers and developers working on reconfigurable computing, RISC-V systems, heterogeneous architectures and hardware acceleration, as well as system architects and embedded or edge-computing developers who need to combine general-purpose processing with programmable acceleration in a Linux-based environment. Compiler, runtime and resource-management developers can use the platform as a target for automated software-to-hardware offloading, accelerator management and scheduling techniques. In cloud-edge environments, it is also relevant for infrastructure developers interested in exposing specialised hardware acceleration through standard container and orchestration mechanisms.
Application Domains
The platform targets application domains requiring flexible and energy-efficient acceleration at the edge, including embedded and cyber-physical systems, signal and data processing, edge AI, industrial computing and other compute-intensive applications that can benefit from mapping selected kernels onto reconfigurable hardware. It is particularly suitable for applications combining control-intensive software with parallelisable or dataflow-oriented computational kernels.
References
- D. Vázquez, J. Miranda, A. Rodríguez, A. Otero, “X-TRELA: An Open-Source Streaming Elastic CGRA With ASIC Implementation for the Edge”, IEEE Access, vol. 14, pp. 96677-96697, 2026. DOI
- I. D. de Ulzurrun, J. Encinas, A. Rodríguez, A. Otero, “Cloud-Edge Continuum Infrastructure for Reconfigurable Multi-Accelerator Systems”, in Proc. DCIS 2024. DOI
- J. Granja, “Integration of a CGRA Accelerator with a CVA6 RISC-V Core for the Cloud-edge Continuum”, MSc Thesis, Universidad Politécnica de Madrid, 2024. oa.upm.es/83488
- Preprint: arxiv.org/pdf/2404.12503
- Repositories: STRELA, X-TRELA, strela_cva6, cgra_gen, ARTICo³
- Technologies used: CORE-V CVA6, ESP, K3s for RISC-V (kubernetes-riscv64)