Device, switch and method for supporting mixed use of PCIe and CXL protocols

By introducing MCU and confirmation circuits into the data transmission device and generating a port device table, the problem that the PCIe and CXL protocols cannot be used simultaneously is solved, the compatibility and usage scenarios of the switch are improved, and the system complexity and cost are reduced.

CN120075324AActive Publication Date: 2025-05-30SHANGHAI XINLIJI SEMICON CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510510406.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-23
Publication Date
2025-05-30
Estimated Expiration
2045-04-23

AI Technical Summary

Technical Problem

In the prior art, the use of the PCIe protocol and the CXL protocol on the switch is independent of each other and cannot be used simultaneously, resulting in increased system complexity and cost, limiting the use scenarios of the switch.

Method used

Design a device that supports the mixed PCIe and CXL protocols, and generates a port device table through the MCU and confirmation circuit to determine the matching of the port's valid bits and data type, so as to realize data transmission between devices of different protocols.

Benefits of technology

The same data transmission device supports both PCIe and CXL protocols, reducing the need to use different switches, reducing system complexity and cost, and improving the utilization rate and system performance of computer network equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075324A_ABST
    Figure CN120075324A_ABST
Patent Text Reader

Abstract

The invention discloses a device, a switch and a method for supporting mixed use of PCIe and CXL protocols, the device comprises an MCU, a confirmation circuit and a plurality of connection ports, a port device table is configured in the device, the port device table records port IDs and effective bits which are in one-to-one correspondence, the effective bits comprise supporting PCIe and supporting CXL, and the effective bits are determined according to the types of devices connected with the connection ports; when equipment connected with the first port transmits data to equipment connected with the second port through the device, the first port and the second port are two different connection ports, the confirmation circuit determines the data type of the data and transmits the data to the MCU, and the data type comprises PCIe data and CXL data; the MCU judges whether the effective bit of the first port, the effective bit of the second port and the data type are matched or not according to the port equipment table, and if yes, the MCU controls the first port to transmit data to the second port. According to the invention, the compatibility and usage scenarios of the data transmission device can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a device, a switch, and a method that support the mixed use of PCIe and CXL protocols. Background Art

[0002] With the rapid development of AI technology, the computing power demand and storage capacity have increased sharply. The traditional CPU interface can no longer meet the requirements. Therefore, the help of a switch is needed to connect more GPUs through the switch to improve computing power or connect more storage devices to increase the storage space.

[0003] In switches, the PCIe protocol and the CXL protocol are two commonly used high-speed data transmission protocols. The PCIe protocol is a high-speed serial computer expansion bus standard, which is widely used in computers, servers, and embedded systems to connect various expansion cards and devices. The CXL protocol is an emerging open standard, aiming to directly connect the CPU and the extended memory to provide higher bandwidth and lower latency, thereby improving the performance of the system.

[0004] In the existing technology, the switch design that usually uses the PCIe protocol or the CXL protocol alone is adopted. In this design, if devices that support different protocols need to be connected, different switches are required, which not only increases the cost but also increases the complexity of the system.

[0005] In addition, since the use of the PCIe protocol and the CXL protocol on the switch is independent of each other, although the CXL protocol is a protocol derived from the PCIe protocol, the two protocols are not completely compatible. Therefore, the two protocols cannot be used simultaneously on the same switch, which also limits the usage scenarios of the switch.

[0006] The disclosure of the above background art content is only used to assist in understanding the inventive concept and technical solution of the present invention. It does not necessarily belong to the prior art of this application, nor will it necessarily give technical teachings; in the case where there is no clear evidence indicating that the above content was publicly available before the filing date of this application, the above background art should not be used to evaluate the novelty and inventiveness of this application. Summary of the Invention

[0007] The object of the present invention is to provide a device, a switch, and a method that support the mixed use of PCIe and CXL protocols, which can improve the compatibility and usage scenarios of data transmission devices.

[0008] To achieve the above object, the technical solution adopted by the present invention is as follows: A device that supports the mixed use of PCIe and CXL protocols. The device is a data transmission device, including an MCU, a confirmation circuit, and multiple connection ports. Among them, the types of devices connected to the connection ports include PCIe devices and CXL devices. The MCU is electrically connected to each of the multiple connection ports, and the confirmation circuit is electrically connected to the MCU; A port device table is configured in the device. The information recorded in the port device table includes a port ID and a valid bit that correspond one by one. The port ID corresponds to the connection port one by one and is unique. The valid bit includes support for PCIe and support for CXL. The valid bit is determined according to the type of device connected to the connection port; When a device connected to a first port transmits data to a device connected to a second port, the first port and the second port are two different connection ports. The confirmation circuit is configured to determine the data type of the data and transmit it to the MCU. The data type includes PCIe data and CXL data; The MCU is configured to determine whether the valid bit of the first port, the valid bit of the second port, and the data type match according to the port device table. If they match, the MCU controls the first port to transmit the data to the second port.

[0009] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, if the valid bit of the first port, the valid bit of the second port, and the data type do not match, and the valid bit of the first port is support for PCIe, and the valid bit of the second port is support for CXL, then the MCU controls the first port to transmit the data to the second port.

[0010] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, if the valid bit of the first port, the valid bit of the second port, and the data type do not match, and the valid bit of the first port is support for CXL, and the valid bit of the second port is support for PCIe; Then reconfigure the protocol of the device connected to the first port so that the valid bit of the first port is support for PCIe.

[0011] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the MCU is further configured to control data transmission between connection ports with the same valid bit and not control data transmission between connection ports with different valid bits.

[0012] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, it further includes a data processing module. The data processing module is configured to process the data to change the data type of the data; If the valid bit of the first port matches the data type but does not match the valid bit of the second port, the MCU controls the first port to transmit data to the data processing module, and the data processing module is configured to transmit the processed data to the second port.

[0013] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the confirmation circuit includes a PCIe confirmation circuit and a CXL confirmation circuit. The PCIe confirmation circuit is configured to perform a first operation on the data, and the first operation includes confirming whether the data type of the data is PCIe data. The CXL confirmation circuit is configured to perform a second operation on the data, and the second operation includes confirming whether the data type of the data is CXL data.

[0014] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the first operation further includes performing a decoding operation on the PCIe data. The second operation further includes performing a decoding operation on the CXL data.

[0015] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, if the MCU determines that the valid bit of the first port, the valid bit of the second port, and the data type match; And, if the data type is PCIe data, the MCU controls the first port to transmit the data to the second port through the PCIe confirmation circuit; if the data type is CXL data, the MCU controls the first port to transmit the data to the second port through the CXL confirmation circuit.

[0016] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the number of the confirmation circuits is multiple, and the multiple confirmation circuits correspond to the connection ports one by one, and each confirmation circuit is electrically connected to the MCU.

[0017] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the confirmation circuit is integrated inside the connection port.

[0018] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the number of the confirmation circuits is 1.

[0019] Further, based on any one of the foregoing technical solutions or a combination of multiple technical solutions, the connection port is a PCIe interface.

[0020] According to another aspect of the present invention, there is provided a switch, which is a device that supports the mixed use of PCIe and CXL protocols as described in any one of the above technical solutions or a combination of multiple technical solutions.

[0021] According to another aspect of the present invention, there is provided a data transmission method based on a device that supports the mixed use of PCIe and CXL protocols as described in any one of the above technical solutions or a combination of multiple technical solutions, including the following steps: The MCU obtains the device types connected to each connection port and each port ID to generate the port device table; When the device connected to the first port transmits data to the device connected to the second port through the device; The confirmation circuit is used to determine the data type of the data and transmit it to the MCU; The MCU determines whether the valid bits of the first port, the valid bits of the second port, and the data type match according to the port device table. If they match, the MCU controls the first port to transmit the data to the second port.

[0022] The beneficial effects brought by the technical solutions provided by the present invention are as follows: a. By adding a new MCU and configuring a port device table in the data transmission device, the present invention enables the same data transmission device to support both PCIe protocol and CXL protocol at the same time, which can reduce the need to use different switches, not only reducing costs but also reducing the complexity of the system. It can greatly improve the utilization rate of computer network devices, reduce equipment costs, and at the same time meet the rapidly increasing demands for computing power and storage capacity in the AI era; b. By adding a new confirmation circuit in the data transmission device, according to the data header file sent by the device, it is confirmed whether it is a CXL protocol or PCIe protocol data packet, and according to the result, the corresponding PCIe confirmation circuit or CXL confirmation circuit is selected to decode and confirm which connection port the data is sent to. This will greatly improve the processing efficiency of the communication protocol, reduce communication latency, and at the same time improve the stability of the system; c. By the MCU determining whether data transmission can be performed and in what manner according to the matching of the current data type to be transmitted and the valid bits of the two connection ports to be used for data transmission, it can avoid repeatedly configuring the protocols of the devices, greatly simplifying the complexity of the system, and at the same time reducing the related problems caused by configuration errors; d. Since the CXL protocol provides higher bandwidth and lower latency, connecting external devices, CPUs, and memories through the switch provided by the present invention can improve the performance of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments recorded in the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0024] Figure 1 The first working flowchart of the device supporting the mixed use of PCIe and CXL protocols provided by an exemplary embodiment of the present invention; Figure 2 The second working flowchart of the device supporting the mixed use of PCIe and CXL protocols provided by an exemplary embodiment of the present invention; Figure 3 The structural schematic diagram of the switch supporting the mixed use of PCIe and CXL protocols provided by an exemplary embodiment of the present invention; Figure 4 The structural schematic diagram of the switch with one confirmation circuit provided by an exemplary embodiment of the present invention; Figure 5 The structural schematic diagram of the switch with confirmation circuits corresponding one-to-one to the connection ports provided by an exemplary embodiment of the present invention; Figure 6 The flowchart of data transmission between two connection ports with the same valid bits provided by an exemplary embodiment of the present invention; Figure 7 The schematic diagram of data transmission between transmission ports with different valid bits achieved by reconfiguring the protocol provided by an exemplary embodiment of the present invention. Detailed implementation manners

[0025] In order to enable those skilled in the art to better understand the solution of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0026] It should be noted that the terms "first", "second", etc. in the description, claims and the above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product or equipment comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or equipment.

[0027] For the convenience of understanding this application, the relevant technologies in this application are explained as follows: PCIe (Peripheral Component Interconnect Express) is a computer bus interface standard used to connect high-speed devices inside a computer, such as graphics cards, solid-state drives, network interface cards, etc. It is one of the most important interfaces in modern computer systems and is widely used in fields such as desktop computers, laptops, servers, etc.

[0028] CXL (Compute Express Link, an open high-speed interconnect standard technology) is an open interconnect protocol standard, a protocol for high-bandwidth and low-latency device interconnection implemented based on the peripheral component interconnect express (PCIe) protocol. CXL aims to provide an efficient and low-latency interface between the CPU and dedicated accelerators, high-performance storage systems, etc., to improve communication between the processor and accelerators, memory expansion devices, etc., and meet the requirements of resource sharing, memory pooling and efficient computing scheduling.

[0029] PCIe devices refer to devices that comply with the PCI Express (PCIe) standard and support data transmission using the PCIe protocol, and do not support the CXL protocol.

[0030] CXL devices refer to devices that comply with the CXL standard and support data transmission using the CXL protocol. CXL devices can be switched to devices that support the PCIe protocol, i.e., PCIe devices, through protocol configuration.

[0031] PCIe data refers to the data transmitted through the PCIe bus, or in other words, the data transmitted based on the PCIe protocol. PCIe data refers to the binary data stream transmitted on the PCIe bus. This data can be data sent from a device to the host, data sent from the host to a device, or device-to-device transmission through a PCIe switch. PCIe data can originate from GPUs, SSDs, NICs, FPGA cards, etc. PCIe data is transmitted in the form of data packets (TLP, Transaction Layer Packet). Each data packet contains the following parts: Header: contains information such as the type of the data packet, source address, destination address, etc.; Payload: contains the actual data content; CRC (Cyclic Redundancy Check): used to detect errors in data transmission.

[0032] CXL data is data based on the CXL protocol. It is still transmitted through the existing PCIe physical layer, but new features and improvements are introduced at the protocol level. CXL data is also transmitted in the form of data packets (Packet). Each data packet contains the following parts: Header: contains information such as the type of the data packet, source address, destination address, etc.; Payload: contains the actual data content; CRC (Cyclic Redundancy Check): used to detect errors in data transmission. However, the header of CXL data is different from the header of PCIe data.

[0033] In an embodiment of the present invention, a device supporting the mixed use of PCIe and CXL protocols is provided. Refer to Figures 3 to 5 , the device includes an MCU, a confirmation circuit, and multiple connection ports. Among them, the types of devices connected to the connection ports include PCIe devices or CXL devices. The MCU is electrically connected to each of the multiple connection ports, and the confirmation circuit is electrically connected to the MCU; the connection port is preferably a PCIe interface that supports both PCIe devices and CXL devices; A port device table is configured in the device. The information recorded in the port device table includes a one-to-one correspondence between the port ID and the valid bit. The port ID corresponds to the connection port one-to-one and is unique. The valid bit includes supporting PCIe and supporting CXL. The valid bit is determined according to the type of device connected to the connection port. Specifically, if the device connected to the connection port is a PCIe device, the valid bit corresponding to the connection port is configured to support PCIe. If the device connected to the connection port is a CXL device, the valid bit corresponding to the connection port is configured to support CXL; When a device connected to the first port transmits data to a device connected to the second port, where the first port and the second port are two different connection ports, the confirmation circuit is configured to determine the data type of the data and transmit it to the MCU. The data types include PCIe data and CXL data; The MCU is configured to determine whether the valid bits of the first port, the valid bits of the second port, and the data type match according to the port device table. If they match, the MCU controls the first port to transmit the data to the second port.

[0034] The device provided in this embodiment that supports the mixed use of PCIe and CXL protocols can perform data transmission according to Figure 1 or Figure 2 the process shown. When a device is connected to the device that supports the mixed use of PCIe and CXL protocols through the connection port, the MCU sends CXL protocol signals and PCIe protocol signals to each transmission port. The MCU determines the device types of the devices connected to each connection port based on the feedback of each connection port to generate / build the port device table. Specifically, each connection port is pre-configured with a corresponding and unique port ID. The connection port connected to a PCIe device will send a corresponding confirmation signal to the MCU when it receives the PCIe protocol signal sent by the MCU, and then the MCU confirms that the valid bit corresponding to this connection port supports PCIe; the connection port connected to a CXL device will send a corresponding confirmation signal to the MCU when it receives the CXL protocol signal sent by the MCU, and then the MCU confirms that the valid bit corresponding to this connection port supports CXL. In a specific embodiment of the present invention, for a 4-port device, its port device table is shown in Table 1.

[0035]

[0036] It should be noted that CXL devices have downward compatibility. By reconfiguring the protocol, a CXL device can be configured as a PCIe device. After each reconfiguration of the protocol for some or all of the devices connected to the device that supports the mixed use of PCIe and CXL protocols, the MCU reconfirms the valid bits corresponding to each connection port, updates the port device table, and notifies other devices or other devices that support the same protocol of the updated port device table. By configuring the port device table, the protocols supported by the devices connected to each connection port are recorded on the port device table, and based on the port device table, different devices are controlled to perform data transmission through the device. In this way, the trouble of configuring the protocols of the devices is avoided, the complexity of the system is greatly simplified, and at the same time, the problem of configuration errors is reduced.

[0037] When the device connected to the first port needs to send data to the device connected to the second port, the confirmation circuit confirms the data type of the data and sends it to the MCU. Specifically, as Figure 4 and Figure 5 shown, the confirmation circuit includes a PCIe confirmation circuit and a CXL confirmation circuit. The PCIe confirmation circuit is configured to perform a first operation on the data. The first operation includes confirming whether the data type of the data is PCIe data, decoding the PCIe data to obtain the decoded PCIe data, etc. The CXL confirmation circuit is configured to perform a second operation on the data. The second operation includes confirming whether the data type of the data is CXL data, performing a decoding operation on the CXL data, etc.

[0038] The MCU determines whether the valid bits of the two ports match the data type according to the data type and the port device table. If they match, the MCU controls the first port to send the data to the second port via the confirmation circuit. If the data type is PCIe data, the MCU controls the first port to transmit the data to the second port through the PCIe confirmation circuit. If the data type is CXL data, the MCU controls the first port to transmit the data to the second port through the CXL confirmation circuit. It should be noted that the MCU will control the data to be transmitted only after confirming that the data decoded by the PCIe / CXL confirmation circuit is correct. For example, device 1 in Table 1 sends CXL data from port one to device 3 connected to port three. Since they match, the MCU controls port one to send the data to port three through the PCIe confirmation circuit.

[0039] If the valid bit of the first port, the valid bit of the second port, and the data type do not match, and the valid bit of the first port supports PCIe and the valid bit of the second port supports CXL, then the data sent by the first port must be PCIe data. The MCU controls the first port to transmit the data to the second port through the PCIe confirmation circuit, as Figure 6 shown. For example, device 2 in Table 1 sends PCIe data from port two to device 1 connected to port one. Although they do not match, the MCU controls port two to send the data to port one through the PCIe confirmation circuit.

[0040] See Figure 7, if the valid bits of the first port, the valid bits of the second port, and the data type do not match, and the valid bit of the first port supports CXL, and the valid bit of the second port supports PCIe; then reconfigure the protocol of the device connected to the first port so that the valid bit of the first port supports PCIe and update the port device table to enable data transmission support for the next time. Utilizing the downward compatibility of CXL devices, by reconfiguring the data protocol, it can be switched to a PCIe device, enabling data transmission on ports that could not originally perform data transmission.

[0041] In another embodiment of the present invention, the MCU is further configured to control data transmission between connection ports with the same valid bits and not control data transmission between connection ports with different valid bits. That is, for the device supporting the mixed use of PCIe and CXL protocols provided in this embodiment, after determining the port device table, data transmission is strictly carried out between connection ports with the same valid bits, and no data transmission occurs between connection ports with different valid bits, enabling the mixed use of PCIe and CXL protocols through the same device, but not enabling the mixed use of data transmission from PCIe devices to CXL devices.

[0042] In another embodiment of the present invention, the device supporting the mixed use of PCIe and CXL protocols further includes a data processing module, and the data processing module is configured to process the data to change the data type. If the valid bit of the first port matches the data type but does not match the valid bit of the second port, the MCU controls the first port to transmit the data to the data processing module, and the data processing module is configured to transmit the processed data to the second port.

[0043] In one embodiment of the present invention, as Figure 4 shown, the number of the confirmation circuits is 1. For the device supporting the mixed use of PCIe and CXL protocols provided in this embodiment, multiple connection ports share one confirmation circuit. The device supporting the mixed use of PCIe and CXL protocols provided in this embodiment has the advantage of low cost. However, since multiple connection ports share one confirmation circuit, a certain data transmission efficiency will be sacrificed; although the transmission efficiency can be improved by setting multiple sub-confirmation circuits in the confirmation circuit, its scalability is still not good.

[0044] In one embodiment of the present invention, as Figure 5As shown, the number of the confirmation circuits is multiple, and the multiple confirmation circuits correspond to the connection ports one by one, and each confirmation circuit is electrically connected to the MCU. More preferably, the confirmation circuits are integrated inside the connection ports. The device supporting mixed use of PCIe and CXL protocols provided in this embodiment has the advantages of high data transmission efficiency and strong scalability. Even the number of its connection ports can be unlimited.

[0045] In an embodiment of the present invention, a switch is provided, and the switch is the device supporting mixed use of PCIe and CXL protocols as described in any one of the above embodiments or a combination of multiple embodiments. The interface of the switch is a PCIe interface, and a PCIe interface that supports both the PCIe protocol and the CXL protocol is used in the switch to reduce the difficulty of CPU design and meet the rapidly increasing computing power requirements and storage capacity in the AI era.

[0046] It should be noted that the embodiments of the data transmission method of the above switch and the device supporting mixed use of PCIe and CXL protocols are based on the same inventive concept. By way of reference, all the contents of the embodiment of the device supporting mixed use of PCIe and CXL protocols are incorporated into the embodiments of the data transmission method of the switch and the device supporting mixed use of PCIe and CXL protocols.

[0047] Due to the advancement of this technical solution, it can be widely applied in application fields such as the field of computer network devices, the field of communication protocols, and the field of high-speed data transmission. In the field of computer network devices, this technical solution provides a switch that can mix the PCIe protocol and the CXL protocol, which will greatly improve the flexibility of computer network devices.

[0048] By using a PCIe interface that supports both the PCIe protocol and the CXL protocol in the switch, adding a new MCU in the switch and setting a port device table in the MCU, the same switch can support both the PCIe protocol and the CXL protocol at the same time, which will greatly improve the utilization rate of computer network devices, reduce equipment costs, and at the same time meet the rapidly increasing requirements for computing power and storage capacity in the AI era.

[0049] In the field of communication protocols, this technical solution provides a new communication protocol processing method, which will greatly improve the processing efficiency of communication protocols. By adding a confirmation circuit to the port of the switch, according to the data packet header file sent by the device, it is confirmed whether the data packet is a CXL protocol or a PCIe protocol data packet, and the corresponding circuit is selected according to the result to decode and confirm which port the data is sent to, which will greatly improve the processing efficiency of communication protocols, reduce communication latency, and at the same time improve the stability of the system.

[0050] In the field of high-speed data transmission, this technical solution provides a new high-speed data transmission method and can ensure the speed and stability of data transmission. Generally speaking, the application prospect of this technical solution is broad, the market demand is large, and it has great commercial value.

[0051] It should be noted that in this article, relational terms such as first and second are only used 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 term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0052] The above are only specific embodiments of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of this application.

Claims

1. A device supporting mixed use of PCIe and CXL protocols, characterized in that: The device is a data transmission device, which includes an MCU, a confirmation circuit and a plurality of connection ports, wherein the device types connected to the connection ports include PCIe devices and CXL devices, the MCU is electrically connected to the plurality of connection ports respectively, and the confirmation circuit is electrically connected to the MCU; The device is provided with a port device table, wherein the information recorded in the port device table includes a port ID and a valid bit in a one-to-one correspondence, wherein the port ID corresponds to the connection port in a one-to-one correspondence and is unique, and the valid bit includes supporting PCIe and supporting CXL, and the valid bit is determined according to the type of device connected to the connection port; When a device connected to the first port transmits data to a device connected to the second port, the first port and the second port are two different connection ports, and the confirmation circuit is configured to determine a data type of the data and transmit the data to the MCU, wherein the data type includes PCIe data and CXL data; The MCU is configured to determine whether the valid bits of the first port, the valid bits of the second port and the data type match according to the port device table; if they match, the MCU controls the first port to transmit the data to the second port.

2. The device for supporting mixed use of PCIe and CXL protocols according to claim 1, characterized in that: If the valid bits of the first port, the valid bits of the second port and the data type do not match, and the valid bits of the first port support PCIe and the valid bits of the second port support CXL, the MCU controls the first port to transmit the data to the second port.

3. The device for supporting mixed use of PCIe and CXL protocols according to claim 1, characterized in that: If the valid bit of the first port, the valid bit of the second port and the data type do not match, and the valid bit of the first port supports CXL, and the valid bit of the second port supports PCIe; Then, a protocol is reconfigured for the device connected to the first port so that the valid bit of the first port supports PCIe.

4. The device for supporting mixed use of PCIe and CXL protocols according to claim 1, characterized in that: The MCU is also configured to control data transmission between connection ports with the same effective bits, and control no data transmission between connection ports with different effective bits.

5. The device for supporting mixed use of PCIe and CXL protocols according to claim 1, characterized in that: Also included is a data processing module, wherein the data processing module is configured to process the data to change the data type of the data; If the valid bits of the first port match the data type but do not match the valid bits of the second port, the MCU controls the first port to transmit data to the data processing module, and the data processing module is configured to transmit the processed data to the second port.

6. The device for supporting mixed use of PCIe and CXL protocols according to claim 1, characterized in that: The confirmation circuit includes a PCIe confirmation circuit and a CXL confirmation circuit, the PCIe confirmation circuit is configured to perform a first operation on the data, the first operation including confirming whether the data type of the data is PCIe data; The CXL validation circuit is configured to perform a second operation on the data, where the second operation includes validating whether a data type of the data is CXL data.

7. The device for supporting mixed use of PCIe and CXL protocols according to claim 6, characterized in that: The first operation also includes decoding the PCIe data; The second operation further includes decoding the CXL data.

8. The device for supporting mixed use of PCIe and CXL protocols according to claim 7, characterized in that: If the MCU determines that the valid bits of the first port, the valid bits of the second port, and the data type match; Furthermore, if the data type is PCIe data, the MCU controls the first port to transfer the data to the second port through the PCIe confirmation circuit; if the data type is CXL data, the MCU controls the first port to transfer the data to the second port through the CXL confirmation circuit.

9. The device supporting mixed use of PCIe and CXL protocols according to claim 1, characterized in that: There are multiple confirmation circuits, and the multiple confirmation circuits correspond to the connection ports one by one, and each confirmation circuit is electrically connected to the MCU.

10. The device for supporting mixed use of PCIe and CXL protocols according to claim 9, characterized in that: The confirmation circuit is integrated inside the connection port.

11. The device for supporting mixed use of PCIe and CXL protocols according to claim 1, characterized in that: The number of the confirmation circuit is 1.

12. The device supporting mixed use of PCIe and CXL protocols according to claim 1, characterized in that: The connection port is a PCIe interface.

13. A switch, characterized in that: The switch is a device supporting mixed use of PCIe and CXL protocols as described in any one of claims 1 to 12.

14. A data transmission method based on the device supporting mixed use of PCIe and CXL protocols as claimed in claim 1, characterized in that: The following steps are involved: The MCU obtains the device type connected to each connection port and each port ID to generate the port device table; When the device connected to the first port transmits data to the device connected to the second port through the apparatus; Determine the data type of the data by using the confirmation circuit and transmit it to the MCU; The MCU determines whether the valid bits of the first port, the valid bits of the second port and the data type match according to the port device table. If they match, the MCU controls the first port to transmit the data to the second port.

Citation Information

Patent Citations

  • CXL data transmission board card and method for controlling data transmission

    CN116501681A

  • CXL protocol switching chip and message processing method

    CN118337889A

  • Switch and system for data transmission based on MCU and data transmission method

    CN119094447A

  • CXL data transmission board and data transmission control method

    WO2025001344A1