Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Jan 12;14(1):196.
doi: 10.3390/mi14010196.

Real-Time RISC-V-Based CAN-FD Bus Diagnosis Tool

Affiliations

Real-Time RISC-V-Based CAN-FD Bus Diagnosis Tool

Cosmin-Andrei Popovici et al. Micromachines (Basel). .

Abstract

Network Diagnosis Tools with industrial-grade quality are not widely available for common users such as researchers and students. This kind of tool enables users to develop Distributed Embedded Systems using low-cost and reliable setups. In the context of RISC-V Extensions and Domain-Specific Architecture, this paper proposes a Real-Time RISC-V-based CAN-FD Bus Diagnosis Tool, named RiscDiag CanFd, as an open-source alternative. The RISC-V Core extension is a CAN-FD Communication Unit controlled by a dedicated ISA Extension. Besides the extended RISC-V core, the proposed SoC provides UDP Communication via Ethernet for connecting the proposed solution to a PC. Additionally, a GUI application was developed for accessing and using the hardware solution deployed in an FPGA. The proposed solution is evaluated by measuring the lost frame rate, the precision of captured frames timestamps and the latency of preparing data for Ethernet communication. Measurements revealed a 0% frame loss rate, a timestamp error under 0.001% and an acquisition cycle jitter under 10 ns.

Keywords: CAN-FD; FPGA; RISC-V; SoC; UDP; communication; ethernet; hardware acceleration.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
The Architecture of the RISC-V based CAN-FD Bus Diagnosis Tool.
Figure 2
Figure 2
RisCanFd CPU Block Diagram illustrating the CAN-FD Extension [6].
Figure 3
Figure 3
CAN-FD Bus Diagnose Module Architecture.
Figure 4
Figure 4
The Expanded Architecture of the UART Debugger.
Figure 5
Figure 5
Information Flow in the Main Application of the Driver.
Figure 6
Figure 6
The Test Setup.
Figure 7
Figure 7
Plot of recovery time measurement results from Table 5.
Figure 8
Figure 8
Oscillogram of the CAN-FD frame acquisition cycle captured with the logic analyzer.
Figure 9
Figure 9
Oscillogram presenting multiple CAN-FD acquisition cycles.
Figure 10
Figure 10
Reaction Time Comparison Chart.

References

    1. Moore G. Cramming more components onto integrated circuits. Electronics. 1965;38:114–117. doi: 10.1109/JPROC.1998.658762. - DOI
    1. Dennard R., Gaensslen F. Design of ion-implanted MOSFET’s with very small physical dimensions. IEEE J. Solid-State Circuits. 1974;9:256–268. doi: 10.1109/JSSC.1974.1050511. - DOI
    1. Asanovic K., Patterson D. Instruction Sets Should Be Free: The Case for RISC-V. University of California at Berkeley; Berkeley, CA, USA: 2014.
    1. Kimura Y., Kikuchi T., Ootsu K., Yokota T. Proposal of Scalable Vector Extension for Embedded RISC-V Soft-Core Processor; Proceedings of the 2019 Seventh International Symposium on Computing and Networking Workshops (CANDARW); Nagasaki, Japan. 26–29 November 2019; - DOI
    1. Gautschi M., Schiavone P.D., Traber A., Loi I., Pullini A., Rossi D., Flamand E., Gurkaynak F.K., Benini L. Near-Threshold RISC-V Core with DSP Extensions for Scalable IoT Endpoint Devices. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 2017;25:2700–2713. doi: 10.1109/TVLSI.2017.2654506. - DOI

LinkOut - more resources