Towards a RISC-V Open Platform for Next-generation Automotive ECUs

Luca Cuomo, Claudio Scordino, Alessandro Ottaviano, Nils Wistoff, Robert Balas, Luca Benini, Errico Guidieri, Ida Maria Savino

Introduction

The automotive industry is undergoing a paradigm shift from decentralized Electronic Control Units (ECUs) to centralized zonal architectures. Modern luxury vehicles often house over 100 independent ECUs, creating a "cabling nightmare" of unsustainable weight and complexity. To address this, manufacturers are consolidating functions—ranging from infotainment to safety-critical engine control—onto a few powerful "Vehicle Computers."

This consolidation introduces a significant mixed-criticality challenge: running a feature-rich operating system like Linux alongside a safety-critical Real-Time Operating System (RTOS) without compromising deterministic performance. While proprietary solutions exist, they often involve vendor lock-in. This paper proposes a fully open-source hardware and software stack based on RISC-V that provides a viable alternative for next-generation automotive ECUs.

System Architecture: The AMP Approach

The researchers developed a heterogeneous Asymmetric Multi-Processor (AMP) system implemented on a Xilinx Zynq UltraScale+ FPGA. Unlike hypervisor-based solutions that share a single core, the AMP approach uses separate hardware cores for different domains, providing superior physical isolation essential for ASIL-D safety certification.

The heterogeneous software stack for mixed-criticality automotive applications.

The "Rich" domain utilizes a quad-core ARM Cortex-A53 running Linux with the PREEMPT_RT patch to handle high-level tasks like ROS2. Conversely, the "Safety" domain employs an open-source 64-bit CVA6 RISC-V core running the ERIKA Enterprise RTOS, an OSEK/AUTOSAR-compliant system. Communication between these domains is managed via Data Distribution Service (DDS) and Micro-ROS over an AXI4 hardware transport.

Hardware Innovation: Enhancing RISC-V for Real-Time

A primary hurdle for RISC-V in automotive settings has been its standard interrupt handling, which lacks the predictability of commercial processors like the ARM Cortex-R series. To bridge this "interrupt gap," the authors replaced standard controllers with a custom Core Local Interrupt Controller (CLIC).

Architecture of the Core Local Interrupt Controller (CLIC) integrated with the CVA6 RISC-V core.

The CLIC introduces several hardware features critical for automotive safety:

  • Vectored Interrupts: Direct jumps to service routines to minimize latency.
  • Preemption and Nesting: Immediate interruption of lower-priority tasks by high-priority ones.
  • Tail-chaining: Optimized handling of consecutive interrupts.

Performance Evaluation

The platform was evaluated using industry-standard benchmarks, including cyclictest for Linux and specialized RTOS suites for the RISC-V core.

Linux Real-Time Performance

The application of the PREEMPT_RT patch proved transformative, reducing worst-case Linux latency from 13.4 ms to just 159 µs—a 99% improvement that makes it suitable for high-level automotive control.

RISC-V vs. ARM

With the CLIC enhancements, the open-source CVA6 core achieved interrupt response times comparable to the commercial ARM Cortex-R5. In metrics such as task activation and interrupt entry/exit, the RISC-V implementation matched or even outperformed its proprietary competitor. Inter-domain communication latency was measured at a maximum of 3.7 ms, meeting the requirements for many non-control-loop interactions.

Conclusion and Future Outlook

This research demonstrates that an open-source hardware/software stack can meet the rigorous demands of the automotive industry. By addressing the RISC-V interrupt handling deficiencies through hardware extensions, the authors have created a platform that rivals proprietary solutions in performance and safety isolation.

Future work will focus on further hardware optimizations, such as banked stack pointers and automated register saving, to further reduce context-switch overhead. Additionally, the team plans to transition to full DDS protocols and implement SCHED_DEADLINE policies in Linux to enhance the predictability of cross-domain data exchange.

Summary updated

BibTeX
@inproceedings{cuomo2023towards,
  author = {Luca Cuomo and Claudio Scordino and Alessandro Ottaviano and Nils Wistoff and Robert Balas and Luca Benini and Errico Guidieri and Ida Maria Savino},
  title = {{Towards a RISC-V Open Platform for Next-generation Automotive ECUs}},
  booktitle = {MECO},
  year = {2023},
}
Figure