SRIO data transmission system and method based on FPGA and optical switching matrix
The SRIO data transmission system using FPGA and optical switching matrix solves the latency problem of RapidIO switches, realizes multi-channel data interaction and efficient data transmission, and improves transmission bandwidth.
Patent Information
- Application Number
- CN202311389101.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-25
AI Technical Summary
In existing SRIO data transmission systems, RapidIO switches suffer from single-channel communication latency and data processing latency, making it impossible to achieve multi-channel data interaction and resulting in low transmission efficiency.
By employing FPGA and optical switching matrix, and through DMA interface module, MHAL module, data processing module and SRIO interface module, combined with fiber optic transmission, multi-channel data interaction is achieved, avoiding the latency of RapidIO switch.
It improves data transmission efficiency, increases data transmission bandwidth, eliminates the need for RapidIO switches, and achieves high-efficiency data transmission with no switching latency.
Smart Images

Figure CN117412206B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data exchange network technology, and more specifically, to an SRIO data transmission system and method based on FPGA and optical switching matrix. Background Technology
[0002] Currently, most mainstream communication devices use optical communication for data transmission. SRIO bus is widely used due to its advantages such as fewer connections and high transmission speed. Existing technologies include SRIO data transmission systems that use RapidIO switches as relays for data exchange between different users. While this system can enable data exchange between different users, RapidIO switches can only perform single-channel data communication at any given time, and there is a certain time delay in data processing and forwarding. Summary of the Invention
[0003] To address at least one deficiency or improvement requirement of the prior art, the present invention provides an SRIO data transmission system and method based on FPGA and optical switching matrix. It eliminates the need for RapidIO switches, eliminates switching delay, and improves data transmission efficiency. At the same time, the optical switching matrix can perform data interaction of multiple channels simultaneously, greatly improving data transmission bandwidth.
[0004] To achieve the above objectives, according to a first aspect of the present invention, an SRIO data transmission system based on an FPGA and an optical switching matrix is provided, comprising: At least one FPGA containing an ARM core, and an optical switching matrix module; the FPGA includes a DMA interface module, an MHAL module, a data processing module, and an SRIO interface module; The DMA interface module is used to obtain control data and first service data framed in MHAL protocol from the ARM core and send them to the MHAL module. The MHAL module is used to parse the control data and the first service data sent by the DMA interface module using the MHAL protocol and send them to the data processing module. The data processing module is used to receive and store the first service data sent by the MHAL module, and is also used to receive and parse the control data sent by the MHAL module, and send the control data to the control unit of the optical switching matrix module through a serial port. The SRIO interface module is used to read the first service data stored in the data processing module, and then frame it using the SRIO interface protocol and send it to the optical switching matrix module. The optical switching matrix module is used to select a data channel based on the control data received in its control unit and send the first service data to the corresponding external device.
[0005] Furthermore, the aforementioned SRIO data transmission system based on FPGA and optical switching matrix also includes: The SRIO interface module is also used to parse the second service data according to the SRIO interface protocol when receiving the first service data sent by the external device, and send the second service data to the data processing module; The data processing module is also used to receive and store the second service data transmitted by the SRIO interface module, and to send the second service data to the MHAL module. The MHAL module is also used to frame the second service data sent by the service processing module using the MHAL protocol and then send it to the DMA interface module. The DMA interface module is also used to parse the second service data sent by the MHAL module according to the MHAL protocol and send it to the user interface.
[0006] Furthermore, the aforementioned SRIO data transmission system based on FPGA and optical switching matrix also includes: In the DMA interface module and the MHAL module, different LDs are used to distinguish between the control data and the first service data.
[0007] Furthermore, the aforementioned SRIO data transmission system based on FPGA and optical switching matrix also includes: The SRIO interface module is also used to configure SRIO interface parameters after reading the first service data.
[0008] Furthermore, the aforementioned SRIO data transmission system based on FPGA and optical switching matrix also includes: The SRIO interface module is connected to the optical switching matrix via an optical module. The optical module is used to convert the first service data from an electrical signal to an optical signal and send the first service data to the optical switching matrix via an optical fiber.
[0009] According to a second aspect of the present invention, an SRIO data transmission method based on FPGA and optical switching matrix is also provided, applied to an FPGA containing an ARM core, comprising: The DMA interface module obtains control data and first service data framed in MHAL protocol from the ARM core and sends them to the MHAL module. The MHAL module parses the control data and the first service data sent by the DMA interface module using the MHAL protocol and sends them to the data processing module. The data processing module receives and stores the first service data sent by the MHAL module, and also receives and parses the control data sent by the MHAL module, and sends the control data to the control unit of the optical switching matrix module through a serial port. The SRIO interface module reads the first service data stored in the data processing module, frames it using the SRIO interface protocol, and sends it to the optical switching matrix module. The optical switching matrix module selects a data channel based on the control data received in its control unit and sends the first service data to the corresponding external device.
[0010] Furthermore, the aforementioned SRIO data transmission method based on FPGA and optical switching matrix also includes: When the SRIO interface module receives the first service data sent by the external device, it parses the second service data according to the SRIO interface protocol and sends the second service data to the data processing module. The data processing module receives and stores the second service data transmitted from the SRIO interface module, and sends the second service data to the MHAL module. The MHAL module frames the second service data sent by the service processing module using the MHAL protocol and then sends it to the DMA interface module. The DMA interface module parses the second service data sent by the MHAL module according to the MHAL protocol and sends it to the user interface.
[0011] Furthermore, the aforementioned SRIO data transmission method based on FPGA and optical switching matrix also includes: In the DMA interface module and the MHAL module, different LDs are used to distinguish between the control data and the first service data.
[0012] Furthermore, the aforementioned SRIO data transmission method based on FPGA and optical switching matrix also includes: After reading the first service data, the SRIO interface module configures the SRIO interface parameters.
[0013] Furthermore, the aforementioned SRIO data transmission method based on FPGA and optical switching matrix also includes: The SRIO interface module is connected to the optical switching matrix via an optical module. The optical module converts the first service data from an electrical signal to an optical signal and sends the first service data to the optical switching matrix via an optical fiber.
[0014] In summary, compared with the prior art, the above-described technical solutions conceived by this invention can achieve the following beneficial effects: This invention provides an SRIO data transmission system and method based on FPGA and optical switching matrix. It eliminates the need for RapidIO switches, eliminates switching delays, and improves data transmission efficiency. At the same time, the optical switching matrix can perform data interaction on multiple channels simultaneously, greatly increasing data transmission bandwidth. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 A schematic diagram of an SRIO data transmission system based on FPGA and optical switching matrix provided for an embodiment of the present invention; Figure 2 A schematic diagram of an SRIO data transmission system based on ZYNQ and a 4x4 optical switching matrix is provided for an embodiment of the present invention; Figure 3 This is a diagram of the MHAL protocol structure provided in an embodiment of the present invention; Figure 4 The diagram below shows the 4x4 optical switching matrix structure provided in this embodiment of the invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention. Furthermore, the technical features involved in the various embodiments of this invention described below can be combined with each other as long as they do not conflict with each other.
[0018] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0019] like Figure 1As shown, as a first embodiment of the present invention, an SRIO data transmission system based on an FPGA and an optical switching matrix is provided. The system includes an FPGA and a 4x4 optical switching matrix module, wherein the FPGA module includes an ARM core.
[0020] like Figure 2 As shown, in this embodiment, a ZYNQ module is used as an FPGA including an ARM core to implement the data transmission system. The ZYNQ module includes a PS and a PL section. The PS section is the ARM processing section, and the PL section is the programmable logic section.
[0021] In this embodiment, the data transmission system uses a DMA interface module as a bridge for data interaction between the PS and PL. Through the DMA interface module, the PS can send data to the PL. In this embodiment, the data sent by the PS is mainly divided into two categories: the first category is service data sent to external devices, which is defined as the first service data; the second category is control data for configuring the optical switching matrix. To facilitate subsequent data transmission and processing, the PS will frame these two types of data using the MHAL protocol before sending them to the PL.
[0022] On the other hand, the FPGA can also receive service data sent from other external devices (such as other FPGAs) through this data transmission system. The received service data is defined as second service data. When the second service data sent from the external device is received, the DMA interface module will parse out the valid data according to the MHAL protocol. This interface has full-duplex functionality.
[0023] In this embodiment, the MHAL module parses the data sent from the PS to the PL via the DMA interface using the MHAL interface protocol, including control data and first service data. On the other hand, when the MHAL module receives second service data transmitted from the data processing module, it frames the second data according to the MHAL protocol before transmitting it to the DMA interface module. The MHAL protocol framing method can be found in the appendix. Figure 3 This includes a data identifier and a data length portion. The data identifier, or LD, is used to identify control data and primary business data.
[0024] This embodiment also includes a data processing module, which includes a data buffer. The main function of this module is to store the first service data parsed by the MHAL module into the data buffer. This buffer can be constructed using a FIFO (First-In-First-Out) data buffer or RAM. Simultaneously, it parses the control data of the optical switching matrix and sends this data to the control unit of the 4x4 switching matrix via a serial port. On the other hand, when the second service data is received from the SRIO interface module, it stores the second service data into the data buffer before forwarding it to the MHAL module.
[0025] This embodiment also includes an SRIO interface module. This module reads the first service data stored in the data buffer of the data processing module. Based on the length, service type, and external device ID of the first service data, it configures interface parameters such as data length, initial address, destination ID, and data doorbell value in the SRIO interface protocol. Then, it transmits the first service data to the 4x4 switching matrix via an optical module using optical fiber, according to the SRIO interface protocol. Conversely, when the SRIO interface module receives the second service data, it parses the valid data and data doorbell value information according to the SRIO interface protocol and transmits them to the data processing module. The SRIO interface module includes at least an optical module, which converts electrical signals into optical signals for transmission via optical fiber. The SRIO interface module has full-duplex functionality.
[0026] like Figure 4 As shown, the 4x4 switching matrix has 4 fiber optic inputs and 4 fiber optic outputs. The input and output interfaces can simultaneously transmit and receive data and have full-duplex functionality. It configures the enable state of the transmission channel according to the channel selection control word in the control unit, and forwards data to different external devices. It can also receive data from external devices and forward it to this system.
[0027] Those skilled in the art will readily recognize that the present invention employs an FPGA containing an ARM core, and is not limited to the ZYNQ in this embodiment. The optical switching matrix employed is also not limited to the 4x4 fiber optic matrix with 4 inputs and 4 outputs in this embodiment. Other FPGAs and / or optical switching matrices that implement the above functions can be selected as needed.
[0028] As a second embodiment of the present invention, an SRIO data transmission method based on FPGA and optical switching matrix is also provided, applied to an FPGA containing an ARM core, including: The DMA interface module obtains control data and first service data framed in MHAL protocol from the ARM core and sends them to the MHAL module. The MHAL module parses the control data and first service data sent by the DMA interface module using the MHAL protocol and sends them to the data processing module. The data processing module receives and stores the first service data sent by the MHAL module, and also receives and parses the control data sent by the MHAL module, and sends the control data to the control unit of the optical switching matrix module through the serial port; The SRIO interface module reads the first service data stored in the data processing module, frames it using the SRIO interface protocol, and sends it to the optical switching matrix module. The optical switching matrix module selects a data channel based on the control data received from its control unit and sends the first service data to the corresponding external device.
[0029] Furthermore, this embodiment also includes: When the SRIO interface module receives the first service data sent by the external device, it parses the second service data according to the SRIO interface protocol and sends the second service data to the data processing module. The data processing module receives and stores the second service data transmitted from the SRIO interface module, and sends the second service data to the MHAL module; The MHAL module frames the second service data sent by the service processing module using the MHAL protocol and then sends it to the DMA interface module. The DMA interface module parses the second service data sent by the MHAL module according to the MHAL protocol and sends it to the user interface.
[0030] Furthermore, this embodiment also includes: In the DMA interface module and MHAL module, different LDs are used to distinguish between control data and primary service data.
[0031] Furthermore, this embodiment also includes: After reading the first business data, the SRIO interface module configures the SRIO interface parameters.
[0032] Furthermore, this embodiment also includes: The SRIO interface module is connected to the optical switching matrix via an optical module. The optical module converts the first service data from an electrical signal to an optical signal and sends the first service data to the optical switching matrix via an optical fiber.
[0033] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0034] Those skilled in the art will readily understand that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. An SRIO data transmission system based on FPGA and optical switching matrix, characterized in that, include: At least one FPGA containing an ARM core, and an optical switching matrix module; the FPGA includes a DMA interface module, an MHAL module, a data processing module, and an SRIO interface module; The DMA interface module is used to obtain control data and first service data framed in MHAL protocol from the ARM core and send them to the MHAL module. The MHAL module is used to parse the control data and the first service data sent by the DMA interface module using the MHAL protocol and send them to the data processing module. The data processing module is used to receive and store the first service data sent by the MHAL module, and is also used to receive and parse the control data sent by the MHAL module, and send the control data to the control unit of the optical switching matrix module through a serial port. The SRIO interface module is used to read the first service data stored in the data processing module, and then frame it using the SRIO interface protocol and send it to the optical switching matrix module. The optical switching matrix module is used to select a data channel based on the control data received in its control unit and send the first service data to the corresponding external device.
2. The SRIO data transmission system based on FPGA and optical switching matrix as described in claim 1, characterized in that: The SRIO interface module is also used to parse the second service data according to the SRIO interface protocol when it receives the second service data sent by the external device, and send the second service data to the data processing module. The data processing module is also used to receive and store the second service data transmitted by the SRIO interface module, and to send the second service data to the MHAL module. The MHAL module is also used to frame the second service data sent by the service processing module using the MHAL protocol and then send it to the DMA interface module. The DMA interface module is also used to parse the second service data sent by the MHAL module according to the MHAL protocol and send it to the user interface.
3. The SRIO data transmission system based on FPGA and optical switching matrix as described in claim 1, characterized in that: In the DMA interface module and the MHAL module, different LDs are used to distinguish between the control data and the first service data.
4. The SRIO data transmission system based on FPGA and optical switching matrix as described in claim 1, characterized in that: The SRIO interface module is also used to configure SRIO interface parameters after reading the first service data.
5. The SRIO data transmission system based on FPGA and optical switching matrix as described in claim 1, characterized in that: The SRIO interface module is connected to the optical switching matrix via an optical module. The optical module is used to convert the first service data from an electrical signal to an optical signal and send the first service data to the optical switching matrix via an optical fiber.
6. An SRIO data transmission method based on FPGA and optical switching matrix, applied to an FPGA containing an ARM core, comprising: The DMA interface module obtains control data and first service data framed in MHAL protocol from the ARM core and sends them to the MHAL module. The MHAL module parses the control data and the first service data sent by the DMA interface module using the MHAL protocol and sends them to the data processing module. The data processing module receives and stores the first service data sent by the MHAL module, and also receives and parses the control data sent by the MHAL module, and sends the control data to the control unit of the optical switching matrix module through a serial port. The SRIO interface module reads the first service data stored in the data processing module, frames it using the SRIO interface protocol, and sends it to the optical switching matrix module. The optical switching matrix module selects a data channel based on the control data received in its control unit and sends the first service data to the corresponding external device.
7. The SRIO data transmission method based on FPGA and optical switching matrix as described in claim 6, characterized in that: When the SRIO interface module receives the second service data sent by the external device, it parses the second service data according to the SRIO interface protocol and sends the second service data to the data processing module. The data processing module receives and stores the second service data transmitted from the SRIO interface module, and sends the second service data to the MHAL module. The MHAL module frames the second service data sent by the service processing module using the MHAL protocol and then sends it to the DMA interface module. The DMA interface module parses the second service data sent by the MHAL module according to the MHAL protocol and sends it to the user interface.
8. The SRIO data transmission method based on FPGA and optical switching matrix as described in claim 6, characterized in that: In the DMA interface module and the MHAL module, different LDs are used to distinguish between the control data and the first service data.
9. The SRIO data transmission method based on FPGA and optical switching matrix as described in claim 6, characterized in that: After reading the first service data, the SRIO interface module configures the SRIO interface parameters.
10. The SRIO data transmission method based on FPGA and optical switching matrix as described in claim 6, characterized in that: The SRIO interface module is connected to the optical switching matrix via an optical module. The optical module converts the first service data from an electrical signal to an optical signal and sends the first service data to the optical switching matrix via an optical fiber.
Citation Information
Patent Citations
Hardware abstraction layer message forwarding method based on cache dynamic allocation
CN110908811A
Data acquisition device and method based on optical fiber and SRIO switching module
CN115604209A
