Device, switch and method supporting mixed use of PCIe and CXL protocols
By introducing MCU and confirmation circuits into the switch, the mixed use of PCIe and CXL protocols is achieved, which solves the problem that cannot be used simultaneously on the same switch, reduces costs and improves system performance and stability, and meets the computing power and storage needs in the AI era.
Patent Information
- Application Number
- CN202510510406.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-23
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2045-04-23
AI Technical Summary
In the existing switch design, the PCIe protocol and the CXL protocol cannot be used simultaneously on the same switch, resulting in an increase in equipment costs and increased system complexity, and cannot meet the demand for computing power and storage capacity in the AI era.
The MCU and confirmation circuit design are adopted to record the port ID and valid bits through the port device table. The MCU determines whether the matching is done based on the port device table and data type, controls data transmission, and supports the mixing of PCIe and CXL protocols.
It reduces equipment costs, simplifies system complexity, improves the utilization rate of computer network equipment and the processing efficiency of communication protocols, and improves system performance and stability.
Smart Images

Figure CN120075324B_ABST
Abstract
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 for supporting mixed use of PCIe and CXL protocols. Background Art
[0002] With the rapid development of AI technology, computing power requirements and storage capacity have increased dramatically. Traditional CPU interfaces can no longer meet the needs, so switches are needed to connect more GPUs to increase computing power or connect more storage devices to increase storage space.
[0003] PCIe and CXL are two commonly used high-speed data transmission protocols in switches. PCIe is a high-speed serial computer expansion bus standard widely used in computers, servers, and embedded systems to connect various expansion cards and devices. CXL, on the other hand, is an emerging open standard designed to improve system performance by directly connecting the CPU and expansion memory, providing higher bandwidth and lower latency.
[0004] Existing technologies typically use switches that exclusively use the PCIe or CXL protocols. In this design, if devices supporting different protocols need to be connected, different switches must be used, which not only increases costs but also increases system complexity.
[0005] In addition, since the use of PCIe protocol and 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, both protocols cannot be used simultaneously on the same switch, which also limits the use scenarios of the switch.
[0006] The disclosure of the above background technology 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 the present application, nor does it necessarily provide technical guidance. In the absence of clear evidence that the above content has been disclosed before the filing date of the present application, the above background technology should not be used to evaluate the novelty and creativity of the present application. Summary of the Invention
[0007] The purpose of the present invention is to provide a device, a switch and a method that support mixed use of PCIe and CXL protocols, which can improve the compatibility and usage scenarios of data transmission devices.
[0008] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0009] A device supporting mixed PCIe and CXL protocols, the device being a data transmission device, comprising an MCU, a confirmation circuit, and multiple connection ports, wherein the types of devices connected to the connection ports include PCIe devices and CXL devices, the MCU being electrically connected to the multiple connection ports, respectively, and the confirmation circuit being electrically connected to the MCU;
[0010] The device is configured with a port device table, wherein the information recorded in the port device table includes a one-to-one correspondence between a port ID and a valid bit, wherein the port ID corresponds to the connection port one-to-one and is unique, and the valid bit includes support for PCIe and support for CXL, and the valid bit is determined according to the type of device connected to the connection port;
[0011] 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 a data type of the data and transmit the data to the MCU, the data type including PCIe data and CXL data;
[0012] 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.
[0013] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions described above, 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.
[0014] Further, based on any one of the above 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 supports CXL, and the valid bit of the second port supports PCIe;
[0015] Then, a protocol is reconfigured for the device connected to the first port so that the valid bit of the first port supports PCIe.
[0016] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions described above, the MCU is further 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.
[0017] Furthermore, any one of the above technical solutions or a combination of multiple technical solutions further includes a data processing module, wherein the data processing module is configured to process the data to change the data type of the data;
[0018] 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.
[0019] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the confirmation circuit includes a PCIe confirmation circuit and a CXL confirmation circuit, and the PCIe confirmation circuit is configured to perform a first operation on the data, wherein the first operation includes confirming whether the data type of the data is PCIe data;
[0020] 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.
[0021] Further, based on any one of the above technical solutions or a combination of multiple technical solutions, the first operation further includes decoding the PCIe data;
[0022] The second operation further includes decoding the CXL data.
[0023] Further, according to any one of the above 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;
[0024] Furthermore, 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.
[0025] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions described above, there are multiple confirmation circuits, and the multiple confirmation circuits correspond one-to-one to the connection ports, and each of the confirmation circuits is electrically connected to the MCU.
[0026] Furthermore, based on any one of the aforementioned technical solutions or a combination of multiple technical solutions, the confirmation circuit is integrated inside the connection port.
[0027] Furthermore, according to any one of the technical solutions or a combination of multiple technical solutions described above, the number of the confirmation circuit is 1.
[0028] Furthermore, based on any one of the technical solutions or a combination of multiple technical solutions described above, the connection port is a PCIe interface.
[0029] According to another aspect of the present invention, a switch is provided. The switch is a device supporting mixed use of PCIe and CXL protocols as described in any one of the above technical solutions or a combination of multiple technical solutions.
[0030] According to another aspect of the present invention, a data transmission method for a device supporting mixed use of PCIe and CXL protocols based on any one of the above technical solutions or a combination of multiple technical solutions is provided, comprising the following steps:
[0031] The MCU obtains the device type connected to each connection port and each port ID to generate the port device table;
[0032] When the device connected to the first port transmits data to the device connected to the second port through the apparatus;
[0033] Determine the data type of the data using the confirmation circuit and transmit the data to the MCU;
[0034] The MCU determines whether the valid bits of the first port, the valid bits of the second port, and the data types match according to the port device table. If they match, the MCU controls the first port to transmit the data to the second port.
[0035] The beneficial effects brought about by the technical solution provided by the present invention are as follows:
[0036] a. By adding an MCU to a data transmission device and configuring a port device table, this invention enables the same data transmission device to support both the PCIe and CXL protocols. This reduces the need for separate switches, lowering costs and system complexity. This significantly improves the utilization of computer network equipment and reduces equipment costs. It also meets the rapidly increasing demands for computing power and storage capacity in the AI era.
[0037] b. This invention incorporates a new confirmation circuit within the data transmission device. Based on the data packet header file sent by the device, it determines whether the data packet is a CXL protocol or PCIe protocol packet. Based on the result, the corresponding PCIe confirmation circuit or CXL confirmation circuit is selected to decode and confirm the connection port to which the data is sent. This significantly improves the processing efficiency of the communication protocol, reduces communication latency, and also enhances system stability.
[0038] c. The present invention uses the MCU to determine whether data transmission can be performed and in what manner based on the matching of the current data type to be transmitted and the valid bits of the two connection ports for data transmission. This can avoid repeated configuration of device protocols, greatly simplifying the complexity of the system and reducing the problems associated with configuration errors.
[0039] d. Since the CXL protocol provides higher bandwidth and lower latency, connecting external devices, CPUs, and memory through the switch provided by the present invention can improve system performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] 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. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0041] Figure 1 A first working flow diagram of a device supporting mixed use of PCIe and CXL protocols provided by an exemplary embodiment of the present invention;
[0042] Figure 2 A second working flow diagram of a device supporting mixed use of PCIe and CXL protocols provided by an exemplary embodiment of the present invention;
[0043] Figure 3 A schematic diagram of the structure of a switch supporting mixed PCIe and CXL protocols provided by an exemplary embodiment of the present invention;
[0044] Figure 4 A schematic diagram of a switch having one confirmation circuit provided in accordance with an exemplary embodiment of the present invention;
[0045] Figure 5 A schematic diagram of a switch having confirmation circuits corresponding one-to-one to connection ports, provided as an exemplary embodiment of the present invention;
[0046] Figure 6 A flowchart of data transmission between two connection ports with the same valid bits provided as an exemplary embodiment of the present invention;
[0047] Figure 7 A schematic diagram of implementing data transmission through transmission ports with different effective bits by reconfiguring a protocol according to an exemplary embodiment of the present invention is provided. DETAILED DESCRIPTION
[0048] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0049] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0050] To facilitate understanding of this application, the relevant technologies in this application are explained as follows:
[0051] PCIe (Peripheral Component Interconnect Express) is a computer bus interface standard used to connect high-speed devices within a computer, such as graphics cards, solid-state drives, and network interface cards. It is one of the most important interfaces in modern computer systems and is widely used in desktops, laptops, servers, and other fields.
[0052] Compute Express Link (CXL), an open, high-speed interconnect standard, is an open interconnect protocol standard. It is based on the Peripheral Component Interconnect Express (PCIe) protocol and is designed for high-bandwidth, low-latency device interconnection. CXL aims to provide an efficient, low-latency interface between CPUs and dedicated accelerators and high-performance storage systems. This improves communication between processors, accelerators, and memory expansion devices, meeting the needs of resource sharing, memory pooling, and efficient computational scheduling.
[0053] PCIe devices refer to devices that comply with the PCI Express (PCIe) standard. They support the PCIe protocol for data transmission and do not support the CXL protocol.
[0054] CXL devices refer to devices that comply with the CXL standard and support the CXL protocol for data transmission. CXL devices can be switched to devices that support the PCIe protocol, i.e., PCIe devices, through protocol configuration.
[0055] PCIe data refers to data transmitted over the PCIe bus, or data transmitted based on the PCIe protocol. PCIe data refers to the binary data stream transmitted on the PCIe bus. This data can be sent from a device to a host, from a host to a device, or transmitted from device to device via a PCIe switch. PCIe data can originate from GPUs, SSDs, NICs, FPGA cards, and other sources. PCIe data is transmitted in the form of data packets (Transaction Layer Packets). Each data packet consists of the following components: a header containing information such as the packet type, source address, and destination address; a payload containing the actual data content; and a checksum (CRC) used to detect errors in data transmission.
[0056] CXL data is based on the CXL protocol and is still transmitted over the existing PCIe physical layer, but new features and improvements are introduced at the protocol level. CXL data is also transmitted in packets, each consisting of the following components: a header containing information such as the packet type, source address, and destination address; a payload containing the actual data content; and a checksum (CRC) used to detect errors in data transmission. However, the header of CXL data differs from that of PCIe data.
[0057] In one embodiment of the present invention, a device supporting mixed use of PCIe and CXL protocols is provided. Figures 3 to 5 The device includes an MCU, a confirmation circuit, and multiple connection ports, wherein the device types connected to the connection ports include PCIe devices or CXL devices, the MCU is electrically connected to the multiple connection ports respectively, and the confirmation circuit is electrically connected to the MCU; the connection ports are preferably PCIe interfaces that support both PCIe devices and CXL devices;
[0058] The apparatus is configured with a port device table, wherein information recorded in the port device table includes a one-to-one correspondence between a port ID and a valid bit, wherein the port ID corresponds to the connection port and is unique, and the valid bit includes support for PCIe and support for CXL, and 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;
[0059] 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 a data type of the data and transmit the data to the MCU, the data type including PCIe data and CXL data;
[0060] 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.
[0061] The device supporting mixed use of PCIe and CXL protocols provided in this embodiment can be used according to Figure 1 or Figure 2 The process shown in the figure performs data transmission. When a device is connected to the device supporting the mixed 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 type of the device connected to each connection port based on the feedback from each connection port to generate / build the port device table. Specifically, each connection port is pre-configured with a corresponding and unique port ID. Upon receiving the PCIe protocol signal sent by the MCU, the connection port connected to a PCIe device will send back a corresponding confirmation signal to the MCU, and the MCU will confirm that the valid bit corresponding to the connection port supports PCIe. Upon receiving the CXL protocol signal sent by the MCU, the connection port connected to a CXL device will send back a corresponding confirmation signal to the MCU, and the MCU will confirm that the valid bit corresponding to the connection port supports CXL. In a specific embodiment of the present invention, for a four-port device, its port device table is determined as shown in Table 1.
[0062]
[0063] It should be noted that CXL devices are backward compatible and can be configured as PCIe devices by reconfiguring the protocol. Each time the protocol is reconfigured for some or all of the devices connected to the device that supports mixed PCIe and CXL protocols, the MCU reconfirms the valid bits corresponding to each connection port and 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 in the port device table, and based on the port device table, different devices are controlled to transmit data through the device. In this way, the trouble of configuring the device protocol is avoided, the complexity of the system is greatly simplified, and the problem of configuration errors is also reduced.
[0064] 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. Figure 4 and Figure 5 As 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, including confirming whether the data type of the data is PCIe data and decoding the PCIe data to obtain decoded PCIe data. The CXL confirmation circuit is configured to perform a second operation on the data, including confirming whether the data type of the data is CXL data and decoding the CXL data.
[0065] The MCU determines whether the valid bits of the two ports and the data type match based on 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 transfer the data to the second port via 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 via the CXL confirmation circuit. It should be noted that the MCU will control the data transmission 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 to device 3 connected to port three via port one. If the three match, the MCU controls port one to send the data to port three via the PCIe confirmation circuit.
[0066] 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, and the MCU controls the first port to transmit the data to the second port through the PCIe confirmation circuit. Figure 6 For example, device 2 in Table 1 sends PCIe data to device 1 connected to port 1 through port 2. Although the three do not match, the MCU controls port 2 to send the data to port 1 through the PCIe confirmation circuit.
[0067] See also 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 bits of the first port indicate support for CXL and the valid bits of the second port indicate support for PCIe, the protocol of the device connected to the first port is reconfigured to indicate support for PCIe, and the port device table is updated to enable the next supported data transfer. By leveraging the backward compatibility of CXL devices, which can be switched to PCIe devices by reconfiguring the data protocol, ports that were previously incapable of data transfer can now support data transfer.
[0068] In another embodiment of the present invention, the MCU is further configured to control data transmission between connection ports with the same validity bit, and to prevent data transmission between connection ports with different validity bits. That is, after determining the port device table, the device supporting mixed use of PCIe and CXL protocols provided in this embodiment strictly transmits data between connection ports with the same validity bit, and prevents data transmission between connection ports with different validity bits. This allows for mixed use of PCIe and CXL protocols within the same device, but does not allow for mixed use of data transmission from PCIe devices to CXL devices.
[0069] In another embodiment of the present invention, the apparatus supporting mixed PCIe and CXL protocols further includes a data processing module 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.
[0070] In one embodiment of the present invention, Figure 4As shown, the number of confirmation circuits is 1. The device supporting mixed PCIe and CXL protocols provided by this embodiment has multiple connection ports sharing one confirmation circuit. The device supporting mixed PCIe and CXL protocols provided by this embodiment has the advantage of low cost, but because multiple connection ports share one confirmation circuit, data transmission efficiency is sacrificed to a certain extent. Although transmission efficiency can be improved by providing multiple sub-confirmation circuits in the confirmation circuit, its scalability is still poor.
[0071] In one embodiment of the present invention, Figure 5 As shown, there are multiple confirmation circuits, and the multiple confirmation circuits correspond one-to-one to the connection ports, and each confirmation circuit is electrically connected to the MCU. More preferably, the confirmation circuit is integrated within the connection port. The device provided in this embodiment that supports mixed use of PCIe and CXL protocols has the advantages of high data transmission efficiency and strong scalability, and even the number of its connection ports can be unlimited.
[0072] In one embodiment of the present invention, a switch is provided. The switch is a device supporting the mixed use of PCIe and CXL protocols as described in any one or a combination of the above embodiments. The switch interface is a PCIe interface. Using a PCIe interface that supports both the PCIe and CXL protocols in the switch reduces CPU design difficulties and meets the computing power requirements and rapidly increasing storage capacity in the AI era.
[0073] It should be noted that the above-mentioned embodiments of the data transmission method for the switch and the device supporting mixed PCIe and CXL protocols are based on the same inventive concept as the above-mentioned embodiment of the device supporting mixed PCIe and CXL protocols. The entire content of the embodiment of the device supporting mixed PCIe and CXL protocols is incorporated into the embodiments of the data transmission method for the switch and the device supporting mixed PCIe and CXL protocols by reference.
[0074] Due to the advanced nature of this technical solution, it has broad applications in computer network equipment, communication protocols, and high-speed data transmission. In this area, this technical solution provides a switch that can interoperate with both the PCIe and CXL protocols, significantly increasing the flexibility of computer network equipment.
[0075] By using a PCIe interface that supports both the PCIe and CXL protocols in the switch, adding an MCU to the switch, and setting up a port device table in the MCU, the same switch can support both the PCIe and CXL protocols. This will greatly improve the utilization rate of computer network equipment and reduce equipment costs. It will also meet the sharply rising demand for computing power and storage capacity in the AI era.
[0076] In the field of communication protocols, this technical solution provides a new approach to communication protocol processing, significantly improving protocol processing efficiency. By adding confirmation circuitry to switch ports, the system verifies whether a packet is CXL or PCIe based on the packet header sent by the device. Based on the result, the corresponding circuitry is used to decode and confirm the port to which the data is destined. This significantly improves protocol processing efficiency, reduces communication latency, and enhances system stability.
[0077] 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. In general, this technical solution has broad application prospects, large market demand, and huge commercial value.
[0078] 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 the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so 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.
[0079] The above is only a specific implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A device supporting mixed use of PCIe and CXL protocols, characterized in that: The device is a data transmission device, comprising an MCU, a confirmation circuit, and a plurality of connection ports, wherein the types of devices 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 configured with a port device table, wherein the information recorded in the port device table includes a one-to-one correspondence between a port ID and a valid bit, wherein the port ID corresponds to the connection port one-to-one and is unique, and the valid bit includes support for PCIe and support for CXL, and 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 a data type of the data and transmit the data to the MCU, the data type including 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, and if they match, the MCU controls the first port to transmit the data to the second port; If there is no match, perform the following steps: If the valid bit of the first port indicates support for CXL and the valid bit of the second port indicates support for PCIe, reconfiguring a protocol for a device connected to the first port so that the valid bit of the first port indicates support for PCIe; if the valid bit of the first port indicates support for PCIe and the valid bit of the second port indicates support for CXL, controlling the MCU to transmit the data to the second port; or, It also includes a data processing module, which 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.
2. The device supporting mixed use of PCIe and CXL protocols according to claim 1, characterized in that: The MCU is further configured to control data transmission between connection ports with the same effective bits, and to control no data transmission between connection ports with different effective bits.
3. The device supporting mixed use of PCIe and CXL protocols according to claim 1, wherein: 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.
4. The device supporting mixed use of PCIe and CXL protocols according to claim 3, characterized in that: The first operation further includes decoding the PCIe data; The second operation further includes decoding the CXL data.
5. The device supporting mixed use of PCIe and CXL protocols according to claim 4, characterized in that: If the MCU determines that the valid bit of the first port, the valid bit of the second port, and the data type match; Furthermore, 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.
6. 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.
7. The device supporting mixed use of PCIe and CXL protocols according to claim 6, characterized in that: The confirmation circuit is integrated inside the connection port.
8. The device supporting mixed use of PCIe and CXL protocols according to claim 1, wherein: The number of the confirmation circuit is 1.
9. The device supporting mixed use of PCIe and CXL protocols according to claim 1, wherein: The connection port is a PCIe interface.
10. 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 9.
11. 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 using the confirmation circuit and transmit the data to the MCU; The MCU determines 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; If there is no match, perform the following steps: If the valid bit of the first port indicates support for CXL and the valid bit of the second port indicates support for PCIe, reconfiguring a protocol for a device connected to the first port so that the valid bit of the first port indicates support for PCIe; if the valid bit of the first port indicates support for PCIe and the valid bit of the second port indicates support for CXL, controlling the MCU to transmit the data to the second port; or, It also includes a data processing module, which 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.
Citation Information
Patent Citations
Switch and system for data transmission based on MCU and data transmission method
CN119094447A
CXL data transmission board and data transmission control method
WO2025001344A1