Real-Time Performance Benchmarking of RISC-V Architecture: Implementation and Verification on an EtherCAT-Based Robotic Control System

Taeho Yoo,Byoung Wook Choi
DOI: https://doi.org/10.3390/electronics13040733
IF: 2.9
2024-02-12
Electronics
Abstract:RISC-V offers a modular technical approach combined with an open, royalty-free instruction set architecture (ISA). However, despite its advantages as a fundamental building block for many embedded systems, the escalating complexity and functional demands of real-time applications have made adhering to response time deadlines challenging. For real-time applications of RISC-V, real-time performance analysis is required for various ISAs. In this paper, we analyze the real-time performance of RISC-V through two real-time approaches based on processor architectures. For real-time operating system (RTOS) applications, we adopted FreeRTOS and evaluated its performance on HiFive1 Rev B (RISC-V) and STM3240G-EVAL (ARM M). For real-time Linux, we utilized Linux with the Preempt-RT patch and tested its performance on VisionFive 2 (RISC-V), MIO5272 (x86-64), and Raspberry Pi 4 B (ARM A). Through these experiments, we examined the response times on the real-time mechanisms of each operating system. Additionally, in the Preempt-RT experiments, scheduling latencies were evaluated by means of the cyclictest. These are very important parameters for implementing real-time applications comprised of multi-tasking. Finally, in order to show the real-time capabilities of RISC-V practically, we implemented motion control of a six-axis collaborative robot, which was performed on the VisionFive 2. This implementation provided a comparative result of RISC-V's performance against the x86-64 architecture. Ultimately, the results indicated that the real-time performance of RISC-V for real-time applications was feasible. A noticeable achievement of this research is its first implementation of an EtherCAT master on RISC-V designed for real-time applications. The successful implementation of the EtherCAT master on RISC-V shows real-time capabilities for a wide range of real-time applications.
engineering, electrical & electronic,computer science, information systems,physics, applied
What problem does this paper attempt to address?
### Problems Addressed by the Paper This paper primarily explores the performance of the RISC-V architecture in real-time applications and analyzes it through two different real-time methods (based on processor architecture). Specifically: 1. **Real-time Performance Analysis**: - Evaluated the performance of real-time operating system (RTOS) applications under RISC-V and ARM M architectures using FreeRTOS. - Assessed the real-time Linux performance under RISC-V, x86-64, and ARM A architectures using Linux with the Preempt-RT patch. 2. **Inter-Task Communication (ITC) Mechanism Comparison**: - Measured the response times of inter-task communication mechanisms (such as queues, stream buffers, message buffers, semaphores, and mutexes) under FreeRTOS for RISC-V (HiFive1 Rev B) and ARM M (STM3240G-EVAL). - Measured the response times of inter-task communication mechanisms (such as pipes, FIFO, message queues, semaphores, and mutexes) under Linux with the Preempt-RT patch for RISC-V (VisionFive 2), x86-64 (MIO5272), and ARM A (Raspberry Pi 4 B), and evaluated scheduling latency using cyclictest. 3. **Implementation of EtherCAT Master**: - Implemented an EtherCAT master for real-time applications on RISC-V for the first time and applied it to the motion control of a six-axis collaborative robot to verify the real-time capability of RISC-V in practical applications. In summary, this paper aims to demonstrate that the RISC-V architecture can meet the needs of real-time applications by comparing the performance of RTOS and real-time Linux under different architectures, providing valuable reference information for the design and development of real-time systems.