Information transmission apparatus, system, and method

By setting multiple I2C controller modules in the information transmission device to achieve parallel access, the problem of reduced access speed caused by serial access of optical modules in the switch system is solved, and the access efficiency and communication efficiency of the I2C device are improved.

WO2024212718A1PCT designated stage expired Publication Date: 2024-10-17INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
PCT/CN2024/078894
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-13
Filing Date
2024-02-28
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

The optical modules under the same I2C expansion chip in the existing switch system can only be accessed serially, resulting in a slowdown in the access speed of the entire system.

Method used

By arranging the same number of I2C controller modules as I2C devices in the information transmission device, each I2C controller module is connected to an I2C interface to achieve parallel access to the I2C device, thereby allowing the upper layer controller to access the optical fiber in parallel through the information transmission device. module.

Benefits of technology

It improves the access efficiency of I2C devices in the switch system, reduces the resource occupancy rate of the upper-layer controller, and realizes parallel access to optical modules, significantly improving communication efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078894_17102024_PF_FP_ABST
    Figure CN2024078894_17102024_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide an information transmission apparatus, a system, and a method, comprising: a plurality of I2C controller modules, each I2C controller module being used for connecting to an I2C interface of an I2C device; the information transmission apparatus is used for receiving a control instruction sent by an upper-layer controller, an in accordance with the control instruction, performing parallel access of the I2C devices; that is, the information transmission apparatus and the upper-layer controller are connected, and I2C controllers equal in number to the I2C devices are provided in the information transmission apparatus, thereby achieving parallel access to the I2C devices by the information transmission apparatus; the information transmission apparatus is in communication connection with the upper-layer controller; and because optical modules are equivalent to I2C devices, the upper-layer controller can achieve parallel access to optical modules through the information transmission apparatus. The invention solves the problem in the prior art whereby optical modules under the same I2C expansion chip can only be accessed in series, causing a reduction in access speed for an entire switch.
Need to check novelty before this filing date? Find Prior Art

Description

Information transmission device, system and method

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on April 13, 2023, with application number 202310396818.9 and application name “Information Transmission Device, System and Method”, all contents of which are incorporated by reference into this application. Technical Field

[0003] The present application relates to the field of communication technology, and in particular to an information transmission device, system and method. Background Art

[0004] Optical modules are a crucial component of switch systems, providing the system's external interface and enabling data communication between the local device and various devices. Optical modules provide management and status registers, from which upper-layer controllers can access module status and control functions. Therefore, the management and control portion of each optical module is equivalent to an integrated circuit (I2C) bus device.

[0005] In traditional control systems, the upper-layer controller connects to optical modules via an I2C expansion chip. Based on the high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIe), the upper-layer controller accesses registers in a field-programmable gate array (FPGA) to implement PCIe-to-I2C protocol conversion and serial access to the optical modules. Due to the switch system design, this access method limits the access of optical modules connected to the same I2C expansion chip to serial access, thus reducing the access speed of the entire switch system.

[0006] Summary of the Invention

[0007] The purpose of the embodiments of the present application is to provide an information transmission device, system, and method to solve the technical problem in the prior art that serial access of optical modules under the same I2C expansion chip in a switch system reduces the access speed of the entire switch system. The specific technical solution is as follows:

[0008] In the first aspect of the implementation of the present application, an information transmission device is first provided, including: the information transmission device is communicatively connected to an upper-layer controller, the information transmission device includes: multiple I2C controller modules, each I2C controller module is used to connect to the I2C interface of an I2C device.

[0009] In some embodiments, the information transmission device further includes: a plurality of SFP encapsulation modules, each SFP encapsulation module is used to connect to an I2C controller, and the upper controller accesses the I2C device through the SFP encapsulation module.

[0010] In some embodiments, the SFP encapsulation module includes: a real-time access module, a polling access module, an instruction module, a first storage medium module, a second storage medium module, and a bus adaptation module;

[0011] The real-time access module is communicatively connected to the first storage medium module, the instruction module and the bus adapter module;

[0012] The polling access module is communicatively connected to the second storage medium module, the instruction module and the bus adapter module.

[0013] In some embodiments, the real-time access module is used to control the I2C device in real time based on the real-time access mode according to the control command of the upper controller. The real-time access mode includes the upper controller achieving real-time access to the I2C device through the information transmission device. The real-time access mode is used for debugging.

[0014] In some embodiments, the polling access module is used to access the I2C device based on the polling access mode according to the control command of the upper controller. The polling access mode includes that after the upper controller completes the configuration of the operation information of the I2C device, the information transmission device periodically accesses the I2C device. The periodic access supports multi-page reading and writing of the I2C device.

[0015] In some embodiments, the instruction module is used to call the I2C controller module.

[0016] In some embodiments, the upper controller communicates with the information transmission device through a storage medium module; the storage medium module is used to store control information and status information of the upper controller, or store I2C device data and store write data of the upper controller for the I2C device.

[0017] In some embodiments, the storage medium module includes: registers and RAM;

[0018] The upper controller communicates with the information transmission device through the storage medium module, including: the upper controller reads and writes the instructions of the I2C device and the status of the I2C device through the register, and the upper controller reads and writes the data of the I2C device through the RAM, and the address space mapped by the register and RAM is different.

[0019] In some embodiments, the first storage medium module includes: a real-time access register and a first RAM;

[0020] The real-time access register is communicatively connected to the first RAM and the real-time access module.

[0021] In some embodiments, the second storage medium module includes: a polling access register and a second RAM;

[0022] The polling access register and the second RAM are communicatively connected to the polling access module.

[0023] In some embodiments, the first RAM includes a first port and a second port; the second RAM includes a third port and a fourth port;

[0024] When the first port is used to read data, the second port stops writing data; when the third port is used to read data, the fourth port stops writing data.

[0025] In some embodiments, when the upper layer controller reads data stored in the first RAM, the write enable of the second port of the first RAM is forcibly turned off through the real-time access register;

[0026] When the upper layer controller reads data stored in the second RAM, the write enable of the fourth port of the second RAM is forcibly turned off through the real-time access register.

[0027] In some embodiments, the information transmission device further includes: a first PCIe interface module;

[0028] The first PCIe interface module is used to connect multiple SFP packaging modules and is connected to the second PCIe interface in the upper controller based on the PCIe bus communication.

[0029] In some embodiments, the information transmission device further comprises: a polling time register;

[0030] The polling time register is used to set the polling time.

[0031] In some embodiments, the information transmission apparatus further comprises: an I2C device address register;

[0032] The I2C device address register is used to configure the I2C address for accessing the I2C device.

[0033] In some embodiments, the information transmission apparatus further comprises: an I2C controller rate register;

[0034] The I2C controller rate register is used to configure the communication rate of the I2C controller module.

[0035] In some embodiments, the information transmission device is used to drive the I2C controller module and is also used to control the start, read and write, register selection, and stop driving of the I2C controller module.

[0036] In some embodiments, the information transmission device and the upper-layer controller transmit commands and data via in-band interrupts.

[0037] In a second aspect of the implementation of the present application, there is further provided an information transmission system comprising: the information transmission apparatus according to any one of the first aspects, an upper layer controller, and an I2C device;

[0038] The information transmission device is communicatively connected to the upper controller and the I2C device;

[0039] The information transmission device performs parallel access to the I2C devices through the I2C device control command sent by the upper controller.

[0040] In a third aspect of the implementation of the present application, there is further provided an information transmission method, which is applied to the information transmission device of any one of the first aspects. The information transmission method includes:

[0041] Upon receiving the I2C device control command sent by the upper controller, the I2C device is accessed in parallel;

[0042] During parallel access to the I2C device, the status of the I2C device is monitored in real time and the status of the I2C device is returned to the upper controller.

[0043] An embodiment of the present application provides an information transmission device, which includes: multiple I2C controller modules, each I2C controller module is used to connect to the I2C interface of an I2C device, that is, the information transmission device in the embodiment of the present application is connected to the upper controller, and each I2C controller module in the information transmission device is connected to the I2C interface of an I2C device. The information transmission device is used to receive control instructions sent by the upper controller and perform parallel access to the I2C devices according to the control instructions. Therefore, by setting the same number of I2C controllers as the I2C devices in the information transmission device, parallel access to the I2C devices by the information transmission device is achieved. Furthermore, the information transmission device is communicatively connected to the upper controller, so the upper controller can achieve parallel access to the I2C devices through the information transmission device. The upper-layer controller does not need to repeatedly access the information transmission device to drive the access to the I2C device, and the upper-layer controller does not need to repeatedly drive the I2C device waveform, thereby reducing the occupancy rate of the upper-layer controller while improving the communication efficiency. Furthermore, since the optical module is equivalent to an I2C device, the upper-layer controller can achieve parallel access to the optical module through the information transmission device, solving the problem in the prior art that the optical module under the same I2C expansion chip in the switch system can only be accessed serially, resulting in a reduction in the access speed of the entire switch system. In the embodiment of the present application, multiple I2C controller modules are provided, and each I2C controller module is connected to the I2C interface of an I2C device, thereby achieving efficient parallel access to the I2C device and improving the access efficiency of the I2C device in the switch application. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art.

[0045] FIG1 is a schematic diagram of an information transmission device provided in an embodiment of the present application;

[0046] FIG2 is a schematic diagram of a real-time access module provided in an embodiment of the present application;

[0047] FIG3 is a schematic diagram of a polling access module provided in an embodiment of the present application;

[0048] FIG4 is a schematic diagram of a RAM structure provided in an embodiment of the present application;

[0049] FIG5 is a schematic diagram of an information transmission system provided in an embodiment of the present application;

[0050] FIG6 is a flow chart of an information transmission method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0052] The embodiments of this application are intended only to illustrate the present application and are not intended to limit the scope of this application. The following paragraphs describe this application in more detail by way of example with reference to the accompanying drawings. It should be noted that the drawings are all in a very simplified form and are not to exact proportions, and are only used to facilitate and clearly illustrate the purpose of the embodiments of this application.

[0053] It should be noted that the optical module is an important component of the switch system. It provides the external interface of the switch system through the optical module, thereby realizing data communication between the local machine and different devices. The optical module provides management and status registers, and the upper-level controller can obtain the status and control of the optical module from the registers of the optical module. Therefore, each optical module is equivalent to an I2C device. In traditional control, the upper-level controller connects to the optical module through the I2C expansion chip. The upper-level controller accesses the FPGA register based on PCIe to achieve PCIe to I2C protocol conversion and serial access to the optical module. On the one hand, this access method requires the upper-level controller to repeatedly access the FPGA register to drive the I2C controller. Therefore, the system design limits the optical module under the same I2C expansion chip to serial access. In other words, at least the optical module under the same PCA9538 is serially accessed, which reduces the access speed of the entire switch system.

[0054] In order to solve the above problems, on the first aspect, some embodiments of the present application provide an information transmission device, which includes: multiple I2C controller modules, each I2C controller module is used to connect to the I2C interface of an I2C device, that is, the information transmission device in the embodiment of the present application is connected to the upper controller, and each I2C controller module in the information transmission device is connected to the I2C interface of an I2C device. Therefore, the information transmission device instantiates the same number of I2C controllers as the I2C devices, thereby realizing parallel access of the information transmission device to the I2C devices. Furthermore, the information transmission device is communicatively connected with the upper controller, so The upper-layer controller can achieve parallel access to I2C devices through the information transmission device. Since the optical module is equivalent to an I2C device, the upper-layer controller can achieve parallel access to the optical modules through the information transmission device. This solves the problem in the prior art that the optical modules under the same I2C expansion chip in the switch system can only be accessed serially, which reduces the access speed of the entire switch system. In the embodiment of the present application, multiple I2C controller modules are provided, each of which is connected to the I2C interface of an I2C device, thereby achieving efficient parallel access to the I2C device and improving the access efficiency of the I2C device in the switch application. The resource sharing device mentioned above is described in detail below.

[0055] 1 , which is a schematic diagram of an information transmission device provided in an embodiment of the present application, it can be seen that the information transmission device includes a plurality of I2C controller modules, wherein each I2C controller module is used to connect to an I2C device.

[0056] It should be noted that the I2C device can be an optical module. The optical module is an important component of the switch system. The optical module provides an external interface for the switch system, thereby realizing data communication between the local device and different devices. Therefore, the control and access of the optical module by the upper-level controller is particularly important. In order to facilitate understanding by people in this field, the I2C device is explained using the optical module as an example in the embodiment of this application.

[0057] In some embodiments of the present application, an information transmission device implements parallel access to I2C devices by setting up the same number of I2C controller modules as I2C devices, wherein the I2C controller modules follow the signal behavior specifications of the I2C controller in various situations, specifically, mainly including the control of byte (8-bit) waveforms and the control of single-bit SCL / SDA, wherein the control of the byte waveform follows the change rules of the start, read, write, and stop operation state machine in the I2C communication protocol, and the control of single-bit SCL / SDA mainly controls the high and low level changes of SCL / SDA according to the start, read, write, and stop operation state machine, wherein SCL\SDA is the signal line of the I2C bus, SDA is a bidirectional data line, and SCL is the clock line. SCL transmits data on the I2C bus, sending the highest bit first. The host sends a start signal, and SDA jumps from a high level to a low level during the high level period of SCL. Then the host sends a byte of data. After the data transmission is completed, the host sends a stop signal, and SDA jumps from a low level to a high level during the high level period of SCL.

[0058] In some embodiments of the present application, the information transmission device can be a semi-customized application-specific integrated circuit, namely a field programmable gate array (FPGA). FPGA is a completely parallel structure with hardware. FPGA has a series of advantages such as flexible programming, fast response, and high integration. It is increasingly widely used in the early development verification and control application fields of many fields. In the switch system, the data layer management of the entire switch system is mainly achieved through FPGA, including two-wire serial bus (Inter-Integrated Circuit, I2C) devices, (Management Data Clock and Management Data Input / Output, MDC / MDIO) devices, serial peripheral interface (Serial Peripheral Interface, SPI) devices, etc. Therefore, in order to facilitate understanding by those skilled in the art, in some embodiments of the present application, the information transmission device is explained using FPGA as an example.

[0059] Specifically, an I2C controller module with the same number of optical modules as the number of optical modules can be designed in the FPGA and connected to the I2C interface of each optical module. This can improve the access rate of the switch system through a fully parallel architecture. The fully parallel architecture also realizes the physical isolation of I2C, thereby realizing fault isolation of different optical modules.

[0060] It should be noted that in some embodiments of the present application, the upper-level controller is generally a CPU. Therefore, in order to facilitate understanding by those skilled in the art, in some embodiments of the present application, the upper-level controller is explained using the CPU as an example.

[0061] In summary, in some embodiments of the present application, through the design of the FPGA module, during the application process, the CPU only needs to access the FPGA, and the FPGA implements parallel access to the optical module device according to CPU control commands. Furthermore, the optical module device and the CPU are isolated, and the FPGA implements parallel access to the optical module, so the CPU only needs to implement parallel access to the FPGA. On the one hand, this application simplifies the CPU design and access method, namely only requiring PCIe access. On the other hand, the FPGA implements access to the optical module device, thereby reducing CPU usage. The FPGA can monitor the status of the optical module in real time, thereby improving the effective utilization of I2C. In actual testing, the protocol effective communication rate can reach 95%, while the protocol effective communication rate of the traditional upper-layer driver method is only about 20%.

[0062] In some embodiments, the information transmission device further includes: a plurality of small form-factor pluggable (SFP) packaging modules, each SFP packaging module is used to connect to an I2C controller, and the upper controller accesses the I2C device through the SFP packaging module.

[0063] It should be noted that in some embodiments of the present application, the information transmission device also includes an SFP encapsulation module, each SFP encapsulation module is connected to an I2C controller, each I2C controller is connected to an I2C device, and the CPU can achieve further access control of I2C through the SFP encapsulation module.

[0064] Furthermore, the SFP encapsulation module includes: a real-time access module, a polling access module, an instruction module, a first storage medium module, a second storage medium module and a bus adapter module; the real-time access module is communicatively connected to the first storage medium module, the instruction module and the bus adapter module; the polling access module is communicatively connected to the second storage medium module, the instruction module and the bus adapter module.

[0065] In some embodiments of the present application, a modular design method is adopted for each module. For FPGA, the code can be directly copied. For CPU, since the optical module adopts regular register and RAM address division, it is also convenient to perform code tailoring.

[0066] In some embodiments, the real-time access module is used to control the I2C device in real time based on the real-time access mode according to the control command of the upper controller. The real-time access mode includes the upper controller achieving real-time access to the I2C device through the information transmission device. The real-time access mode is used for debugging.

[0067] In some embodiments, the polling access module is used to access the I2C device based on the polling access mode according to the control command of the upper controller. The polling access mode includes that after the upper controller completes the configuration of the operation information of the I2C device, the information transmission device periodically accesses the I2C device. The periodic access supports multi-page reading and writing of the I2C device.

[0068] It should be noted that the above two access modules correspond to two access modes, namely real-time access mode and polling access mode, and each access mode corresponds to different registers in the FPGA module. Specifically, the polling access mode only supports read operations, that is, the CPU can independently enable a specific optical module, and the FPGA will also periodically read the specific optical module according to the CPU configuration information, and store the data in the random access memory (RAM), and notify the CPU through interrupts; the real-time access mode means that the CPU can perform real-time read and write operations on the specific optical module through the FPGA, and both read and write data are transmitted through the RAM.

[0069] It should be noted that in some embodiments of the present application, first, FPGA supports CPU real-time control of the optical module through a real-time access module, as shown in Figure 2. Figure 2 is a schematic diagram of a real-time access module provided in an embodiment of the present application. It can be seen that in Figure 2, the command (CMD) module and the upper layer of the data storage (RAM) module are both bonded to the CPU, and the RTC downstream interface is bonded to the instruction module. The CPU controls the optical module and obtains the status of the optical module through CMD REG (command module). The RTC (real-time access) module drives the instruction module after obtaining instructions from CMD REG, specifically including the enable bit, read-write bit, send data, read data, starting address and number of operation bytes of the instruction module. At the same time, the instruction module will feedback various completion flags. In Figure 2, rw is the read / write bit, en is the enable bit, start indicates the starting address, Iic_address_offset indicates the I2C address data, Bytes_num indicates the number of operation bytes, Page_number indicates page read / write, sys_clk indicates the clock signal, reset_out indicates the reset signal, txd indicates the transmit data, rxd indicates the read data, done_flag indicates the completion flag, ram_addr indicates the address data, ram_en indicates enable, ram_in indicates input, and ram_out indicates output.

[0070] Secondly, FPGA supports CPU polling of optical module information through a polling access module, as shown in Figure 3. Figure 3 is a schematic diagram of a polling access module provided in some embodiments of the present application. Compared with Figure 2, Figure 3 adds periodic polling, and Timer represents periodic polling. Among them, the optical module polling function module in the polling access mode has a similar workflow to the real-time access function module, the difference is that the polling operation only supports read operations; at the same time, the polling operation is a periodic polling of optical module information, unlike the real-time operation which only accesses once.

[0071] In some embodiments, the instruction module is used to call the I2C controller module.

[0072] It should be noted that the FPGA calls the I2C controller and the optical module through the instruction module to achieve communication. The data sent by the instruction module is taken from the RAM module, and the data it reads will also be stored in the corresponding position of the RAM.

[0073] Furthermore, the address, polling time and I2C communication rate of the I2C device can be flexibly configured through registers.

[0074] In some embodiments, the upper controller communicates with the information transmission device through a storage medium module; the storage medium module is used to store control information and status information of the upper controller, or store I2C device data and store write data of the upper controller for the I2C device.

[0075] Furthermore, the storage medium module includes: registers and RAM; the upper-level controller communicates with the information transmission device through the storage medium module, including: the upper-level controller reads and writes the instructions of the I2C device and the status of the I2C device through the register, and the upper-level controller reads and writes the data of the I2C device through the RAM, and the address space mapped by the register and the RAM is different.

[0076] It should be noted that in FPGA, the register REG and data RAM are designed using a modular design method, that is, each module uses each continuous address segment, for example, SFP1 uses 0X1000~0X1FFC addresses, and SFP2 uses 0X2000~0X2FFC addresses. This address allocation method facilitates flexible expansion of the CPU and FPGA according to actual needs, that is, the SFP packaging modules in some embodiments of the present application can be designed in quantity according to actual needs.

[0077] Specifically, the registers are the control and status registers corresponding to the optical module's real-time access mode. When performing a page-turning operation on the optical module, the CPU must write to the optical module's 0X7F register. Secondly, compared to the control and status registers corresponding to the real-time access mode, the control and status registers corresponding to the polling access mode have similar functions. The difference is that in polling mode, the FPGA supports multi-page operations, so the CPU must specify the operation page of the optical module through registers, and the FPGA will complete the page turn autonomously. The optical module is limited to a maximum of 128 bytes of operation at a time and cannot cross pages. Therefore, the CPU must specify through registers whether to operate on the first 128 bytes or the last 128 bytes of the optical module. The optical module only supports read operations in polling mode, so there is no read and write operation control.

[0078] Among them, in some embodiments of the present application, a storage medium module composed of registers and RAM can be used for communication between the CPU and the FPGA. Specifically, the instructions for the CPU to read and write the optical module and the status of the optical module can be transmitted through registers. Using the PCIe Gen2 rate, the data of the CPU to read and write the optical module to the FPGA are all transmitted through RAM and mapped to different addresses. Specifically, the CPU and the FPGA use an in-band interrupt method to communicate commands and data, that is, the FPGA will generate an interrupt to the CPU after executing the command or data. Compared with the polling communication mechanism, the interrupt communication method can further reduce the CPU usage occupancy and improve communication efficiency.

[0079] Furthermore, the first storage medium module includes: a real-time access register and a first RAM; the real-time access register, the first RAM and the real-time access module are communicatively connected; the first RAM includes a first port and a second port; the second RAM includes a third port and a fourth port; when the upper-level controller reads the data stored in the first RAM, the write enable of the second port of the first RAM is forcibly closed through the real-time access register.

[0080] The second storage medium module includes a polling access register and a second RAM. The polling access register and the second RAM are communicatively connected to the polling access module. When the first port is used to read data, the second port stops writing data. When the third port is used to read data, the fourth port stops writing data. When the upper-level controller reads data stored in the second RAM, the write enable of the fourth port of the second RAM is forcibly disabled via the real-time access register.

[0081] It should be noted that since different access modes correspond to different registers and data storage RAMs, the SFP encapsulation module includes a first storage medium module and a second storage medium module, wherein the first storage medium module includes a first RAM and a real-time access register, and the second storage medium module includes a second RAM and a polling access register.

[0082] RAM is a type of internal computer memory, and because the CPU and FPGA communicate via RAM, in the embodiments of the present application, the RAM is a dual-port architecture. Specifically, the first RAM includes a first port and a second port, and the second RAM includes a third port and a fourth port. The RAM interface design is shown in FIG4 , which is a schematic diagram of a RAM structure provided in the embodiments of the present application. The RAM is a dual-port RAM, where side A is bonded to the CPU end and side B is bonded to the FPGA logic end, i.e., port A can correspond to the first port and port B can correspond to the second port. Specifically, "WE_B" also needs to be bonded to "Data RAM reading done," i.e., the CPU can control the FPGA's writing to the RAM. For RAM reading and writing control, each RAM adds a "Data RAM reading done" write control bit. To prevent RAM read and write data conflicts, when the CPU performs a read operation, the FPGA logic prohibits writing to the RAM.

[0083] In addition, the CPU can read and write to the RAM through one port, and the FPGA can read and write to the RAM through another port, so it is necessary to handle read and write conflicts. That is, when the CPU reads data from the RAM through the first port, the FPGA needs to control the logic so that it cannot write data to the RAM through the other port. Moreover, the embodiment of the present application can realize that when the CPU reads RAM data, the write enable of the B port of the RAM module is forced to be turned off through the register.

[0084] In some embodiments, the information transmission device further includes: a first PCIe interface module; the first PCIe interface module is used to connect multiple SFP packaging modules and communicate with the second PCIe interface in the upper controller based on the PCIe bus.

[0085] It's important to note that the first PCIe interface module includes a PCIe Endpoint, which the FPGA implements to enable PCIe communication between the CPU and the FPGA. This functionality relies on the FPGA's native I / O support, specifically high-speed I / O. PCIe communication between the CPU and FPGA has numerous applications, and its purpose is to achieve high-speed PCIe communication between the CPU and FPGA.

[0086] In addition, different hard-core configuration interfaces are provided for development tools from different manufacturers, but the basic configuration items are the same.

[0087] In some embodiments, the information transmission device also includes: a polling time register, an I2C device address register, and an I2C controller rate register; the polling time register is used to set the polling time; the I2C device address register is used to configure the I2C address for accessing the I2C device; and the I2C controller rate register is used to configure the communication rate of the I2C controller module.

[0088] It should be noted that in some embodiments of the present application, the FPGA defines a specific polling time, and the polling time can be set through the polling time register to meet the needs under different working conditions. In the embodiment of the present application, the polling time can be set to 500ms. This application does not make specific limitations on this, and different polling times can be set according to the requirements of the switch or other systems.

[0089] It should be noted that in some embodiments of the present application, the FPGA defines the I2C device address, and the I2C address of the I2C device can be configured to be accessed through the I2C device address register. Furthermore, the FPGA can also define the optical module, and the optical module register can be used to meet the access to different optical module addresses such as DSFP and QSFP. According to the I2C device address register, the FPGA can meet the access to any I2C device. Therefore, in the embodiment of the present application, the optical module device address can be set to 7'h50, and the CPU can configure the I2C device address through the FPGA.

[0090] It should be noted that in some embodiments of the present application, the FPGA defines an I2C controller rate register, and the I2C controller communication rate can be configured through the I2C controller rate register, such as up to 100kbit / s in standard mode, up to 400kbit / s in fast mode, and up to 3.4Mbit / s in high-speed mode. In the embodiment of the present application, the communication rate can be set to 100kbit / s. This application does not make specific limitations on this, and different communication rates can be set according to the requirements of the switch or other systems.

[0091] In some embodiments, the information transmission device is used to drive the I2C controller module and is also used to control the start, read and write, register selection, and stop driving of the I2C controller module.

[0092] It should be noted that in some embodiments of the present application, FPGA can realize the driving of the I2C controller, specifically, controlling the driving of the entire I2C controller device waveform, such as the start, read and write, register selection, and stop of the I2C controller. Compared with the traditional upper-layer driving method, this driving method is directly facing the optical module device signal. The effective communication rate of the protocol can reach 95%, while the effective communication rate of the protocol of the traditional upper-layer driving method is only about 20%.

[0093] In addition, in some embodiments of the present application, the I2C driving mode of the I2C device is transferred from the upper controller to the information transmission device, thereby reducing the resource occupancy of the upper controller.

[0094] In some embodiments, the information transmission device and the upper-layer controller transmit commands and data via in-band interrupts.

[0095] It should be noted that in some embodiments of the present application, in order to improve the communication rate between the upper-level controller and the information transmission device, the information transmission device and the upper-level controller use the PCIe protocol when performing command and data transmission communications, and further adopt an interrupt method based on PCIe communication, that is, after the information transmission device completes the operation of the optical module, it will generate an in-band interrupt through PCIe, thereby notifying the upper-level controller, so that the upper-level controller can quickly know whether the operation of the optical module is completed.

[0096] Some embodiments of the present application provide an information transmission device, which includes: multiple I2C controller modules, each I2C controller module is used to connect to the I2C interface of an I2C device, that is, the information transmission device in the embodiment of the present application is connected to the upper controller, and each I2C controller module in the information transmission device is connected to the I2C interface of an I2C device. The information transmission device is used to receive control instructions sent by the upper controller and perform parallel access to the I2C device according to the control instructions. Therefore, by setting the same number of I2C controllers as the I2C devices, parallel access to the I2C devices by the information transmission device is achieved. Furthermore, the information transmission device is communicatively connected to the upper controller, so the upper controller can achieve parallel access to the I2C devices through the information transmission device. , the upper-level controller does not need to repeatedly access the information transmission device to drive access to the I2C device, and thus the upper-level controller does not need to repeatedly drive the I2C device waveform, thereby reducing the occupancy rate of the upper-level controller while improving the communication efficiency. Furthermore, since the optical module is equivalent to an I2C device, the upper-level controller can achieve parallel access to the optical module through the information transmission device, solving the problem in the prior art that the optical module under the same I2C expansion chip in the switch system can only be accessed serially, resulting in a reduction in the access speed of the entire switch system. In the embodiment of the present application, multiple I2C controller modules are set, and each I2C controller module is connected to the I2C interface of an I2C device, thereby achieving efficient parallel access to the I2C device and improving the access efficiency of the I2C device in the switch application.

[0097] In addition, some embodiments of the present application improve the access efficiency of optical module devices in switch applications through a parallel access mechanism for optical modules, effectively reducing CPU resource usage. Specifically, the I2C drive method for the optical module is transferred from the CPU to the FPGA, thereby reducing CPU resource usage. The FPGA and CPU support real-time access and polling access methods for the optical module, making access more flexible while improving efficiency. The natural parallel access characteristics of the FPGA and the parallel independent access mechanism of numerous optical modules achieve mutual independence of optical modules while improving access efficiency, thereby achieving fault isolation of optical module devices. This application supports the configuration of slave device addresses and is therefore applicable to any I2C device field.

[0098] In a second aspect, some embodiments of the present application provide an information transmission system, which includes: the information transmission device of any one of the first aspects, an upper-layer controller and an I2C device. The resource sharing device mentioned above is described in detail below.

[0099] It should be noted that, in some embodiments of the present application, as shown in Figure 5, Figure 5 is a schematic diagram of an information transmission system provided in some embodiments of the present application, the information transmission system includes an information transmission device, an upper-level controller and an I2C device, and the information transmission device is communicatively connected to the upper-level controller and the I2C device; the information transmission device accesses the I2C device in parallel through the I2C device control command sent by the upper-level controller.

[0100] Therefore, in some embodiments of the present application, the upper-layer controller needs to access the I2C device, but in reality, the upper-layer controller only needs to access the information transmission device. The information transmission device implements parallel access to the I2C device based on the upper-layer controller's control commands and its internal structure. Furthermore, the I2C device and the upper-layer controller are isolated, and the information transmission device implements parallel access to the optical module. Therefore, the upper-layer controller only needs to implement parallel access to the information transmission device.

[0101] On the one hand, the above-mentioned information transmission system simplifies the design and access method of the upper-level controller, that is, only PCIe is required for access; on the other hand, the information transmission device realizes access to the I2C device, thereby reducing the usage occupancy of the upper-level controller. The upper-level controller does not need to directly access the I2C device. The information transmission device can monitor the status of the I2C device in real time and feedback the I2C device status to the upper-level controller, thereby improving the effective utilization rate of the I2C device.

[0102] Some embodiments of the present application provide an information transmission system, which includes: an information transmission device, an upper-layer controller and an I2C device, wherein the information transmission device includes: multiple I2C controller modules, each I2C controller module is used to connect to the I2C interface of an I2C device, that is, the information transmission device in the embodiment of the present application is connected to the upper-layer controller, and each I2C controller module in the information transmission device is connected to the I2C interface of an I2C device. Therefore, the information transmission device instantiates the same number of I2C controllers as the I2C devices, thereby realizing parallel access of the information transmission device to the I2C devices. Furthermore, the information transmission device is connected to the I2C interface of the I2C device. Upper-layer controller, therefore, the upper-layer controller can realize parallel access to the I2C device through the information transmission device. Since the optical module is equivalent to an I2C device, the upper-layer controller can realize parallel access to the optical module through the information transmission device, which solves the problem in the prior art that the optical modules under the same I2C expansion chip in the switch system can only be accessed serially, resulting in a reduction in the access speed of the entire switch system. In the embodiment of the present application, multiple I2C controller modules are set, and each I2C controller module is connected to the I2C interface of an I2C device, thereby realizing efficient parallel access to the I2C device and improving the access efficiency of the I2C device in the switch application.

[0103] In addition, some embodiments of the present application improve the access efficiency of optical module devices in switch applications through a parallel access mechanism for optical modules, effectively reducing CPU resource usage. Specifically, the I2C drive method for the optical module is transferred from the CPU to the FPGA, thereby reducing CPU resource usage. The FPGA and CPU support real-time access and polling access methods for the optical module, making access more flexible while improving efficiency. The natural parallel access characteristics of the FPGA and the parallel independent access mechanism of numerous optical modules achieve mutual independence of optical modules while improving access efficiency, thereby achieving fault isolation of optical module devices. This application supports the configuration of slave device addresses and is therefore applicable to any I2C device field.

[0104] In a third aspect, some embodiments of the present application provide an information transmission method, which is applied to any information transmission device in the first aspect. As shown in FIG6 , the method includes the following steps:

[0105] Step 101: upon receiving an I2C device control command sent by an upper-layer controller, perform parallel access to the I2C device.

[0106] It should be noted that in some embodiments of the present application, for an information transmission device, such as an FPGA, when the FPGA receives a control command or access request to an I2C device from an upper-level controller, such as a CPU, the FPGA directly accesses the I2C device (such as an optical module).

[0107] Since the number of I2C controller modules in the FPGA is equal to the number of optical modules, and each I2C controller module is connected to the I2C interface of an optical module, the FPGA can achieve parallel access to the optical modules.

[0108] Step 102 : During the parallel access to the I2C device, monitor the status of the I2C device in real time, and return the status of the I2C device to the upper layer controller.

[0109] It should be noted that in some embodiments of the present application, during the period when the information transmission device accesses the I2C device in parallel according to the control command or access request of the CPU, the information transmission device will monitor the status of the I2C device in real time and return the status of the I2C device to the upper-level controller.

[0110] Specifically, in some embodiments of the present application, the upper-level controller and the information transmission device use an in-band interrupt method to communicate commands and data transmission, that is, when the FPGA executes the command or data, it will generate an interrupt to the CPU. Compared with the polling communication mechanism, the interrupt communication method can further reduce the usage occupancy of the upper-level controller and improve communication efficiency.

[0111] In addition to the above examples, users can monitor, access, control, read, etc. I2C devices through the information transmission method in the embodiments of this application. This application does not make specific limitations on this, and users can determine the information transmission method based on actual conditions.

[0112] Some embodiments of the present application provide an information transmission method, which performs parallel access to I2C devices upon receiving an I2C device control command sent by an upper-level controller. During the parallel access to the I2C devices, the status of the I2C devices is monitored in real time, and the status of the I2C devices is returned to the upper-level controller. In the embodiments of the present application, the I2C driving mode of the I2C devices is transferred from the upper-level controller to the information transmission device, thereby reducing the resource occupancy of the upper-level controller. Moreover, by having the number of I2C controller modules in the information transmission device equal to the number of I2C devices, and each I2C controller module is connected to the I2C interface of an I2C device, the upper-level controller can access the I2C devices in parallel through the information transmission device.

[0113] Furthermore, in some embodiments of the present application, the information transmission device includes: multiple I2C controller modules, each I2C controller module is used to connect to the I2C interface of an I2C device. That is, the information transmission device in the embodiments of the present application is connected to the upper-layer controller, and each I2C controller module in the information transmission device is connected to the I2C interface of an I2C device. Therefore, the information transmission device instantiates the same number of I2C controllers as the number of I2C devices, thereby enabling parallel access of the information transmission device to the I2C devices. Furthermore, the information transmission device is communicatively connected to the upper-layer controller. Therefore, the upper-layer controller can achieve parallel access to the I2C devices through the information transmission device. Since the optical module is equivalent to an I2C device, the upper-layer controller can achieve parallel access to the optical module through the information transmission device. This solves the problem in the prior art that the optical modules under the same I2C expansion chip in the switch system can only be accessed serially, thereby reducing the access speed of the entire switch system. In the embodiments of the present application, by providing multiple I2C controller modules, each I2C controller module is connected to the I2C interface of an I2C device, thereby achieving efficient parallel access to the I2C devices, thereby improving the access efficiency of I2C devices in switch applications.

[0114] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0115] It should be noted that when a component is referred to as being "fixed to" another component, it may be directly on the other component or there may also be a central component. When a component is considered to be "connected to" another component, it may be directly connected to the other component or there may also be a central component. When a component is considered to be "set on" another component, it may be directly set on the other component or there may also be a central component. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0116] Each embodiment in this specification is described in a related manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiment is generally similar to the method embodiment, so the description is relatively simple. For related parts, refer to the description of the method embodiment.

[0117] The above are only some embodiments of the present application and are not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application are included in the scope of protection of the present application.

[0118] The host device and computer system provided by the present application are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the structure and core ideas of the present application. At the same time, for those skilled in the art, according to the ideas of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An information transmission device, characterized in that: The information transmission device is communicatively connected to an upper-level controller, and comprises: a plurality of integrated circuit bus I2C controller modules, each of which is used to connect to an I2C interface of an I2C device, wherein the information transmission device is used to receive control instructions sent by the upper-level controller, and perform parallel access to the I2C devices according to the control instructions.

2. The information transmission device according to claim 1, characterized in that: The information transmission device further comprises: a plurality of SFP encapsulation modules, each of which is used to connect to an I2C controller, and the upper layer controller accesses the I2C device through the SFP encapsulation module.

3. The information transmission device according to claim 2, characterized in that: The SFP encapsulation module includes: a real-time access module, a polling access module, an instruction module, a first storage medium module, a second storage medium module and a bus adapter module; The real-time access module is communicatively connected with the first storage medium module, the instruction module and the bus adapter module; The polling access module is communicatively connected with the second storage medium module, the instruction module and the bus adapter module.

4. The information transmission device according to claim 2, characterized in that: The real-time access module is used to control the I2C device in real time based on the real-time access mode according to the control command of the upper controller. The real-time access mode includes the upper controller accessing the I2C device in real time through the information transmission device. The real-time access mode is used for debugging.

5. The information transmission device according to claim 2, characterized in that: The polling access module is used to access the I2C device based on the polling access mode according to the control command of the upper controller. The polling access mode includes that after the upper controller completes the configuration of the operation information of the I2C device, the information transmission device periodically accesses the I2C device, and the periodic access supports multi-page reading and writing of the I2C device.

6. The information transmission device according to claim 2, characterized in that: The command module is used to call the I2C controller module.

7. The information transmission device according to claim 2, characterized in that: The upper controller communicates with the information transmission device via a storage medium module; The storage medium module is used to store control information and state information of the upper layer controller, or to store I2C device data and write data of the upper layer controller to the I2C device.

8. The information transmission device according to claim 7, characterized in that: The storage medium module includes: a register and a random access memory RAM; The upper controller communicates with the information transmission device through the storage medium module, including: the upper controller reads and writes the instructions of the I2C device and the status of the I2C device through the register, and the upper controller reads and writes the data of the I2C device through the RAM, and the address space mapped by the register and the RAM is different.

9. The information transmission device according to claim 7, characterized in that: The first storage medium module includes: a real-time access register and a first RAM; The real-time access register is communicatively connected with the first RAM and the real-time access module.

10. The information transmission device according to claim 7, characterized in that: The second storage medium module includes: a polling access register and a second RAM; The polling access register and the second RAM are communicatively connected with the polling access module.

11. The information transmission device according to claim 8 or 9, characterized in that: The first RAM includes a first port and a second port; the second RAM includes a third port and a fourth port; When the first port is used to read data, the second port stops writing data; when the third port is used to read data, the fourth port stops writing data.

12. The information transmission device according to claim 8 or 9, characterized in that: When the upper controller reads the data stored in the first RAM, the write enable of the second port of the first RAM is forcibly turned off through the real-time access register; When the upper layer controller reads the data stored in the second RAM, the write enable of the fourth port of the second RAM is forcibly turned off through the real-time access register.

13. The information transmission device according to claim 1, characterized in that: The information transmission device also includes: a first high-speed serial computer expansion bus standard PCIe interface module; The first PCIe interface module is used to connect multiple SFP packaging modules and is connected to the second PCIe interface in the upper controller based on the PCIe bus communication.

14. The information transmission device according to claim 1, characterized in that: The information transmission device further comprises: a polling time register; The polling time register is used to set the polling time.

15. The information transmission device according to claim 1, characterized in that: The information transmission device also includes: an I2C device address register; The I2C device address register is used to configure the I2C address for accessing the I2C device.

16. The information transmission device according to claim 1, characterized in that: The information transmission device also includes: an I2C controller rate register; The I2C controller rate register is used to configure the communication rate of the I2C controller module.

17. The information transmission device according to claim 1, characterized in that: The information transmission device is used to drive the I2C controller module, and is also used to control the start, read and write, register selection, and stop driving of the I2C controller module.

18. The information transmission device according to claim 1, characterized in that: The information transmission device and the upper layer controller transmit commands and data via in-band interruption.

19. An information transmission system, characterized in that: The information transmission system comprises: the information transmission device according to any one of claims 1 to 18, an upper layer controller and an I2C device; The information transmission device is communicatively connected to the upper layer controller and the I2C device; The information transmission device performs parallel access to the I2C devices through the I2C device control command sent by the upper controller.

20. An information transmission method, characterized in that: Applicable to the information transmission device according to any one of claims 1 to 18, the information transmission method comprising: Upon receiving an I2C device control command sent by an upper-layer controller, access the I2C device in parallel; During the parallel access to the I2C device, the state of the I2C device is monitored in real time, and the state of the I2C device is returned to the upper layer controller.

Citation Information

Patent Citations

  • Real-time monitoring method of multipath I2C device in optical communication device

    CN101719110A

  • Access method and device of I2C (Inter-Integrated Circuit) equipment

    CN102081570A

  • Method of recognizing state of optical module in ONU (Optical Network Unit) and ONU

    CN105472482A

  • Storage device information collection method and system and electronic device

    CN114721593A

  • Information transmission device, system and method

    CN116132383A

Cited By

  • Bus transmission control module and transmission method from I2C bus to AHB bus

    CN119883979A