Multifunctional vehicle bus communication network card based on FPGA and RISC-V

By using the collaborative design of FPGA and RISC-V processor in MVB communication equipment, the problems of high equipment complexity and high cost are solved, efficient and reliable MVB bus communication is achieved, and the high requirements of railway vehicle control and monitoring systems are met. Reliability, low cost and small size requirements.

CN118740544AActive Publication Date: 2024-10-01CRRC QINGDAO SIFANG ROLLING STOCK RESEARCH INSTITUTE CO LTD

Patent Information

Application Number
CN202410957533.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-01
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

Existing MVB communication equipment is complex, costly and bulky, making it difficult to meet the high reliability, low cost and small size requirements of railway vehicle control and monitoring systems.

Method used

Design a multifunctional vehicle bus communication network card based on FPGA and RISC-V. It is connected to the host computer bus through the FPGA chip and uses the RISC-V processor and FPGA logic module to work together to achieve frame analysis, data processing and status monitoring, reducing the cost reduces system complexity and cost.

Benefits of technology

It achieves efficient and reliable MVB bus communication, simplifies the system structure, reduces the board area and cost, improves the competitiveness of the product, and meets the needs of railway vehicle control and monitoring systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740544A_ABST
    Figure CN118740544A_ABST
Patent Text Reader

Abstract

The invention relates to a multifunctional vehicle bus communication network card based on an FPGA and an RISC-V. The multifunctional vehicle bus communication network card comprises a user interface, an FPGA chip and a transceiver circuit. The user interface is a PC104 interface, and the FPGA chip is connected to an upper computer bus; the FPGA chip comprises an FPGA logic module, an AXI to EMIF bus module and an RISC-V processor. The FPGA logic module receives and processes an upper computer instruction and an MVB bus signal, and packages the upper computer instruction and the MVB bus signal into an MVB frame for sending; the RISC-V processor is used for processing instructions and data of the FPGA logic module; the AXI to EMIF bus module is used for realizing interface conversion; the transmit-receive circuit processes the MVB frame signal. And the FPGA logic module also controls receiving and transmitting of an MVB link and a frame. According to the invention, the problems of high complexity, high cost and large size of the existing MVB communication equipment are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of rail transit technology, and in particular relates to a multifunctional vehicle bus communication network card based on FPGA and RISC-V. Background Art

[0002] Multifunction Vehicle Bus (MVB) is a communication bus used for railway vehicle control and monitoring. MVB bus has the characteristics of high reliability and high real-time performance, so it has been widely used in railway vehicle control and monitoring systems. According to the definition of IEC-61375, the devices connected to MVB can be divided into 5 categories according to their functions. Among them, Class 1-3 devices have device status performance, process data performance or message data performance, etc., and can be used as MVB slave devices; while Class 4 and Class 5 devices also have bus management performance, which can be used as both slave devices and master devices. Traditional Class 4 or Class 5 MVB devices use MCU+FPGA independent chip architecture, in which MCU is responsible for processing communication protocols and data logic; and FPGA (Field-Programmable Gate Array), whose Chinese name is field programmable gate array, is used to implement communication interface and protocol control. However, this independent chip architecture increases the complexity, cost and volume of the board.

[0003] RISC-V is an open standard instruction set architecture (ISA). Its full name is Reduced Instruction Set Computer V. It is based on the mature reduced instruction set computer (RISC) design principles. It is an open, flexible and scalable computer architecture with broad application prospects in the processor field.

[0004] Therefore, it is of great significance to design an integrated solution based on domestic FPGA and RISC-V to meet the requirements of railway vehicle control and monitoring systems for high reliability, low cost and small size, and to realize autonomous and controllable cost-effective Category 4 or Category 5 MVB communication network cards. Summary of the invention

[0005] Aiming at the deficiencies existing in the related art, the present invention solves the problems of high complexity, cost and large volume of the existing MVB communication equipment in the prior art. The present invention provides a multifunctional vehicle bus communication network card based on FPGA and RISC-V.

[0006] In a possible implementation, a multifunctional vehicle bus communication network card based on FPGA and RISC-V is provided, including: a user interface, an FPGA chip and a transceiver circuit; wherein the user interface is a PC104 interface, and the FPGA chip is connected to the bus of the host computer; the FPGA chip includes: an FPGA logic module, an AXI to EMIF bus module and a RISC-V processor; wherein the FPGA logic module is configured to: receive instructions and / or data from the host computer, and send the received instructions and / or data to the RISC-V processor; receive the processing results sent by the RISC-V processor and send them to the host computer; receive the signal transmitted from the MVB bus via the transceiver circuit, and perform one or more of the following operations: frame parsing, data processing and status monitoring; pack the processed data into MV B frame is sent to the MVB bus through the transceiver circuit; the RISC-V processor is configured to receive and process the instructions and / or data sent by the FPGA logic module, and send the processing results to the FPGA logic module; the AXI to EMIF bus module, whose AXI bus is connected to the RISC-V processor, and whose EMIF bus is connected to the FPGA logic module, is configured for interface conversion between the AXI bus and the EMIF bus; the transceiver circuit connects the FPGA chip and the MVB bus, and is configured to: receive the MVB frame sent from the FPGA logic module, and transmit the converted signal to the MVB bus; and receive the signal transmitted from the MVB bus, convert it into a standard signal and send it to the FPGA logic module; wherein the FPGA logic module is also configured to perform MVB link control and MVB frame transceiver control.

[0007] In one possible implementation, the FPGA logic module includes a PC104 protocol module, an MVB bus transceiver module, a RISC-V processor interface module, an MVB link layer control module and a memory management module; wherein the PC104 protocol module communicates with a host computer and can access the memory management module and write to the memory management module; the MVB bus transceiver module communicates with the MVB bus and can access the memory management module and write to the memory management module; the RISC-V processor interface module communicates with the RISC-V processor and can access the memory management module and write to the memory management module; the MVB link layer control module is configured to perform MVB link control; the memory management module is used to store data, including one or more of the following: MVB configuration data, communication data.

[0008] In a possible implementation, the PC104 protocol module includes: a PC104 receiving module, a PC104 sending module and a PC104 control module; the PC104 receiving module receives commands and parameters from the host computer through a parallel bus, and sends a command reception completion pulse to the PC104 control module; the PC104 sending module receives command return data processed by the PC104 control module, and sends it to the host computer through the parallel bus; the PC104 control module processes the received commands and sends the results to the PC104 sending module.

[0009] In a possible implementation, the MVB bus transceiver module includes: an MVB sending module, an MVB-A receiving module, an MVB-B receiving module and an AB selecting control module; the MVB sending module is configured to send master-slave frames according to the MVB standard; the MVB-A receiving module and the MVB-B receiving module are configured to receive data frames transmitted on the MVB bus; the AB selecting control module is configured to perform AB redundant switching of the MVB bus, process redundant switching, and forward the data set as the trust line in the AB road upward.

[0010] In a possible implementation, the MVB link layer control module is configured to perform one or more of the following operations: process data master frame sending, process data slave frame processing, monitoring data slave frame processing, and message data slave frame processing.

[0011] In one possible implementation, the RISC-V processor adopts a three-stage pipeline processor architecture, including an instruction fetch unit, a decoding unit and an execution unit connected in sequence, a pipeline buffer I is set between the instruction fetch unit and the decoding unit, a pipeline buffer II is set between the decoding unit and the execution unit, and also includes a pipeline controller connecting the instruction fetch unit, the decoding unit and the execution unit; wherein the instruction fetch unit is configured to be controlled by the pipeline controller to obtain instructions and pre-process the instructions via the AXI bus, and send the processed instructions to the pipeline memory I and / or store them in the memory via the AXI bus; the pipeline buffer I is configured to store the instruction fetch unit. The preprocessed instructions and / or the instructions output by the memory are sent to the decoding unit after being synchronized; the decoding unit is configured to decode according to the instructions sent by the pipeline buffer I module, and after decoding the specific instructions, a signal whether to read or write the register is generated; when the decoding unit sends a read register signal, the register module immediately sends the data of the read register module, and the data of the register module and the write register signal are sent to the pipeline buffer II together; the pipeline buffer II is configured to synchronize the signal whether to write the register and the data of the register module and send them to the execution unit; the execution unit is a combinational logic circuit, which performs corresponding operations according to the specific instructions.

[0012] In a possible implementation, the pipeline controller is further configured to: be connected to the decoding unit and / or the execution unit, and send one or more of the following instructions: pipeline pause, jump; the instruction fetch unit, the decoding unit and / or the execution unit are controlled by the instructions of the pipeline controller to perform corresponding pipeline pause and / or jump operations.

[0013] In one possible implementation, the transceiver circuit includes an RS485 chip, an ESD protection circuit, an isolation transformer, and an AC decoupling circuit connected in sequence; wherein the RS485 chip is used to convert the single-ended signal of the FPGA chip into an RS485 level standard signal, which is then output to the MVB bus after passing through the ESD protection circuit, the isolation transformer, and the AC decoupling circuit.

[0014] Based on the above technical scheme, in the multifunctional vehicle bus communication network card based on FPGA and RISC-V of the present invention, the user interface connects the FPGA chip to the host computer bus, the logic module of the FPGA chip receives the instructions and data of the host computer, and passes them to the RISC-V processor for processing; the processed results are returned to the host computer through the FPGA logic module; at the same time, the FPGA logic module communicates with the MVB bus through the transceiver circuit, receives the signal transmitted by the MVB bus, performs frame parsing, data processing and status monitoring, and packages the processed data into MVB frames and sends them back to the MVB bus; the AXI to EMIF bus module is used for interface conversion between the RISC-V processor and the FPGA logic module, ensuring efficient transmission and processing of data, realizing reliable communication and efficient processing of the vehicle bus communication network card, and solving the problems of high complexity, cost and large size of the existing MVB communication equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0016] Figure 1 A logical architecture diagram of a multifunctional vehicle bus communication network card based on FPGA and RISC-V according to an embodiment of the present invention;

[0017] Figure 2 A circuit block diagram of a transceiver circuit according to an embodiment of the present invention;

[0018] Figure 3 This is the logical architecture diagram of the FPGA logic module;

[0019] Figure 4 This is the overall architecture diagram of the RISC-V processor. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0021] In the description of the present invention, it should be understood that the terms "center", "lateral", "longitudinal", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0022] The terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the technical features indicated. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.

[0023] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0024] In order to solve the problems of high complexity, large cost and large size of existing MVB communication equipment in the prior art.

[0025] This application provides a multifunctional vehicle bus communication network card based on FPGA and RISC-V, see Figure 1, including: user interface, FPGA chip and transceiver circuit; wherein the user interface is a PC104 interface, connecting the FPGA chip to the bus of the host computer; the FPGA chip includes: FPGA logic module, AXI to EMIF bus module and RISC-V processor; wherein the FPGA logic module is configured to: receive instructions and / or data from the host computer, send the received instructions and / or data to the RISC-V processor; receive the processing results sent by the RISC-V processor and send them to the host computer; receive the signal transmitted from the MVB bus through the transceiver circuit, and perform one or more of the following operations: frame parsing, data processing and status monitoring; pack the processed data into MVB frames, and send them to the MVB bus through the transceiver circuit; RISC-V The C-V processor is configured to receive and process instructions and / or data sent by the FPGA logic module, and send the processing results to the FPGA logic module; the AXI to EMIF bus module, whose AXI bus is connected to the RISC-V processor and whose EMIF bus is connected to the FPGA logic module, is configured for interface conversion between the AXI bus and the EMIF bus; the transceiver circuit connects the FPGA chip and the MVB bus, and is configured to: receive the MVB frame sent from the FPGA logic module, and transmit the converted signal to the MVB bus; and receive the signal transmitted from the MVB bus, convert it into a standard signal and send it to the FPGA logic module; wherein the FPGA logic module is also configured to perform MVB link control and MVB frame transceiver control.

[0026] In the above scheme, the synergy of FPGA and RISC-V processor is used to realize the communication between the host computer and the MVB bus; the logic module in the FPGA chip is responsible for receiving the instructions or data of the host computer, and sending them to the RISC-V processor through the AXI to EMIF bus module; after the RISC-V processor processes, it returns the result to the FPGA logic module; the FPGA logic module also receives the signal of the MVB bus through the transceiver circuit, and performs analysis, data processing and status monitoring, and then packages the processed data into MVB frames and sends them back to the MVB bus to realize complete two-way communication.

[0027] The high parallel processing capability of FPGA and the flexibility of RISC-V processor can be used to efficiently handle complex bus communication tasks; the use of PC104 interface enables the network card to be easily connected to various host computers; through the precise control of FPGA logic module, the sending and receiving of MVB frames and link control are realized, ensuring the accuracy and real-time performance of data transmission; in addition, the modular design makes the system highly scalable and easy to maintain.

[0028] See also Figure 3In a possible implementation, the FPGA logic module includes a PC104 protocol module, an MVB bus transceiver module, a RISC-V processor interface module, an MVB link layer control module and a memory management module; wherein the PC104 protocol module communicates with the host computer and can access the memory management module and write to the memory management module; the MVB bus transceiver module communicates with the MVB bus and can access the memory management module and write to the memory management module; the RISC-V processor interface module communicates with the RISC-V processor and can access the memory management module and write to the memory management module; the MVB link layer control module is configured to perform MVB link control; the memory management module is used to store data, including one or more of the following: MVB configuration data, communication data.

[0029] The FPGA logic module realizes the communication between the host computer and the MVB bus and RISC-V processor through different sub-modules; the PC104 protocol module exchanges data with the host computer and stores the received data in the memory management module; the MVB bus transceiver module is responsible for communicating with the MVB bus and also stores the data in the memory management module; the RISC-V processor interface module is responsible for communicating with the RISC-V processor and transmitting processing instructions and data; the MVB link layer control module is used to control the MVB link to ensure the stability and reliability of data transmission.

[0030] Through modular design, each functional module operates independently, which improves the stability and scalability of the system; the use of the memory management module ensures efficient storage and access of data, and improves communication efficiency; the flexible configuration of the FPGA logic module enables the system to adapt to different application requirements, with high adaptability and scalability.

[0031] In the above implementation, the PC104 protocol module can be replaced by other protocol modules, such as a PCIe protocol module, to adapt to different host computer interfaces; the memory management module can use different types of memory, such as SRAM or DDR memory, to improve system performance.

[0032] In a possible implementation, the PC104 protocol module includes: a PC104 receiving module, a PC104 sending module and a PC104 control module; the PC104 receiving module receives commands and parameters from the host computer through a parallel bus, and sends a command reception completion pulse to the PC104 control module; the PC104 sending module receives command return data processed by the PC104 control module, and sends it to the host computer through the parallel bus; the PC104 control module processes the received commands and sends the results to the PC104 sending module.

[0033] In the above scheme, the PC104 protocol module realizes communication with the host computer through the coordinated work of the PC104 receiving module, the PC104 sending module and the PC104 control module; the receiving module receives the commands and parameters of the host computer and sends them to the PC104 control module; the PC104 control module processes these commands and sends the processing results to the PC104 sending module, and the PC104 sending module returns the processing results to the host computer; the whole process transmits data through a parallel bus, ensuring efficient communication.

[0034] The modular setting simplifies the communication process with the host computer and improves the efficiency and reliability of data transmission. The clear division of labor among the PC104 receiving module, PC104 sending module and PC104 control module allows each module to focus on its specific function, improving the stability and maintainability of the system.

[0035] See also Figure 3 In a possible implementation, the MVB bus transceiver module includes: an MVB sending module, an MVB-A receiving module, an MVB-B receiving module and an AB selecting control module; the MVB sending module is configured to send a master-slave frame according to the MVB standard; the MVB-A receiving module and the MVB-B receiving module are configured to receive data frames transmitted on the MVB bus; the AB selecting control module is configured to perform AB redundant switching of the MVB bus, process redundant switching, and forward the data set as the trust line in the AB road upward; because the MVB bus reception is mutually redundant in AB, at a certain moment one line is a trust line and the other is a redundant line; the AB selecting control module is responsible for processing redundant switching and forwarding the trust line data upward.

[0036] For example, by default, route A is the trusted line and route B is the redundant line; this module is responsible for switching when the following conditions occur: 1) no frames arrive for a long time; 2) the trusted line is disturbed, such as a CRC check error; 3) the redundant line receives a valid frame, but the trusted line does not.

[0037] The MVB bus transceiver module realizes communication with the MVB bus through the sending module, MVB-A receiving module, MVB-B receiving module and AB selection control module; the sending module sends master-slave frames according to the MVB standard; the MVB-A receiving module and the MVB-B receiving module respectively receive the data frames transmitted on the MVB bus; the AB selection control module is responsible for redundant switching of the AB road to ensure the reliability and stability of data transmission, and forward the trust line data upward.

[0038] The AB redundant design improves the reliability and anti-interference capability of data transmission; the independent design of the sending module and the receiving module enables the system to efficiently send and receive data; the setting of the AB selection control module realizes automatic redundant switching, which improves the stability and reliability of the system.

[0039] In a possible implementation, the MVB link layer control module is configured to perform one or more of the following operations: process data master frame sending, process data slave frame processing, monitoring data slave frame processing, and message data slave frame processing.

[0040] The MVB link layer control module realizes the control of the MVB link layer by processing the sending of process data main frames, processing of process data slave frames, processing of monitoring data slave frames and processing of message data slave frames; the module adopts corresponding processing methods according to different data types to ensure the correctness and reliability of data transmission.

[0041] By classifying and processing different types of data frames, the efficiency and accuracy of data transmission are improved. The setting of the MVB link layer control module enables the system to better manage and control data transmission, improving the overall performance of the system.

[0042] See also Figure 4 In a possible implementation, the RISC-V processor adopts a three-stage pipeline processor architecture, including an instruction fetch unit, a decoding unit and an execution unit connected in sequence, a pipeline buffer I is set between the instruction fetch unit and the decoding unit, and a pipeline buffer II is set between the decoding unit and the execution unit, and also includes a pipeline controller connected to the instruction fetch unit, the decoding unit and the execution unit; wherein the instruction fetch unit is configured to be controlled by the pipeline controller to obtain instructions and pre-process the instructions via the AXI bus, and send the processed instructions to the pipeline memory I and / or store them in the storage unit via the AXI bus; the pipeline buffer I is configured to store the instruction fetch unit The pipeline buffer II is configured to receive instructions after preprocessing, and / or send the instructions output by the storage unit to the decoding unit after being synced; the decoding unit is configured to decode according to the instructions sent by the pipeline buffer I module, and after decoding the specific instructions, generate a signal whether to read or write the register; when the decoding unit sends a read register signal, the register module immediately sends the data of the read register module, and the data of the register module and the write register signal are sent to the pipeline buffer II together; the pipeline buffer II is configured to sync the signal whether to write the register and the data of the register module and send them to the execution unit; the execution unit is a combinational logic circuit, which performs corresponding operations according to the specific instructions.

[0043] The RISC-V processor adopts a three-level pipeline processor architecture, and realizes efficient instruction processing through the collaborative work of the instruction fetch unit, decoding unit and execution unit; the instruction fetch unit is controlled by the pipeline controller, obtains and preprocesses instructions through the AXI bus, and sends the preprocessed instructions to the pipeline memory I or storage unit; the decoding unit decodes the instructions sent by the pipeline buffer I, generates a signal whether to read or write the register, and sends the data to the pipeline buffer II; the execution unit operates according to the specific instructions to complete the instruction execution.

[0044] The three-stage pipeline architecture improves the efficiency and parallel processing capability of instruction processing. The introduction of pipeline buffers I and II reduces the delay of data transmission and improves the overall performance of the system. Through the control of the pipeline controller, the optimization and scheduling of instruction processing are realized, and the stability and reliability of the system are improved.

[0045] See also Figure 4 In a possible implementation, the pipeline controller is further configured to: be connected to the decoding unit and / or the execution unit, and send one or more of the following instructions: pipeline pause, jump; the instruction fetch unit, the decoding unit and / or the execution unit are controlled by the instructions of the pipeline controller to perform corresponding pipeline pause and / or jump operations.

[0046] The pipeline controller is connected to the decoding unit and the execution unit to send pipeline pause and jump instructions to control the operations of the instruction fetch unit, the decoding unit and the execution unit; the instruction fetch unit pauses or continues to fetch instructions according to the controller instructions, the decoding unit pauses or continues decoding according to the controller instructions, and the execution unit pauses or continues execution operations according to the controller instructions.

[0047] By setting up a pipeline controller, precise control of pipeline operations is achieved, improving the stability and flexibility of the system; the use of pipeline pause and jump instructions optimizes the instruction processing flow, reduces pipeline pauses and delays, and improves the overall performance of the system.

[0048] See also Figure 2 In one possible implementation, the transceiver circuit includes an RS485 chip, an ESD protection circuit, an isolation transformer, and an AC decoupling circuit connected in sequence; wherein the RS485 chip is used to convert the single-ended signal of the FPGA chip into an RS485 level standard signal, which is output to the MVB bus after passing through the ESD protection circuit, the isolation transformer, and the AC decoupling circuit.

[0049] The transceiver circuit converts the single-ended signal of the FPGA chip into an RS485 level standard signal through the RS485 chip, and then outputs it to the MVB bus through the ESD protection circuit, isolation transformer and AC decoupling circuit; the ESD protection circuit protects the circuit from the influence of electrostatic discharge, the isolation transformer provides electrical isolation, and the AC decoupling circuit eliminates the coupling interference of the AC signal.

[0050] By introducing the RS485 chip, standardized signal conversion is achieved, ensuring the reliability of signal transmission; the use of ESD protection circuits, isolation transformers and AC decoupling circuits improves the stability and anti-interference ability of the system and ensures the security of data transmission.

[0051] A multifunctional vehicle bus communication network card based on FPGA and RISC-V according to an embodiment of the present invention is specifically described as follows:

[0052] A design scheme for four types of MVB communication network cards based on domestic FPGA and RISC-V is provided. According to the system configuration requirements, the query, management and arbitration of devices on the MVB are organized, and the following functions need to be completed: (1) MVB process data communication function; (2) MVB message data communication function; (3) MVB bus master function; (4) MVB device status function; (5) user programmable function; (6) accepting host computer commands to realize dynamic configuration; (7) providing slave frame data according to the master frame requirements when the own data is the source data; (8) MVB bus data complies with the IEC 61375-1 standard definition, and the transmission and reception have two-way redundancy, which can be switched according to the interference situation and send out an interference status report; (9) The mechanical structure meets the PC104 standard; (10) The MVB interface adopts EMD medium, that is, transformer isolation.

[0053] FPGA is used to implement RISC-V SOC, and the RISC-V processor core and FPGA logic work together to replace the original MCU+FPGA independent chip architecture. In the new design, the MCU is responsible for running message data, device status and sovereignty transfer link control logic, while the FPGA is responsible for user interface, remaining MVB link control and MVB frame transmission and reception. Through this integrated solution, the MVB product is fully autonomous and controllable, and at the same time the board area is reduced, the cost is reduced, and the product competitiveness is improved.

[0054] To achieve the above objectives, the technical solution of the present invention is as follows.

[0055] The MVB network card in this design is mainly designed based on FPGA. Figure 1 As shown in the figure, it includes user interface, transceiver circuit, FPGA logic module and RISC-V processor.

[0056] (1) User Interface

[0057] The user interface of this embodiment selects the PC104 interface, which is an industrial control bus specially defined for embedded control. The 8-bit version of PC104 has a total of 64 bus pins, single-row and double-row pins and sockets. When the MVB network card device is actually used, the host computer platform including the CPU board needs to control the MVB network card, and the MVB network card can be connected to the bus of the host computer through the PC104 interface.

[0058] (2) Transceiver circuit

[0059] The transceiver circuit uses an RS485 transceiver. The single-ended signal is converted into an RS485 level standard signal, and then is isolated by a TVS tube protection / ESD protection circuit and a transformer, and finally output to the MVB bus. Figure 2 .

[0060] In this circuit, RS485 selects full-duplex chip so that the MVB board can send and receive at the same time. ESD protection is mainly used to protect the circuit from being damaged by external pulse surges. The isolation transformer completely isolates our own circuit from the external communication line. It has lower insertion loss and better signal integrity. The AC isolation capacitor is used to block the DC signal component on the MVB bus to avoid damaging the isolation transformer.

[0061] (3) FPGA logic module

[0062] The FPGA logic module is at the core of the MVB network card, responsible for MVB link control and MVB frame transmission and reception. It is also oriented to the RISC-V processor, user interface and transceiver circuit, and completes message data scheduling, sovereignty transfer and device status scanning functions through communication with RISC-V; provides MVB link layer services to the outside through the user interface; and completes the transmission and reception of MVB frames by connecting the transceiver circuit.

[0063] The FPGA logic module in the MVB network card interacts directly with the user interface, RISC-V processor and transceiver circuit. FPGA logic plays a dominant role in the MVB network card, and the core functions are all implemented by FPGA logic, including: providing parallel bus access services to users, completing the parsing of the PC104 protocol and the execution of commands based on the parallel bus, MVB transceiver frames, MVB process data master frame polling, slave frame processing, MVB message data slave frame processing, MVB monitoring data slave frame processing, and interaction with the RISC-V processor.

[0064] For detailed division of FPGA logic module functions, see Figure 3 .

[0065] The FPGA logic module is divided into five functional parts: PC104 protocol, MVB bus transceiver, RISC-V processor interface, MVB link control and memory management module. Among them, PC104 protocol includes three sub-modules: PC104 reception, PC104 transmission and PC104 control; MVB bus transceiver includes four sub-modules: MVB transmission, MVB A-way reception, MVB B-way reception and AB-way selection control; RISC-V processor interface, MVB link control and memory management module each contain one sub-module.

[0066] 1) PC104 protocol module

[0067] The PC104 receiving module receives the PC104 command word and command parameters sent by the host computer through the parallel bus, determines the parameter length according to the command word, buffers the command word and parameters, and sends a command reception completion pulse to the PC104 control module after all commands are received.

[0068] The PC104 sending module receives the command word return data sent by the PC104 control module and caches it, and sends the command word return data to the host computer through the parallel bus.

[0069] The PC104 control module receives the command buffered by the PC104 receiving module, processes the command, and sends the return result to the PC104 sending module.

[0070] 2) MVB bus transceiver module

[0071] The MVB sending module provides MVB master-slave frame sending services to other modules according to the MVB standard's provisions on frame formats.

[0072] The MVB A-channel receiving module and the MVB B-channel receiving module implement the receiving service of the data frames on the MVB bus according to the provisions of the MVB standard on the frame format.

[0073] The AB route selection control module is responsible for the AB route redundancy switching control of the MVB bus. At a certain moment, one line is a trust line and the other is a redundant line. This module is responsible for handling the redundancy switching and forwarding the trust line data upward.

[0074] 3) RISC-V processor interface

[0075] Interact with the RISC-V processor, notify the RISC-V processor when entering the sporadic phase, receiving the device status slave frame, and receiving the master frame operation, and wait for the action command of the RISC-V processor. At this time, the FPGA logic module is a general peripheral of the RISC-V processor and is externally mounted on the AXI bus. The general interface of the FPGA logic module is the EMIF interface, so an AXI to EMIF bus module is added between the RISC-V processor and the FPGA logic module to realize the interface conversion.

[0076] 4) MVB link control module

[0077] The main module of MVB link control mainly completes the sending of process data master frame, processing of process data slave frame, processing of monitoring data slave frame and processing of message data slave frame.

[0078] 5) Memory management module

[0079] Use the Block RAM resources inside the FPGA to instantiate a memory SRAM for storing MVB configuration data and communication data. The SRAM can be randomly accessed by multiple modules to prevent access conflicts, making a continuous access to the SRAM an atomic operation and abstracting the memory management module. Before each use, you need to ask / ask, get confirmation / ack before you can access, and release / free after the access is completed.

[0080] (4)RISC-V processor design and logic

[0081] The present invention provides a processor design based on the RISC-V open source instruction set, and its overall architecture is as follows: Figure 4 shown.

[0082] The processor adopts a three-stage pipeline architecture, and two sets of pipeline buffers are used between the three-stage pipeline to store the data sent from the previous stage to the next stage. The three-stage pipeline is divided as follows:

[0083] The first stage of the pipeline is the instruction fetch unit, which completes the instruction fetch and instruction preprocessing functions. This module can generate the value of the program counter PC register, which is used as the address signal of the instruction memory. The pipeline buffer I is a module between the instruction fetch unit and the decoding unit, which is used to send the instructions output by the instruction memory to the decoding unit after a beat.

[0084] The second-level pipeline is the decoding unit, which decodes the instructions sent in by the pipeline buffer I module. After decoding the specific instructions, it generates a signal whether to read or write registers, etc. Since the register uses an asynchronous read method, as long as the read register signal is sent, the corresponding register data will be obtained immediately, and this data will be sent to the pipeline buffer II together with the write register signal. The pipeline buffer II is a module between decoding and execution, which is used to send the signal whether to write registers and the register data to the execution unit after a beat.

[0085] The third-level pipeline is the execution unit, a pure combinational logic circuit that performs corresponding operations according to specific instructions. It includes a set of control and status registers, energy accumulators, multipliers, dividers, arithmetic logic units (ALUs), and memory access instruction managers. Different execution modules are selected according to different opcodes. Each execution module will output an operation result, which is also written back to the general register during the execution phase. If it is a memory access instruction, the memory access manager is used to access the memory.

[0086] In addition, it also includes pipeline controller, interrupt module, debugging unit, memory and general peripherals. The pipeline controller generates control signals such as pipeline pause and jump; the interrupt module processes the input interrupt request signal and generates the final interrupt signal; the debugging unit implements the JTAG debugging interface function; the storage unit is divided into rom and ram, rom is used as a program memory module to store program configuration files, and ram is used as a data storage module to store data generated during program operation; general peripherals include uart, spi, timer and gpio, which can be flexibly configured according to needs. The processor core communicates with the memory and general peripherals through the AXI bus.

[0087] The RISC-V processor is designed and implemented based on the internal resources of the FPGA and is an on-chip processor of the FPGA. The RISC-V processor exists as an auxiliary FPGA in the MVB network card, mainly completing the processing of relatively complex logical scenarios, and "guiding" the FPGA to complete link control by interacting with the FPGA. The tasks that the RISC-V processor needs to complete are: device status polling, message data polling, and sovereignty transfer.

[0088] Compared with the prior art, the technical innovations of the present invention include the following points:

[0089] 1. Propose an integrated solution of domestic FPGA and RISC-V, integrate the RISC-V processor inside the FPGA chip, and use a single-chip FPGA to replace the existing FPGA+MCU independent chip architecture to design a 4-type MVB network card, which can be used as both an MVB slave device and an MVB master device. The integrated design simplifies the system structure, reduces the number of chips and board area, and improves the stability and reliability of the system. It can meet the needs of railway vehicle control and monitoring systems for high reliability, low cost, small size and autonomous control.

[0090] 2. The four types of MVB network card solutions proposed in the present invention not only meet all the functions required by the MVB standard, but also use ESD protection circuits, isolation transformers, AC decoupling circuits and other protection measures when designing the transceiver circuits, thereby improving the integrity and anti-interference ability of the MVB signal.

[0091] 3. The present invention proposes a RISC-V processor design based on FPGA, realizing a high-performance, flexible and reconfigurable processor core. The processor core supports a variety of peripheral expansions and can be flexibly configured and customized according to the needs of specific applications. It can not only complete the functions of device status polling, message data polling and sovereignty transfer in the MVB network card, but also can be used as a general processor architecture design and applied to other systems to replace the original MCU independent chip.

[0092] In summary, the MVB communication network card design based on FPGA and RISC-V in this application realizes an autonomous, controllable and cost-effective solution. Through the integrated design, the RISC-V processor core and the FPGA logic part work together, replacing the traditional MCU+FPGA independent chip architecture, realizing the complete autonomy and controllability of the MVB product, reducing costs, reducing the board area, and improving the competitiveness of the product. This design has important technical advantages and inventive effects, and will have a positive impact on the development of the MVB communication field.

[0093] The above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention is described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.

Claims

1. A multifunctional vehicle bus communication network card based on FPGA and RISC-V, It is characterized in that include: User interface, FPGA chip and transceiver circuit; Among them, The user interface is a PC104 interface, which connects the FPGA chip to the bus of the host computer; The FPGA chip includes: FPGA logic module, AXI to EMIF bus module and RISC-V processor; among them, The FPGA logic module is configured to: receive instructions and / or data from the host computer, and send the received instructions and / or data to the RISC-V processor; receive the processing results sent by the RISC-V processor, and send them to the host computer; receive the signal transmitted from the MVB bus through the transceiver circuit, and perform one or more of the following operations: frame parsing, data processing and status monitoring; pack the processed data into MVB frames, and send them to the MVB bus through the transceiver circuit; The RISC-V processor is configured to receive and process instructions and / or data sent by the FPGA logic module, and send the processing results to the FPGA logic module; An AXI to EMIF bus module, whose AXI bus is connected to the RISC-V processor and whose EMIF bus is connected to the FPGA logic module, is configured for interface conversion between the AXI bus and the EMIF bus; The transceiver circuit is connected to the FPGA chip and the MVB bus and is configured to: receive the MVB frame sent from the FPGA logic module and transmit the converted signal to the MVB bus; and receive the signal transmitted from the MVB bus and convert it into a standard signal and then send it to the FPGA logic module; The FPGA logic module is also configured to perform MVB link control and MVB frame transmission and reception control.

2. The multifunctional vehicle bus communication network card based on FPGA and RISC-V according to claim 1, It is characterized in that The FPGA logic module includes the PC104 protocol module, the MVB bus transceiver module, the RISC-V processor interface module, the MVB link layer control module and the memory management module; among them, PC104 protocol module, which communicates with the host computer and can access and write to the memory management module; MVB bus transceiver module, which communicates with the MVB bus and can access and write to the memory management module; A RISC-V processor interface module, which communicates with the RISC-V processor and can access and write to the memory management module; An MVB link layer control module configured to perform MVB link control; The memory management module is used to store data, including one or more of the following: MVB configuration data, communication data.

3. The multifunctional vehicle bus communication network card based on FPGA and RISC-V according to claim 2, It is characterized in that PC104 protocol module, including: PC104 receiving module, PC104 sending module and PC104 control module; The PC104 receiving module receives commands and parameters from the host computer through the parallel bus, and sends a command reception completion pulse to the PC104 control module; The PC104 sending module receives the command return data processed by the PC104 control module and sends it to the host computer through the parallel bus; The PC104 control module processes the received commands and sends the results to the PC104 sending module.

4. The multifunctional vehicle bus communication network card based on FPGA and RISC-V according to claim 3, It is characterized in that The MVB bus transceiver module includes: an MVB sending module, an MVB-A receiving module, an MVB-B receiving module and an AB selecting control module; The MVB sending module is configured to send master-slave frames according to the MVB standard; The MVB-A receiving module and the MVB-B receiving module are configured to receive data frames transmitted on the MVB bus; The AB path selection control module is configured to perform AB path redundancy switching of the MVB bus, process the redundancy switching, and forward the data set as the trust line in the AB path upward.

5. The multifunctional vehicle bus communication network card based on FPGA and RISC-V according to claim 2, It is characterized in that The MVB link layer control module is configured to perform one or more of the following operations: process data master frame transmission, process data slave frame processing, monitoring data slave frame processing, and message data slave frame processing.

6. The multifunctional vehicle bus communication network card based on FPGA and RISC-V according to claim 3, It is characterized in that The RISC-V processor adopts a three-stage pipeline processor architecture, including an instruction fetch unit, a decoding unit and an execution unit connected in sequence, a pipeline buffer I is set between the instruction fetch unit and the decoding unit, a pipeline buffer II is set between the decoding unit and the execution unit, and also includes a pipeline controller connecting the instruction fetch unit, the decoding unit and the execution unit; wherein, The instruction fetch unit is configured to be controlled by the pipeline controller to fetch instructions via the AXI bus and pre-process the instructions, and send the processed instructions to the pipeline memory I and / or store them in the memory via the AXI bus; The pipeline buffer I is configured to store instructions preprocessed by the instruction fetch unit and / or send the instructions output by the memory to the decoding unit after a beat; The decoding unit is configured to decode the instruction sent by the pipeline buffer I module, and after decoding the specific instruction, generate a signal whether to read or write the register; when the decoding unit sends the read register signal, the register module immediately sends the data of the read register module, and the data of the register module and the write register signal are sent to the pipeline buffer II together; The pipeline buffer II is configured to send the signal of whether to write to the register and the data of the register module to the execution unit after a beat; The execution unit is a combinational logic circuit that performs corresponding operations according to specific instructions.

7. The multifunctional vehicle bus communication network card based on FPGA and RISC-V according to claim 6, It is characterized in that The pipeline controller is further configured to: be connected to the decoding unit and / or the execution unit, and to send one or more of the following instructions: pipeline pause, jump; The instruction fetch unit, the decoding unit and / or the execution unit are controlled by the instructions of the pipeline controller to perform corresponding pipeline pause and / or jump operations.

8. The multifunctional vehicle bus communication network card based on FPGA and RISC-V according to claim 7, It is characterized in that The transceiver circuit includes an RS485 chip, an ESD protection circuit, an isolation transformer and an AC decoupling circuit connected in sequence; wherein the RS485 chip is used to convert the single-ended signal of the FPGA chip into an RS485 level standard signal, which is then output to the MVB bus after passing through the ESD protection circuit, the isolation transformer and the AC decoupling circuit.

Citation Information

Patent Citations

  • Electric locomotive auxiliary control unit MVB (multifunction vehicle bus) network card

    CN103312520A

  • MVB class 4 device network card based on FPGA and ARM

    CN103558812A

  • MVB network card module based on embedded processor and data transmission method

    CN104144026A

  • MVB (Multifunction Vehicle Bus) network card and MVB communication system

    CN105490818A

  • Multicore architecture, interface card and method of processing data packets

    CN108763145A

Cited By

  • Master-slave integrated MVB simulation test equipment based on FPGA and MCU

    CN120935073A

  • CANFD communication expansion system based on FPGA matched with embedded RISCV processor

    CN121478696A