A retimer and a system and method for evaluating its delay
By introducing signal synchronization, PCIe packets and timing modules into the retimer, using the timing flags and the transmission time of PCIe packets, the problem of delay evaluation in PCIe signal transmission is solved, and high-accurate delay measurement is achieved, simplifying the measurement process .
Patent Information
- Application Number
- CN202410356465.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-03-27
AI Technical Summary
The prior art is difficult to accurately evaluate the delay of the retimer in PCIe signal transmission, especially in the absence of external testing equipment and the absence of additional observation points on the PCB board, resulting in insufficient evaluation accuracy.
A retimer is designed, including a signal synchronization module, a PCIe packet module and a timing module. By cascading two retimers, the delay of the retimer is calculated using the timing flag and the transmission time of the PCIe packet, and the accuracy is achieved. delay measurement.
This method can measure the delay of the retimer with high accuracy without the need for external testing equipment and additional observation points, providing the reference data required for the system design, simplifying the measurement process.
Smart Images

Figure CN118152318B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chip design, and in particular to a structure of a retimer for PCIe, and a system and method for evaluating the delay thereof. Background Art
[0002] Peripheral Component Interconnect Express (PCIe) is a local bus technology and interface standard. As the PCIe bus speed increases, the signal attenuation and signal distortion caused by physical packaging, PCB, and transmission media become more and more obvious, which greatly limits the trace length on the PCB board. To solve this problem, the current PCIe-based communication system mostly uses a retimer solution. Figure 1 A schematic diagram of the structure of an existing retimer chip is shown. Figure 1 As shown in the figure, the retimer chip is a chip that integrates the physical layer (phy) and link layer (link) of PCIe, which can realize the function of signal relay. Specifically, when the signal passes through the retimer chip, the retimer chip will recover and reorganize the signal to improve the signal quality, enhance the transmission energy of the signal, and then continue to transmit, thereby solving the problem of signal integrity and increasing the effective transmission distance of high-speed PCIe signals.
[0003] Although retimer can realize the function of signal relay, it will also increase the delay of the signal accordingly. This delay has a certain reference significance for system design, so it is necessary to accurately evaluate the delay. Common methods for measuring or evaluating delay include the following three categories: direct measurement, measuring the delay between the end and starting point of the signal, and simulation evaluation.
[0004] Since PCIe signals are all high-speed differential signals, considering the issue of signal integrity, there are usually no additional observation points on the PCB traces that will interfere with the signal, so it is difficult to directly measure the delay of the retimer through the corresponding physical equipment. On the PCIe communication side, the signal is generally sent from the main device such as RC, and it passes through the main device and the retimer in turn. Therefore, if the idea of measuring the delay of the retimer from the starting point to the end point is adopted, it is also necessary to remove the delay data of the signal passing through the PCIE interface of the RC device, and this delay data is also difficult to determine. It is difficult to establish an accurate simulation model for simulation evaluation, so the evaluation accuracy is slightly lacking. Summary of the invention
[0005] In view of some or all of the problems in the prior art, the present invention provides a retimer in a first aspect, comprising:
[0006] A signal synchronization module, comprising an IO interface, wherein the signal synchronization module is used to send and receive timing marks to measure a path delay of the timing mark transmission;
[0007] A PCIe packet module, comprising a PCIe interface, the PCIe packet module being used to send and monitor received PCIe packets; and
[0008] A timing module is communicatively connected to the signal synchronization module and the PCIe packet module, and is used to determine the duration of the transmission timing mark and / or the PCIe packet.
[0009] Furthermore, the timing module includes a counter, and the counter is driven by a high-speed clock.
[0010] Furthermore, the retimer also includes a register reading interface, which is used to obtain the count value of the timing module.
[0011] Furthermore, the register reading interface includes an integrated circuit bus I2C, a universal asynchronous receiver / transmitter UART, a serial peripheral interface (SPI), or a general-purpose input / output interface (GPIO).
[0012] In order to evaluate the delay of the retimer as described above, the second aspect of the present invention provides a system for evaluating the delay of the retimer, comprising:
[0013] The two retimers as described above are cascaded via a PCIe interface, and the signal synchronization modules of the two retimers are communicatively connected via an IO interface.
[0014] Based on the system as described above, the third aspect of the present invention provides a method for evaluating a retimer delay, comprising:
[0015] Initialize the retimer;
[0016] Sending a timing mark to the second retimer through a signal synchronization module of the first retimer, and simultaneously starting a timing module of the first retimer;
[0017] At the same time, the first retimer is packaged by a PCIe packet module and sent to the second retimer through a PCIe interface;
[0018] After receiving the timing mark, the second retimer starts the timing module and transmits the timing mark back to the first retimer;
[0019] After the first retimer receives the timing mark of the loop, the timing stops to obtain a first duration, and after the second retimer receives a complete PCIe packet, the timing stops to obtain a second duration; and
[0020] The delay of the retimer is determined according to the timing results of the timing modules of the first retimer and the second retimer.
[0021] Furthermore, the timing mark is a high level signal, or a low level signal, or a specified waveform signal.
[0022] Further, the delay of the retimer is calculated as follows:
[0023] Delay = first duration / 2 + second duration.
[0024] The present invention discloses a retimer and a system and method for evaluating its delay, which are improved on the basis of the existing retimer, and add signal synchronization, timing and other modules, so that the delay of the retimer can be determined by cascading. Since the system and method obtain their delay data through actual chip testing, they have high accuracy, and the overall measurement process does not require the use of external test equipment, nor does it require the setting of additional observation points on the PCB board, and is easy to implement. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] To further illustrate the above and other advantages and features of various embodiments of the present invention, a more specific description of various embodiments of the present invention will be presented with reference to the accompanying drawings. It will be understood that these drawings only depict typical embodiments of the present invention and are therefore not to be considered as limiting the scope thereof. In the accompanying drawings, for clarity, identical or corresponding parts will be represented by identical or similar reference numerals.
[0026] Figure 1 A schematic diagram of the structure of an existing retimer chip is shown;
[0027] Figure 2 A schematic diagram showing the structure of a retimer according to an embodiment of the present invention;
[0028] Figure 3 A schematic diagram showing the structure of a system for evaluating retimer delay according to an embodiment of the present invention; and
[0029] Figure 4 A flowchart of a method for evaluating a retimer delay according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0030] In the following description, the present invention is described with reference to various embodiments. However, those skilled in the art will recognize that the various embodiments can be implemented without one or more specific details or with other replacement and / or additional methods, materials or components. In other cases, well-known structures or operations are not shown or described in detail to avoid blurring the inventive point of the present invention. Similarly, for the purpose of explanation, specific numbers and configurations are set forth to provide a comprehensive understanding of the embodiments of the present invention. However, the present invention is not limited to these specific details. In addition, it should be understood that the various embodiments shown in the drawings are illustrative representations and are not necessarily drawn in correct proportions.
[0031] In this specification, reference to "one embodiment" or "the embodiment" means that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment of the present invention. The phrase "in one embodiment" appearing in various places in this specification does not necessarily all refer to the same embodiment.
[0032] It should be noted that the embodiments of the present invention describe the method steps in a specific order, but this is only for the purpose of illustrating the specific embodiment, rather than limiting the order of the steps. On the contrary, in different embodiments of the present invention, the order of the steps can be adjusted according to actual needs.
[0033] In order to conveniently and accurately measure the delay of a retimer chip and provide reference data for the design of a system based on PCIe communication, the present invention improves the existing retimer chip structure and adds modules such as signal synchronization and timing thereto, so that the delay of a signal passing through the retimer chip can be measured on the actual chip without the need for complex and expensive test equipment and / or additional observation points on an external PCB board.
[0034] The scheme of the present invention is further described below in conjunction with the accompanying drawings of the embodiments.
[0035] Figure 2 FIG. 2 is a schematic diagram showing the structure of a retimer according to an embodiment of the present invention. Figure 2A retimer includes a signal synchronization module 201, a PCIe packet module 202, and a timing module 203, wherein the signal synchronization module 201 includes an IO interface, which is used to send and receive timing marks to measure the path delay of the timing mark transmission, that is, the time required for synchronization. The PCIe packet module 202 includes a PCIe interface, which is used to send and monitor the reception of PCIe packets, and then measure the time required for the transmission of the PCIe packet. The timing module 203 is communicatively connected to the signal synchronization module 201 and the PCIe packet module 202, and is used to determine the time required for the signal synchronization module 201 to send the timing mark and / or the PCIe packet module 202 to send the PCIe packet. By cascading two retimers, the delay of the retimer can be quickly and accurately obtained.
[0036] In one embodiment of the present invention, when determining the delay, the signal synchronization module 201 sends a start timing mark to the opposite chip, and the signal synchronization module of the opposite chip loops back the start timing mark, thereby measuring the path delay between the two chips, or the time required for the signal to synchronize from one retimer to the opposite retimer.
[0037] In one embodiment of the present invention, the timing module includes a counter, which is driven by a high-speed clock and calculates time by starting and stopping counting. Based on this, the time measured by the timing module is equal to the count value of the counter multiplied by the working clock cycle of the timing module.
[0038] In one embodiment of the present invention, the PCIe packet module 202 is used to assemble packets and send them to the retimer at the other end through the PCIe interface, wherein the content and length of the packets can be customized by software or the like.
[0039] In one embodiment of the present invention, the retimer further includes a register reading interface, which is used to obtain the count value of the timing module. In one embodiment of the present invention, the register reading interface uses an integrated circuit bus I2C, a universal asynchronous receiver and transmitter UART, a serial peripheral interface (SPI, Serial Peripheral interface), or a general-purpose input / output interface (GPIO, General-purpose input / output), etc.
[0040] To evaluate the latency of the retimer as described previously, Figure 3 A schematic diagram showing the structure of a system for evaluating retimer delay according to an embodiment of the present invention is shown as follows: Figure 3 As shown, a system for evaluating the delay of the retimer as described above comprises:
[0041] The two retimers as described above are cascaded via a PCIe interface, and the signal synchronization modules of the two retimers are communicatively connected via an IO interface.
[0042] Based on the system described above, Figure 4 A flow chart showing a method for evaluating a retimer delay according to an embodiment of the present invention is shown as follows: Figure 4 As shown, a method for evaluating the delay of the retimer as described above comprises:
[0043] First, in step 401, an evaluation system is built. The two retimers as described above are communicatively connected through a PCIe interface and initialized so that the two retimers are successfully linked and enter a measurement mode, wherein the two retimers have the same structure and parameters, and the signal synchronization modules of the two retimers are communicatively connected through a conventional common IO interface. One of the retimers is defined as a transmitter, recorded as a first retimer, and the other retimer is defined as a receiver, recorded as a second retimer;
[0044] Next, in step 402, the signal synchronization time is determined. A timing mark is sent to the second retimer through the signal synchronization module of the first retimer, and the timing module of the first retimer is started at the same time. In one embodiment of the present invention, the timing mark is a high-level signal. In other embodiments of the present invention, other predefined signals may also be used, such as low-level signals, or other shape signals, etc. The signal synchronization module of the first retimer sends a timing mark to indicate the start of the measurement process. When the timing mark is sent, its own timing module is started. When the looped-back timing mark is detected, the timing module stops timing, and the time used for signal sending and returning can be obtained. The time divided by 2 is the time required for the signal to synchronize from the first retimer to the second retimer. When the timing module uses a counter for timing, the time is equal to the count value of the counter multiplied by the working clock cycle of the timing block;
[0045] At the same time, in step 403, a PCIe packet is sent. When the signal synchronization module sends the timing mark, the first retimer PCIe packet module is used to assemble the packet and send it to the second retimer through the PCIe interface. As mentioned above, the content and length of the packet can be set by software according to the requirements;
[0046] Next, in step 404, the sending duration of the PCIe packet is determined. After receiving the timing mark, the signal synchronization module of the second retimer transmits the timing mark back to the first retimer and starts its own timing module. After receiving the complete PCIe packet, the PCIe packet module of the second retimer notifies the timing module to stop timing, and the duration used for sending the PCIe packet can be obtained. Similarly, when the timing module uses a counter for timing, the duration is equal to the count value of the counter multiplied by the working clock cycle of the timing block; and
[0047] Finally, in step 405, the delay is determined. The delay of the retimer is determined according to the timing results of the timing modules of the first retimer and the second retimer. The data of the timing modules of the first retimer and the second retimer are read through a register reading interface such as I2C, and the time taken for the PCIe packet to be sent to the PCIe packet to be received can be calculated, that is, the signal synchronization time calculated in step 402 plus the time taken for the PCIe packet to be sent determined in step 404.
[0048] It should be understood that in one embodiment of the present invention, the timing mark can also be sent from the receiving end to the sending end, that is, from the second retimer to the first retimer. When this method is used, the starting node of the timing module is slightly different and will not be repeated here.
[0049] The system and method obtain the delay data of the retimer through actual chip testing, so the accuracy is high, and the overall measurement process does not require the use of external testing equipment, nor does it require setting additional observation points on the PCB board, and is easy to implement.
[0050] Although various embodiments of the present invention are described above, it should be understood that they are presented as examples only and not as limitations. It is obvious to those skilled in the relevant art that various combinations, modifications and changes can be made thereto without departing from the spirit and scope of the present invention. Therefore, the breadth and scope of the present invention disclosed herein should not be limited by the exemplary embodiments disclosed above, but should only be defined according to the attached claims and their equivalents.
Claims
1. A method for evaluating the delay of a retimer, characterized in that The retimer comprises a signal synchronization module, a PCIe packet module and a timing module, wherein the signal synchronization module comprises an IO interface to send and receive timing marks and measure the path delay of the timing mark transmission, the PCIe packet module comprises a PCIe interface to send and monitor the reception of PCIe packets and measure the sending duration of the PCIe packets, and the timing module is communicatively connected to the signal synchronization module and the PCIe packet module to determine the duration of sending the timing mark and / or the PCIe packet, and the method comprises the steps of: The two retimers are communicatively connected through a PCIe interface and initialized, wherein the two retimers have the same structure and parameters, and the signal synchronization modules of the two retimers are communicatively connected through an IO interface; Sending a timing mark to the second retimer through the signal synchronization module of the first retimer, starting the timing module of the first retimer, and assembling the packet through the PCIe packet module of the first retimer, and sending it to the second retimer through the PCIe interface; After receiving the timing mark, the second retimer starts the timing module and transmits the timing mark back to the first retimer; After the first retimer receives the timing mark of the loop, the timing stops to obtain a first duration, and after the second retimer receives a complete PCIe packet, the timing stops to obtain a second duration; as well as The delay of the retimer is determined according to the timing results of the timing modules of the first retimer and the second retimer.
2. The method according to claim 1, characterized in that The timing module includes a counter, and the counter is driven by a high-speed clock.
3. The method according to claim 1, characterized in that The retimer further includes a register read interface configured to obtain a count value of the timing module.
4. The method according to claim 3, characterized in that The register reading interface includes an integrated circuit bus, a universal asynchronous receiver and transmitter, a serial peripheral device interface, or a general input and output interface.
5. The method according to claim 1, characterized in that The timing mark is a high level signal, a low level signal, or a specified waveform signal.
6. The method according to claim 2, characterized in that The first time length is equal to the count value of the counter of the first retimer multiplied by its working clock cycle, and the second time length is equal to the count value of the counter of the second retimer multiplied by its working clock cycle.
7. The method according to claim 1, characterized in that The delay of the retimer is calculated according to the following formula: Delay = first duration / 2 + second duration.
