Link testing device and method

By designing a link test device and using a gain amplifier and an oscilloscope/bit error meter to conduct automated testing, the problem of low processor link test efficiency in the existing technology is solved, achieving full coverage testing and reducing resource consumption.

CN118656261APending Publication Date: 2024-09-17INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410527077.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing processor link testing methods are inefficient and cannot achieve full coverage testing, and the testing process is time-consuming and resource-consuming.

Method used

Design a link test device, including a first controller, a second controller, a PCIe Switch and a main control unit. By controlling the gain amplifier to output gain values ​​of different gears, the insertion of each link of the processor under test is adjusted. Loss, and use oscilloscopes and bit error meters to conduct automated testing to achieve full coverage testing of the processor link.

Benefits of technology

It improves the efficiency of processor link testing, realizes automated testing of each link, verifies the ultimate capability of PCIe Switch under different link loss conditions, and reduces test time and resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656261A
    Figure CN118656261A
Patent Text Reader

Abstract

The invention provides a link test device and method. The device comprises a first controller, a second controller, a PCIe Switch and a main control unit, and under the condition that the first controller is communicated with the PCIe Switch or the first controller is communicated with the second controller, controlling a gain amplifier in the first controller to output gain values of different gears so as to adjust the insertion loss of each link of the processor to be tested, and determining a link test result of the processor to be tested. According to the link test device and method provided by the embodiment of the invention, under the condition that the first controller is communicated with the PCIe Switch or the first controller is communicated with the second controller, the gain amplifier in the first controller is controlled to output the gain values of different gears, the limit capability of the PCIe Switch drive under different link loss conditions is verified, and the test efficiency is improved. And each link is automatically tested, so that the test efficiency of the link to be tested is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a link testing device and method. Background Art

[0002] In the server, the high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIE) bus is fast and has high bandwidth. It is the main input and output (IO) bus connecting the CPU and various devices. With the upgrade of PCIE technology, the current rate of PCIE5.0 has reached 32Gbps, which is a great challenge to signal integrity and has stricter requirements on link loss. This requires a variety of means, such as using better boards to reduce link loss, or introducing PCIE Switch, redriver and retimer and other devices in the link to increase the link's driving capability.

[0003] In the existing link topology for the processor, there are quite a lot of PCIE buses and many types of interfaces. The existing method of testing the links of the processor is to perform sampling tests, and the test overshoot is manually switched, and it is impossible to perform full coverage tests on all links. If a full coverage test is performed, it will consume a lot of time and resources, resulting in low test efficiency. Summary of the invention

[0004] The present invention provides a link testing device and method for improving the testing efficiency of a link of a processor.

[0005] The present invention provides a link testing device, comprising: a first controller, a second controller, a PCIe Switch and a main control unit;

[0006] The first controller is connected to the processor to be tested, the PCIe Switch is connected to the first controller, the second controller is connected to the first controller, the first end of the main control unit is connected to the first controller, the second end of the main control unit is connected to the PCIe Switch, the third end of the main control unit is connected to the second controller, and the fourth end of the main control unit is connected to the processor to be tested;

[0007] The main control unit is used to switch the connection line of the first controller based on the splitter in the first controller, so that the first controller is connected to the PCIe Switch or the first controller is connected to the second controller;

[0008] The main control unit is also used to: when the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, control the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and determine the link test result of the processor to be tested.

[0009] According to a link testing device provided by the present invention, a first end of a first controller is connected to a first end of a processor to be tested, a second end of the first controller is connected to a first end of the second controller, a third end of the first controller is connected to a first end of the PCIe Switch, a fourth end of the first controller is connected to a first end of the main control unit, a second end of the PCIe Switch is connected to a second end of the main control unit, a second end of the second controller is connected to a first end of a test tool, a third end of the second controller is connected to a third end of the main control unit, a fourth end of the main control unit is connected to a second end of the processor to be tested, and a fifth end of the main control unit is connected to a second end of the test tool, wherein the test tool comprises an oscilloscope and a bit error meter;

[0010] The main control unit is specifically used for:

[0011] When controlling the first controller to be connected to the PCIe Switch, controlling the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, testing the processor to be tested, and receiving first output results of the processor to be tested and the PCIe Switch;

[0012] Under the condition that the first controller is controlled to be connected to the second controller, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, the processor to be tested is tested, and a second output result of the test tool is received;

[0013] A link test result of the processor to be tested is determined based on the first output result and the second output result.

[0014] According to a link testing device provided by the present invention, the second controller includes a first channel controller and a second channel controller;

[0015] The first channel controller is connected to the transmission link in the first controller and is used to perform a switching operation of the transmission link;

[0016] The second channel controller is connected to the receiving link in the first controller and is used to perform a switching operation of the receiving link.

[0017] According to a link testing device provided by the present invention, when the testing tool is an oscilloscope, the main control unit is further used for:

[0018] When the gain amplifier in the first controller outputs gain values ​​of different gears, the first channel controller and the second channel controller are controlled, and link switching is performed on the second controller one at a time to obtain the analysis results of the oscilloscope's output of each link of the second controller.

[0019] According to a link testing device provided by the present invention, when the testing tool is a bit error tester, the main control unit is further used for:

[0020] When the gain amplifier in the first controller outputs gain values ​​of different gears, the first channel controller and the second channel controller are controlled to perform link switching on the second controller one at a time to obtain analysis results of the output of each link of the second controller by the bit error meter.

[0021] According to a link testing device provided by the present invention, a first controller includes an insertion loss module, a gain amplifier and a splitter;

[0022] The insertion loss module is connected to each link of the processor to be tested based on the golden finger, and is used to provide the insertion loss of each link of the processor to be tested;

[0023] The gain amplifier is connected to the insertion loss module and is used to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested;

[0024] The first end of the splitter is connected to the gain amplifier, the second end of the splitter is connected to the first end of the PCIeSwitch, and the third end of the splitter is connected to the first end of the second controller, and is used to switch the connection line of the first controller so that the first controller is connected to the PCIe Switch or the first controller is connected to the second controller.

[0025] According to a link testing device provided by the present invention, the first controller further includes: a loss balancing unit;

[0026] The loss equalization unit is connected to the gain amplifier and is used to provide a line insertion loss value, and the line insertion loss value is used to offset the loss during the transmission process of each link.

[0027] The present invention also provides a link testing method, comprising:

[0028] Control the splitter in the first controller to switch the connection line of the first controller so that the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, the first controller is connected to the processor to be tested, the PCIe Switch is connected to the first controller, and the second controller is connected to the first controller;

[0029] When the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested and determine the link test result of the processor to be tested.

[0030] According to a link testing method provided by the present invention, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and the link test result of the processor to be tested is determined, including:

[0031] In the case of controlling the first controller to be connected to the PCIe Switch, controlling the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, testing the processor to be tested, and receiving the first output result of the processor to be tested and the PCIe Switch, wherein the first end of the first controller is connected to the first end of the processor to be tested, the second end of the first controller is connected to the first end of the second controller, the third end of the first controller is connected to the first end of the PCIe Switch, and the second end of the second controller is connected to the first end of a test tool, wherein the test tool includes an oscilloscope and a bit error meter;

[0032] Under the condition that the first controller is controlled to be connected to the second controller, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, the processor to be tested is tested, and a second output result of the test tool is received;

[0033] A link test result of the processor to be tested is determined based on the first output result and the second output result.

[0034] According to a link testing method provided by the present invention, after controlling the gain amplifier in the first controller to output gain values ​​of different gears, the method further includes:

[0035] Determine a line insertion loss value, where the line insertion loss value is used to offset the loss during transmission of each link;

[0036] The line insertion loss value is superimposed on the gain values ​​of different gears output by the gain amplifier in the first controller.

[0037] The link testing device and method provided by the embodiment of the present invention control the gain amplifier in the first controller to output gain values ​​of different gears by controlling the first controller to be connected to the PCIe Switch or the first controller to be connected to the second controller, so as to adjust the insertion loss of each link of the processor to be tested, verify the limit capacity of the PCIE Switch drive under different link loss conditions, and realize the automatic testing process of each link to be tested, thereby improving the testing efficiency of the link to be tested. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1 It is a structural schematic diagram of a link testing device provided by the present invention;

[0040] Figure 2 It is a schematic diagram of the test connection structure provided by the present invention;

[0041] Figure 3 is a schematic diagram of frequency response results provided by the present invention;

[0042] Figure 4 is a structural schematic diagram of a second controller provided by the present invention;

[0043] Figure 5 is a structural schematic diagram of a first controller provided by the present invention;

[0044] Figure 6 It is a flowchart of the link testing method provided by the present invention;

[0045] Figure 7 It is a flow chart of the link testing method provided by the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] The present invention provides a link testing device. Figure 1 This is a schematic diagram of the structure of the link test device provided by the present invention. Figure 1 The link testing device provided by the present invention includes: a first controller 110, a second controller 120, a PCIe Switch 130 and a main control unit 140.

[0048] The following describes each part of the link test device separately.

[0049] The first controller 110 is connected to the processor under test, the PCIe Switch 130 is connected to the first controller 110, the second controller 120 is connected to the first controller 110, a first end of the main control unit 140 is connected to the first controller 110, a second end of the main control unit 140 is connected to the PCIe Switch 130, a third end of the main control unit 140 is connected to the second controller 120, and a fourth end of the main control unit 140 is connected to the processor under test.

[0050] The processor under test contains multiple high-speed link lanes, which refer to multiple high-speed channels in the processor for data transmission. These channels are called lanes, which can be unidirectional or bidirectional and usually consist of differential signal pairs. Each lane has its own transmit and receive signal lines for transmitting data between the processor and external devices.

[0051] The PCIe Switch 130 connected to the processor under test is a hardware device for managing and routing PCI Express (PCIe) channels. It allows multiple PCIe devices to communicate with the processor or other system components through a single PCIe interface. The PCIe Switch 130 is generally connected to the processor to expand the link of the processor, which also includes multiple high-speed link lanes. It can be understood that based on the test of the PCIe Switch 130 link, full coverage testing of the lanes related to the processor under test can be achieved.

[0052] The first controller 110 and the second controller 120 are used to implement a testing process for a link of the processor to be tested.

[0053] The main control unit 140 is used for controlling the link test of the processor to be tested. Specifically, the first controller 110 includes a splitter. The splitter is used to switch the line. The main control unit 140 controls the splitter in the first controller to switch the line so that the first controller 110 is connected to the PCIe Switch 130 or the first controller 110 is connected to the second controller 120.

[0054] The first controller 110 includes a gain amplifier. The main control unit 140 can output gain values ​​of different gears by controlling the gain amplifier in the first controller 110 to adjust the insertion loss of each link of the processor to be tested.

[0055] Specifically, the main control unit 140 controls the first controller 110 and the PCIe Switch

[0056] When the processor to be tested is connected to the PCIe Switch 130, the gain amplifier in the first controller 110 is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, test the processor to be tested, and receive the output of the processor to be tested and the output of the PCIe Switch 130;

[0057] The main control unit 140, while controlling the first controller 110 to be connected with the second controller 120, controls the gain amplifier in the first controller 110 to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, tests the processor to be tested, and receives the output of the second controller.

[0058] The main control unit 140 evaluates the link of the processor to be tested based on the received output of the processor to be tested, the output of the PCIe Switch 130 and the output of the second controller, and determines a link test result of the processor to be tested.

[0059] The link testing device provided in the embodiment of the present invention controls the gain amplifier in the first controller to output gain values ​​of different gears through the main control unit when the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, so as to adjust the insertion loss of each link of the processor to be tested, verify the limit capacity of the PCIE Switch drive under different link loss conditions, and realize the automatic testing process of each link to be tested, thereby improving the testing efficiency of the link to be tested.

[0060] In one embodiment, a first end of a first controller is connected to a first end of a processor to be tested, a second end of the first controller is connected to a first end of the second controller, a third end of the first controller is connected to a first end of the PCIeSwitch, a fourth end of the first controller is connected to a first end of the main control unit, a second end of the PCIeSwitch is connected to a second end of the main control unit, a second end of the second controller is connected to a first end of a test tool, a third end of the second controller is connected to a third end of the main control unit, a fourth end of the main control unit is connected to a second end of the processor to be tested, and a fifth end of the main control unit is connected to a second end of the test tool, wherein the test tool comprises an oscilloscope and a bit error meter; the main control unit is specifically used to: when controlling the first controller to be connected to the PCIe Switch, control the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, test the processor to be tested, and receive the processor to be tested and the PCIe Switch. The first output result of the switch; when the first controller is connected to the second controller, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, the processor to be tested is tested, and the second output result of the test tool is received; based on the first output result and the second output result, the link test result of the processor to be tested is determined.

[0061] The connection relationship of the specific test process can be as follows Figure 2 The test connection structure provided by the present invention is shown in the schematic diagram. A test object (Device Under Test, DUT) is set. The DUT includes a processor to be tested and a PCIe standard interface Connector. The PCIe standard interface Connector of the processor to be tested in the DUT is connected to the first controller using a Golden Finger to achieve connection between the first end of the first controller and the first end of the processor to be tested.

[0062] Based on the main control unit, an insertion loss is provided for each link, and based on controlling the gain amplifier in the first controller to output gain values ​​of different gears, the insertion loss of each link of the processor to be tested is adjusted. The specific value of the insertion loss can be 30dB.

[0063] The specific frequency response can be Figure 3The frequency response result diagram provided by the present invention is shown in the horizontal axis for the insertion loss value and the vertical axis for the frequency response value. Since PCIe signals use different frequency points at different rates, for example, PCIe4.0 has a rate of 16 GHz and uses a frequency point of 8 GHz. At the 8 GHz frequency point, Figure 3 The left figure in the middle shows an insertion loss of -6dB before input gain, and the right figure shows an insertion loss of -2.88dB after input gain.

[0064] If there is no gain amplifier, each lane will be in a high-loss state, and the PCIE signal will be in a low-amplitude state, close to no signal. The gain amplifier provides gain amplification for each lane at different frequencies to reduce the insertion loss value. By adjusting the gain value of the gain amplifier to output different gears, the insertion loss of each lane can be continuously adjusted.

[0065] The splitter provides selection for the channel of the PCIe signal. When the main control unit selects the PCIe Switch to perform the test, the PCIe signal only takes the route to the PCIe Switch, and the route to the second controller is in a high-impedance state; when the main control unit selects the test tool for the test, the PCIe Switch route is in a high-impedance state, and the PCIE signal only takes the route of the second controller.

[0066] In the case of controlling the first controller to be connected to the PCIe Switch, receiving the first output result of the processor to be tested and the PCIe Switch.

[0067] Optionally, the specific test process can be: when the PCIe Switch is selected to be connected to perform the test, the main control unit controls the gain amplifier Gain Amplifie in the first controller to increase all lane gain values, controls the Divider (divider) to switch to the PCIe Switch channel, restarts the DUT device and reads the link status of the CPU and the PCIe Switch. If no link is established, all lane gain values ​​are increased, and then the DUT device is restarted and the link status of the CPU and the PCIe Switch is read. Repeat the above actions until the CPU and the PCIe Switch establish a normal link. At this time, the main control unit controls the CPU and PCIeSwitch driver software respectively, reads the CPU-side margin result and the PCIe Switch-side EYE / bathtub curve / PRBS result, and determines whether the test result meets expectations. If it does not meet expectations, repeat the above actions until it meets expectations, and record the gain value of the gain amplifier Gain Amplifie input at this time, thereby deriving the maximum loss limit value required by the PCIe Switch, and generating the first test result under different losses.

[0068] Under the condition that the first controller is controlled to communicate with the second controller, a second output result of the test tool is received.

[0069] Specifically, the testing process can be:

[0070] When the test tool is selected as an oscilloscope for testing, the main control unit controls the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and test the processor to be tested. All PCIe bus signals output by the second controller are connected to the oscilloscope, and the main control unit controls the oscilloscope to capture the PCIe Tx and Clock test data respectively, and the Rx channel is used for PCIE rate switching, and the Sigtest tool is used to analyze the test results respectively.

[0071] When the test tool is selected as a bit error meter for testing, the main control unit controls the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and the processor to be tested is tested. All PCIe bus signals output by the second controller are connected to the bit error meter, and the main control unit controls the bit error meter to adjust the PCIe state to the loopback state to perform the bit error test and obtain the test results.

[0072] Based on the analysis and test results of the oscilloscope and the analysis and test results of the bit error meter, a second output result is determined.

[0073] Based on the first output result and the second output result, a link test result of the processor to be tested is determined.

[0074] In one embodiment, the second controller includes a first channel controller and a second channel controller; the first channel controller is connected to the sending link in the first controller, and is used to perform a switching operation of the sending link; the second channel controller is connected to the receiving link in the first controller, and is used to perform a switching operation of the receiving link.

[0075] Optionally, the structural diagram of the second controller can be as follows: Figure 4 The structural schematic diagram of the second controller provided by the present invention is shown in FIG.

[0076] The structure of the second controller Controller2 mainly includes Clock routing, the first channel controller ChannelSwitch 0, and the second channel controller Channel Switch 1. The Clock routing is a straight-through path without any operation interference, and the path loss meets the Clock loss requirements. The first channel controller Channel Switch 0 performs the Tx signal switching action of the transmission link, and switches a link lane each time; the second channel controller Channel Switch 1 performs the Tx signal switching action of the transmission link, and switches a lane each time; Controller2 and the test tool are connected using SMACable, and the PCIE bus (including Clock and PCIE Tx / RX signals) is used in SMACable, and the test tool performs testing to verify whether the output signal meets the requirements.

[0077] In one embodiment, when the test tool is an oscilloscope, the main control unit is also used to: when the gain amplifier in the first controller outputs gain values ​​of different gears, control the first channel controller and the second channel controller, and perform link switching on the second controller one at a time to obtain the analysis results of the oscilloscope's output on each link of the second controller.

[0078] When the test tool is an oscilloscope, the main control unit controls the gain amplifier in the first controller Controller1 to increase the laneN gain value. The gain value at this time offsets the insertion loss Insertion loss and the insertion loss value introduced by the PCIe path. At this time, the automated test system is equivalent to a test fixture. The value of N defaults to 0. The Divider in the first controller is controlled to switch to the channel connected to the second controller Controller2, and the channel controller in the second controller Controller2 is controlled to switch to the LaneN channel. At this time, all PCIe bus signals are connected to the oscilloscope. The main control unit controls the oscilloscope to capture the PCIe Tx and Clock test data respectively, and the Rx channel of the receiving link is used for PCIE rate switching, and Sigtest is used to analyze the test results respectively; if the N value does not reach the maximum bandwidth of the interface, the above actions are performed until all link lanes are tested, and the output analysis results are sorted out.

[0079] In one embodiment, when the test tool is a bit error meter, the main control unit is further used to: when the gain amplifier in the first controller outputs gain values ​​of different gears, control the first channel controller and the second channel controller, and perform link switching on the second controller one at a time, so as to obtain the analysis results of the bit error meter's output on each link of the second controller.

[0080] In the case where the test tool is a bit error meter, the main control unit controls the gain amplifier in the first controller Controller1 to increase the lane N gain value. The gain value at this time offsets the insertion loss Insertion loss and the insertion loss value introduced by the PCIe path. At this time, the automated test system is equivalent to a test fixture. The N value defaults to 0. The Divider is controlled to switch to the channel connected to the second controller Controller2. The channel controller in the second controller Controller2 is controlled to switch to the Lane N channel. At this time, all PCIe bus signals are connected to the bit error meter. The main control unit controls the bit error meter to adjust the PCIe state to the Loopback state to perform a bit error test. If the N value does not reach the maximum bandwidth of the interface, the above actions are performed until all link lanes are tested, and the output analysis results are sorted out.

[0081] In one embodiment, the first controller includes an insertion loss module, a gain amplifier and a splitter; the insertion loss module is connected to each link of the processor to be tested based on a gold finger, and is used to provide the insertion loss of each link of the processor to be tested; the gain amplifier is connected to the insertion loss module, and is used to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested; the first end of the splitter is connected to the gain amplifier, the second end of the splitter is connected to the first end of the PCIe Switch, and the third end of the splitter is connected to the first end of the second controller, and is used to switch the connection line of the first controller so that the first controller is connected to the PCIe Switch or the first controller is connected to the second controller.

[0082] Specifically, the structural diagram of the first controller can be as follows: Figure 5 The structural schematic diagram of the first controller provided by the present invention is shown.

[0083] The insertion loss module provides 30dB insertion loss for each lane. If there is no gain amplifier, each lane will be in a high loss state, and the PCIE signal will be in a low amplitude state, close to no signal. The gain amplifier provides gain amplification for each lane at different frequencies to reduce the insertion loss value. By adjusting the gain value of the gain amplifier to output different gears, the insertion loss of each lane can be continuously adjusted.

[0084] In one embodiment, the first controller further includes: a loss balancing unit; the loss balancing unit is connected to the gain amplifier and is used to provide a line insertion loss value, and the line insertion loss value is used to offset the loss during the transmission of each link.

[0085] It is understandable that, for the entire link test device, which includes multiple lines, the entire device is equivalent to an insertion attenuator, which increases the loss of the link and causes inaccurate final test results.

[0086] A loss balancing unit is provided in the first controller to provide a line insertion loss value for offsetting the loss during transmission of each link, thereby improving the accuracy of the test process.

[0087] In the process of performing high-speed signal testing on the links of the processor to be tested, it is necessary to predetermine the line insertion loss value corresponding to the line loss during the transmission of each link of the processor.

[0088] Specifically, a frequency response test may be performed on a test link connected to the processor to be tested based on a network analyzer.

[0089] The network analyzer can measure the transmission characteristics of the link at different frequencies, including transmission loss, phase delay, etc. By analyzing the test results, the loss of the test link connected to the processor under test at different frequencies can be determined. Based on the determined line insertion loss value, the loss of each link during transmission is offset, improving the accuracy of the test process.

[0090] To determine the line insertion loss value, the link can also be tested based on the Time Domain Reflectometry / Transmission (TDR / TDT) technology. TDR / TDT test instruments can send short pulse signals and measure their transmission in the link, thereby determining problems such as reflection, impedance mismatch and transmission loss in the link.

[0091] Subsequently, an oscilloscope and a bit error meter are connected to test the PCIE Tx signal and the bit error respectively until the test results do not meet the requirements. The gain value of the Gain Amplifie input at this time is recorded to obtain the maximum loss limit value of the driving capability of the PCIE main control, and a test report is recorded to provide data reference for the subsequent reduction of board material usage.

[0092] Figure 6 The following is a flow chart of the link testing method provided by the present invention. Figure 6 , the link testing method provided by the present invention comprises:

[0093] Step 610, controlling the splitter in the first controller to switch the connection line of the first controller so that the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, the first controller is connected to the processor to be tested, the PCIe Switch is connected to the first controller, and the second controller is connected to the first controller;

[0094] Step 620, when the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, control the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and determine the link test result of the processor to be tested.

[0095] The following takes a computer executing the link testing method provided by the present invention as an example to describe the technical solution of the present invention in detail.

[0096] The processor under test contains multiple high-speed link lanes, which refer to multiple high-speed channels in the processor for data transmission. These channels are called lanes, which can be unidirectional or bidirectional and usually consist of differential signal pairs. Each lane has its own transmit and receive signal lines for transmitting data between the processor and external devices.

[0097] The PCIe Switch connected to the processor under test is a hardware device used to manage and route PCI Express (PCIe) channels. It allows multiple PCIe devices to communicate with the processor or other system components through a single PCIe interface. The PCIe Switch is generally connected to the processor to expand the processor's links, which also include multiple high-speed link lanes. It can be understood that based on the test of the PCIe Switch link, full coverage testing of the relevant lanes of the processor under test can be achieved.

[0098] The first controller and the second controller are used to implement a testing process of a link of the processor to be tested.

[0099] The splitter switching line in the first controller is controlled so that the first controller is connected to the PCIe Switch or the first controller is connected to the second controller.

[0100] The first controller includes a gain amplifier. The gain amplifier in the first controller can be controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested.

[0101] Specifically, when the first controller is controlled to be connected to the PCIe Switch, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, the processor to be tested is tested, and the output of the processor to be tested and the output of the PCIe Switch are received;

[0102] When the first controller is controlled to be connected to the second controller, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, the processor to be tested is tested, and the output of the second controller is received.

[0103] Based on the received output of the processor to be tested, the output of the PCIe Switch, and the output of the second controller, the link of the processor to be tested is evaluated to determine a link test result of the processor to be tested.

[0104] The link testing method provided by the embodiment of the present invention controls the gain amplifier in the first controller to output gain values ​​of different gears when the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, so as to adjust the insertion loss of each link of the processor to be tested, verify the limit capacity of the PCIe switch driver under different link loss conditions, and realize the automatic testing process of each link to be tested, thereby improving the testing efficiency of the link to be tested.

[0105] In one embodiment, controlling the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and determining the link test result of the processor to be tested, includes: when the first controller is controlled to be connected to the PCIe Switch, controlling the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, testing the processor to be tested, and receiving the first output result of the processor to be tested and the PCIe Switch, wherein a first end of the first controller is connected to a first end of the processor to be tested, a second end of the first controller is connected to a first end of the second controller, a third end of the first controller is connected to a first end of the PCIe Switch, and a second end of the second controller is connected to a first end of a test tool, wherein the test tool includes an oscilloscope and a bit error meter; when the first controller is controlled to be connected to the second controller, controlling the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, testing the processor to be tested, and receiving the second output result of the test tool; and determining the link test result of the processor to be tested based on the first output result and the second output result.

[0106] A test object (Device Under Test, DUT) is set. The DUT includes a processor to be tested and a PCIe standard interface Connector. The PCIe standard interface Connector of the processor to be tested in the DUT is connected to the first controller using a gold finger to achieve connection between the first end of the first controller and the first end of the processor to be tested.

[0107] Insertion loss is provided for each link, and the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested. The specific value of Insertion loss can be 30 dB.

[0108] If there is no gain amplifier, each lane will be in a high-loss state, and the PCIE signal will be in a low-amplitude state, close to no signal. The gain amplifier provides gain amplification for each lane at different frequencies to reduce the insertion loss value. By adjusting the gain value of the gain amplifier to output different gears, the insertion loss of each lane can be continuously adjusted.

[0109] The splitter provides selection for the channel of the PCIe signal. When the PCIe Switch is selected for testing, the PCIe signal only takes the route to the PCIe Switch, and the route to the second controller is in a high-impedance state. When the test tool is selected for testing, the PCIeSwitch route is in a high-impedance state, and the PCIE signal only takes the route of the second controller.

[0110] In the case of controlling the first controller to be connected to the PCIe Switch, receiving the first output result of the processor to be tested and the PCIe Switch.

[0111] Optionally, the specific test process can be: when the PCIe Switch is connected to perform the test, the gain amplifier Gain Amplifie in the first controller is controlled to increase the gain values ​​of all lanes, the Divider is controlled to switch to the PCIe Switch channel, the DUT device is restarted and the link status of the CPU and the PCIe Switch is read. If no link is established, all lane gain values ​​are increased, and then the DUT device is restarted and the link status of the CPU and the PCIe Switch is read. Repeat the above actions until the CPU and the PCIe Switch establish a normal link. At this time, the CPU and PCIe Switch driver software are controlled respectively, and the CPU-side margin result and the PCIe Switch-side EYE / bathtub curve / PRBS result are read. By determining whether the test result meets expectations, if it does not meet expectations, repeat the above actions until it meets expectations, and record the gain value of the gain amplifier GainAmplifie input at this time, thereby obtaining the maximum loss limit value required by the PCIe Switch, and generating the first test result under different losses.

[0112] Under the condition that the first controller is controlled to communicate with the second controller, a second output result of the test tool is received.

[0113] Specifically, the testing process can be:

[0114] When the test tool is selected as an oscilloscope for testing, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and the processor to be tested is tested. All PCIe bus signals output by the second controller are connected to the oscilloscope, and the oscilloscope is controlled to capture the PCIe Tx and Clock test data respectively, and the Rx channel is used for PCIE rate switching, and the test results are analyzed using the Sigtest tool respectively.

[0115] When the test tool is selected as a bit error meter for testing, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and the processor to be tested is tested. All PCIe bus signals output by the second controller are connected to the bit error meter, and the bit error meter is controlled to adjust the PCIe state to the loopback state to perform the bit error test and obtain the test result.

[0116] Based on the analysis and test results of the oscilloscope and the analysis and test results of the bit error meter, a second output result is determined.

[0117] Based on the first output result and the second output result, a link test result of the processor to be tested is determined.

[0118] In one embodiment, after controlling the gain amplifier in the first controller to output gain values ​​of different gears, it also includes: determining a line insertion loss value, wherein the line insertion loss value is used to offset the loss during the transmission of each link; and superimposing the line insertion loss value on the gain values ​​of different gears output by the gain amplifier in the first controller.

[0119] It is understandable that, for the entire link test device, which includes multiple lines, the entire device is equivalent to an insertion attenuator, which increases the loss of the link and causes inaccurate final test results.

[0120] The line insertion loss values ​​used to offset the losses in the transmission process of each link are superimposed, which improves the accuracy of the test process.

[0121] The present invention also provides a flow chart of applying the link testing method provided by the present invention. Figure 7 As shown, specifically including:

[0122] The system is implemented based on an automated test system, which includes a first controller, a second controller, a PCIeSwitch, and a main control unit. The port of the automated test system is connected to the DUT, and the test to be performed is selected. The set test object DUT includes a processor to be tested and a PCIe standard interface Connector. The PCIe standard interface Connector of the processor to be tested in the DUT is connected to the first controller using a Golden Finger to achieve the connection between the first end of the first controller and the first end of the processor to be tested.

[0123] When the PCIe Switch is connected to perform the test, the main control unit controls the gain amplifier Gain Amplifie in the first controller to increase the gain values ​​of all lanes, controls the Divider (divider) to switch to the PCIe Switch channel, restarts the DUT device and reads the link status of the CPU and PCIe Switch. If no link is established, all lane gain values ​​are increased, and then the DUT device is restarted and the link status of the CPU and PCIe Switch is read. The above actions are repeated until the CPU and PCIeSwitch establish a normal link. At this time, the main control unit controls the CPU and PCIe Switch driver software respectively, reads the CPU-side margin result and the PCIe Switch-side EYE / bathtub curve / PRBS result, and determines whether the test result meets expectations. If it does not meet expectations, the above actions are repeated until it meets expectations, and the gain value of the gain amplifier GainAmplifie input at this time is recorded, thereby obtaining the maximum loss limit value required by the PCIe Switch, and generating the first test result under different losses.

[0124] When the test tool is selected as an oscilloscope for testing, the main control unit controls the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and test the processor to be tested. All PCIe bus signals output by the second controller are connected to the oscilloscope, and the main control unit controls the oscilloscope to capture the PCIe Tx and Clock test data respectively, and the Rx channel is used for PCIE rate switching, and the Sigtest tool is used to analyze the test results respectively.

[0125] When the test tool is selected as a bit error meter for testing, the main control unit controls the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and the processor to be tested is tested. All PCIe bus signals output by the second controller are connected to the bit error meter, and the main control unit controls the bit error meter to adjust the PCIe state to the loopback state to perform the bit error test and obtain the test results.

[0126] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0127] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A link testing device, characterized in that: The device comprises: a first controller, a second controller, a PCIeSwitch and a main control unit; The first controller is connected to the processor to be tested, the PCIe Switch is connected to the first controller, the second controller is connected to the first controller, the first end of the main control unit is connected to the first controller, the second end of the main control unit is connected to the PCIe Switch, the third end of the main control unit is connected to the second controller, and the fourth end of the main control unit is connected to the processor to be tested; The main control unit is used to switch the connection line of the first controller based on the splitter in the first controller, so that the first controller is connected to the PCIe Switch or the first controller is connected to the second controller; The main control unit is also used to: when the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, control the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, and determine the link test result of the processor to be tested.

2. The link testing device according to claim 1, characterized in that: The first end of the first controller is connected to the first end of the processor to be tested, the second end of the first controller is connected to the first end of the second controller, the third end of the first controller is connected to the first end of the PCIe Switch, the fourth end of the first controller is connected to the first end of the main control unit, the second end of the PCIe Switch is connected to the second end of the main control unit, the second end of the second controller is connected to the first end of the test tool, the third end of the second controller is connected to the third end of the main control unit, the fourth end of the main control unit is connected to the second end of the processor to be tested, and the fifth end of the main control unit is connected to the second end of the test tool, and the test tool includes an oscilloscope and a bit error meter; The main control unit is specifically used for: When controlling the first controller to be connected to the PCIe Switch, controlling the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, testing the processor to be tested, and receiving first output results of the processor to be tested and the PCIe Switch; Under the condition that the first controller is controlled to be connected to the second controller, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, the processor to be tested is tested, and a second output result of the test tool is received; A link test result of the processor to be tested is determined based on the first output result and the second output result.

3. The link testing device according to claim 2, characterized in that: The second controller includes a first channel controller and a second channel controller; The first channel controller is connected to the transmission link in the first controller and is used to perform a switching operation of the transmission link; The second channel controller is connected to the receiving link in the first controller and is used to perform a switching operation of the receiving link.

4. The link testing device according to claim 3, characterized in that: When the test tool is an oscilloscope, the main control unit is further used for: When the gain amplifier in the first controller outputs gain values ​​of different gears, the first channel controller and the second channel controller are controlled, and link switching is performed on the second controller one at a time to obtain the analysis results of the oscilloscope's output of each link of the second controller.

5. The link testing device according to claim 4, characterized in that: When the test tool is a bit error tester, the main control unit is further used for: When the gain amplifier in the first controller outputs gain values ​​of different gears, the first channel controller and the second channel controller are controlled to perform link switching on the second controller one at a time to obtain analysis results of the output of each link of the second controller by the bit error meter.

6. The link testing device according to claim 2, characterized in that: The first controller includes an insertion loss module, a gain amplifier and a splitter; The insertion loss module is connected to each link of the processor to be tested based on the golden finger, and is used to provide the insertion loss of each link of the processor to be tested; The gain amplifier is connected to the insertion loss module and is used to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested; The first end of the splitter is connected to the gain amplifier, the second end of the splitter is connected to the first end of the PCIeSwitch, and the third end of the splitter is connected to the first end of the second controller, and is used to switch the connection line of the first controller so that the first controller is connected to the PCIe Switch or the first controller is connected to the second controller.

7. The link testing device according to claim 6, characterized in that: The first controller further includes: a loss leveling unit; The loss equalization unit is connected to the gain amplifier and is used to provide a line insertion loss value, and the line insertion loss value is used to offset the loss during the transmission process of each link.

8. A link testing method, characterized in that: The method comprises: Control the splitter in the first controller to switch the connection line of the first controller so that the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, the first controller is connected to the processor to be tested, the PCIe Switch is connected to the first controller, and the second controller is connected to the first controller; When the first controller is connected to the PCIe Switch or the first controller is connected to the second controller, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested and determine the link test result of the processor to be tested.

9. The link testing method according to claim 8, characterized in that: The step of controlling the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested and determining the link test result of the processor to be tested includes: In the case of controlling the first controller to be connected to the PCIe Switch, controlling the gain amplifier in the first controller to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, testing the processor to be tested, and receiving the first output result of the processor to be tested and the PCIe Switch, wherein the first end of the first controller is connected to the first end of the processor to be tested, the second end of the first controller is connected to the first end of the second controller, the third end of the first controller is connected to the first end of the PCIe Switch, and the second end of the second controller is connected to the first end of a test tool, wherein the test tool includes an oscilloscope and a bit error meter; Under the condition that the first controller is controlled to be connected to the second controller, the gain amplifier in the first controller is controlled to output gain values ​​of different gears to adjust the insertion loss of each link of the processor to be tested, the processor to be tested is tested, and a second output result of the test tool is received; A link test result of the processor to be tested is determined based on the first output result and the second output result.

10. The link testing method according to claim 8, characterized in that: After controlling the gain amplifier in the first controller to output gain values ​​of different gears, the method further includes: Determine a line insertion loss value, where the line insertion loss value is used to offset the loss during transmission of each link; The line insertion loss value is superimposed on the gain values ​​of different gears output by the gain amplifier in the first controller.