Culsans: An Efficient Snoop-based Coherency Unit for the CVA6 Open Source RISC-V application processor

Riccardo Tedeschi, Luca Valente, Gianmarco Ottavi, Enrico Zelioli, Nils Wistoff, Massimiliano Giacometti, Abdul Basit Sajjad, Luca Benini, Davide RossiarXiv 2024 · DOI

Introduction

In high-end embedded systems, such as those utilized in automotive and industrial automation, multi-core processing is essential for meeting performance demands. A critical component of these systems is the cache coherency unit (CCU), which ensures that all processor cores maintain a consistent view of shared data across their individual local caches.

While the RISC-V ecosystem has seen rapid growth, existing open-source coherency solutions often present significant drawbacks for small-scale clusters (2–4 cores). Directory-based solutions, like those found in the OpenPiton platform, are designed to scale to dozens of cores but introduce unnecessary latency and area overhead in smaller configurations. Conversely, other efficient solutions are often written in niche hardware construction languages like Chisel, complicating integration into standard industrial SystemVerilog-based EDA workflows. Culsans addresses this gap by providing a lightweight, snoop-based CCU implemented in SystemVerilog and compliant with industry-standard protocols.

System Architecture and Implementation

Culsans is designed to support small clusters of CVA6 application processors. The architecture leverages a snoop-based coherency mechanism, which is inherently more efficient for low core counts than directory-based alternatives. At its core, Culsans implements the MOESI (Modified, Owned, Exclusive, Shared, Invalid) state machine, mapping these states to the Arm AMBA ACE protocol. This protocol extends standard AXI interfaces with dedicated channels for snoop requests and responses, ensuring broad industry compatibility.

The Culsans system architecture showing the Tightly Coupled Domain and the Cache Coherency Unit.

To support this protocol, the standard CVA6 Write-Back (WB) cache was modified to include three status flags (valid, shared, and dirty) and a dedicated Snoop Controller. This controller allows the cache to handle external snoop requests without unnecessarily stalling the core. The central CCU features a pipelined architecture and includes a Collision Checker—an associative table that tracks active memory transactions to prevent data corruption from simultaneous requests to the same address.

Experimental Methodology

The researchers evaluated Culsans using the Splash-3 benchmark suite, a standard for testing shared-memory parallel applications. The suite includes a variety of scientific simulations (Ocean, Barnes, Cholesky, FMM) and mathematical kernels (FFT, RADIX, LU). The performance of the Culsans-based cluster was compared directly against a directory-based configuration using the OpenPiton platform. All hardware was synthesized using GlobalFoundries 22nm FDSOI technology to assess area and frequency impacts.

Key Results and Performance Analysis

The evaluation demonstrated that Culsans significantly outperforms directory-based solutions in small-scale clusters. In a dual-core configuration, Culsans achieved an average performance improvement of 15.8% across the Splash-3 suite. Peak performance gains reached as high as 32.87% for memory-intensive applications like OCEAN.

Average dual-core performance of Culsans compared to a directory-based baseline across Splash-3 benchmarks.

Beyond raw speed, Culsans is remarkably efficient in terms of hardware resources. Synthesis results show that the CCU occupies only 1.6% of the total system area. Furthermore, the integration of the coherency logic did not degrade the maximum clock frequency of the cluster, maintaining the high-speed operation required for application-class processors. The results highlight that for small core counts, the reduced latency of a snoop-based system is the primary driver of performance gains.

Conclusion and Future Work

Culsans provides a high-performance, area-efficient, and standard-compliant cache coherency solution for the RISC-V community. By filling the gap between simple non-coherent systems and overly complex directory-based many-core platforms, it enables the development of more efficient high-end embedded SoCs. Future work will focus on scaling the architecture to 8-core clusters, integrating non-blocking caches to further reduce memory stalls, and implementing safety-critical features to meet the rigorous demands of the automotive industry.

Summary updated

BibTeX
@misc{tedeschi2024culsans,
  author = {Riccardo Tedeschi and Luca Valente and Gianmarco Ottavi and Enrico Zelioli and Nils Wistoff and Massimiliano Giacometti and Abdul Basit Sajjad and Luca Benini and Davide Rossi},
  title = {{Culsans: An Efficient Snoop-based Coherency Unit for the CVA6 Open Source RISC-V application processor}},
  year = {2024},
  eprint = {2407.19895},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.19895},
}
Figure