A transmission channel switching device and method

By introducing a buffer and processing module into the transmission channel conversion device, the number and ratio of transmission channels are adjusted, which solves the problem of resource waste in PCIe technology under asymmetric uplink and downlink load scenarios, realizes dynamic adjustment of the number of transmission channels, and improves resource utilization and system stability.

CN121579404BActive Publication Date: 2026-11-17RIGOL TECHNOLOGIES CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202511697582.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-11-19
Publication Date
2026-11-17
Estimated Expiration
2045-11-19

AI Technical Summary

Technical Problem

Existing PCIe technology leads to significant waste in physical size cost, pin count cost, design cost, and power consumption in scenarios with highly asymmetrical uplink and downlink loads.

Method used

By introducing a first buffer and a processing module into the transmission channel conversion device, the number and ratio of transmission channels can be adjusted to achieve data conversion and transmission, thus avoiding the need to modify the number of transmission channels of the first target module.

Benefits of technology

Without changing the number of transmission channels, the number of transmission channels can be dynamically adjusted to reduce resource waste, improve the utilization rate of serial transceivers, and maintain system stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121579404B_ABST
    Figure CN121579404B_ABST
Patent Text Reader

Abstract

This invention provides a transmission channel conversion device and method, including a first buffer and a processing module. The first buffer is used to receive first data sent by a first target module through M transmission channels and store the first data. The processing module is used to convert the first data into second data of N transmission channels according to a preset arrangement order corresponding to the channel ratio relationship, and send it to a second target module. The channel ratio relationship is the ratio between M transmission channels and N transmission channels. The first target module is a high-speed peripheral component interconnect (PCIe) module, and the second target module is a serial transceiver; or, the first target module is a serial transceiver, and the second target module is a PCIe module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of high-speed communication, and in particular to a transmission channel conversion device and method. Background Technology

[0002] The Peripheral Component Interconnect Express (PCIe) bus standard is the mainstream high-speed serial communication technology architecture in the global electronics and information field. It aims to solve the high-speed data interaction needs between processors and peripherals, and between peripherals. With its core advantages such as high bandwidth, low latency, flexible expansion and strong compatibility, it has become a key technology cornerstone supporting the efficient operation of modern electronic devices.

[0003] Currently, in the existing PCIe technology system, the protocol standard adopts the principle of mandatory symmetry in the design of uplink and downlink. However, in scenarios where the uplink and downlink loads are highly asymmetrical, adopting the principle of mandatory symmetry will lead to serious waste of physical size cost, pin count cost, design cost, and power consumption.

[0004] In summary, how to avoid resource waste caused by using PCIe technology in scenarios with highly asymmetrical uplink and downlink loads is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] This invention provides a transmission channel conversion device and method to solve the problem of serious waste of physical size cost, pin count cost, design cost, and power consumption caused by the use of PCIe technology in scenarios with highly asymmetrical uplink and downlink loads in the prior art.

[0006] In a first aspect, embodiments of the present invention provide a transmission channel conversion device, including a first buffer and a processing module; the first buffer is used to receive first data sent by a first target module through M transmission channels and store the first data; the processing module is used to convert the first data into second data of N transmission channels according to a preset arrangement order corresponding to the channel ratio relationship, and send it to a second target module; the channel ratio relationship is the ratio between M transmission channels and N transmission channels; wherein, the first target module is a high-speed peripheral component interconnect (PCIe) module, and the second target module is a serial transceiver; or, the first target module is a serial transceiver, and the second target module is a PCIe module.

[0007] In the above technical solution, by modifying the number of transmission channels between the first target module and the second target module, the number of transmission channels can be modified without modifying the number of transmission channels in the first target module.

[0008] Optionally, the first target module is a high-speed peripheral component interconnect (PCIe) module, and the second target module is a serial transceiver; the processing module includes a first classification module and an interleaving module; the first classification module is used to classify the first data to obtain data corresponding to each data type; the interleaving module is used to convert the first data into second data with N transmission channels according to a first preset arrangement order corresponding to each data type.

[0009] Optionally, the processing module further includes a broadcast module and a selection module; the broadcast module is used to copy or extract data of the first data type from M transmission channels to N transmission channels; the first data type indicates that the data transmitted in the M transmission channels is the same; the interleaving module is specifically used to distribute data of the second data type from the M transmission channels to the N transmission channels; the second data type indicates that the data transmitted in the M transmission channels is different; the selection module is used to receive data sent by the interleaving module or the broadcast module, and generate second data for the N transmission channels from the received data.

[0010] Optionally, the first data type includes FTS and EIOS; the second data type includes TLP, DLLP, and TS1 / TS2; and the third data type includes SKP.

[0011] Optionally, the processing module further includes a second buffer; the second buffer is used to store data with data types output by the first classification module; the broadcast module and the interleaving module are used to obtain data of their respective required data types from the second buffer.

[0012] Optionally, the processing module further includes a deletion module and an insertion module; the deletion module is located between the first classification module and the second buffer, and is used to set the state of the third data type in the first data to an invalid state; the data types are divided into a first data type, a second data type, and the third data type; the third data type is used to characterize clock compensation; the second buffer is specifically used to store data other than the third data type; the insertion module is located after the selection module, and is used to insert the third data type into the data output by the selection module, thereby obtaining the second data of N transmission channels.

[0013] Optionally, the processing module further includes a counter; the counter is used to record the frequency of occurrence of the third data type; the insertion module is used to insert the third data type into the data output by the selection module according to the frequency of occurrence.

[0014] Optionally, the second buffer is further configured to receive a backpressure signal sent by the interleaving module or the broadcasting module, and suspend data output according to the backpressure signal until a ready signal is received from the interleaving module or the broadcasting module.

[0015] Optionally, the first target module is a serial transceiver, and the second target module is a PCIe module; the processing module includes a second classification module and a deweaving module; the second classification module is used to classify the first data to obtain data corresponding to each data type; the deweaving module is used to convert the first data into second data of N transmission channels according to a second preset arrangement order corresponding to each data type.

[0016] Optionally, the processing module further includes a correction module located before the second classification module; the correction module is used to perform synchronous correction on the first data of the M transmission channels sent by the serial transceiver.

[0017] Optionally, the processing module further includes a broadcast module and a selection module; the broadcast module is used to copy or extract data of the first data type from N transmission channels into M transmission channels; the first data type indicates that the data transmitted in the N transmission channels is the same; the unweaving module is specifically used to distribute data of the second data type from the N transmission channels to the M transmission channels; the second data type indicates that the data transmitted in the M transmission channels is different; the selection module is used to receive the data sent by the unweaving module or the data sent by the broadcast module to obtain the second data of the M transmission channels.

[0018] Optionally, a register may also be included; the register is used to store the configured channel ratio relationship.

[0019] Secondly, embodiments of the present invention provide a transmission channel conversion method, applied to a transmission channel conversion device; receiving first data sent by a first target module through M transmission channels and storing the first data; converting the first data into second data of N transmission channels according to a preset arrangement order corresponding to the channel ratio relationship, and sending it to a second target module; wherein the channel ratio relationship is the ratio between M transmission channels and N transmission channels; wherein the first target module is a high-speed peripheral component interconnect (PCIe) module, and the second target module is a serial transceiver; or, the first target module is a serial transceiver, and the second target module is a PCIe module.

[0020] Optionally, the first target module is a high-speed peripheral component interconnect (PCIe) module, and the second target module is a serial transceiver; according to a preset arrangement order corresponding to the channel ratio, the first data is converted into second data for N transmission channels, including: classifying the first data to obtain data corresponding to each data type; and converting the first data into second data for N transmission channels according to a first preset arrangement order corresponding to each data type.

[0021] Optionally, according to the first preset arrangement order corresponding to each data type, the first data is converted into second data for N transmission channels, including: copying or extracting the data of the first data type to meet the transmission of N transmission channels; the first data type indicates that the data transmitted in M ​​transmission channels is the same; dividing the data of the second data type to meet the distribution to N transmission channels; the second data type indicates that the data transmitted in M ​​transmission channels is different; merging the processed first type data and second type data to obtain the second data for N transmission channels.

[0022] Optionally, it further includes: deleting data of the third data type from the first data; the third data type is used to characterize clock compensation; merging the processed first data type and the second data type to obtain the second data of N transmission channels, including: merging the processed first data type and the second data type, and inserting data of the third data type into the merged data, thereby obtaining the second data of N transmission channels.

[0023] Thirdly, an electronic device provided by an embodiment of the present invention includes: a high-speed peripheral component interconnect (PCIe) module, a serial transceiver, and a transmission channel conversion device located between the PCIe module and the serial transceiver.

[0024] Fourthly, embodiments of this application also provide a computer-readable non-volatile storage medium including a computer-readable program, which, when read and executed by a computer, causes the computer to perform the steps of a transmission channel conversion method as described in the second aspect.

[0025] Fifthly, embodiments of this application provide a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions, which, when executed by a computer device, cause the computer device to perform the steps of the transmission channel conversion method described in the second aspect above. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a schematic diagram of the structure of a PCIe module provided in an embodiment of the present invention; Figure 2 A flowchart illustrating a method for configuring asymmetric channels according to an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of a transmission channel conversion device provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the structure of a target device provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of another target device provided in an embodiment of the present invention; Figure 6 A schematic diagram illustrating data interaction between a first device and a second device provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of the structure of a processing module provided in an embodiment of the present invention; Figure 8 This is a schematic diagram of another processing module provided in an embodiment of the present invention; Figure 9 A schematic diagram illustrating the signal interaction between a second buffer, an interleaving module, and a broadcast module, provided in an embodiment of the present invention; Figure 10 This is a schematic diagram of another processing module provided in an embodiment of the present invention; Figure 11 This is a schematic diagram illustrating the insertion of SKPs according to their frequency of occurrence, provided as an embodiment of the present invention. Figure 12 This is a schematic diagram of the structure of a processing module provided in an embodiment of the present invention; Figure 13 This is a schematic diagram of the structure of a processing module provided in an embodiment of the present invention; Figure 14 A flowchart of a transmission channel conversion method provided in an embodiment of the present invention; Figure 15 An interactive diagram of data transmission between a first device and a second device is provided as an embodiment of the present invention; Figure 16 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0029] The following explanations of certain parts of this application are intended to provide general clarification for those skilled in the art, and do not limit the terminology used in this application.

[0030] Peripheral Component Interconnect Express (PCIe) module: This module includes a Transaction Layer, a Data Link Layer, and a Physical Layer. The Physical Layer includes the Link Training and Status State Machine (LTSSM), which can be found in [link to relevant documentation]. Figure 1 The transaction layer is responsible for generating and parsing standard PCIe packets, the data link layer manages the link state, and the link training state machine handles the physical layer control sequences. The transaction layer, data link layer, and link training state machine are implemented by hardware logic, such as the PCIe hard core IP for FPGAs or the PCIe controller IP for ASICs, and their configuration can be implemented by firmware.

[0031] Serial transceiver: The serial transceiver is a key component of the chip, with SerDes technology at its core. In the FPGA field, Xilinx and Intel refer to them as the GT series and Tile series transceivers, respectively; while in ASIC design, this function is usually implemented by integrating a SerDes PHY IP core. The transmitting end is responsible for encoding and serializing parallel data, and finally converting it into differential electrical signals for transmission on physical media, such as PCB traces or cables. The receiving end is responsible for receiving the differential electrical signals and deserializing and decoding the serial data. In this embodiment of the invention, the serial transceiver physically only transmits and receives signals from N channels.

[0032] Transaction Layer Packet (TLP): The TLP is the highest-level and most core data packet in the PCIe module. The TLP carries the specific "intent" or "command" issued by system software, such as drivers, for example, reading data from memory or writing configuration information to the device. The TLP is the only packet that can carry user data.

[0033] Data Link Layer Packet (DLLP): A DLLP is a control packet used to manage the link state between two directly connected PCIe devices. DLLPs do not carry user data and are only transmitted between two adjacent components, such as a root port and an end point, or between two ports of a switch.

[0034] Training sequences (Training Set 1 / 2, TS1 / TS2). TS1 and TS2 are special ordered sets. TS1 / TS2 are not packets in the strict sense. They are only used during the link initialization or recovery process, i.e., the LTSSM state machine, to train the physical link to reach a state where it can communicate normally (L0 state).

[0035] Skip Ordered Set (SKP): SKP is also a special type of ordered set. SKP is periodically inserted into the data stream after the link enters a stable L0 state.

[0036] The Fast Training Sequence (FTS) consists of one COM symbol (K28.5) and three FTS symbols (K28.1). The FTS is a mechanism for bit and symbol locking during the transition from L0s to L0. The receiver uses the FTS to detect exiting the electrical idle state and to align the receiver's bit / symbol receiving circuitry with the input data.

[0037] The Electrical Idle Ordered Set (EIOS) consists of one COM symbol (K28.5) and three IDL symbols (K28.3). Before entering the electrical idle state, the transmitter must send one (at a rate of 2.5 GT / s) or two (at a rate greater than 2.5 GT / s) EIOS. After sending the last symbol of the last electrical idle command set, the transmitter must be in a valid electrical idle state. When sending FTS and EIOS, the transmitter is required to send synchronously on all valid lanes.

[0038] In the current global electronics and information field, the PCIe bus standard has become the mainstream high-speed serial communication technology architecture. Its core value lies in solving the high-speed data interaction needs between processors and peripherals, and between peripherals themselves.

[0039] Supported by its high bandwidth, low latency, and flexible scalability, the PCIe bus standard not only covers the general electronics field but also serves as the core architecture for ensuring efficient data transmission in various specialized scenarios. It possesses certain technical advantages in asymmetric transmission scenarios with intensive uplink data and simplified downlink data. The following section details these asymmetric transmission scenarios with intensive uplink data and simplified downlink data.

[0040] In one possible scenario, the front-end device needs to continuously acquire massive amounts of data generated by sensors or signal processing. This massive data can be high-frequency electrical signals, waveform data, gene sequence fragments, etc., without limitation. This data is then pushed at high speed to the main processor for real-time analysis and processing. The main processor only sends a few control commands to the front-end, such as configuration of acquisition parameters and start / stop signals, without limitation. During this process, PCIe, with its high bandwidth per channel, can handle continuous massive uplink data transmission, avoiding data backlog. Simultaneously, end-to-end low latency ensures that the acquired data is delivered to the main processor in real time, guaranteeing the timeliness of signal analysis and sequence alignment. Typical applications include high-speed oscilloscopes, radar / sonar systems, and gene sequencers.

[0041] In another possible scenario, the device needs to perform real-time preprocessing on multiple high-definition video streams, such as AI enhancement, noise reduction filtering, and format conversion. The processed massive amounts of frame data are then rapidly uploaded to the GPU, where subsequent rendering, feature extraction, or storage operations are performed. Only a small amount of video parameter configuration and processing instructions need to be transmitted downlink. PCIe's high bandwidth can meet the needs of medical imaging systems with multiple high-definition video streams. Specifically, the massive amounts of image data generated by CT / MRI are preprocessed and then rapidly transmitted to the GPU via PCIe for 3D reconstruction and lesion analysis. It may also be applied in high-end security monitoring; specifically, multiple 4K surveillance images are preprocessed and then uploaded to the GPU via PCIe for real-time target tracking and anomaly recognition.

[0042] In another possible scenario, the coprocessor primarily performs data generation or data expansion tasks. Specifically, the input parameters or datasets sent by the main processor to the coprocessor are relatively small, but the amount of data generated by the coprocessor after computation grows exponentially or exponentially, requiring high-speed return to the upstream main processor or storage device. In this scenario, PCIe acts as a channel for uploading massive computational results. Its high bandwidth can efficiently handle the large-scale data output by the coprocessor, preventing backlog of computational results. Flexible channel configurations can match x2 / x4 / x8 channel specifications according to the coprocessor's computing power and output data volume, balancing bandwidth requirements and resource consumption. Furthermore, its backward compatibility allows it to adapt to different generations of coprocessors and main processors, reducing equipment upgrade costs. For example, in large-scale scientific computing scenarios, after an FPGA coprocessor completes complex simulation calculations based on a small number of input parameters, it uses PCIe to upload massive simulation results to the CPU for aggregation and analysis. Alternatively, in data encryption scenarios, after the ASIC coprocessor receives a small amount of plaintext data and an encryption key, the massive amount of ciphertext data generated is transmitted back to the storage system at high speed via PCIe, ensuring efficient connection between data encryption and storage.

[0043] In summary, since the existing PCIe protocol standard adopts the principle of mandatory symmetry in the design of uplink and downlink, in the scenarios described above where the uplink and downlink loads are highly asymmetrical, adopting the principle of mandatory symmetry would lead to resource waste.

[0044] To address the aforementioned issues, current methods introduce non-standard extension steps to achieve asymmetric uplink and downlink transmission channels, making it suitable for scenarios with highly asymmetrical uplink and downlink loads. The following two scenarios illustrate how non-standard extension steps are implemented to suit scenarios with highly asymmetrical uplink and downlink loads.

[0045] In one possible scenario, during the initial phase of PCIe link establishment, specifically the negotiation process of the link training state machine, a non-standard extension step can be introduced. The following section details how to introduce this non-standard extension step.

[0046] like Figure 2 The diagram shown is a flowchart of a method for configuring an asymmetric channel according to an embodiment of the present invention. The method includes the following steps: Step 201: A device connected to the host device across a multi-pass link is detected.

[0047] In this embodiment of the invention, the host device detects the peripheral device connected through a multi-channel link, confirms that the device to be communicated has been connected, and provides a prerequisite for subsequent link configuration.

[0048] Step 202: Initialize the link training process for the device.

[0049] In this embodiment of the invention, the PCIe controller initializes the link training process for the access device in preparation for determining the link communication parameters.

[0050] Step 203: Detect the capability announcement indicating the scalability of the uplink and / or downlink channels.

[0051] In this embodiment of the invention, the host device detects the capability announcement sent by the device indicating the uplink and downlink channel scalability, clarifying the range of flexible channel adjustments that the device can support.

[0052] In this embodiment of the invention, by detecting capability announcements, devices at both ends of the link can identify each other's support capabilities for asymmetric channels.

[0053] Step 204: Determine the number of uplink or downlink paths to be added during link training.

[0054] In this embodiment of the invention, during link training, the devices at both ends of the link negotiate an asymmetric number of uplink and downlink channels. For example, the devices at both ends of the link negotiate and determine 6 transmit channels and 2 receive channels.

[0055] Step 205: Perform channel allocation for all links.

[0056] In this embodiment of the invention, the PCIe controller performs allocation operations for all channels of a multi-channel link, clearly defining the physical resources corresponding to the uplink and downlink channels to avoid resource conflicts.

[0057] Step 206: Perform channel equalization.

[0058] In this embodiment of the invention, the PCIe controller performs channel equalization on the allocated channels to optimize the signal integrity of each channel, reduce transmission interference, and ensure high-bandwidth transmission quality.

[0059] Step 207: Initialize the multi-channel link.

[0060] In this embodiment of the invention, the PCIe controller initializes the multi-channel links that have completed channel allocation and balancing, bringing the links into a ready state so that data transmission can be officially started.

[0061] Step 208: Receive an instruction for readjusting the link width.

[0062] In this embodiment of the invention, the host device receives an instruction to readjust the link width and triggers a link parameter update process.

[0063] Step 209: Initialize the link configuration process.

[0064] In this embodiment of the invention, the PCIe controller initializes a new link configuration process according to the above adjustment instructions to adapt to the changed load communication requirements.

[0065] As can be seen from steps 201 to 209 above, by negotiating between the devices at both ends of the link, the number of uplink and downlink channels can be adjusted to determine an asymmetric number of uplink and downlink channels. This can be applied to scenarios where the uplink and downlink application loads are highly asymmetric, thereby solving the problem of resource waste caused by using PCIe technology in scenarios where the uplink and downlink loads are highly asymmetric.

[0066] However, the above Figure 2 The methods mentioned have some problems. Specifically, firstly... Figure 2 The proposed method is costly to implement because it involves intrusive modifications to the core protocol layer, requiring the redevelopment of a complex protocol soft core. This necessitates modifications to the entire computer ecosystem, from the physical layer controller to the upper-layer drivers.

[0067] and Figure 2 The proposed link width readjustment mechanism is essentially a process of interrupting current data transmission and reconfiguring or retraining the link. This interruption results in millisecond-level service pauses, making it unsuitable for real-time applications requiring continuous, uninterrupted data streams, such as video processing and high-frequency data acquisition.

[0068] as well as Figure 2 The proposed method achieves asymmetric configuration by redefining the transmission direction of the physical channel, for example, using the native receive channel as a transmit channel. This approach violates the signal integrity optimization design of PCIe connectors and PCB routing for standard symmetric links, potentially introducing additional crosstalk and power supply noise, posing a potential risk to system stability and reliability.

[0069] In another possible scenario, control software is installed on the host computer. This software continuously monitors the data flow across the entire system and, based on historical data and current workload, learns and predicts that future bandwidth demands on the links are asymmetrical—for example, upstream demand significantly exceeds downstream demand. When this asymmetrical demand is predicted, the software makes a decision to determine an optimal TX / RX channel ratio. The software issues a non-standard control command that instructs the underlying PCIe hardware to dynamically reconfigure the physical channels to match the predicted asymmetrical ratio.

[0070] However, this situation is different from... Figure 2 The methods involved all suffer from the same problems: high implementation costs, service interruptions during channel adjustments, and impacts on system stability and reliability.

[0071] In summary, the embodiments of the present invention provide a transmission channel conversion device to solve the problems mentioned above, such as high implementation cost, service interruption during channel adjustment, and impact on system stability and reliability, in order to adapt to scenarios with highly asymmetrical uplink and downlink loads.

[0072] like Figure 3 The diagram shows a schematic of a transmission channel conversion device provided in an embodiment of the present invention. The device includes a first buffer 310 and a processing module 320. The first buffer 310 receives and stores first data sent by a first target module 330 through M transmission channels. The processing module 320 converts the first data into second data for N transmission channels according to a preset arrangement order corresponding to the channel ratio relationship, and sends it to a second target module 340. The channel ratio relationship is the ratio between the M transmission channels and the N transmission channels. The first target module 330 is a high-speed peripheral component interconnect (PCIe) module, and the second target module 340 is a serial transceiver; or, the first target module 330 is a serial transceiver, and the second target module 340 is a PCIe module.

[0073] In this embodiment of the invention, a first device and a second device are deployed at both ends of the data transmission link, and both the first and second devices are equipped with a transmission channel conversion device. The following describes how the transmission channel conversion device adjusts the number of transmission channels in the target device, where the target device is either the first device or the second device.

[0074] The following describes how a transmission channel conversion device adjusts the number of transmission channels if a transmission channel conversion device is set up in the target device.

[0075] like Figure 4The diagram shows a structural schematic of a target device according to an embodiment of the present invention. The target device includes a first target module, a transmission channel conversion device, and a second target module. The first target module is a PCIe module, and the second target module is a serial transceiver. The transmission channel conversion device is located between the PCIe module and the serial transceiver. A first buffer in the transmission channel conversion device receives and stores first data sent by the PCIe module through M transmission channels, preventing data loss when sudden bandwidth exceeds the transmission capacity of the compressed channels. The first data is then sent to a processing module, which converts the first data into second data for N transmission channels according to a preset arrangement order corresponding to the channel ratio, and sends it to the serial transceiver. In this way, the PCIe module still transmits data through M transmission channels. By setting up the transmission channel conversion device to convert M transmission channels into N transmission channels, the serial transceiver receives data from N transmission channels. This reduces the number of serial transceivers needed while ensuring normal data transmission by reducing the number of transmission channels.

[0076] Optionally, the channel scaling relationship is used to compress or expand the value of N. The following example illustrates how to determine the value of N.

[0077] For example, if the first and second devices negotiate according to the symmetric protocol and determine that there are four transmission channels, then the first and second devices each have four transmission channels. In practical applications, the amount of data to be transmitted between the first and second devices is relatively small, so it is not necessary to use four transmission channels for data transmission, nor is it necessary to occupy four serial transceivers for data transmission and reception. By setting up a transmission channel conversion device in the first and second devices, the transmission channel conversion device in the first device converts the data from the four transmission channels into data for two transmission channels according to the channel ratio and sends it to the serial transceiver. The channel ratio is used to compress the value of N to 1 / X times M, where X is configurable, meaning that the channel ratio is configurable. In this way, only two serial transceivers are needed to transmit data from two transmission channels to the receiving device, thereby reducing costs while ensuring normal data transmission.

[0078] For example, four serial transceivers are set in the first and second devices, and two idle serial transceivers are used for the transmission of other data to improve the utilization rate of idle serial transceivers.

[0079] For another example, if the first device and the second device negotiate according to the symmetric protocol and determine that there are four transmission channels, with each device having four channels and eight serial transceivers, in practical applications, the amount of data to be transmitted between the two devices is relatively large. The bandwidth of four transmission channels is insufficient to handle such a large data volume, requiring more serial transceivers for transmission and reception. By setting up a transmission channel conversion device in both devices, the data from the four transmission channels in the first device can be converted in this way, thus improving the efficiency of data transmission by using eight serial transceivers.

[0080] like Figure 5 The diagram shows a structural schematic of another target device provided in an embodiment of the present invention. The receiving device includes a first target module, a second target module, and a transmission channel conversion device, wherein the first target module is a serial transceiver, and the second target module is a PCIe module. The serial transceiver of the receiving device receives first data from M transmission channels sent by the serial transceiver of the transmitting device, and then sends the data from the M transmission channels to the first buffer of the transmission channel conversion device. The first buffer stores the data from the M transmission channels and sends it to the processing module. The processing module converts the first data into second data from N transmission channels according to a preset arrangement order corresponding to the channel ratio relationship, and sends it to the PCIe module. It should be noted that the channel ratio relationship at the transmitting end of the first device is inversely proportional to the channel ratio relationship at the receiving end of the second device.

[0081] For example, if the first device and the second device negotiate according to the symmetric protocol and determine that there are 4 transmission channels, the first device and the second device each correspond to 4 transmission channels, and each of the first device and the second device includes 4 serial transceivers. The transmission channel conversion device in the first device converts four transmission channels into two transmission channels according to the channel ratio. The first data from these two transmission channels is then sent to the serial transceiver in the second device. The serial transceiver then sends the first data from the two transmission channels back to the transmission channel conversion device, which converts it into second data for four transmission channels and sends it to the PCIe module. Since the channel ratio is used to compress the value of N to 1 / X times M (where X is configurable), the channel ratio is configurable. Therefore, the conversion of the number of channels can be achieved without the PCIe modules of the first and second devices being aware of it. This ensures that the entire link logically maintains full PCIe protocol compliance while converting transmission channels. It also solves the problem of dynamically adjusting the number of transmission channels based on the amount of data transmitted, thereby dynamically adjusting the number of serial transceivers used and improving the utilization rate of the serial transceivers.

[0082] The following describes how channel conversion can be achieved between the first and second devices without the PCIe modules of the two devices being aware of it, through a transmission channel conversion device.

[0083] Both the first and second devices have the ability to send and receive data. Therefore, both the first and second devices include two transmission channel conversion devices: a first transmission channel conversion device for sending data and a second transmission channel conversion device for receiving data. It should be noted that both the first and second devices include a PCIe module, a serial transceiver, and transmission channel devices for sending and receiving data. To facilitate understanding of this solution, the following describes how the first and second devices achieve channel conversion through the transmission channel conversion devices.

[0084] like Figure 6 The diagram illustrates data interaction between a first device and a second device according to an embodiment of the present invention. The first device includes a first PCIe module, N first serial transceivers, a first transmission channel conversion device for transmitting data, and a second transmission channel conversion device for receiving data. The second device includes a second PCIe module, N second serial transceivers, a third transmission channel conversion device for transmitting data, and a fourth transmission channel conversion device for receiving data.

[0085] Since the first PCIe module of the first device functions the same as the second PCIe module of the second device, the first transmission channel conversion device of the first device functions the same as the third transmission channel conversion device of the second device, and the second transmission channel conversion device of the first device functions the same as the fourth transmission channel conversion device of the second device, the first device can be used not only to send data to the second device but also to receive data sent by the second device. Since the method of adjusting the transmission channel between the sending and receiving devices has already been described above, it will not be limited here.

[0086] To facilitate understanding of this solution, the following section will first introduce how the transmission channel conversion device converts the transmission channel when the first target module is a PCIe module and the second target module is a serial transceiver.

[0087] In this embodiment of the invention, the first buffer in the transmission channel conversion module is used to receive and store the first data from the M transmission channels sent by the PCIe module, thus preventing data loss when sudden bandwidth exceeds the transmission capacity of the compressed channels. The first buffer sends the first data to the processing module, facilitating the subsequent processing module to convert the first data from the M transmission channels into second data from the N transmission channels. The first buffer can be physically implemented as a first input first output (FIFO) storage structure. For example, in an FPGA, this FIFO is typically constructed using on-chip memory resources such as block random access memory (BRAM), while in an ASIC, it is typically implemented using static random access memory (SRAM) macrocells or register files from a standard cell library.

[0088] Next, we will introduce how the processing module converts the first data from M transmission channels into the second data from N transmission channels.

[0089] like Figure 7 The diagram shows a structural schematic of a processing module provided in an embodiment of the present invention. The processing module 320 includes a first classification module 321 and an interleaving module 322. The first classification module 321 is used to classify the first data to obtain data corresponding to each data type. The interleaving module 322 is used to convert the first data into second data for N transmission channels according to a first preset arrangement order corresponding to each data type.

[0090] In this embodiment of the invention, the first classification module can classify the first data to obtain data corresponding to multiple data types. The first classification module then sends the data of multiple data types to the interleaving module. The interleaving module converts the first data into second data for N transmission channels according to a first preset arrangement order corresponding to each data type.

[0091] For example, the first classification module classifies the first data from the four transmission channels into data corresponding to data type A, data corresponding to data type B, and data corresponding to data type C. Then, the first classification module sends the data corresponding to data type A, data type B, and data type C to the interleaving module. The interleaving module converts the data corresponding to data type A, data type B, and data type C into the second data from the four transmission channels according to the first preset arrangement order corresponding to the data types.

[0092] Optionally, the first classification module classifies the first data from the M transmission channels to obtain data corresponding to multiple data types. These data types are divided into a first data type, a second data type, and a third data type. The first data type includes FTS and EIOS; the second data type includes TLP, DLLP, and TS1 / TS2; and the third data type is SKP. The first data type indicates that the data transmitted in the M transmission channels is the same, the second data type indicates that the data transmitted in the M transmission channels is different, and the third data type is inserted into the data in any transmission channel according to its frequency of occurrence.

[0093] As can be seen from the three different data types, if the first data is interleaved using the interleaving module, a large amount of identical data will be interleaved, resulting in a large amount of duplicate data in the N transmission channels. This makes the data in each transmission channel longer due to the duplicate data, affecting the efficiency and speed of data transmission. Furthermore, during the interleaving process, the change in the number of transmission channels may cause the third data type to not be inserted into the data according to its frequency of occurrence.

[0094] Depending on the data type, different processing methods are required for different data types. To facilitate understanding of this solution, the following section describes how to process data based on data type, thereby converting the first data from M transmission channels into the second data from N transmission channels.

[0095] First, we will introduce how to process the data corresponding to TLP, DLLP, TS1 / TS2, FTS, and EIOS to obtain the second data of N transmission channels.

[0096] like Figure 8 The diagram shows another processing module provided in an embodiment of the present invention. Processing module 320 includes a first classification module 321, an interleaving module 222, a broadcasting module 223, and a selection module 224. The function of the first classification module has been described above and will not be limited here. The broadcasting module is used to copy or extract data of the first data type from M transmission channels to N transmission channels. The interleaving module is specifically used to distribute data of the second data type from the M transmission channels to the N transmission channels. The selection module is used to receive data sent by the interleaving module or the broadcasting module, and generate second data for N transmission channels from the received data.

[0097] In this embodiment of the invention, considering that the data of the first data type is identical in each transmission channel, interleaving would result in a lot of duplicate data. Therefore, a broadcast module is introduced. The first data is classified by the first classification module. The data of the first data type is copied or extracted by the broadcast module to convert the data of M transmission channels into data of N transmission channels. The data of the second data type is interleaved by the interleaving module to convert the data of M transmission channels into data of N transmission channels. In this way, the selection module receives data sent by the interleaving module or the broadcast module at the same time and generates the second data of N transmission channels from the received data.

[0098] Considering that the broadcast and interleaving modules need to convert data from M transmission channels into data from N transmission channels, in one possible scenario where M is greater than N, the broadcast and interleaving modules can acquire data from the M transmission channels more quickly. However, during the conversion to data from the N transmission channels, issues such as data loss, data interleaving, or copying / extraction errors may occur.

[0099] Optionally, a second buffer 330 is provided between the first classification module 321, the broadcast module 323, and the interleaving module 322. The second buffer 330 is used to store data with data types output by the first classification module. The broadcast module and the interleaving module are used to retrieve data of their respective required data types from the second buffer. The caching function of the second buffer is implemented in the same way as that of the first buffer.

[0100] Optionally, the second buffer is also used to receive the back pressure signal sent by the interleaving module or the broadcasting module, pause data output according to the back pressure signal, and continue to provide data to the interleaving module or the broadcasting module after receiving the ready signal sent by the interleaving module or the broadcasting module.

[0101] like Figure 9 The diagram illustrates signal interaction between a second buffer, an interleaving module, and a broadcast module according to an embodiment of the present invention. The second buffer sets the status of data of a second data type sent to the interleaving module to a valid state, and sets the status of data of a first data type sent to the broadcast module to a valid state. When the broadcast module and / or the interleaving module sends a ready signal to the second buffer via pin A, this ready signal indicates that the interleaving module and / or the broadcast module can acquire data, wherein the broadcast module and / or the interleaving module acquires the data that is set to a valid state for that module. Figure 9The data in the first valid state is the valid data sent from the second buffer to the interleaving module, wherein the data type of the data in the first valid state is the second data type. The data in the second valid state is the valid data sent from the second buffer to the broadcast module, wherein the data type of the data in the second valid state is the first data type.

[0102] In one possible scenario, if the broadcast module and / or interleaving module cannot process the data obtained from the second buffer in a timely manner, the broadcast module and / or interleaving module send a backpressure signal to the second buffer. This backpressure signal indicates a pause in data output. After receiving the backpressure signal, in order to prevent data loss, the second buffer will not update the content of the output data until it receives a ready signal from the broadcast module and / or interleaving module. Therefore, the second buffer needs to send a backpressure signal to the upper-level module to remind it to pause data transmission.

[0103] Secondly, the process of processing the data corresponding to SKP is introduced to obtain the second data of N transmission channels.

[0104] like Figure 10 The diagram shown is a structural schematic of another processing module provided in an embodiment of the present invention. The processing module 320 includes a first classification module 321, a deletion module 325, an interleaving module 322, a broadcast module 323, a selection module 324, and an insertion module 326.

[0105] Considering that SKPs are inserted into the data according to their frequency of occurrence, when M transmission channels are converted to N transmission channels, the amount of data in each transmission channel will change, resulting in an incorrect frequency of SKP occurrence in the N transmission channels, affecting the accuracy of the data. Therefore, it is necessary to delete the SKPs first, and then re-insert the data in selection module 324 according to their frequency of occurrence. The following section first describes how to delete SKPs.

[0106] The deletion module 325 is located between the first classification module 321 and the second buffer 330. The deletion module 325 sets the status of the third data type in the first data to invalid, and sets the status of the first data type and the second data type to valid. In this way, the deletion module 325 sends the first data to the second buffer 330, and the second buffer 330 stores the data in the valid state, that is, stores the data other than SKP.

[0107] Next, we will explain how to insert SKPs. Specifically, the insertion module 326 is located after the selection module 324 and is used to insert SKP data into the data output by the selection module 324, thereby obtaining the second data for N transmission channels. It should be noted that when inserting SKPs, they must be inserted according to their frequency of occurrence. To facilitate understanding of this scheme, we will explain below how to insert SKPs according to their frequency of occurrence.

[0108] Optionally, the processing module 320 also includes a counter 327, which records the frequency of occurrence of the third data type of data in a single transmission channel. The insertion module 326 inserts the SKP data into the data output by the selection module according to the frequency of occurrence. For example, with symbol_num_between_SKP = 250, M = 4, and N = 2, see [reference needed]. Figure 11 It can determine the insertion status of SKP ordered sets in the data stream before and after channel compression.

[0109] The following describes how the transmission channel conversion device converts the transmission channel when the first target module is a serial transceiver and the second target module is a PCIe module.

[0110] like Figure 12 The diagram shows a structural schematic of a processing module provided in an embodiment of the present invention. The processing module 320 includes a second classification module 340 and a deweaving module 350. The second classification module 340 is used to classify the first data to obtain data corresponding to each data type. The deweaving module 350 is used to convert the first data into second data for N transmission channels according to a second preset arrangement order corresponding to each data type.

[0111] The function of the second classification module is similar to that of the first classification module, and will not be limited here. The principle of the unweaving module is similar to that of the interlacing module, except that the channel ratio of the unweaving module is inversely proportional to that of the interlacing module.

[0112] Since the first target module is a serial transceiver, after receiving the first data from the M transmission channels, it will delete the SKP from the first data. Therefore, the data subsequently sent to the second classification module does not include the SKP.

[0113] In one possible scenario, some transmission channels transmit data faster than others. During deweaving, the data from the M transmission channels needs to be aligned and then deweaved according to a preset arrangement order to obtain the second data from the N transmission channels. Therefore, the data from the M transmission channels needs to be aligned before deweaving.

[0114] Optionally, the processing module also includes a correction module located before the second classification module, wherein the correction module is used to synchronously correct the first data of the M transmission channels sent by the received serial transceiver, so that the first data of the M transmission channels are aligned.

[0115] like Figure 13 The diagram shown is a structural schematic of a processing module provided in an embodiment of the present invention. The processing module further includes a broadcast module 360 ​​and a selection module 370.

[0116] The broadcast module 360 ​​is used to copy or extract data of the first data type from N transmission channels into M transmission channels; the first data type indicates that the data transmitted in the N transmission channels is the same; The unweaving module 370 is specifically used to distribute data of the second data type from N transmission channels to M transmission channels; the second data type indicates that the data transmitted in the M transmission channels are different. The selection module is used to receive data sent by the unweaving module or the broadcasting module to obtain the second data of M transmission channels.

[0117] like Figure 14 The diagram shown is a flowchart of a transmission channel conversion method provided in an embodiment of the present invention. The method includes the following steps: Step 1401: Receive the first data sent by the first target module through M transmission channels and store the first data.

[0118] Step 1402: According to the preset arrangement order corresponding to the channel ratio relationship, the first data is converted into the second data of N transmission channels and sent to the second target module.

[0119] As can be seen from steps 1401 to 1402 above, by modifying the number of transmission channels between the first target module and the second target module, it is possible to modify the number of transmission channels without modifying the number of transmission channels in the first target module.

[0120] Optionally, the first target module is a high-speed peripheral component interconnect (PCIe) module, and the second target module is a serial transceiver; according to a preset arrangement order corresponding to the channel ratio, the first data is converted into second data for N transmission channels, including: classifying the first data to obtain data corresponding to each data type; and converting the first data into second data for N transmission channels according to a first preset arrangement order corresponding to each data type.

[0121] Optionally, according to the first preset arrangement order corresponding to each data type, the first data is converted into second data for N transmission channels, including: copying or extracting the data of the first data type to meet the transmission of N transmission channels; the first data type indicates that the data transmitted in M ​​transmission channels is the same; dividing the data of the second data type to meet the distribution to N transmission channels; the second data type indicates that the data transmitted in M ​​transmission channels is different; merging the processed first type data and second type data to obtain the second data for N transmission channels.

[0122] Optionally, it further includes: deleting data of the third data type from the first data; the third data type is used to characterize clock compensation; merging the processed first data type and the second data type to obtain the second data of N transmission channels, including: merging the processed first data type and the second data type, and inserting data of the third data type into the merged data, thereby obtaining the second data of N transmission channels.

[0123] like Figure 15 The diagram shown illustrates the data transmission interaction between a first device and a second device according to an embodiment of the present invention. Figure 15 Taking M=4 and N=2 as an example, the process of different types of data packets changing from the sending end of the first device to the receiving end of the second device is described. Figure ①→② describes the data transmission process at the sending end of the first device. ① shows the format of SKP, FTS, EIOS, TS1 / TS2, and TLP / DLLP data packets on the four lanes after passing through the MUX before the sending end channel conversion (4 lanes→2 lanes). ② shows the format of SKP, FTS, EIOS, TS1 / TS2, and TLP / DLLP on the two lanes after the sending end channel conversion (4 lanes→2 lanes). FTS and EIOS, after passing through the broadcast module, still maintain their complete FTS and EIOS sequence forms on the second lane. TS1 / TS2 and TLP / DLLP, after passing through the interleaving module, have their data originally transmitted on lanes 0 and 2 time-division multiplexed and transmitted on lane 0 in symbol units; data originally transmitted on lanes 1 and 3 are now time-division multiplexed and transmitted on lane 1 in symbol units.

[0124] Figure 15Sections ③ through ④ describe the data reception process at the receiving end. Section ③ shows the various data packet formats transmitted on the 2-lane physical link before the receiving end channel conversion (2-lane → 4-ane). Section ④ shows the data format ready for demuxing after the receiving end channel conversion (2-lane → 4-ane). Specifically, FTS and EIOS, after passing through the broadcast module, have complete FTS and EIOS sequence forms on the 4-lane. TLP / DLLP and TS1 / TS2, after passing through the deweaving module, have data on lane 0 sequentially placed on lane 0 and lane 2 in symbol units; data on lane 1, in symbol units, is sequentially placed on lane 1 and lane 3. The selection module, based on the valid signals output by the deweaving and broadcast modules, selects the output signals from the two modules to output to the data link layer and LTSSM.

[0125] Based on the same technological concept, such as Figure 16 The diagram shown is a structural schematic of an electronic device provided in an embodiment of the present invention. The electronic device 1600 includes: a high-speed peripheral component interconnect PCIe module 1601, a serial transceiver 1602, and a transmission channel conversion device 1603 located between the PCIe module and the serial transceiver.

Claims

1. A transmission channel switching device, characterized in that, Includes a first buffer and a processing module; The first buffer is used to receive first data sent by the first target module through M transmission channels and to store the first data; The processing module is used to convert the first data into second data of N transmission channels according to a preset arrangement order corresponding to the channel ratio relationship, and send it to the second target module; the channel ratio relationship is the ratio between M transmission channels and N transmission channels; The first target module is a high-speed peripheral component interconnect (PCIe) module, and the second target module is a serial transceiver. The processing module includes a first classification module and an interleaving module; the first classification module is used to classify the first data to obtain data corresponding to each data type; the interleaving module is used to convert the first data into second data with N transmission channels according to a first preset arrangement order corresponding to each data type. The processing module further includes a broadcast module and a selection module; the broadcast module is used to copy or extract data of the first data type from M transmission channels to N transmission channels; the first data type indicates that the data transmitted in the M transmission channels is the same; the interleaving module is specifically used to distribute data of the second data type from the M transmission channels to the N transmission channels; the second data type indicates that the data transmitted in the M transmission channels is different; the selection module is used to receive data sent by the interleaving module or the broadcast module, and generate second data for the N transmission channels from the received data.

2. The apparatus as claimed in claim 1, characterized in that, The first data type includes Fast Training Ordered Set (FTS) and Electrically Idle Ordered Set (EIOS); the second data type includes Transaction Layer Packet (TLP), Data Link Layer Packet (DLLP), and Training Sequences (TS1 / TS2); the third data type includes Skip Ordered Set (SKP).

3. The apparatus as described in claim 1, characterized in that, The processing module also includes a second buffer; The second buffer is used to store the data with data type output by the first classification module; The broadcast module and the interleaving module are used to obtain data of their respective required data types from the second buffer.

4. The apparatus as described in claim 3, characterized in that, The processing module also includes a deletion module and an insertion module; The deletion module is located between the first classification module and the second buffer, and is used to set the state of the third data type in the first data to an invalid state; the data type is divided into a first data type, a second data type and the third data type; the third data type is used to represent clock compensation. The second buffer is specifically used to store data other than the third data type; The insertion module is located after the selection module and is used to insert data of a third data type into the data output by the selection module, thereby obtaining the second data of N transmission channels.

5. The apparatus as described in claim 4, characterized in that, The processing module also includes a counter; The counter is used to record the frequency of occurrence of data of the third data type; The insertion module is used to insert the data of the third data type into the data output by the selection module according to the frequency of occurrence.

6. The apparatus as claimed in claim 3, characterized in that, The second buffer is also used to receive the back pressure signal sent by the interleaving module or the broadcast module, and to pause data output according to the back pressure signal until a ready signal is received from the interleaving module or the broadcast module.

7. The apparatus according to any one of claims 1 to 6, characterized in that, It also includes registers; The register is used to store the configured channel ratio relationship.

8. A transmission channel conversion method, characterized in that, Applications in transmission channel switching devices; Receive the first data sent by the first target module through M transmission channels, and store the first data; According to the preset arrangement order corresponding to the channel ratio relationship, the first data is converted into second data of N transmission channels and sent to the second target module; the channel ratio relationship is the ratio between M transmission channels and N transmission channels; The first target module is a high-speed peripheral component interconnect (PCIe) module, and the second target module is a serial transceiver. The step of converting the first data into second data for N transmission channels according to a preset arrangement order corresponding to the channel ratio relationship includes: classifying the first data to obtain data corresponding to each data type; and converting the first data into second data for N transmission channels according to a first preset arrangement order corresponding to each data type. The step of converting the first data into second data for N transmission channels according to a first preset arrangement order corresponding to each data type includes: The data of the first data type is copied or extracted to satisfy the transmission of N transmission channels; the first data type indicates that the data transmitted in M ​​transmission channels is the same; the data of the second data type is divided to satisfy the distribution to N transmission channels; the second data type indicates that the data transmitted in M ​​transmission channels is different; the processed data of the first type and the data of the second type are merged to obtain the second data of N transmission channels.

9. The method as described in claim 8, characterized in that, Also includes: The data of the third data type is deleted from the first data; the third data type is used to characterize clock compensation. The processed data of the first type and the second type are merged to obtain the second data of N transmission channels, including: The processed first-type and second-type data are merged, and third-type data is inserted into the merged data to obtain the second data for N transmission channels.

10. An electronic device, characterized in that, include: A high-speed peripheral component interconnection PCIe module, a serial transceiver, and a transmission channel conversion device located between the PCIe module and the serial transceiver, wherein the transmission channel conversion device is the device according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Asymmetric PCIe (Peripheral Component Interconnect Express) bus design method, device, bus device and system

    CN116680224A