SentryCore: A RISC-V Co-Processor System for Safe, Real-Time Control Applications

Michael Rogenmoser, Alessandro Ottaviano, Thomas Benz, Robert Balas, Matteo Perotti, Angelo Garofalo, Luca BeniniarXiv 2024 · DOI

Introduction

Modern Mixed-Criticality Systems (MCSs)—found in autonomous vehicles, drones, and industrial robotics—face a significant architectural challenge. They must balance high-performance processing for non-critical tasks, such as computer vision, with absolute reliability for safety-critical functions like steering or braking. The industry standard for ensuring safety is physical isolation, where critical tasks are relegated to dedicated hardware. However, most existing safety-critical co-processors are proprietary. SentryCore emerges as an open-source, vendor-neutral RISC-V "mega-IP" designed to provide a dependable, predictable, and low-latency reference platform for these real-time applications.

Architectural Design

The SentryCore architecture, developed by researchers at ETH Zurich and the University of Bologna, leverages several key strategies to ensure fault tolerance and real-time responsiveness.

The SentryCore architectural block diagram highlights the Triple-Core Lockstep (TCLS) arrangement and the integration of specialized components like the iDMA and ECC-protected memory.

At its heart is the Triple-Core Lockstep (TCLS) mechanism. Three identical CV32RT RISC-V cores operate in parallel, processing the same inputs. A "majority voter" compares their outputs; if a transient fault (such as a radiation-induced bit-flip) occurs in one core, the remaining two override it. To further enhance performance, the CV32RT cores include a custom fastirq extension. This extension utilizes register file banking to enable rapid task switching without the overhead of saving and restoring registers to memory.

Reliability is extended to the memory subsystem, where both instruction and data memories are protected by Error-Correcting Codes (ECC) and hardware scrubbers. Additionally, an intelligent Direct Memory Access (iDMA) engine with a real-time engine automates data acquisition, reducing the interrupt load on the main processor cores. The entire system is packaged as a "mega-IP" block, facilitating integration into larger SoCs via a standard AXI4 interface.

Evaluation and Performance

SentryCore was evaluated using industry-standard Real-Time Operating Systems (RTOSes), including FreeRTOS, Azure RTOS ThreadX (ASIL-D certified), and the Rust-based RTIC framework. The hardware was implemented using Intel’s 16nm process node to verify its physical characteristics.

The physical layout of SentryCore in Intel 16nm technology shows the spatial distribution of the three processor cores and the dual memory banks.

The implementation results demonstrate significant performance advantages:

  • Interrupt Latency: Reduced to as low as 6 clock cycles.
  • Context Switching: Achieved in fewer than 110 clock cycles.
  • Physical Footprint: The system occupies a compact 0.42 mm² area.
  • Power and Speed: It operates at 500 MHz with an estimated power consumption of 50–70 mW.
  • Recovery Time: In the event of a lockstep mismatch, the system can resynchronize and resume execution in approximately 600 clock cycles.

Conclusion and Future Directions

SentryCore demonstrates that safety-critical hardware can be both open-source and high-performance. By utilizing the RISC-V ISA, it offers a transparent and verifiable alternative to proprietary "black box" solutions. While the current design provides robust protection for the cores and memory, the researchers identify the internal interconnect as a future area for hardening. Subsequent iterations will aim to extend reliability mechanisms to the communication infrastructure, ensuring end-to-end resilience for next-generation heterogeneous SoCs.

Summary updated

BibTeX
@misc{rogenmoser2024sentrycore,
  author = {Michael Rogenmoser and Alessandro Ottaviano and Thomas Benz and Robert Balas and Matteo Perotti and Angelo Garofalo and Luca Benini},
  title = {{SentryCore: A RISC-V Co-Processor System for Safe, Real-Time Control Applications}},
  year = {2024},
  eprint = {2406.06546},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.06546},
}
Figure