WO2018214319A1 - Serdes link parameter debugging method and device, and computer storage medium - Google Patents

Serdes link parameter debugging method and device, and computer storage medium Download PDF

Info

Publication number
WO2018214319A1
WO2018214319A1 PCT/CN2017/099278 CN2017099278W WO2018214319A1 WO 2018214319 A1 WO2018214319 A1 WO 2018214319A1 CN 2017099278 W CN2017099278 W CN 2017099278W WO 2018214319 A1 WO2018214319 A1 WO 2018214319A1
Authority
WO
WIPO (PCT)
Prior art keywords
emphasis
parameter
parameters
training
combination
Prior art date
Application number
PCT/CN2017/099278
Other languages
French (fr)
Chinese (zh)
Inventor
李强
Original Assignee
深圳市中兴微电子技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Priority to KR1020197038332A priority Critical patent/KR102230236B1/en
Priority to RU2019143884A priority patent/RU2733809C9/en
Publication of WO2018214319A1 publication Critical patent/WO2018214319A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/37Decoding methods or techniques, not specific to the particular type of coding provided for in groups H03M13/03 - H03M13/35
    • H03M13/3707Adaptive decoding and hybrid decoding, e.g. decoding methods or techniques providing more than one decoding algorithm for one code
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M9/00Parallel/series conversion or vice versa

Definitions

  • the invention belongs to the field of SerDes communication application, and particularly relates to a SerDes link parameter debugging method, device and computer storage medium.
  • SERDES is an abbreviation for SERializer/DESerializer. It is a Time Division Multiplexing (TDM), point-to-point (P2P) serial communication technology, including multiple low-speed parallel signals transmitted to high-speed serial signals at the transmitting end, through a transmission medium (such as fiber optic cable or copper). Line), and finally the high-speed serial signal is reconverted to a low-speed parallel signal at the receiving end.
  • TDM Time Division Multiplexing
  • This point-to-point serial communication technology makes full use of the channel capacity of the transmission medium, reduces the number of transmission channels and device pins required, thereby greatly reducing communication costs, and is widely used in various large switches and router devices.
  • the improvement of transmission performance
  • embodiments of the present invention are expected to provide a SerDes link parameter debugging method, apparatus, and computer storage medium to ensure even improve the stability of high-speed data transmission.
  • an embodiment of the present invention provides a method for debugging a SerDes link parameter, where the method includes:
  • Determining a pre-emphasis parameter range performing training on the transmitting side of the high-speed parallel/parallel-serial converter according to the pre-emphasis parameter range, the forward error correction method, and the check code to obtain a pre-emphasis configuration parameter;
  • the codec mode includes at least one of the following codec modes: an 8B codec mode, a 10B codec mode, a 64B codec mode, and a 66B codec mode.
  • the forward error correction method is an RS-FEC forward error correction method
  • the check code is a CRC16 check code
  • the training according to the pre-emphasis parameter range, the forward error correction method, and the check code to be debugged on the transmitting side of the high-speed serial/parallel-to-serial converter includes:
  • the verification is restored according to the forward error correction method; if a CRC error occurs during the restoration verification, it is determined that the selected combination of pre-emphasis parameters is unavailable.
  • the training direction selects a combination of another set of pre-emphasis parameters as a transmission side configuration parameter of the high speed serial/parallel converter to be debugged, on the receiving side of the high speed serial/parallel converter to be debugged, according to the The forward error correction method restores the verification; no CRC error occurs during the restoration verification process;
  • the method in the process of determining the pre-emphasis configuration parameter and the adaptive configuration parameter, includes a timing control, and the method includes:
  • the preset duration is extended, and the receiving side of the SerDes link having the communication relationship is sent to the receiving side to start the adaptive parameter configuration.
  • the receiving side of any of the SerDes links still has a CRC error, and after the receiving side is trained by the equalization parameter, the restoration verification process still appears. If the CRC reports an error, the SerDes link is marked as unavailable.
  • the embodiment of the present invention further provides a SerDes link parameter debugging device, where the device includes: a determining unit, a first training unit, and a second training unit; wherein
  • the determining unit is configured to determine a codec mode based on a link clock and a channel characteristic; determine a forward error correction method and a check code; and further configured to determine a pre-emphasis parameter range;
  • the first training unit is configured to perform training according to the pre-emphasis parameter range, the forward error correction method, and the check code to debug the transmitting side of the high-speed serial/parallel-to-serial converter, to obtain pre-emphasis configuration parameters;
  • the second training unit is configured to perform equalization parameter training on the receiving side of the high speed serial/parallel converter to be debugged after the first training unit determines the pre-emphasis configuration parameter, to obtain an adaptive configuration. parameter.
  • the first training unit is configured to set a selection range of pre-emphasis parameters, and select, according to the training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameters, as the waiting Debugging a transmission side configuration parameter of the high speed serial/parallel converter; on the receiving side of the high speed serial/parallel converter to be debugged, restoring the verification according to the forward error correction method; A CRC error occurs, determining that the selected combination of pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the current training direction, and selecting a combination of another set of pre-emphasis parameters as the high speed to be debugged according to the new training direction.
  • a CRC error occurs; traversing all pre-emphasis parameters in the range of pre-emphasis parameters, and recording a combination of pre-emphasis parameters of the restoration check without CRC error is determined as a combination of available pre-emphasis parameters; Traversing the SerDes link, obtaining a combination of pre-emphasis parameters available in the SerDes link, and finding a combination of pre-emphasis parameters available for a set of SerDes links as pre-emphasis configuration parameters.
  • An embodiment of the present invention further provides a SerDes link parameter debugging apparatus, including: a processor and a memory for storing a computer program capable of running on a processor, wherein when the processor is used to run the computer program, The steps of the SerDes link parameter debugging method in the embodiment of the present invention are performed.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the SerDes link parameter debugging method according to the embodiment of the invention.
  • the method and device for debugging the SerDes link parameters and the computer storage medium provided by the embodiments of the present invention perform training on pre-emphasis parameters on the transmitting side and training adjustment adjustment on the receiving side on the receiving side.
  • the embodiments of the present invention are applicable to various router backplanes, and implement automatic debugging of each link parameter for a high-rate SerDes link.
  • FIG. 1 is a schematic flowchart of a method for debugging a SerDes link parameter according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a back-tracking of a training side of a transmitting side according to the present invention
  • FIG. 3 is a schematic diagram of a timing control process of the present invention.
  • FIG. 1 is a schematic flowchart of a method for debugging a SerDes link parameter according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
  • Step 1 determining a codec mode based on a link clock and a channel characteristic; determining a forward error correction method and a check code;
  • Step 2 determining a pre-emphasis parameter range, according to the pre-emphasis parameter range, the forward correction
  • the wrong method and the check code are used to train the transmitting side (ie, the TX side) of the high speed serial/parallel converter to be debugged, to obtain pre-emphasis configuration parameters;
  • Step 3 After determining the pre-emphasis configuration parameter, perform equalization parameter training on the receiving side (ie, the RX side) of the high-speed serial/parallel-to-serial converter to be debugged, to obtain an adaptive configuration parameter.
  • the SerDes link parameter debugging method in the embodiment of the present invention can be applied to a test device. Before performing the SerDes link parameter debugging method in the embodiment of the present invention, it is first necessary to establish a test device and a high-speed SerDes to be debugged.
  • the codec mode includes at least one of the following codec modes: 8B codec mode, 10B codec mode, 64B codec mode, 66B codec mode.
  • the codec mode may select a 64B/66B codec mode. Compared with the 8B/10B codec mode, the 64B/66B codec mode can ensure the data length integrity and data encoding efficiency, and can meet the bandwidth requirements of large switches and routers in high-speed data transmission, and reduce the data transmission process. Lost.
  • the Forward Error Correction (FEC) method can select the RS-FEC forward error correction method, where RS is the abbreviation of the code, and the English is called Reed-Solomon codes.
  • the check code can be selected as a CRC16 check code.
  • RS-FEC forward error correction method and CRC16 check mark can be used to enhance data adaptation and fault tolerance.
  • the data length of each frame of the RS may be 528 bits, and the information bit is 514 bits.
  • This error correction method can ensure burst error correction capability of 10 bits or even 70 bits continuously in one frame data transmission.
  • each frame of data is marked with a check mark (for example, a CRC check mark) according to the above rules according to the contents of the frame data stream.
  • a check mark for example, a CRC check mark
  • the transmitting side of the high speed serial/parallel converter to be debugged is performed according to the pre-emphasis parameter range, the forward error correction method, and the check code.
  • Train to get pre-emphasis configuration parameters including:
  • Step 201 Set a selection range of the pre-emphasis parameter, and select, according to the training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameter, as the transmitting side of the high-speed serial/parallel converter to be debugged a configuration parameter, where the sending side sends a message based on the configuration parameter and the determined codec mode;
  • Step 202 On the receiving side of the high-speed serial/parallel-to-serial converter to be debugged, restore and verify the message according to the forward error correction method; if a CRC error occurs during the verification process, determine the selected The combination of pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the combination of the pre-emphasis parameters selected this time, jumping to step 201, selecting a combination of another set of pre-emphasis parameters according to the new training direction as described
  • the transmitting side configuration parameter of the high speed serial/parallel converter to be debugged is re-restored according to the forward error correction method on the receiving side of the high speed serial/parallel converter to be debugged; otherwise, if the restoration is performed If the CRC error does not occur during the verification process, the process proceeds to step 203;
  • Step 203 traversing the pre-emphasis parameter in the pre-emphasis parameter range according to the method of step 201 to step 202, and recording a combination of the pre-emphasis parameter of the restoration check without CRC error is confirmed as a combination of available pre-emphasis parameters;
  • Step 204 Based on the method of step 201 to step 203, traverse all the SerDes links, and obtain a combination of pre-emphasis parameters available in all SerDes links as pre-emphasis configuration parameters.
  • the combination of available pre-emphasis parameters as pre-emphasis configuration parameters is at least two groups, a combination of one of the available pre-emphasis parameters may be searched for as a pre-emphasis configuration parameter.
  • the equalization parameter training is performed on the receiving side of the high speed serial/parallel converter to be debugged, including:
  • the coupling capacitor will cause voltage fluctuation on the receiving side, which will interfere with the received signal, and the clock will be unstable.
  • the link traces on the backplane will generate different link channel insertion loss; the transmitter will have high-intensity or low-intensity signals.
  • the training that causes the gain on the receiving side will be invalid.
  • the receiving side can set the coupling capacitor to terminate at a high impedance point to eliminate the influence of the capacitor, otherwise it will not be configured;
  • the DAC adaptive algorithm of the link itself can be turned off, and the manual configuration equalization parameters are used to ensure the signal. Convergence and smoothing;
  • the gain control can be turned off, the Peaking control, and the appropriate equalization parameters can be adjusted by manually setting the gain parameter and the peaking value;
  • the DFE training mode can be adjusted, and the improvement is adjusted by the configuration and training of the order parameters;
  • FIG. 3 is a schematic diagram of the two sequenced control steps in the process of determining the pre-emphasis configuration parameters and the adaptive configuration parameters in the process of determining the pre-emphasis configuration parameters and the adaptive configuration parameters, including:
  • Step a Lane_A reports the notification that the link transmitting side starts pre-emphasis configuration to the Lane_B link in which the communication relationship exists, and Lane_B also reports to Lane_A that the link transmitting side starts pre-emphasis configuration.
  • Step b The transmitting side of the Lane_A and Lane_B links are in the order of the foregoing steps 201 to 204, and the transmitting side pre-emphasis configuration parameters of the Lane_A and Lane_B links are completed. After the pre-emphasis configuration is completed, the receiving sides of the Lane_A and Lane_B links are self-contained. Before adapting to the equalization training and the restoration check, the preset duration (for example, 200 to 300 microseconds) may be delayed, and the adaptive receiving parameter of the link receiving side is sent to the opposite end (the receiving side of the SerDes link having the communication relationship). Configured notifications;
  • step c the Lane_A and Lane_B links start to equalize the link, and the adaptive configuration parameters are obtained according to the method described in the foregoing step 3.
  • Lane_A and Lane_B links select and count the pre-emphasis configuration parameters on the transmitting side by using the FCE error correction flag on the receiving side as the criterion for determining whether the CRC error flag is generated.
  • This timing control mode ensures that the transmitting side is in effect first, and is slightly delayed, and then configures the receiving side parameters.
  • thousands of Serdes links are guaranteed, and the pre-emphasis parameters of the transmitting side and the adaptive parameters of the receiving side are sequentially implemented to enhance the stability of the backplane as a whole.
  • the advantages of the embodiments of the present invention are mainly as follows: starting from a high-rate data frame sent by the Serdes link, responding to burst errors of the link by coding and error correction on the link, and processing burst errors and erroneous data in time. Correction is performed to enhance the transmission efficiency of data frames.
  • the adaptive adjustment function of the receiving side Serdes the random convergence of the received data stream is achieved.
  • the converged code stream is a complete transmission message without bit disorder or modification, and the message in the link transmission is error-free. ERR, no signal interference or loss for the purpose of efficient and stable frame data reception. Further, this party
  • the method also ensures the accuracy and integrity of the data through the CRC check on the receiving side, and avoids frame loss caused by misjudgment during data processing and verification.
  • the embodiment of the present invention further provides a SerDes link parameter debugging device, where the device includes: a determining unit, a first training unit, and a second training unit; wherein
  • the determining unit is configured to determine a codec mode based on a link clock and a channel characteristic; determine a forward error correction method and a check code; and further configured to determine a pre-emphasis parameter range;
  • the first training unit is configured to perform training according to the pre-emphasis parameter range, the forward error correction method, and the check code to debug the transmitting side of the high-speed serial/parallel-to-serial converter, to obtain pre-emphasis configuration parameters;
  • the second training unit is configured to perform equalization parameter training on the receiving side of the high speed serial/parallel converter to be debugged after the first training unit determines the pre-emphasis configuration parameter, to obtain an adaptive configuration. parameter.
  • the codec mode includes at least one of the following codec modes: an 8B codec mode, a 10B codec mode, a 64B codec mode, and a 66B codec mode.
  • the first training unit is configured to set a selection range of pre-emphasis parameters, and select, according to the training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameters, as the Debugging a transmission side configuration parameter of the high speed serial/parallel converter; on the receiving side of the high speed serial/parallel converter to be debugged, restoring the verification according to the forward error correction method; A CRC error occurs, determining that the selected combination of pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the current training direction, and selecting a combination of another set of pre-emphasis parameters as the high speed to be debugged according to the new training direction.
  • a CRC error occurs; traversing all the pre-emphasis parameters in the pre-emphasis parameter range, and recording the pre-emphasis of the restoration check without CRC error
  • the combination of parameters is determined as a combination of available pre-emphasis parameters; traversing the SerDes link, obtaining a combination of pre-emphasis parameters available in the SerDes link, and finding a combination of pre-emphasis parameters available for a set of SerDes links as a pre-emphasis configuration parameter .
  • the second training unit is configured to select, at the first time, the combination of a set of pre-emphasis configuration parameters at the first training unit as the transmitting side of the high-speed serial/parallel converter to be debugged.
  • the preset duration is delayed before the restoration check of the high-speed serial/parallel converter to be debugged, and the preset duration is any one of 200 to 300 microseconds. .
  • the apparatus further includes: a sending unit, configured to send, to the SerDes link that has a communication relationship, a notification that the link sending side starts pre-emphasis configuration;
  • the first training unit is configured to select a combination of pre-emphasis configuration parameters as the pre-emphasis configuration parameter on the transmitting side of the link, and delay the preset duration;
  • the sending unit is further configured to send, to the receiving side of the SerDes link in which the communication relationship exists, a notification that the link receiving side starts adaptive parameter configuration;
  • the second training unit is configured to perform the equalization parameter training on the receiving side of the link after the first training unit determines the pre-emphasis configuration parameter, to obtain an adaptive configuration parameter.
  • the determining unit, the first training unit, and the second training unit may be implemented by a central processing unit (CPU), a microprocessor (MPU, a digital processor unit), and a digital signal in practical applications.
  • CPU central processing unit
  • MPU microprocessor
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • SerDes link parameter debugging apparatus provided in the foregoing embodiment is only illustrated by the division of each of the foregoing program modules when performing link parameter debugging. In actual applications, the foregoing processing may be assigned differently according to requirements.
  • the program module is completed, that is, the internal structure of the SerDes link parameter debugging device is divided into different program modules to complete all the above descriptions. Or partial processing.
  • the SerDes link parameter debugging device and the SerDes link parameter debugging method are provided in the same embodiment, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • An embodiment of the present invention further provides a SerDes link parameter debugging apparatus, including: a processor and a memory for storing a computer program capable of running on a processor, wherein when the processor is used to run the computer program, Execution: determining a codec mode based on a link clock and channel characteristics; determining a forward error correction method and a check code; determining a pre-emphasis parameter range, according to the pre-emphasis parameter range, the forward error correction method, and a check code Performing training on the transmitting side of the debug high speed serial/parallel converter to obtain pre-emphasis configuration parameters; after determining the pre-emphasis configuration parameters, balancing the receiving side of the high-speed serial/parallel converter to be debugged Parameter training, get adaptive configuration parameters.
  • a SerDes link parameter debugging apparatus including: a processor and a memory for storing a computer program capable of running on a processor, wherein when the processor is used to run
  • the processor when the processor is configured to run the computer program, performing: setting a selection range of pre-emphasis parameters, and selecting a combination of a set of pre-emphasis parameters from a selection range of the pre-emphasis parameters according to a training direction
  • a transmission side configuration parameter of the high speed serial/parallel converter to be debugged As a transmission side configuration parameter of the high speed serial/parallel converter to be debugged; on the receiving side of the high speed serial/parallel converter to be debugged, the verification is restored according to the forward error correction method;
  • a CRC error occurs during the restoration check process, and it is determined that the combination of the selected pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the current training direction, and selecting another combination of pre-emphasis parameters according to the new training direction.
  • the processor when used to run the computer program, perform: Each time a combination of a set of pre-emphasis configuration parameters is selected as the pre-emphasis configuration parameter of the transmitting side of the high-speed serial/parallel-to-serial converter to be debugged, on the receiving side of the high-speed serial/parallel converter to be debugged Before the restoration check is performed, the preset duration is delayed, and the preset duration is any one of 200 to 300 microseconds.
  • the processor when configured to run the computer program, perform: to a SerDes link having a communication relationship, in determining a pre-emphasis configuration parameter and an adaptive configuration parameter, to a SerDes having a communication relationship
  • the link sends a notification that the transmitting side of the link starts pre-emphasis configuration; after selecting a combination of a set of pre-emphasis configuration parameters as the pre-emphasis configuration parameter of the transmitting side of the link, delaying the preset duration to the SerDes chain having the communication relationship
  • the receiving side of the path sends a notification that the receiving side of the link starts to configure the adaptive parameter.
  • the receiving side of the link After determining the pre-emphasis configuration parameter, the receiving side of the link is trained on the equalization parameter to obtain an adaptive configuration parameter.
  • the processor when configured to run the computer program, if: after traversing all pre-emphasis parameters, a CRC error occurs on a receiving side of any one of the SerDes links, and the receiving side is balanced. After the parameter training, the restore verification process is marked as CRC error, indicating that the SerDes link is unavailable.
  • the memory may be implemented by any type of volatile or non-volatile storage device, or a combination thereof.
  • the non-volatile memory may be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), or an Erasable Programmable Read (EPROM). Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, Magnetic Surface Memory , CD-ROM, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface memory can be a disk storage or a tape storage.
  • the volatile memory may be a random access memory (RAM), which is used as External cache.
  • RAM Random Access Memory
  • SRAM Static Random Access Memory
  • SSRAM Synchronous Static Random Access Memory
  • SSRAM Dynamic Random Access
  • DRAM Dynamic Random Access Memory
  • SDRAM Synchronous Dynamic Random Access Memory
  • DDRSDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • ESDRAM enhancement Enhanced Synchronous Dynamic Random Access Memory
  • SLDRAM Synchronous Dynamic Random Access Memory
  • DRRAM Direct Memory Bus Random Access Memory
  • the memory is used to store various types of data to support the operation of the SerDes link parameter debugging device. Examples of such data include any computer program for operation on a SerDes link parameter debug device.
  • the operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks.
  • the application can include various applications, such as a Media Player, a Browser, etc., for implementing various application services.
  • a program implementing the method of the embodiment of the present invention may be included in an application.
  • the processor in the SerDes link parameter debugging device may be an integrated circuit chip with signal processing capability.
  • each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software.
  • the above described processor may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like.
  • the processor may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention.
  • a general purpose processor can be a microprocessor or any conventional processor or the like.
  • the steps of the method disclosed in the embodiment of the present invention may be directly implemented as a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a storage medium, the storage medium being located in the memory, the processor reading the information in the memory, and completing the steps of the foregoing methods in combination with the hardware thereof.
  • the SerDes link parameter debugging device may be configured by at least one Application Specific Integrated Circuit (ASIC), DSP, Programmable Logic Device (PLD), and Complex Programmable Logic Device (CPLD (Complex Programmable Logic Device), FPGA, general purpose processor, controller, MCU, microprocessor, or other electronic component implementation for performing the aforementioned method.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal processor
  • PLD Programmable Logic Device
  • CPLD Complex Programmable Logic Device
  • FPGA general purpose processor
  • controller controller
  • MCU microprocessor
  • An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing: determining a codec mode based on a link clock and a channel characteristic; a method for correcting errors and a check code; determining a range of pre-emphasis parameters, and training the transmitting side of the high-speed serial/parallel-to-serial converter according to the pre-emphasis parameter range, the forward error correction method, and the check code, Obtaining a pre-emphasis configuration parameter; after determining the pre-emphasis configuration parameter, performing equalization parameter training on the receiving side of the high-speed serial/parallel-to-serial converter to be debugged, to obtain an adaptive configuration parameter.
  • the computer executable instructions are configured to: set a selection range of pre-emphasis parameters, and select, according to a training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameters, as a transmission side configuration parameter of the high speed serial/parallel converter to be debugged; on the receiving side of the high speed serial/parallel converter to be debugged, the verification is restored according to the forward error correction method; if the verification process is restored A CRC error occurs, determining that the selected combination of pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the current training direction, and selecting another combination of pre-emphasis parameters as the to-be-commissioned according to the new training direction.
  • a transmission side configuration parameter of the high speed serial/parallel converter on the receiving side of the high speed serial/parallel converter to be debugged, re-restoring the verification according to the forward error correction method; until the restoration verification process No CRC error occurred;
  • a combination of all pre-emphasis parameters in the pre-emphasis parameter range, a record of the pre-emphasis parameter that records the restoration check and no CRC error is determined as a combination of available pre-emphasis parameters; traversing the SerDes link to obtain pre-emphasis available in the SerDes link
  • the computer executable instructions are configured to: each time select a combination of a set of pre-emphasis configuration parameters as a pre-emphasis configuration parameter of a transmitting side of the high speed serial/parallel converter to be debugged, Before the restoration check of the high-speed serial/parallel converter to be debugged, the preset duration is delayed, and the preset duration is any one of 200 to 300 microseconds.
  • the computer executable instructions are configured to: in the process of determining a pre-emphasis configuration parameter and an adaptive configuration parameter for a SerDes link having a communication relationship, sending the present to a SerDes link having a communication relationship
  • the link sending side starts the pre-emphasis configuration notification; after selecting a combination of a set of pre-emphasis configuration parameters as the pre-emphasis configuration parameter of the transmitting side of the link, delaying the preset duration to the receiving side of the SerDes link having the communication relationship Sending a notification that the receiving side of the link starts adaptive parameter configuration; after determining the pre-emphasis configuration parameter, performing equalization parameter training on the receiving side of the link to obtain an adaptive configuration parameter.
  • the computer executable instructions are configured to: after traversing all the pre-emphasis parameters, a CRC error occurs on the receiving side of any one of the SerDes links, and the receiving side is trained by the equalization parameter.
  • the restore verification process marks the SerDes link as unavailable due to a CRC error.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the various components shown or discussed may be through some interface, device or unit.
  • the indirect coupling or communication connection can be electrical, mechanical or other form.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
  • the technical solution of the embodiment of the present invention starts from a high-rate data frame sent by the Serdes link, and responds to a burst error of the link by coding and error correction on the link, and timely processes the burst error and corrects the error data. Enhance the transmission efficiency of data frames.
  • the adaptive adjustment function of the receiving side Serdes the random convergence of the received data stream is achieved.
  • the converged code stream is a complete transmission message without bit disorder or modification, and the message in the link transmission is error-free. ERR, no signal interference or loss for the purpose of efficient and stable frame data reception.
  • the method also ensures the accuracy and integrity of the data by the CRC check on the receiving side, and avoids frame loss caused by misjudgment during data processing and verification.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

Disclosed are a SerDes link parameter debugging method and device, and a computer storage medium. The method involves: based on a link clock and a channel characteristic, determining a codec mode; determining a forward error correction method and a check code; determining a pre-emphasis parameter range, and according to the pre-emphasis parameter range, the forward error correction method and the check code, training a sending side of a high-speed serial-to-parallel/parallel-to-serial converter to be debugged so as to obtain a pre-emphasis configuration parameter; and after determining the pre-emphasis configuration parameter, carrying out equalization parameter training on a receiving side of the high-speed serial-to-parallel/parallel-to-serial converter to be debugged so as to obtain a self-adaptive configuration parameter.

Description

一种SerDes链路参数调试方法、装置和计算机存储介质SerDes link parameter debugging method, device and computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201710386821.7、申请日为2017年05月26日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此以引入方式并入本申请。The present application is based on a Chinese patent application filed on Jan. 26, 2017, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明属于SerDes通信应用领域,具体涉及一种SerDes链路参数调试方法、装置和计算机存储介质。The invention belongs to the field of SerDes communication application, and particularly relates to a SerDes link parameter debugging method, device and computer storage medium.
背景技术Background technique
伴随着宽带需求和业务规模的提升,对数据的高效传输提出了更高的要求,而在高速率通道下的数据传输中保证数据传输的稳定性是实现高效数据传输关键。With the increase of broadband demand and service scale, higher requirements are put forward for efficient data transmission, and the stability of data transmission in data transmission under high-rate channel is the key to achieve efficient data transmission.
SERDES是串行器(SERializer)/解串器(DESerializer)的简称。它是一种时分复用(TDM,Time Division Multiplexing)、点对点(P2P)的串行通信技术,包括在发送端多路低速并行信号被转换成高速串行信号,经过传输媒体(例如光缆或铜线),最后在接收端高速串行信号重新转换成低速并行信号。这种点对点的串行通信技术充分利用传输媒体的信道容量,减少所需的传输信道和器件引脚数目,从而大大降低通信成本,在各种大型交换机、路由器设备中广泛应用。然而传输性能的提高是伴随着严格的精度控制,所以如何在高速率下通过严格控制Serdes在运行中因环境及器件产生的偏差,从而保证甚至提升传输的稳定性,显得极为重要。 SERDES is an abbreviation for SERializer/DESerializer. It is a Time Division Multiplexing (TDM), point-to-point (P2P) serial communication technology, including multiple low-speed parallel signals transmitted to high-speed serial signals at the transmitting end, through a transmission medium (such as fiber optic cable or copper). Line), and finally the high-speed serial signal is reconverted to a low-speed parallel signal at the receiving end. This point-to-point serial communication technology makes full use of the channel capacity of the transmission medium, reduces the number of transmission channels and device pins required, thereby greatly reducing communication costs, and is widely used in various large switches and router devices. However, the improvement of transmission performance is accompanied by strict precision control. Therefore, it is extremely important to strictly control the deviation of the environment and the device caused by Serdes during operation at high speed to ensure or even improve the stability of transmission.
发明内容Summary of the invention
为了解决现有技术存在的不足,本发明实施例期望提供一种SerDes链路参数调试方法、装置和计算机存储介质,以保证甚至提升高速数据传输的稳定性。In order to solve the deficiencies of the prior art, embodiments of the present invention are expected to provide a SerDes link parameter debugging method, apparatus, and computer storage medium to ensure even improve the stability of high-speed data transmission.
为实现上述目的,本发明实施例提出一种SerDes链路参数调试方法,所述方法包括:To achieve the above object, an embodiment of the present invention provides a method for debugging a SerDes link parameter, where the method includes:
基于链路时钟与信道特性确定编解码模式;确定前向纠错方法及校验码;Determining a codec mode based on a link clock and channel characteristics; determining a forward error correction method and a check code;
确定预加重参数范围,根据所述预加重参数范围、所述前向纠错方法和校验码对待调试高速并/并串转换器的发送侧进行训练,得到预加重配置参数;Determining a pre-emphasis parameter range, performing training on the transmitting side of the high-speed parallel/parallel-serial converter according to the pre-emphasis parameter range, the forward error correction method, and the check code to obtain a pre-emphasis configuration parameter;
在确定所述预加重配置参数后,对所述待调试高速串并/并串转换器的接收侧进行均衡参数训练,得到自适应配置参数。After determining the pre-emphasis configuration parameter, performing equalization parameter training on the receiving side of the high-speed serial/parallel-to-serial converter to be debugged, to obtain an adaptive configuration parameter.
在一实施例中,所述编解码模式包括以下编解码模式的至少之一:8B编解码模式、10B编解码模式、64B编解码模式、66B编解码模式。In an embodiment, the codec mode includes at least one of the following codec modes: an 8B codec mode, a 10B codec mode, a 64B codec mode, and a 66B codec mode.
在一实施例中,所述前向纠错方法为RS-FEC前向纠错方法;所述校验码为CRC16校验码。In an embodiment, the forward error correction method is an RS-FEC forward error correction method; and the check code is a CRC16 check code.
在一实施例中,所述根据所述预加重参数范围、所述前向纠错方法和校验码对待调试高速串并/并串转换器的发送侧进行训练,包括:In an embodiment, the training according to the pre-emphasis parameter range, the forward error correction method, and the check code to be debugged on the transmitting side of the high-speed serial/parallel-to-serial converter includes:
设置预加重参数的选择范围,根据训练方向,从所述预加重参数的选择范围内选择一组预加重参数的组合,作为所述待调试高速串并/并串转换器的发送侧配置参数;Setting a selection range of the pre-emphasis parameter, and selecting, according to the training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameter as a transmission side configuration parameter of the high-speed serial/parallel-to-serial converter to be debugged;
在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法还原校验;若还原校验过程中出现CRC报错,确定所选择的预加重参数的组合不可用,回溯至与本次训练方向相反或并行的训练方向,按照新的训 练方向选择另一组预加重参数的组合作为所述待调试高速串并/并串转换器的发送侧配置参数,在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法重新还原校验;直至还原校验过程中未出现CRC报错;On the receiving side of the high speed serial/parallel converter to be debugged, the verification is restored according to the forward error correction method; if a CRC error occurs during the restoration verification, it is determined that the selected combination of pre-emphasis parameters is unavailable. Back to the training direction opposite or parallel to the training direction, according to the new training The training direction selects a combination of another set of pre-emphasis parameters as a transmission side configuration parameter of the high speed serial/parallel converter to be debugged, on the receiving side of the high speed serial/parallel converter to be debugged, according to the The forward error correction method restores the verification; no CRC error occurs during the restoration verification process;
遍历所述预加重参数范围中的全部预加重参数,记录还原校验无CRC报错的预加重参数的组合确定为可用预加重参数的组合;Traversing all of the pre-emphasis parameters in the pre-emphasis parameter range, and recording a combination of the pre-emphasis parameters of the restoration check and no CRC error is determined as a combination of available pre-emphasis parameters;
遍历SerDes链路,获取SerDes链路中可用的预加重参数的组合,查找一组SerDes链路均可用的预加重参数的组合,作为预加重配置参数。Traversing the SerDes link, obtaining a combination of pre-emphasis parameters available in the SerDes link, and finding a combination of pre-emphasis parameters available for a set of SerDes links as pre-emphasis configuration parameters.
在一实施例中,每次选择一组预加重配置参数的组合作为所述待调试高速串并/并串转换器的发送侧的预加重配置参数后,在所述待调试高速串并/并串转换器的接收侧进行自适应均衡训练之前,延时预设时长,所述预设时长为200至300微秒中的任一时长。In an embodiment, each time a combination of a set of pre-emphasis configuration parameters is selected as the pre-emphasis configuration parameter of the transmitting side of the high-speed serial/parallel-to-serial converter to be debugged, Before the receiving side of the string converter performs adaptive equalization training, the preset duration is delayed, and the preset duration is any one of 200 to 300 microseconds.
在一实施例中,对于存在通信关系的SerDes链路,在确定预加重配置参数和自适应配置参数的过程中,还包括时序控制,具体包括:In an embodiment, in the process of determining the pre-emphasis configuration parameter and the adaptive configuration parameter, the method includes a timing control, and the method includes:
向存在通信关系的SerDes链路发送本链路发送侧开始预加重配置的通知;Sending a notification that the link transmitting side starts pre-emphasis configuration to the SerDes link in which the communication relationship exists;
选择一组预加重配置参数的组合作为本链路发送侧的预加重配置参数后,延预设时长,向存在通信关系的SerDes链路的接收侧发送本链路接收侧开始自适应参数配置的通知;After a combination of a set of pre-emphasis configuration parameters is selected as the pre-emphasis configuration parameter on the transmitting side of the link, the preset duration is extended, and the receiving side of the SerDes link having the communication relationship is sent to the receiving side to start the adaptive parameter configuration. Notice;
在确定所述预加重配置参数后,对本链路的接收侧进行均衡参数训练,得到自适应配置参数。After determining the pre-emphasis configuration parameter, performing equalization parameter training on the receiving side of the link to obtain an adaptive configuration parameter.
在一实施例中,若遍历全部选择范围内的预加重参数后,任一所述SerDes链路的接收侧仍出现CRC报错,且所述接收侧经过均衡参数训练后,还原校验过程依然出现CRC报错,则标记该SerDes链路不可用。In an embodiment, after traversing the pre-emphasis parameters in all the selected ranges, the receiving side of any of the SerDes links still has a CRC error, and after the receiving side is trained by the equalization parameter, the restoration verification process still appears. If the CRC reports an error, the SerDes link is marked as unavailable.
本发明实施例还提供了一种SerDes链路参数调试装置,所述装置包括:确定单元、第一训练单元和第二训练单元;其中, The embodiment of the present invention further provides a SerDes link parameter debugging device, where the device includes: a determining unit, a first training unit, and a second training unit; wherein
所述确定单元,配置为基于链路时钟与信道特性确定编解码模式;确定前向纠错方法及校验码;还配置为确定预加重参数范围;The determining unit is configured to determine a codec mode based on a link clock and a channel characteristic; determine a forward error correction method and a check code; and further configured to determine a pre-emphasis parameter range;
所述第一训练单元,配置为根据所述预加重参数范围、所述前向纠错方法和校验码对待调试高速串并/并串转换器的发送侧进行训练,得到预加重配置参数;The first training unit is configured to perform training according to the pre-emphasis parameter range, the forward error correction method, and the check code to debug the transmitting side of the high-speed serial/parallel-to-serial converter, to obtain pre-emphasis configuration parameters;
所述第二训练单元,配置为在所述第一训练单元确定所述预加重配置参数后,对所述待调试高速串并/并串转换器的接收侧进行均衡参数训练,得到自适应配置参数。The second training unit is configured to perform equalization parameter training on the receiving side of the high speed serial/parallel converter to be debugged after the first training unit determines the pre-emphasis configuration parameter, to obtain an adaptive configuration. parameter.
在一实施例中,所述第一训练单元,配置为设置预加重参数的选择范围,根据训练方向,从所述预加重参数的选择范围内选择一组预加重参数的组合,作为所述待调试高速串并/并串转换器的发送侧配置参数;在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法还原校验;若还原校验过程中出现CRC报错,确定所选择的预加重参数的组合不可用,回溯至与本次训练方向相反或并行的训练方向,按照新的训练方向选择另一组预加重参数的组合作为所述待调试高速串并/并串转换器的发送侧配置参数,在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法重新还原校验;直至还原校验过程中未出现CRC报错;遍历所述预加重参数范围中的全部预加重参数,记录还原校验无CRC报错的预加重参数的组合确定为可用预加重参数的组合;遍历SerDes链路,获取SerDes链路中可用的预加重参数的组合,查找一组SerDes链路均可用的预加重参数的组合,作为预加重配置参数。In an embodiment, the first training unit is configured to set a selection range of pre-emphasis parameters, and select, according to the training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameters, as the waiting Debugging a transmission side configuration parameter of the high speed serial/parallel converter; on the receiving side of the high speed serial/parallel converter to be debugged, restoring the verification according to the forward error correction method; A CRC error occurs, determining that the selected combination of pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the current training direction, and selecting a combination of another set of pre-emphasis parameters as the high speed to be debugged according to the new training direction. Transmitting side configuration parameters of the serial/parallel converter, on the receiving side of the high speed serial/parallel converter to be debugged, re-restoring the verification according to the forward error correction method; A CRC error occurs; traversing all pre-emphasis parameters in the range of pre-emphasis parameters, and recording a combination of pre-emphasis parameters of the restoration check without CRC error is determined as a combination of available pre-emphasis parameters; Traversing the SerDes link, obtaining a combination of pre-emphasis parameters available in the SerDes link, and finding a combination of pre-emphasis parameters available for a set of SerDes links as pre-emphasis configuration parameters.
本发明实施例还提供了一种SerDes链路参数调试装置,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行本发明实施例所述SerDes链路参数调试方法的步骤。 An embodiment of the present invention further provides a SerDes link parameter debugging apparatus, including: a processor and a memory for storing a computer program capable of running on a processor, wherein when the processor is used to run the computer program, The steps of the SerDes link parameter debugging method in the embodiment of the present invention are performed.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的SerDes链路参数调试方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the SerDes link parameter debugging method according to the embodiment of the invention.
本发明实施例提供的SerDes链路参数调试方法、装置和计算机存储介质,对发送侧进行预加重参数的训练,对接收侧进行均衡参数训练调整。通过严格控制配置参数避免因链路双向通信所产生的干扰,从而避免链路参数配置过程中出现偏差,进一步保证了所设置的链路参数的准确性,从而保证甚至提升传输的稳定性。本发明实施例可适用于各种路由器背板,并针对高速率SerDes链路实现对各链路参数的自动调试。The method and device for debugging the SerDes link parameters and the computer storage medium provided by the embodiments of the present invention perform training on pre-emphasis parameters on the transmitting side and training adjustment adjustment on the receiving side on the receiving side. By strictly controlling the configuration parameters to avoid interference caused by the two-way communication of the link, the deviation in the link parameter configuration process is avoided, and the accuracy of the set link parameters is further ensured, thereby ensuring and even improving the stability of the transmission. The embodiments of the present invention are applicable to various router backplanes, and implement automatic debugging of each link parameter for a high-rate SerDes link.
附图说明DRAWINGS
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,并与本发明的实施例一起,用于解释本发明,并不构成对本发明的限制。在附图中:The drawings are intended to provide a further understanding of the invention, and are intended to be a part of the description of the invention. In the drawing:
图1为本发明实施例的SerDes链路参数调试方法的一种流程示意图;1 is a schematic flowchart of a method for debugging a SerDes link parameter according to an embodiment of the present invention;
图2为本发明的发送侧训练方向回溯示意图;2 is a schematic diagram of a back-tracking of a training side of a transmitting side according to the present invention;
图3为本发明的时序控制过程示意图。3 is a schematic diagram of a timing control process of the present invention.
具体实施方式detailed description
以下结合附图对本发明的优选实施例进行说明,应当理解,此处所描述的实施例仅用于说明和解释本发明,并不用于限定本发明。The preferred embodiments of the present invention are described in the following with reference to the accompanying drawings.
图1为本发明实施例的SerDes链路参数调试方法的一种流程示意图,如图1所示,所述方法包括:FIG. 1 is a schematic flowchart of a method for debugging a SerDes link parameter according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
步骤1,基于链路时钟与信道特性确定编解码模式;确定前向纠错方法及校验码;Step 1: determining a codec mode based on a link clock and a channel characteristic; determining a forward error correction method and a check code;
步骤2,确定预加重参数范围,根据所述预加重参数范围、所述前向纠 错方法和校验码对所述待调试高速串并/并串转换器的发送侧(即TX侧)进行训练,得到预加重配置参数; Step 2, determining a pre-emphasis parameter range, according to the pre-emphasis parameter range, the forward correction The wrong method and the check code are used to train the transmitting side (ie, the TX side) of the high speed serial/parallel converter to be debugged, to obtain pre-emphasis configuration parameters;
步骤3,在确定所述预加重配置参数后,对所述待调试高速串并/并串转换器的接收侧(即RX侧)进行均衡参数训练,得到自适应配置参数。Step 3: After determining the pre-emphasis configuration parameter, perform equalization parameter training on the receiving side (ie, the RX side) of the high-speed serial/parallel-to-serial converter to be debugged, to obtain an adaptive configuration parameter.
本发明实施例的SerDes链路参数调试方法可应用于测试设备中,在执行本发明实施例的SerDes链路参数调试方法之前,首先需要建立测试设备和待调试的高速SerDes。The SerDes link parameter debugging method in the embodiment of the present invention can be applied to a test device. Before performing the SerDes link parameter debugging method in the embodiment of the present invention, it is first necessary to establish a test device and a high-speed SerDes to be debugged.
本实施例中,基于链路时钟和信道的考虑,是为保证数据传输中数据流不被修改和干扰;其中,所述编解码模式包括以下编解码模式的至少之一:8B编解码模式、10B编解码模式、64B编解码模式、66B编解码模式。作为一种实施方式,所述编解码模式可选择64B/66B编解码模式。相比于8B/10B编解码模式,64B/66B编解码模式可以保证数据的长度完整性和数据编码的高效性,能够满足大型交换机、路由器设备在高速传输数据下的带宽要求,减少数据传输过程的丢失。In this embodiment, based on the consideration of the link clock and the channel, the data stream in the data transmission is not modified and interfered; wherein the codec mode includes at least one of the following codec modes: 8B codec mode, 10B codec mode, 64B codec mode, 66B codec mode. As an embodiment, the codec mode may select a 64B/66B codec mode. Compared with the 8B/10B codec mode, the 64B/66B codec mode can ensure the data length integrity and data encoding efficiency, and can meet the bandwidth requirements of large switches and routers in high-speed data transmission, and reduce the data transmission process. Lost.
前向纠错(FEC,Forward Error Correction)方法可选择RS-FEC前向纠错方法,其中RS为里所码的简称,其英文全称为Reed-Solomon codes。校验码可选择为CRC16校验码。选用RS-FEC前向纠错方法,配合CRC16校验标记可增强数据的适应和容错程度。本实施例中,RS的每帧数据长度可以为528bit,信息位为514bit,采用这种纠错方法可以保证一帧数据传输中连续10bit甚至最多连续70bit的突发纠错能力。The Forward Error Correction (FEC) method can select the RS-FEC forward error correction method, where RS is the abbreviation of the code, and the English is called Reed-Solomon codes. The check code can be selected as a CRC16 check code. RS-FEC forward error correction method and CRC16 check mark can be used to enhance data adaptation and fault tolerance. In this embodiment, the data length of each frame of the RS may be 528 bits, and the information bit is 514 bits. This error correction method can ensure burst error correction capability of 10 bits or even 70 bits continuously in one frame data transmission.
在TX侧发送的数据中,每一帧数据都根据帧数据流内容按照上述规则打上校验标记(例如CRC校验标记)。通过高速链路串行传输中的前向纠错方法(例如RS-FEC)纠正传输过程中可能的数据修改,在RX侧将该帧数据根据校验码(例如CRC16)的校验,检验该帧数据是否完整。如果该帧长度的数据通过RS码的纠错依然无法保证完整和无误,则CRC校验机 制则会将该帧数据丢弃。In the data transmitted by the TX side, each frame of data is marked with a check mark (for example, a CRC check mark) according to the above rules according to the contents of the frame data stream. Correcting possible data modification during transmission by a forward error correction method (such as RS-FEC) in high-speed link serial transmission, and verifying the frame data according to a check code (for example, CRC16) on the RX side. Whether the frame data is complete. If the data of the frame length cannot be guaranteed to be complete and error-free through the error correction of the RS code, the CRC checker The frame data will be discarded.
参照图2的训练、回溯方向示意图,本实施例中根据所述预加重参数范围、所述前向纠错方法和校验码对所述待调试高速串并/并串转换器的发送侧进行训练,得到预加重配置参数,包括:Referring to the training and backtracking direction diagram of FIG. 2, in the embodiment, the transmitting side of the high speed serial/parallel converter to be debugged is performed according to the pre-emphasis parameter range, the forward error correction method, and the check code. Train to get pre-emphasis configuration parameters, including:
步骤201,设置预加重参数的选择范围,根据训练方向,从所述预加重参数的选择范围内选择一组预加重参数的组合,作为所述待调试高速串并/并串转换器的发送侧配置参数,发送侧基于所述配置参数和确定的编解码模式发送报文;Step 201: Set a selection range of the pre-emphasis parameter, and select, according to the training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameter, as the transmitting side of the high-speed serial/parallel converter to be debugged a configuration parameter, where the sending side sends a message based on the configuration parameter and the determined codec mode;
步骤202,在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法还原校验所述报文;若还原校验过程中出现CRC报错,确定所选择的预加重参数的组合不可用,回溯至与本次所选择的预加重参数组合相反或并行的训练方向,跳转至步骤201,按照新的训练方向选择另一组预加重参数的组合作为所述待调试高速串并/并串转换器的发送侧配置参数,在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法重新还原校验;否则,若还原校验过程中未出现CRC报错,则跳转至步骤203;Step 202: On the receiving side of the high-speed serial/parallel-to-serial converter to be debugged, restore and verify the message according to the forward error correction method; if a CRC error occurs during the verification process, determine the selected The combination of pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the combination of the pre-emphasis parameters selected this time, jumping to step 201, selecting a combination of another set of pre-emphasis parameters according to the new training direction as described The transmitting side configuration parameter of the high speed serial/parallel converter to be debugged is re-restored according to the forward error correction method on the receiving side of the high speed serial/parallel converter to be debugged; otherwise, if the restoration is performed If the CRC error does not occur during the verification process, the process proceeds to step 203;
步骤203,按照步骤201至步骤202的方法遍历所述预加重参数范围中的预加重参数,记录还原校验无CRC报错的预加重参数的组合确认为可用预加重参数的组合;Step 203, traversing the pre-emphasis parameter in the pre-emphasis parameter range according to the method of step 201 to step 202, and recording a combination of the pre-emphasis parameter of the restoration check without CRC error is confirmed as a combination of available pre-emphasis parameters;
步骤204,基于步骤201至步骤203的方法,遍历所有SerDes链路,获取所有SerDes链路中可用的预加重参数的组合,作为预加重配置参数。作为一种实施方式,若作为预加重配置参数的可用的预加重参数的组合为至少两组,可以查找其中一组可用的预加重参数的组合,作为预加重配置参数。Step 204: Based on the method of step 201 to step 203, traverse all the SerDes links, and obtain a combination of pre-emphasis parameters available in all SerDes links as pre-emphasis configuration parameters. As an embodiment, if the combination of available pre-emphasis parameters as pre-emphasis configuration parameters is at least two groups, a combination of one of the available pre-emphasis parameters may be searched for as a pre-emphasis configuration parameter.
在实际的SerDes调试中,由于走线等原因引起的非规律性的变化,以RX侧进行FEC校验纠错计算时是否产生CRC报错为检测链路好坏的准则: 如果SerDes状况不跟随本体算法的规律变化,而是向变坏的方向发展,则会产生ERR标记。此时,该预加重参数的组合不符合要求,记录该预加重参数的组合不予使用,同时向相反或者相并行的方向选择另一组预加重参数的组合进行调整。这个调整过程就是一个回溯的过程。经过回溯算法的选择,并经过遍历,在遍历所有的链路后,寻找出一组适合所有链路的SerDes预加重参数的组合作为最终的预加重配置参数。In the actual SerDes debugging, due to the irregularity caused by the routing, etc., whether the CRC error is generated during the FEC check error correction calculation on the RX side is the criterion for detecting the link: If the SerDes condition does not follow the regular changes of the ontology algorithm, but develops in the direction of deterioration, an ERR flag is generated. At this time, the combination of the pre-emphasis parameters does not meet the requirements, and the combination of recording the pre-emphasis parameters is not used, and the combination of another set of pre-emphasis parameters is selected in the opposite or parallel direction for adjustment. This adjustment process is a retrospective process. After the selection of the backtracking algorithm and traversing, after traversing all the links, a set of SerDes pre-emphasis parameters suitable for all links is found as the final pre-emphasis configuration parameter.
本实施例对对所述待调试高速串并/并串转换器的接收侧进行均衡参数训练,包括:In this embodiment, the equalization parameter training is performed on the receiving side of the high speed serial/parallel converter to be debugged, including:
根据Serdes链路在接收侧的交流耦合电容配置、DFE训练模式的匹配、不同通道的插损以及高速率传输的电压功耗要求,以接收侧实际的信号是否完整和收敛为依据,选出一组均衡的自适应配置参数;According to the AC coupling capacitor configuration of the Serdes link, the matching of the DFE training mode, the insertion loss of different channels, and the voltage power consumption requirements of the high-rate transmission, based on whether the actual signal on the receiving side is complete and convergent, select one. Group-balanced adaptive configuration parameters;
耦合电容会造成接收侧电压波动,对接收信号产生干扰,易产生时钟的不稳定;背板的链路走线不同会产生不同的链路通道的插损;发送端高强度或低强度的信号会造成接收侧增益的训练失效。The coupling capacitor will cause voltage fluctuation on the receiving side, which will interfere with the received signal, and the clock will be unstable. The link traces on the backplane will generate different link channel insertion loss; the transmitter will have high-intensity or low-intensity signals. The training that causes the gain on the receiving side will be invalid.
因此,如果背板设计中存在耦合电容,接收侧可设置耦合电容终止于一个高阻抗点来消除电容的影响,否则不做配置;Therefore, if there is a coupling capacitor in the backplane design, the receiving side can set the coupling capacitor to terminate at a high impedance point to eliminate the influence of the capacitor, otherwise it will not be configured;
如果背板走线过短,链路本身的大强度的均衡反而会给各项自适应算法的同时收敛产生负面影响,可以关闭链路本身的DAC自适应算法,采取手动配置均衡参数来保证信号的收敛和平滑;If the backplane routing is too short, the strong balance of the link itself will have a negative impact on the simultaneous convergence of the adaptive algorithms. The DAC adaptive algorithm of the link itself can be turned off, and the manual configuration equalization parameters are used to ensure the signal. Convergence and smoothing;
如果信号的采样本身不完整、不平滑,可以采取关闭增益控制,Peaking控制,通过手动设置增益参数和peaking值来调节合适的均衡参数;If the sampling of the signal itself is incomplete and unsmooth, the gain control can be turned off, the Peaking control, and the appropriate equalization parameters can be adjusted by manually setting the gain parameter and the peaking value;
如果接收侧出现间断性的CRC校验报错,可以采取调整DFE训练模式,通过阶数参数的配置和训练来调整改善;If an intermittent CRC check error occurs on the receiving side, the DFE training mode can be adjusted, and the improvement is adjusted by the configuration and training of the order parameters;
如果高速率的信号传输对电源功耗有要求,可以采取关闭接收侧电源管理功能。 If the high-rate signal transmission requires power consumption, you can turn off the receiving-side power management function.
图3为Lane_A和Lane_B两条存在通信关系的两条SerDes链路,其确定预加重配置参数和自适应配置参数的过程中,还包括如图所示的时序控制步骤,具体包括:FIG. 3 is a schematic diagram of the two sequenced control steps in the process of determining the pre-emphasis configuration parameters and the adaptive configuration parameters in the process of determining the pre-emphasis configuration parameters and the adaptive configuration parameters, including:
步骤a,Lane_A向存在通信关系的Lane_B链路报告本链路发送侧开始预加重配置的通知,同时,Lane_B也向Lane_A报告本链路发送侧开始预加重配置的通知;Step a, Lane_A reports the notification that the link transmitting side starts pre-emphasis configuration to the Lane_B link in which the communication relationship exists, and Lane_B also reports to Lane_A that the link transmitting side starts pre-emphasis configuration.
步骤b,Lane_A和Lane_B链路发送侧均按照前述步骤201至步骤204的顺序,Lane_A和Lane_B链路的发送侧预加重配置参数,完成预加重配置后,Lane_A和Lane_B链路的接收侧进行自适应均衡训练、还原校验之前,可分别延时预设时长(例如200至300微秒),向对端(存在通信关系的SerDes链路的接收侧)发送本链路接收侧开始自适应参数配置的通知;Step b: The transmitting side of the Lane_A and Lane_B links are in the order of the foregoing steps 201 to 204, and the transmitting side pre-emphasis configuration parameters of the Lane_A and Lane_B links are completed. After the pre-emphasis configuration is completed, the receiving sides of the Lane_A and Lane_B links are self-contained. Before adapting to the equalization training and the restoration check, the preset duration (for example, 200 to 300 microseconds) may be delayed, and the adaptive receiving parameter of the link receiving side is sent to the opposite end (the receiving side of the SerDes link having the communication relationship). Configured notifications;
步骤c,Lane_A和Lane_B链路开始进行对链路的均衡,按照前述步骤3所述方法得到自适应配置参数。In step c, the Lane_A and Lane_B links start to equalize the link, and the adaptive configuration parameters are obtained according to the method described in the foregoing step 3.
最终,Lane_A和Lane_B链路以各自的接收侧经过FEC纠错后是否产生CRC报错标记为判断标准,对发送侧的预加重配置参数进行选取统计。Finally, the Lane_A and Lane_B links select and count the pre-emphasis configuration parameters on the transmitting side by using the FCE error correction flag on the receiving side as the criterion for determining whether the CRC error flag is generated.
这种时序控制方式,可以保证发送侧在生效在先,并稍微延时,再配置接收侧参数。在路由器高速背板中,保证数以千计的Serdes链路,依次实现发送侧预加重参数和接收侧自适应参数的约束配置,可增强背板整体的稳定效果。This timing control mode ensures that the transmitting side is in effect first, and is slightly delayed, and then configures the receiving side parameters. In the high-speed backplane of the router, thousands of Serdes links are guaranteed, and the pre-emphasis parameters of the transmitting side and the adaptive parameters of the receiving side are sequentially implemented to enhance the stability of the backplane as a whole.
本发明实施例的优点主要体现在:从Serdes链路发送的高速率的数据帧开始,通过链路上的编码和纠错来应对链路的突发错误,及时处理突发错误并对错误数据进行纠正,增强数据帧的传输效率。在利用接收侧Serdes的自适应调节功能,实现了接收数据码流的随机充分收敛,收敛后的码流是没有bit乱序或修改的完整的发送报文,达到链路传输中报文无错误ERR,无信号干扰或丢失的目的,以实现高效稳定帧数据接收。进一步的,本方 法还通过在接收侧的CRC校验,保证了数据的准确性和完整性,避免了在对数据处理和校验时因误判引起的帧丢失。The advantages of the embodiments of the present invention are mainly as follows: starting from a high-rate data frame sent by the Serdes link, responding to burst errors of the link by coding and error correction on the link, and processing burst errors and erroneous data in time. Correction is performed to enhance the transmission efficiency of data frames. In the adaptive adjustment function of the receiving side Serdes, the random convergence of the received data stream is achieved. The converged code stream is a complete transmission message without bit disorder or modification, and the message in the link transmission is error-free. ERR, no signal interference or loss for the purpose of efficient and stable frame data reception. Further, this party The method also ensures the accuracy and integrity of the data through the CRC check on the receiving side, and avoids frame loss caused by misjudgment during data processing and verification.
本发明实施例还提供了一种SerDes链路参数调试装置,所述装置包括:确定单元、第一训练单元和第二训练单元;其中,The embodiment of the present invention further provides a SerDes link parameter debugging device, where the device includes: a determining unit, a first training unit, and a second training unit; wherein
所述确定单元,配置为基于链路时钟与信道特性确定编解码模式;确定前向纠错方法及校验码;还配置为确定预加重参数范围;The determining unit is configured to determine a codec mode based on a link clock and a channel characteristic; determine a forward error correction method and a check code; and further configured to determine a pre-emphasis parameter range;
所述第一训练单元,配置为根据所述预加重参数范围、所述前向纠错方法和校验码对待调试高速串并/并串转换器的发送侧进行训练,得到预加重配置参数;The first training unit is configured to perform training according to the pre-emphasis parameter range, the forward error correction method, and the check code to debug the transmitting side of the high-speed serial/parallel-to-serial converter, to obtain pre-emphasis configuration parameters;
所述第二训练单元,配置为在所述第一训练单元确定所述预加重配置参数后,对所述待调试高速串并/并串转换器的接收侧进行均衡参数训练,得到自适应配置参数。The second training unit is configured to perform equalization parameter training on the receiving side of the high speed serial/parallel converter to be debugged after the first training unit determines the pre-emphasis configuration parameter, to obtain an adaptive configuration. parameter.
本实施例中,所述编解码模式包括以下编解码模式的至少之一:8B编解码模式、10B编解码模式、64B编解码模式、66B编解码模式。所述前向纠错方法可以为RS-FEC前向纠错方法;所述校验码可以为CRC16校验码。In this embodiment, the codec mode includes at least one of the following codec modes: an 8B codec mode, a 10B codec mode, a 64B codec mode, and a 66B codec mode. The forward error correction method may be an RS-FEC forward error correction method; the check code may be a CRC16 check code.
作为一种实施方式,所述第一训练单元,配置为设置预加重参数的选择范围,根据训练方向,从所述预加重参数的选择范围内选择一组预加重参数的组合,作为所述待调试高速串并/并串转换器的发送侧配置参数;在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法还原校验;若还原校验过程中出现CRC报错,确定所选择的预加重参数的组合不可用,回溯至与本次训练方向相反或并行的训练方向,按照新的训练方向选择另一组预加重参数的组合作为所述待调试高速串并/并串转换器的发送侧配置参数,在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法重新还原校验;直至还原校验过程中未出现CRC报错;遍历所述预加重参数范围中的全部预加重参数,记录还原校验无CRC报错的预加重 参数的组合确定为可用预加重参数的组合;遍历SerDes链路,获取SerDes链路中可用的预加重参数的组合,查找一组SerDes链路均可用的预加重参数的组合,作为预加重配置参数。As an implementation manner, the first training unit is configured to set a selection range of pre-emphasis parameters, and select, according to the training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameters, as the Debugging a transmission side configuration parameter of the high speed serial/parallel converter; on the receiving side of the high speed serial/parallel converter to be debugged, restoring the verification according to the forward error correction method; A CRC error occurs, determining that the selected combination of pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the current training direction, and selecting a combination of another set of pre-emphasis parameters as the high speed to be debugged according to the new training direction. Transmitting side configuration parameters of the serial/parallel converter, on the receiving side of the high speed serial/parallel converter to be debugged, re-restoring the verification according to the forward error correction method; A CRC error occurs; traversing all the pre-emphasis parameters in the pre-emphasis parameter range, and recording the pre-emphasis of the restoration check without CRC error The combination of parameters is determined as a combination of available pre-emphasis parameters; traversing the SerDes link, obtaining a combination of pre-emphasis parameters available in the SerDes link, and finding a combination of pre-emphasis parameters available for a set of SerDes links as a pre-emphasis configuration parameter .
作为一种实施方式,所述第二训练单元,配置为在所述第一训练单元每次选择一组预加重配置参数的组合作为所述待调试高速串并/并串转换器的发送侧的预加重配置参数后,在所述待调试高速串并/并串转换器的接收侧进行还原校验之前,延时预设时长,所述预设时长为200至300微秒中的任一时长。In an embodiment, the second training unit is configured to select, at the first time, the combination of a set of pre-emphasis configuration parameters at the first training unit as the transmitting side of the high-speed serial/parallel converter to be debugged. After the configuration parameter is pre-emphasized, the preset duration is delayed before the restoration check of the high-speed serial/parallel converter to be debugged, and the preset duration is any one of 200 to 300 microseconds. .
作为一种实施方式,所述装置还包括发送单元,配置为向存在通信关系的SerDes链路发送本链路发送侧开始预加重配置的通知;As an implementation manner, the apparatus further includes: a sending unit, configured to send, to the SerDes link that has a communication relationship, a notification that the link sending side starts pre-emphasis configuration;
所述第一训练单元,配置为选择一组预加重配置参数的组合作为本链路发送侧的预加重配置参数后,延时预设时长;The first training unit is configured to select a combination of pre-emphasis configuration parameters as the pre-emphasis configuration parameter on the transmitting side of the link, and delay the preset duration;
所述发送单元,还配置为向存在通信关系的SerDes链路的接收侧发送本链路接收侧开始自适应参数配置的通知;The sending unit is further configured to send, to the receiving side of the SerDes link in which the communication relationship exists, a notification that the link receiving side starts adaptive parameter configuration;
所述第二训练单元,配置为在所述第一训练单元确定所述预加重配置参数后,对本链路的接收侧进行均衡参数训练,得到自适应配置参数。The second training unit is configured to perform the equalization parameter training on the receiving side of the link after the first training unit determines the pre-emphasis configuration parameter, to obtain an adaptive configuration parameter.
在实际应用中,所述确定单元、第一训练单元和第二训练单元,在实际应用中均可由中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现。In practical applications, the determining unit, the first training unit, and the second training unit may be implemented by a central processing unit (CPU), a microprocessor (MPU, a digital processor unit), and a digital signal in practical applications. Implemented by a processor (DSP, Digital Signal Processor) or a Field Programmable Gate Array (FPGA).
需要说明的是:上述实施例提供的SerDes链路参数调试装置在进行链路参数调试时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将SerDes链路参数调试装置的内部结构划分成不同的程序模块,以完成以上描述的全部 或者部分处理。另外,上述实施例提供的SerDes链路参数调试装置与SerDes链路参数调试方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the SerDes link parameter debugging apparatus provided in the foregoing embodiment is only illustrated by the division of each of the foregoing program modules when performing link parameter debugging. In actual applications, the foregoing processing may be assigned differently according to requirements. The program module is completed, that is, the internal structure of the SerDes link parameter debugging device is divided into different program modules to complete all the above descriptions. Or partial processing. In addition, the SerDes link parameter debugging device and the SerDes link parameter debugging method are provided in the same embodiment, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
本发明实施例还提供了一种SerDes链路参数调试装置,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行:基于链路时钟与信道特性确定编解码模式;确定前向纠错方法及校验码;确定预加重参数范围,根据所述预加重参数范围、所述前向纠错方法和校验码对待调试高速串并/并串转换器的发送侧进行训练,得到预加重配置参数;在确定所述预加重配置参数后,对所述待调试高速串并/并串转换器的接收侧进行均衡参数训练,得到自适应配置参数。An embodiment of the present invention further provides a SerDes link parameter debugging apparatus, including: a processor and a memory for storing a computer program capable of running on a processor, wherein when the processor is used to run the computer program, Execution: determining a codec mode based on a link clock and channel characteristics; determining a forward error correction method and a check code; determining a pre-emphasis parameter range, according to the pre-emphasis parameter range, the forward error correction method, and a check code Performing training on the transmitting side of the debug high speed serial/parallel converter to obtain pre-emphasis configuration parameters; after determining the pre-emphasis configuration parameters, balancing the receiving side of the high-speed serial/parallel converter to be debugged Parameter training, get adaptive configuration parameters.
作为一种实施方式,所述处理器用于运行所述计算机程序时,执行:设置预加重参数的选择范围,根据训练方向,从所述预加重参数的选择范围内选择一组预加重参数的组合,作为所述待调试高速串并/并串转换器的发送侧配置参数;在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法还原校验;若还原校验过程中出现CRC报错,确定所选择的预加重参数的组合不可用,回溯至与本次训练方向相反或并行的训练方向,按照新的训练方向选择另一组预加重参数的组合作为所述待调试高速串并/并串转换器的发送侧配置参数,在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法重新还原校验;直至还原校验过程中未出现CRC报错;遍历所述预加重参数范围中的全部预加重参数,记录还原校验无CRC报错的预加重参数的组合确定为可用预加重参数的组合;遍历SerDes链路,获取SerDes链路中可用的预加重参数的组合,查找一组SerDes链路均可用的预加重参数的组合,作为预加重配置参数。In one embodiment, when the processor is configured to run the computer program, performing: setting a selection range of pre-emphasis parameters, and selecting a combination of a set of pre-emphasis parameters from a selection range of the pre-emphasis parameters according to a training direction As a transmission side configuration parameter of the high speed serial/parallel converter to be debugged; on the receiving side of the high speed serial/parallel converter to be debugged, the verification is restored according to the forward error correction method; A CRC error occurs during the restoration check process, and it is determined that the combination of the selected pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the current training direction, and selecting another combination of pre-emphasis parameters according to the new training direction. Transmitting side configuration parameters of the high speed serial/parallel converter to be debugged, on the receiving side of the high speed serial/parallel converter to be debugged, re-restoring the verification according to the forward error correction method; No CRC error occurs during the verification process; traversing all the pre-emphasis parameters in the range of pre-emphasis parameters, and recording the combination of the pre-emphasis parameters of the restoration check without CRC error is determined as A combination of pre-emphasis parameters can be used; the SerDes link is traversed, a combination of pre-emphasis parameters available in the SerDes link is obtained, and a combination of pre-emphasis parameters available for a set of SerDes links is searched for as a pre-emphasis configuration parameter.
作为一种实施方式,所述处理器用于运行所述计算机程序时,执行: 每次选择一组预加重配置参数的组合作为所述待调试高速串并/并串转换器的发送侧的预加重配置参数后,在所述待调试高速串并/并串转换器的接收侧进行还原校验之前,延时预设时长,所述预设时长为200至300微秒中的任一时长。As an implementation manner, when the processor is used to run the computer program, perform: Each time a combination of a set of pre-emphasis configuration parameters is selected as the pre-emphasis configuration parameter of the transmitting side of the high-speed serial/parallel-to-serial converter to be debugged, on the receiving side of the high-speed serial/parallel converter to be debugged Before the restoration check is performed, the preset duration is delayed, and the preset duration is any one of 200 to 300 microseconds.
作为一种实施方式,所述处理器用于运行所述计算机程序时,执行:对于存在通信关系的SerDes链路,在确定预加重配置参数和自适应配置参数的过程中,向存在通信关系的SerDes链路发送本链路发送侧开始预加重配置的通知;选择一组预加重配置参数的组合作为本链路发送侧的预加重配置参数后,延时预设时长,向存在通信关系的SerDes链路的接收侧发送本链路接收侧开始自适应参数配置的通知;在确定所述预加重配置参数后,对本链路的接收侧进行均衡参数训练,得到自适应配置参数。As an implementation manner, when the processor is configured to run the computer program, perform: to a SerDes link having a communication relationship, in determining a pre-emphasis configuration parameter and an adaptive configuration parameter, to a SerDes having a communication relationship The link sends a notification that the transmitting side of the link starts pre-emphasis configuration; after selecting a combination of a set of pre-emphasis configuration parameters as the pre-emphasis configuration parameter of the transmitting side of the link, delaying the preset duration to the SerDes chain having the communication relationship The receiving side of the path sends a notification that the receiving side of the link starts to configure the adaptive parameter. After determining the pre-emphasis configuration parameter, the receiving side of the link is trained on the equalization parameter to obtain an adaptive configuration parameter.
作为一种实施方式,所述处理器用于运行所述计算机程序时,执行:若遍历全部预加重参数后,任一所述SerDes链路的接收侧仍出现CRC报错,且所述接收侧经过均衡参数训练后,还原校验过程依出现CRC报错,则标记该SerDes链路不可用。As an implementation manner, when the processor is configured to run the computer program, if: after traversing all pre-emphasis parameters, a CRC error occurs on a receiving side of any one of the SerDes links, and the receiving side is balanced. After the parameter training, the restore verification process is marked as CRC error, indicating that the SerDes link is unavailable.
本发明实施例中,存储器可以由任何类型的易失性或非易失性存储设备、或者它们的组合来实现。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,Ferromagnetic Random Access Memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random Access Memory),其用作 外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,Synchronous Dynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,SyncLink Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器旨在包括但不限于这些和任意其它适合类型的存储器。In an embodiment of the invention, the memory may be implemented by any type of volatile or non-volatile storage device, or a combination thereof. The non-volatile memory may be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), or an Erasable Programmable Read (EPROM). Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM), Ferromagnetic Random Access Memory (FRAM), Flash Memory, Magnetic Surface Memory , CD-ROM, or Compact Disc Read-Only Memory (CD-ROM); the magnetic surface memory can be a disk storage or a tape storage. The volatile memory may be a random access memory (RAM), which is used as External cache. By way of example and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access (SSRAM). DRAM (Dynamic Random Access Memory), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), enhancement Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory Bus Random Access Memory (DRRAM) ). The memories described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
存储器用于存储各种类型的数据以支持SerDes链路参数调试装置的操作。这些数据的示例包括:用于在SerDes链路参数调试装置上操作的任何计算机程序。其中,操作系统包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序可以包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序中。The memory is used to store various types of data to support the operation of the SerDes link parameter debugging device. Examples of such data include any computer program for operation on a SerDes link parameter debug device. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application can include various applications, such as a Media Player, a Browser, etc., for implementing various application services. A program implementing the method of the embodiment of the present invention may be included in an application.
SerDes链路参数调试装置中的处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。 结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成前述方法的步骤。The processor in the SerDes link parameter debugging device may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in a processor or an instruction in a form of software. The above described processor may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present invention. A general purpose processor can be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the present invention may be directly implemented as a hardware decoding processor, or may be performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, the storage medium being located in the memory, the processor reading the information in the memory, and completing the steps of the foregoing methods in combination with the hardware thereof.
在示例性实施例中,SerDes链路参数调试装置可以被至少一个应用专用集成电路(ASIC,Application Specific Integrated Circuit)、DSP、可编程逻辑器件(PLD,Programmable Logic Device)、复杂可编程逻辑器件(CPLD,Complex Programmable Logic Device)、FPGA、通用处理器、控制器、MCU、微处理器(Microprocessor)、或其他电子元件实现,用于执行前述方法。In an exemplary embodiment, the SerDes link parameter debugging device may be configured by at least one Application Specific Integrated Circuit (ASIC), DSP, Programmable Logic Device (PLD), and Complex Programmable Logic Device ( CPLD (Complex Programmable Logic Device), FPGA, general purpose processor, controller, MCU, microprocessor, or other electronic component implementation for performing the aforementioned method.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行:基于链路时钟与信道特性确定编解码模式;确定前向纠错方法及校验码;确定预加重参数范围,根据所述预加重参数范围、所述前向纠错方法和校验码对待调试高速串并/并串转换器的发送侧进行训练,得到预加重配置参数;在确定所述预加重配置参数后,对所述待调试高速串并/并串转换器的接收侧进行均衡参数训练,得到自适应配置参数。An embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing: determining a codec mode based on a link clock and a channel characteristic; a method for correcting errors and a check code; determining a range of pre-emphasis parameters, and training the transmitting side of the high-speed serial/parallel-to-serial converter according to the pre-emphasis parameter range, the forward error correction method, and the check code, Obtaining a pre-emphasis configuration parameter; after determining the pre-emphasis configuration parameter, performing equalization parameter training on the receiving side of the high-speed serial/parallel-to-serial converter to be debugged, to obtain an adaptive configuration parameter.
作为一种实施方式,所述计算机可执行指令用于执行:设置预加重参数的选择范围,根据训练方向,从所述预加重参数的选择范围内选择一组预加重参数的组合,作为所述待调试高速串并/并串转换器的发送侧配置参数;在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法还原校验;若还原校验过程中出现CRC报错,确定所选择的预加重参数的组合不可用,回溯至与本次训练方向相反或并行的训练方向,按照新的训练方向选择另一组预加重参数的组合作为所述待调试高速串并/并串转换器的发送侧配置参数,在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法重新还原校验;直至还原校验过程中未出现CRC报错;遍 历所述预加重参数范围中的全部预加重参数,记录还原校验无CRC报错的预加重参数的组合确定为可用预加重参数的组合;遍历SerDes链路,获取SerDes链路中可用的预加重参数的组合,查找一组SerDes链路均可用的预加重参数的组合,作为预加重配置参数。In one embodiment, the computer executable instructions are configured to: set a selection range of pre-emphasis parameters, and select, according to a training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameters, as a transmission side configuration parameter of the high speed serial/parallel converter to be debugged; on the receiving side of the high speed serial/parallel converter to be debugged, the verification is restored according to the forward error correction method; if the verification process is restored A CRC error occurs, determining that the selected combination of pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the current training direction, and selecting another combination of pre-emphasis parameters as the to-be-commissioned according to the new training direction. a transmission side configuration parameter of the high speed serial/parallel converter, on the receiving side of the high speed serial/parallel converter to be debugged, re-restoring the verification according to the forward error correction method; until the restoration verification process No CRC error occurred; A combination of all pre-emphasis parameters in the pre-emphasis parameter range, a record of the pre-emphasis parameter that records the restoration check and no CRC error is determined as a combination of available pre-emphasis parameters; traversing the SerDes link to obtain pre-emphasis available in the SerDes link A combination of parameters that finds a combination of pre-emphasis parameters available for a set of SerDes links as a pre-emphasis configuration parameter.
作为一种实施方式,所述计算机可执行指令用于执行:每次选择一组预加重配置参数的组合作为所述待调试高速串并/并串转换器的发送侧的预加重配置参数后,在所述待调试高速串并/并串转换器的接收侧进行还原校验之前,延时预设时长,所述预设时长为200至300微秒中的任一时长。In one embodiment, the computer executable instructions are configured to: each time select a combination of a set of pre-emphasis configuration parameters as a pre-emphasis configuration parameter of a transmitting side of the high speed serial/parallel converter to be debugged, Before the restoration check of the high-speed serial/parallel converter to be debugged, the preset duration is delayed, and the preset duration is any one of 200 to 300 microseconds.
作为一种实施方式,所述计算机可执行指令用于执行:对于存在通信关系的SerDes链路,在确定预加重配置参数和自适应配置参数的过程中,向存在通信关系的SerDes链路发送本链路发送侧开始预加重配置的通知;选择一组预加重配置参数的组合作为本链路发送侧的预加重配置参数后,延时预设时长,向存在通信关系的SerDes链路的接收侧发送本链路接收侧开始自适应参数配置的通知;在确定所述预加重配置参数后,对本链路的接收侧进行均衡参数训练,得到自适应配置参数。In one embodiment, the computer executable instructions are configured to: in the process of determining a pre-emphasis configuration parameter and an adaptive configuration parameter for a SerDes link having a communication relationship, sending the present to a SerDes link having a communication relationship The link sending side starts the pre-emphasis configuration notification; after selecting a combination of a set of pre-emphasis configuration parameters as the pre-emphasis configuration parameter of the transmitting side of the link, delaying the preset duration to the receiving side of the SerDes link having the communication relationship Sending a notification that the receiving side of the link starts adaptive parameter configuration; after determining the pre-emphasis configuration parameter, performing equalization parameter training on the receiving side of the link to obtain an adaptive configuration parameter.
作为一种实施方式,所述计算机可执行指令用于执行:若遍历全部预加重参数后,任一所述SerDes链路的接收侧仍出现CRC报错,且所述接收侧经过均衡参数训练后,还原校验过程依出现CRC报错,则标记该SerDes链路不可用。As an embodiment, the computer executable instructions are configured to: after traversing all the pre-emphasis parameters, a CRC error occurs on the receiving side of any one of the SerDes links, and the receiving side is trained by the equalization parameter. The restore verification process marks the SerDes link as unavailable due to a CRC error.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元 的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the various components shown or discussed may be through some interface, device or unit. The indirect coupling or communication connection can be electrical, mechanical or other form.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a removable storage device, a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明 的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the present invention The scope of protection shall be subject to the scope of protection of the claims.
工业实用性Industrial applicability
本发明实施例的技术方案从Serdes链路发送的高速率的数据帧开始,通过链路上的编码和纠错来应对链路的突发错误,及时处理突发错误并对错误数据进行纠正,增强数据帧的传输效率。在利用接收侧Serdes的自适应调节功能,实现了接收数据码流的随机充分收敛,收敛后的码流是没有bit乱序或修改的完整的发送报文,达到链路传输中报文无错误ERR,无信号干扰或丢失的目的,以实现高效稳定帧数据接收。进一步的,本方法还通过在接收侧的CRC校验,保证了数据的准确性和完整性,避免了在对数据处理和校验时因误判引起的帧丢失。 The technical solution of the embodiment of the present invention starts from a high-rate data frame sent by the Serdes link, and responds to a burst error of the link by coding and error correction on the link, and timely processes the burst error and corrects the error data. Enhance the transmission efficiency of data frames. In the adaptive adjustment function of the receiving side Serdes, the random convergence of the received data stream is achieved. The converged code stream is a complete transmission message without bit disorder or modification, and the message in the link transmission is error-free. ERR, no signal interference or loss for the purpose of efficient and stable frame data reception. Further, the method also ensures the accuracy and integrity of the data by the CRC check on the receiving side, and avoids frame loss caused by misjudgment during data processing and verification.

Claims (11)

  1. 一种SerDes链路参数调试方法,所述方法包括:A method for debugging a SerDes link parameter, the method comprising:
    基于链路时钟与信道特性确定编解码模式;确定前向纠错方法及校验码;Determining a codec mode based on a link clock and channel characteristics; determining a forward error correction method and a check code;
    确定预加重参数范围,根据所述预加重参数范围、所述前向纠错方法和校验码对待调试高速串并/并串转换器的发送侧进行训练,得到预加重配置参数;Determining a pre-emphasis parameter range, performing training on the transmitting side of the high-speed serial/parallel-to-serial converter according to the pre-emphasis parameter range, the forward error correction method, and the check code to obtain a pre-emphasis configuration parameter;
    在确定所述预加重配置参数后,对所述待调试高速串并/并串转换器的接收侧进行均衡参数训练,得到自适应配置参数。After determining the pre-emphasis configuration parameter, performing equalization parameter training on the receiving side of the high-speed serial/parallel-to-serial converter to be debugged, to obtain an adaptive configuration parameter.
  2. 根据权利要求1所述的方法,其中,所述编解码模式包括以下编解码模式的至少之一:8B编解码模式、10B编解码模式、64B编解码模式、66B编解码模式。The method of claim 1, wherein the codec mode comprises at least one of a codec mode: an 8B codec mode, a 10B codec mode, a 64B codec mode, and a 66B codec mode.
  3. 根据权利要求1所述的方法,其中,所述前向纠错方法为RS-FEC前向纠错方法;所述校验码为CRC16校验码。The method of claim 1, wherein the forward error correction method is an RS-FEC forward error correction method; the check code is a CRC16 check code.
  4. 根据权利要求3所述的方法,其中,所述根据所述预加重参数范围、所述前向纠错方法和校验码对待调试高速串并/并串转换器的发送侧进行训练,得到预加重配置参数,包括:The method according to claim 3, wherein said training according to said pre-emphasis parameter range, said forward error correction method and a check code to debug a high-speed serial/parallel-to-serial converter is performed Add configuration parameters, including:
    设置预加重参数的选择范围,根据训练方向,从所述预加重参数的选择范围内选择一组预加重参数的组合,作为所述待调试高速串并/并串转换器的发送侧配置参数;Setting a selection range of the pre-emphasis parameter, and selecting, according to the training direction, a combination of a set of pre-emphasis parameters from the selection range of the pre-emphasis parameter as a transmission side configuration parameter of the high-speed serial/parallel-to-serial converter to be debugged;
    在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法还原校验;若还原校验过程中出现CRC报错,确定所选择的预加重参数的组合不可用,回溯至与本次训练方向相反或并行的训练方向,按照新的训练方向选择另一组预加重参数的组合作为所述待调试高速串并/并串转换器的发送侧配置参数,在所述待调试高速串并/并串转换器的接收侧,根据所 述前向纠错方法重新还原校验;直至还原校验过程中未出现CRC报错;On the receiving side of the high speed serial/parallel converter to be debugged, the verification is restored according to the forward error correction method; if a CRC error occurs during the restoration verification, it is determined that the selected combination of pre-emphasis parameters is unavailable. Returning to the training direction opposite or parallel to the current training direction, selecting another combination of pre-emphasis parameters according to the new training direction as the transmission side configuration parameter of the high-speed serial/parallel converter to be debugged, Describe the receiving side of the debug high speed serial/parallel converter, according to The forward error correction method re-restores the verification; no CRC error occurs during the restoration verification process;
    遍历所述预加重参数范围中的全部预加重参数,记录还原校验无CRC报错的预加重参数的组合确定为可用预加重参数的组合;Traversing all of the pre-emphasis parameters in the pre-emphasis parameter range, and recording a combination of the pre-emphasis parameters of the restoration check and no CRC error is determined as a combination of available pre-emphasis parameters;
    遍历SerDes链路,获取SerDes链路中可用的预加重参数的组合,查找一组SerDes链路均可用的预加重参数的组合,作为预加重配置参数。Traversing the SerDes link, obtaining a combination of pre-emphasis parameters available in the SerDes link, and finding a combination of pre-emphasis parameters available for a set of SerDes links as pre-emphasis configuration parameters.
  5. 据权利要求4所述的方法,其中,每次选择一组预加重配置参数的组合作为所述待调试高速串并/并串转换器的发送侧的预加重配置参数后,在所述待调试高速串并/并串转换器的接收侧进行还原校验之前,延时预设时长,所述预设时长为200至300微秒中的任一时长。The method of claim 4, wherein each time a combination of a set of pre-emphasis configuration parameters is selected as the pre-emphasis configuration parameter of the transmitting side of the high-speed serial/parallel-to-serial converter to be debugged, Before the restoration side of the high speed serial/parallel converter performs the restoration check, the preset duration is delayed, and the preset duration is any one of 200 to 300 microseconds.
  6. 根据权利要求5所述的方法,其中,对于存在通信关系的SerDes链路,在确定预加重配置参数和自适应配置参数的过程中,还包括时序控制,具体包括:The method according to claim 5, wherein, in the process of determining the pre-emphasis configuration parameter and the adaptive configuration parameter, the sequence control is further included in the process of determining the pre-emphasis configuration parameter and the adaptive configuration parameter.
    向存在通信关系的SerDes链路发送本链路发送侧开始预加重配置的通知;Sending a notification that the link transmitting side starts pre-emphasis configuration to the SerDes link in which the communication relationship exists;
    选择一组预加重配置参数的组合作为本链路发送侧的预加重配置参数后,延时预设时长,向存在通信关系的SerDes链路的接收侧发送本链路接收侧开始自适应参数配置的通知;After a combination of a set of pre-emphasis configuration parameters is selected as the pre-emphasis configuration parameter on the transmitting side of the link, the preset duration is delayed, and the receiving side of the SerDes link having the communication relationship is sent to the receiving side to start adaptive parameter configuration. announcement of;
    在确定所述预加重配置参数后,对本链路的接收侧进行均衡参数训练,得到自适应配置参数。After determining the pre-emphasis configuration parameter, performing equalization parameter training on the receiving side of the link to obtain an adaptive configuration parameter.
  7. 根据权利要求6所述的方法,其中,若遍历全部预加重参数后,任一所述SerDes链路的接收侧仍出现CRC报错,且所述接收侧经过均衡参数训练后,还原校验过程依出现CRC报错,则标记该SerDes链路不可用。The method according to claim 6, wherein if the CRC error is still present on the receiving side of any of the SerDes links after traversing all the pre-emphasis parameters, and the receiving side is trained by the equalization parameter, the restoration verification process is performed. If a CRC error occurs, the SerDes link is marked as unavailable.
  8. 一种SerDes链路参数调试装置,所述装置包括:确定单元、第一训练单元和第二训练单元;其中,A SerDes link parameter debugging device, the device comprising: a determining unit, a first training unit and a second training unit; wherein
    所述确定单元,配置为基于链路时钟与信道特性确定编解码模式;确 定前向纠错方法及校验码;还配置为确定预加重参数范围;The determining unit is configured to determine a codec mode based on a link clock and a channel characteristic; Determining a forward error correction method and a check code; further configured to determine a range of pre-emphasis parameters;
    所述第一训练单元,配置为根据所述预加重参数范围、所述前向纠错方法和校验码对待调试高速串并/并串转换器的发送侧进行训练,得到预加重配置参数;The first training unit is configured to perform training according to the pre-emphasis parameter range, the forward error correction method, and the check code to debug the transmitting side of the high-speed serial/parallel-to-serial converter, to obtain pre-emphasis configuration parameters;
    所述第二训练单元,配置为在所述第一训练单元确定所述预加重配置参数后,对所述待调试高速串并/并串转换器的接收侧进行均衡参数训练,得到自适应配置参数。The second training unit is configured to perform equalization parameter training on the receiving side of the high speed serial/parallel converter to be debugged after the first training unit determines the pre-emphasis configuration parameter, to obtain an adaptive configuration. parameter.
  9. 根据权利要求8所述的装置,其中,所述第一训练单元,配置为设置预加重参数的选择范围,根据训练方向,从所述预加重参数的选择范围内选择一组预加重参数的组合,作为所述待调试高速串并/并串转换器的发送侧配置参数;在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法还原校验;若还原校验过程中出现CRC报错,确定所选择的预加重参数的组合不可用,回溯至与本次训练方向相反或并行的训练方向,按照新的训练方向选择另一组预加重参数的组合作为所述待调试高速串并/并串转换器的发送侧配置参数,在所述待调试高速串并/并串转换器的接收侧,根据所述前向纠错方法重新还原校验;直至还原校验过程中未出现CRC报错;遍历所述预加重参数范围中的全部预加重参数,记录还原校验无CRC报错的预加重参数的组合确定为可用预加重参数的组合;遍历SerDes链路,获取SerDes链路中可用的预加重参数的组合,查找一组SerDes链路均可用的预加重参数的组合,作为预加重配置参数。The apparatus according to claim 8, wherein the first training unit is configured to set a selection range of pre-emphasis parameters, and select a combination of a set of pre-emphasis parameters from a selection range of the pre-emphasis parameters according to a training direction As a transmission side configuration parameter of the high speed serial/parallel converter to be debugged; on the receiving side of the high speed serial/parallel converter to be debugged, the verification is restored according to the forward error correction method; A CRC error occurs during the restoration check process, and it is determined that the combination of the selected pre-emphasis parameters is not available, backtracking to the training direction opposite or parallel to the current training direction, and selecting another combination of pre-emphasis parameters according to the new training direction. Transmitting side configuration parameters of the high speed serial/parallel converter to be debugged, on the receiving side of the high speed serial/parallel converter to be debugged, re-restoring the verification according to the forward error correction method; No CRC error occurs during the verification process; traversing all the pre-emphasis parameters in the range of pre-emphasis parameters, and recording the combination of the pre-emphasis parameters of the restoration check without CRC error is determined to be available Emphasis parameter combination; SerDes link traversal, obtain a combination of pre-emphasis parameter SerDes link available to find a combination of a set of links are available SerDes pre-emphasis parameter, a pre-emphasis configuration parameters.
  10. 一种SerDes链路参数调试装置,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,其中,所述处理器用于运行所述计算机程序时,执行权利要求1至7任一项所述SerDes链路参数调试方法的步骤。A SerDes link parameter debugging apparatus, comprising: a processor and a memory for storing a computer program executable on a processor, wherein the processor is configured to execute any one of claims 1 to 7 when the computer program is executed A step of the SerDes link parameter debugging method.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执 行指令,所述计算机可执行指令用于执行权利要求1至7任一项所述的SerDes链路参数调试方法。 A computer storage medium storing computer executable in the computer storage medium The line of instructions for executing the SerDes link parameter debugging method of any one of claims 1 to 7.
PCT/CN2017/099278 2017-05-26 2017-08-28 Serdes link parameter debugging method and device, and computer storage medium WO2018214319A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020197038332A KR102230236B1 (en) 2017-05-26 2017-08-28 SerDes link parameter debugging method, device and computer storage medium
RU2019143884A RU2733809C9 (en) 2017-05-26 2017-08-28 Method and apparatus for debugging serdes connection parameter and computer data medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710386821.7A CN108933600B (en) 2017-05-26 2017-05-26 Automatic debugging method for SerDes link parameters
CN201710386821.7 2017-05-26

Publications (1)

Publication Number Publication Date
WO2018214319A1 true WO2018214319A1 (en) 2018-11-29

Family

ID=64395072

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/099278 WO2018214319A1 (en) 2017-05-26 2017-08-28 Serdes link parameter debugging method and device, and computer storage medium

Country Status (4)

Country Link
KR (1) KR102230236B1 (en)
CN (1) CN108933600B (en)
RU (1) RU2733809C9 (en)
WO (1) WO2018214319A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166175A (en) * 2019-05-21 2019-08-23 新华三技术有限公司 The method, apparatus and the network equipment of adaptive configuration pre-add weight values

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109982170B (en) * 2019-03-04 2021-10-19 烽火通信科技股份有限公司 Link-based protection method and system for optical network equipment
CN109936425B (en) * 2019-03-29 2022-02-08 武汉邮电科学研究院有限公司 Pre-emphasis debugging system and method
CN113127398A (en) * 2019-12-31 2021-07-16 华为技术有限公司 Data processing method and device
CN114553642B (en) * 2022-04-22 2022-07-29 浙江芯昇电子技术有限公司 Method and equipment for quickly establishing SerDes link connection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090187807A1 (en) * 2008-01-23 2009-07-23 Texas Instruments Incorporated Method for optimizing block coding parameters, a communications controller employing the method and a communications node and link employing the controller
CN105703840A (en) * 2016-01-22 2016-06-22 盛科网络(苏州)有限公司 Method for quickly selecting pre-emphasis parameter of high-speed serdes
CN105930225A (en) * 2016-04-25 2016-09-07 浪潮电子信息产业股份有限公司 Adaptive adjustment and optimization method of link quality
CN106034010A (en) * 2015-09-08 2016-10-19 深圳市恒扬数据股份有限公司 Method and device for screening transmission characteristic parameters of Serdes signal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7672222B2 (en) 2004-01-12 2010-03-02 Hewlett-Packard Development Company, L.P. Link failures
US20060200710A1 (en) * 2005-03-04 2006-09-07 Azea Networks, Ltd. Bit error rate performance estimation and control
US8352842B2 (en) * 2008-06-18 2013-01-08 Acterna Llc Determining contribution of burst noise to data errors
CN101383659B (en) * 2008-10-13 2012-05-09 中兴通讯股份有限公司 Apparatus and method for automatically debugging parameter of communication system
CN107227951B (en) * 2012-01-05 2021-06-11 默林科技股份有限公司 Drill string communication systems, components, and methods
CN103582026B (en) * 2012-07-19 2017-11-28 中兴通讯股份有限公司 A kind of method and apparatus of CPRI adaptive configurations
CN104184617B (en) * 2014-08-12 2017-12-26 福建星网锐捷网络有限公司 InterWorking Equipment pre-add method for reconfiguration, device, system and the network equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090187807A1 (en) * 2008-01-23 2009-07-23 Texas Instruments Incorporated Method for optimizing block coding parameters, a communications controller employing the method and a communications node and link employing the controller
CN106034010A (en) * 2015-09-08 2016-10-19 深圳市恒扬数据股份有限公司 Method and device for screening transmission characteristic parameters of Serdes signal
CN105703840A (en) * 2016-01-22 2016-06-22 盛科网络(苏州)有限公司 Method for quickly selecting pre-emphasis parameter of high-speed serdes
CN105930225A (en) * 2016-04-25 2016-09-07 浪潮电子信息产业股份有限公司 Adaptive adjustment and optimization method of link quality

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166175A (en) * 2019-05-21 2019-08-23 新华三技术有限公司 The method, apparatus and the network equipment of adaptive configuration pre-add weight values

Also Published As

Publication number Publication date
CN108933600A (en) 2018-12-04
KR20200011488A (en) 2020-02-03
KR102230236B1 (en) 2021-03-22
RU2733809C9 (en) 2020-12-07
CN108933600B (en) 2020-11-06
RU2733809C1 (en) 2020-10-07

Similar Documents

Publication Publication Date Title
WO2018214319A1 (en) Serdes link parameter debugging method and device, and computer storage medium
US9455797B2 (en) Network system configured for resolving forward error correction during a link training sequence
US7296211B2 (en) System and method for transferring data on a data link
US8855145B2 (en) Jitter buffer
US20140258813A1 (en) Network System Configured for Resolving Forward Error Correction During A Data Mode
US7406652B2 (en) Method and circuit for reducing SATA transmission data errors by adjusting the period of sending ALIGN primitives
US20130100969A1 (en) Jitter buffer
US20070260623A1 (en) Apparatus, system, and method for read back verification of stored data
JP7424724B2 (en) Data transmission method, data transmission apparatus, communication system, network device, data transmission system, computer readable storage medium, and computer program code
US8948213B2 (en) Jitter buffer
CN106656424B (en) Data transmission verification method
CN108600124B (en) Network unpacking and packing method based on safety protocol
CN113489570B (en) Data transmission method, device and equipment of PCIe link
US9979566B2 (en) Hybrid forward error correction and replay technique for low latency
US20140320996A1 (en) Compressed data verification
US9246491B2 (en) Method and apparatus for performing pipelined operations on parallel input data with feedback
US20210021622A1 (en) Network traffic monitoring device
WO2023116245A1 (en) Sending method and apparatus, receiving method and apparatus, system, device, and storage medium
US8261156B2 (en) Methods and apparatuses for correcting errors in data streams
US9660882B2 (en) Selective convolution encoding of data transmitted over degraded links
JP2011259128A (en) Digital data transmission system, transmitter, receiver, and transmission method
WO2023137666A1 (en) Data transmission method and data transmission apparatus
US11050527B1 (en) Methods, systems, and computer readable media for testing of hardened forward error correction (FEC) implementations
WO2023005313A1 (en) Link monitoring method and device
US11424859B2 (en) Physical layer low-latency forward error correction

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17911076

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20197038332

Country of ref document: KR

Kind code of ref document: A

122 Ep: pct application non-entry in european phase

Ref document number: 17911076

Country of ref document: EP

Kind code of ref document: A1