SerDes interface transceiving time delay measurement method and system supporting multiple protocols
By setting up a protocol conversion chip between the SerDes interface and the Ethernet tester, and using timestamp measurement, the problem of RapidIO and PCIe protocol delay measurement is solved, and efficient and accurate delay measurement is achieved, which is suitable for high-speed communication fields.
Patent Information
- Application Number
- CN202410863391.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-29
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology cannot effectively measure the transceiver delay of SerDes interfaces that support RapidIO or PCIe protocols, and using FPGA to implement delay measurement is complex and difficult to control accuracy, and the measurement results are not authoritative.
By setting up a protocol conversion chip between the SerDes interface to be tested and the Ethernet standard tester, using the Ethernet standard tester to measure the timestamps in the sent and received messages, and establishing a loopback mode to obtain the sending and receiving delays of the SerDes interface, supporting a variety of Conversion of protocols including Ethernet, RapidIO and PCIe.
It realizes efficient and accurate delay measurement of SerDes interfaces of multiple protocols, gets rid of the complexity of FPGA simulation, and uses the time stamp function of the standard tester to make the measurement results more authoritative and suitable for high-speed communication R&D and debugging.
Smart Images

Figure CN118540248A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of high-speed communication technology, and in particular to a method and system for measuring a SerDes interface receiving and transmitting delay supporting multiple protocols. Background Art
[0002] SerDes is an important high-speed interface technology, mainly used for the conversion between serial data and parallel data in high-speed data communication. The transmitter (Tx) of SerDes includes parallel-to-serial converters, encoders, transmitter equalizers, drivers and other parts, and the receiver (Rx) of SerDes includes receiver equalizers, clock data recovery, decoders, serial-to-parallel conversion and other parts, providing the physical layer (PHY) foundation for various high-speed serial data transmission protocols. SerDes supports a large number of mainstream protocols, such as Ethernet, RapidIO, FC, PCIe, etc. At the same time, the SerDes interface that supports multiple protocols is based on a unified hardware architecture, meeting the needs of the development of electronic information equipment for heterogeneous protocol fusion interconnection and flexibility.
[0003] There are currently two methods for measuring the transceiver delay of the SerDes interface: one is to measure based on standard test instruments. For high-speed SerDes interfaces that support Ethernet or FC protocols, the timestamp function of the Ethernet protocol tester or FC protocol tester can be directly used; the other is to design the delay measurement logic on the FPGA, use the FPGA to simulate the RapidIO protocol packet transmitter or PCIe protocol packet transmitter, design the packet transmitter module and the timing module, and complete the functions of sending protocol messages and timestamps similar to those in the standard tester. For high-speed SerDes interfaces that support Ethernet or FC protocols, since there are standard Ethernet testers and FC testers on the market, method 1 can be used to measure the transceiver delay of the SerDes interface. However, for SerDes interfaces that support RapidIO or PCIe protocols, since there are no standard RapidIO protocol testers on the market, and the PCIe protocol tester does not have a timestamp function, it is impossible to use standard equipment to measure the transceiver delay of the SerDes interface that supports RapidIO or PCIe protocols. FPGA is limited by its structure and process, and its PLL clock frequency and interface rate are relatively low. Using FPGA to simulate RapidIO protocol packet transmitter or PCIe protocol packet transmitter can only simulate low-rate protocol message transmission, and cannot meet the requirements of protocol messages above 10Gbps, not to mention 56Gbps high-speed protocol messages. In addition, the logic code is very complex. At the same time, due to the high rate of SerDes interface and the delay parameters at the nanometer level, the timing circuit accuracy requirements for the logic code implementation are very high, and the results obtained using this measurement method are not authoritative. Therefore, it is not only manpower-consuming, but also difficult to support the measurement and verification of the SerDes interface transmission and reception delay. Summary of the invention
[0004] To this end, the present invention provides a method and system for measuring the transceiver delay of a SerDes interface supporting multiple protocols, which solves the problems that the existing standard tester cannot be used to measure the transceiver delay of a SerDes interface supporting RapidIO and PCIe protocols, and the complexity and time accuracy control difficulty of using FPGA to implement the transceiver delay measurement of the SerDes interface. A standard Ethernet tester and a protocol conversion chip that can support Ethernet, RapidIO, PCIe and other protocols are used to implement the transceiver delay measurement of the SerDes interface supporting Ethernet, RapidIO, PCIe and other protocols, with high measurement speed and easy deployment and implementation.
[0005] According to the design scheme provided by the present invention, on the one hand, a method for measuring the transmission and reception delay of a SerDes interface supporting multiple protocols is provided, comprising:
[0006] A protocol conversion chip is arranged between the SerDes interface to be tested and the Ethernet standard tester, wherein the protocol conversion chip is used to perform protocol conversion on the communication protocol between the SerDes interface to be tested and the Ethernet standard tester;
[0007] The timestamp carried in the sent and received messages is measured by using an Ethernet standard tester, and the SerDes interface sending and receiving delay is determined according to the timestamp in the sent and received messages. The sent and received messages are Ethernet messages sent to the SerDes interface to be tested for delay testing.
[0008] As a SerDes interface transceiver delay measurement method supporting multiple protocols of the present invention, further, a protocol conversion chip is arranged between the SerDes interface to be tested and the Ethernet standard tester, comprising:
[0009] Select a protocol conversion chip that supports at least two protocol ports, wherein one end of the protocol conversion chip adopts a communication protocol standard consistent with an Ethernet standard tester, and the other end of the protocol conversion chip adopts a communication protocol that matches the rate of the SerDes interface to be tested;
[0010] The protocol port of the protocol conversion chip is configured, and the protocol conversion chip is connected to the Ethernet standard tester and the SerDes interface to be tested respectively according to the protocol port configuration information.
[0011] As a SerDes interface receiving and transmitting delay measurement method supporting multiple protocols of the present invention, further, the protocol port of the protocol conversion chip is configured, including:
[0012] One protocol port of the protocol conversion chip is configured as a communication protocol consistent with a standard Ethernet port, and another protocol port is configured as a communication protocol consistent with the SerDes interface to be tested; and a forwarding route between the two protocol ports is configured in the protocol conversion chip.
[0013] As a SerDes interface transceiver delay measurement method supporting multiple protocols of the present invention, further, using an Ethernet standard tester to measure the timestamp carried in the transceiver message, it includes:
[0014] Building a first measurement environment based on a first loopback mode of the SerDes to be tested, sending an Ethernet message using an Ethernet standard tester in the first measurement environment, and obtaining a first routing timestamp of the Ethernet message in the first measurement environment;
[0015] A second measurement environment is established based on the second loopback mode of the SerDes to be tested, an Ethernet message is sent using an Ethernet standard tester in the second measurement environment, and a second routing timestamp of the Ethernet message in the second measurement environment is obtained.
[0016] The first loopback mode is a Tx2Rx loopback mode, and the second loopback mode is an Rx2Tx loopback mode.
[0017] As a SerDes interface receiving and sending delay measurement method supporting multiple protocols of the present invention, further, determining the SerDes interface receiving and sending delay according to the timestamp in the receiving and sending message includes:
[0018] Based on the first routing timestamp and the second routing timestamp, the total delay of the receiving end and the transmitting end of the SerDes interface under test is obtained according to the difference between the two timestamps.
[0019] As a SerDes interface receiving and transmitting delay measurement method supporting multiple protocols of the present invention, further, it also includes:
[0020] Configure the tested SerDes interface to other communication protocols, update the protocol port configuration of the protocol conversion chip, and use an Ethernet standard tester to measure the timestamps carried in the sent and received messages to determine the sent and received delay of the tested SerDes interface under the current communication protocol configuration state.
[0021] On the other hand, the present invention also provides a SerDes interface transceiver delay measurement system supporting multiple protocols, comprising: a configuration module and a measurement module, wherein:
[0022] A configuration module is used to set a protocol conversion chip between the SerDes interface to be tested and the Ethernet standard tester, wherein the protocol conversion chip is used to perform protocol conversion on the communication protocol between the SerDes interface to be tested and the Ethernet standard tester;
[0023] The measurement module is used to measure the timestamp carried in the sent and received messages using an Ethernet standard tester, and determine the SerDes interface sending and receiving delay based on the timestamp in the sent and received messages. The sent and received messages are Ethernet messages sent to the SerDes interface to be tested for delay testing.
[0024] Beneficial effects of the present invention:
[0025] Aiming at the situation that there is no protocol interface of a standard protocol tester on the market or the protocol tester has no timestamp function, the present invention uses a standard Ethernet tester and a protocol conversion chip that can support multiple protocols such as Ethernet, RapidIO, PCIe, etc. to measure the transceiver delay of a SerDes interface that supports multiple protocols such as Ethernet, RapidIO, PCIe, etc., effectively solving the problem that the transceiver delay of the SerDes interface cannot be measured, getting rid of the complexity of using FPGA to simulate a protocol packet transmitter and using a timing circuit in the FPGA to measure the delay of the SerDes interface, greatly improving the measurement efficiency, ensuring the accuracy of the measurement result, using the timestamp function of the standard tester, the measurement result is more authoritative, and has good application prospects in technical fields such as high-speed communication research and development and debugging. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 The following is a schematic diagram of the SerDes interface receiving and sending delay measurement process supporting multiple protocols in an embodiment;
[0027] Figure 2 This is a schematic diagram of the delay measurement process based on the standard test instrument in the embodiment;
[0028] Figure 3 This is a schematic diagram of the delay measurement process of self-designing delay measurement logic on FPGA in an embodiment;
[0029] Figure 4 The figure is a schematic diagram of the delay measurement process supporting multiple protocols in the embodiment. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the present invention clearer and more understandable, the present invention is further described in detail below in conjunction with the accompanying drawings and technical solutions.
[0031] The SerDes interface transceiver delay includes two parts: one is the delay at the receiving end, that is, the delay from the high-speed differential receiving signal input to the parallel data serial-to-parallel conversion output on the receiving side; the other is the delay at the transmitting end, that is, the parallel data serialization to the transmission driver output. Figure 1 As shown, a method for measuring the transmission and reception delay of a SerDes interface supporting multiple protocols is provided, comprising:
[0032] S101. A protocol conversion chip is provided between the SerDes interface to be tested and an Ethernet standard tester, wherein the protocol conversion chip is used to perform protocol conversion on a communication protocol between the SerDes interface to be tested and the Ethernet standard tester.
[0033] like Figure 2 The delay measurement based on the standard test instrument shown in the figure first marks the timestamp of the Ethernet protocol tester or FC protocol tester port message self-loopback (yellow fiber loopback path), and then marks the timestamp of the Ethernet protocol tester or FC protocol tester port message sent to the SerDes under test and the SerDes under test performing Rx2Tx loopback and sending back to the tester (blue fiber + green loopback configuration path). The difference between the two timestamps is the transmit and receive delay of the SerDes under test. Figure 3 The diagram shows the self-designed delay measurement logic on the FPGA. First, the self-loopback time of the RapidIO protocol packet transmitter or PCIe protocol packet transmitter port message is measured (yellow optical fiber loopback path). Then, the time it takes for the RapidIO protocol packet transmitter or PCIe protocol packet transmitter port message to be sent to the SerDes under test, and for the SerDes under test to perform Rx2Tx loopback and then send it back to the packet transmitter (blue optical fiber + green loopback configuration path) is measured. The difference between the two times is the transmit and receive delay of the SerDes under test.
[0034] like Figure 4 As shown, in the embodiment of the present case, when the transceiver delay of the SerDes interface supporting multiple protocols is measured, the transceiver delay of the multi-frequency SerDes interface supporting multiple protocols is measured through a standard test instrument (such as an Ethernet tester) and a protocol conversion chip, wherein the standard test instrument has a high-precision timestamp function at the nanosecond level, and the protocol conversion chip can support at least two ports, one of which supports the same protocol standard as the standard test instrument, and the other port supports a communication protocol that matches the rate of the SerDes interface to be tested. The protocol conversion chip contains a protocol conversion module, and the protocol of the SerDes interface to be tested can be converted to the protocol of the standard test instrument through the protocol conversion module.
[0035] Specifically, a protocol conversion chip that supports at least two protocol ports can be selected, wherein one end of the protocol conversion chip adopts a communication protocol standard consistent with the Ethernet standard tester, and the other end of the protocol conversion chip adopts a communication protocol that matches the rate of the SerDes interface to be tested; the protocol port of the protocol conversion chip is configured, and the protocol conversion chip is respectively connected to the Ethernet standard tester and the SerDes interface to be tested according to the protocol port configuration information.
[0036] The configuration of the protocol port of the protocol conversion chip may include:
[0037] One protocol port of the protocol conversion chip is configured as a communication protocol consistent with a standard Ethernet port, and another protocol port is configured as a communication protocol consistent with the SerDes interface to be tested; and a forwarding route between the two protocol ports is configured in the protocol conversion chip.
[0038] S102, using an Ethernet standard tester to measure the timestamp carried in the sent and received messages, and determining the SerDes interface sending and receiving delay according to the timestamp in the sent and received messages, wherein the sent and received messages are Ethernet messages sent to the SerDes interface to be tested for delay testing.
[0039] Specifically, the timestamp carried in the sent and received messages is measured using an Ethernet standard tester, which can be designed to include:
[0040] Building a first measurement environment based on a first loopback mode of the SerDes to be tested, sending an Ethernet message using an Ethernet standard tester in the first measurement environment, and obtaining a first routing timestamp of the Ethernet message in the first measurement environment;
[0041] A second measurement environment is established based on the second loopback mode of the SerDes to be tested, an Ethernet message is sent using an Ethernet standard tester in the second measurement environment, and a second routing timestamp of the Ethernet message in the second measurement environment is obtained.
[0042] Based on the first routing timestamp and the second routing timestamp, the total delay of the receiving end and the transmitting end of the SerDes interface under test can be obtained according to the difference between the two timestamps.
[0043] The first loopback mode is a Tx2Rx loopback mode, and the second loopback mode is an Rx2Tx loopback mode.
[0044] like Figure 4As shown in the figure, test environment 1 is built: Ethernet port Port0<—>protocol conversion chip Port0, and the Ethernet tester and the protocol conversion chip are connected through optical fiber; the protocol conversion chip Port0 is configured as an Ethernet protocol port, and Port1 is a RapidIO protocol port; the forwarding route from Port0 to Port1 and the forwarding route from Port1 to Port0 are configured in the protocol conversion chip; the protocol conversion chip Port1 is configured as Tx2Rx loopback mode; the Ethernet tester Port0 sends an Ethernet message, and the timestamp function of the Ethernet tester is used to mark the routing timestamp T1 of the Ethernet message in test environment 1. Rebuild test environment 2: Ethernet tester Port0 Tx <—> protocol conversion chip Port0, protocol conversion chip Port1 <—> tested SerDes Port0, the Ethernet tester and protocol conversion chip, as well as the protocol conversion chip and tested SerDes are connected through optical fiber; configure protocol conversion chip Port0 as Ethernet protocol port, Port1 as RapidIO protocol port; configure forwarding route from Port0 to Port1, and forwarding route from Port1 to Port0 in the protocol conversion chip; configure tested SerDes Port0 as RapidIO protocol port, and configure it in Rx2Tx loopback mode; Ethernet tester Port0 sends Ethernet message, and uses the timestamp function of the Ethernet tester to mark the routing timestamp T2 of the Ethernet message in test environment 2; the difference between the two timestamps is T2-T1, which is the total delay of the receiving end and the sending end when the tested SerDes is a RapidIO protocol interface.
[0045] When the tested SerDes interface is configured as other communication protocols, the transmission and reception delay of the tested SerDes interface under the current communication protocol configuration state can be determined by updating the protocol port configuration of the protocol conversion chip and measuring the timestamp carried in the sent and received messages using an Ethernet standard tester. For example, configure the protocol conversion chip Port1 as a PCIe protocol port, configure the tested SerDes Port0 as a PCIe protocol port, and the result is the total delay between the receiving end and the sending end when the tested SerDes is a PCIe protocol interface.
[0046] Further, based on the above method, an embodiment of the present invention also provides a SerDes interface transceiver delay measurement system supporting multiple protocols, comprising: a configuration module and a measurement module, wherein:
[0047] A configuration module is used to set a protocol conversion chip between the SerDes interface to be tested and the Ethernet standard tester, wherein the protocol conversion chip is used to perform protocol conversion on the communication protocol between the SerDes interface to be tested and the Ethernet standard tester;
[0048] The measurement module is used to measure the timestamp carried in the sent and received messages using an Ethernet standard tester, and determine the SerDes interface sending and receiving delay based on the timestamp in the sent and received messages. The sent and received messages are Ethernet messages sent to the SerDes interface to be tested for delay testing.
[0049] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
[0050] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0051] The units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation is not considered to be beyond the scope of the present invention.
[0052] Those skilled in the art will appreciate that all or part of the steps in the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk. Optionally, all or part of the steps in the above embodiment can also be implemented using one or more integrated circuits, and accordingly, each module / unit in the above embodiment can be implemented in the form of hardware or in the form of software function modules. The present invention is not limited to any specific form of combination of hardware and software.
[0053] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for measuring the transmission and reception delay of a SerDes interface supporting multiple protocols, characterized in that: Include: A protocol conversion chip is arranged between the SerDes interface to be tested and the Ethernet standard tester, wherein the protocol conversion chip is used to perform protocol conversion on the communication protocol between the SerDes interface to be tested and the Ethernet standard tester; The timestamp carried in the sent and received messages is measured by using an Ethernet standard tester, and the SerDes interface sending and receiving delay is determined according to the timestamp in the sent and received messages. The sent and received messages are Ethernet messages sent to the SerDes interface to be tested for delay testing.
2. The method for measuring the transmission and reception delay of a SerDes interface supporting multiple protocols according to claim 1, characterized in that: A protocol conversion chip is set between the SerDes interface to be tested and the Ethernet standard tester, including: Select a protocol conversion chip that supports at least two protocol ports, wherein one end of the protocol conversion chip adopts a communication protocol standard consistent with an Ethernet standard tester, and the other end of the protocol conversion chip adopts a communication protocol that matches the rate of the SerDes interface to be tested; The protocol port of the protocol conversion chip is configured, and the protocol conversion chip is connected to the Ethernet standard tester and the SerDes interface to be tested respectively according to the protocol port configuration information.
3. The method for measuring the transmission and reception delay of a SerDes interface supporting multiple protocols according to claim 2, characterized in that: Configure the protocol port of the protocol conversion chip, including: One protocol port of the protocol conversion chip is configured as a communication protocol consistent with a standard Ethernet port, and another protocol port is configured as a communication protocol consistent with the SerDes interface to be tested; and a forwarding route between the two protocol ports is configured in the protocol conversion chip.
4. The method for measuring the transmission and reception delay of a SerDes interface supporting multiple protocols according to claim 1, 2 or 3, characterized in that: Use Ethernet standard tester to measure the timestamps carried in the sent and received messages, including: Building a first measurement environment based on a first loopback mode of the SerDes to be tested, sending an Ethernet message using an Ethernet standard tester in the first measurement environment, and obtaining a first routing timestamp of the Ethernet message in the first measurement environment; A second measurement environment is established based on the second loopback mode of the SerDes to be tested, an Ethernet message is sent using an Ethernet standard tester in the second measurement environment, and a second routing timestamp of the Ethernet message in the second measurement environment is obtained.
5. The method for measuring the transmission and reception delay of a SerDes interface supporting multiple protocols according to claim 4, characterized in that: The first loopback mode is a Tx2Rx loopback mode, and the second loopback mode is an Rx2Tx loopback mode.
6. The method for measuring the transmission and reception delay of a SerDes interface supporting multiple protocols according to claim 4, characterized in that: Determine the SerDes interface transmit and receive delay based on the timestamp in the transmitted and received messages, including: Based on the first routing timestamp and the second routing timestamp, the total delay of the receiving end and the transmitting end of the SerDes interface under test is obtained according to the difference between the two timestamps.
7. The method for measuring the transmission and reception delay of a SerDes interface supporting multiple protocols according to claim 1, characterized in that: Also includes: Configure the tested SerDes interface to other communication protocols, update the protocol port configuration of the protocol conversion chip, and use an Ethernet standard tester to measure the timestamps carried in the sent and received messages to determine the sent and received delay of the tested SerDes interface under the current communication protocol configuration state.
8. A SerDes interface transceiver delay measurement system supporting multiple protocols, characterized in that: Contains: configuration module and measurement module, among which, A configuration module is used to set a protocol conversion chip between the SerDes interface to be tested and the Ethernet standard tester, wherein the protocol conversion chip is used to perform protocol conversion on the communication protocol between the SerDes interface to be tested and the Ethernet standard tester; The measurement module is used to measure the timestamp carried in the sent and received messages using an Ethernet standard tester, and determine the SerDes interface sending and receiving delay based on the timestamp in the sent and received messages. The sent and received messages are Ethernet messages sent to the SerDes interface to be tested for delay testing.
9. An electronic device, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores a computer program, and the computer program can be executed by the at least one processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to any one of claims 1 to 7 can be implemented.
Citation Information
Cited By
Verification platform, method and equipment of high-speed serial interface physical IP (Internet Protocol) and medium
CN122021493A
High-speed serial interface physical ip verification platform, method, device and medium
CN122021493B
