Method, apparatus, and system for configuring high-speed serial bus parameter
09940294 ยท 2018-04-10
Assignee
Inventors
Cpc classification
H04L1/0001
ELECTRICITY
H04L25/03019
ELECTRICITY
International classification
H04L25/03
ELECTRICITY
H04L1/00
ELECTRICITY
Abstract
A method for configuring a high-speed serial bus parameter, including sending an application signal from a transmit end of a high-speed serial bus to a receive end of the high-speed serial bus, searching a parameter configuration table for a high-speed serial bus parameter that matches all of a frequency of the application signal, a loss of the application signal on the high-speed serial bus, and a material type of a wiring board of the high-speed serial bus, and configuring the high-speed serial bus according to the high-speed serial bus parameter. According to the method, a problem involving configuration of a high-speed serial bus parameter when a transmitted signal is compensated may be solved.
Claims
1. A method for configuring a high-speed serial bus parameter, comprising: sending an application signal from a transmit end of a high-speed serial bus to a receive end of the high-speed serial bus, wherein the application signal is used to carry information about transmission data; acquiring a loss of the application signal on the high-speed serial bus and a material type of a wiring board of the high-speed serial bus; acquiring a frequency of the application signal according to one of a transmit rate and a receive rate of the application signal; searching a parameter configuration table for the high-speed serial bus parameter that matches all of: the frequency of the application signal, the loss of the application signal on the high-speed serial bus, and the material type of the wiring board of the high-speed serial bus, wherein the parameter configuration table comprises a correspondence between a bus parameter and a signal frequency, a signal loss, and a material type of a wiring board; configuring the high-speed serial bus according to the high-speed serial bus parameter, wherein acquiring the material type of the wiring board of the high-speed serial bus comprises: sending a first code stream, a second code stream, and a third code stream from the transmit end of the high-speed serial bus to the receive end of the high-speed serial bus; acquiring an amplitude A.sub.1 of the first code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.1 of the first code stream at the receive end of the high-speed serial bus; acquiring an amplitude A.sub.2 of the second code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.2 of the second code stream at the receive end of the high-speed serial bus; acquiring an amplitude A.sub.3 of the third code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.3 of the third code stream at the receive end of the high-speed serial bus; acquiring a frequency N.sub.1 of the first code stream, a frequency N.sub.2 of the second code stream, and a frequency N.sub.3 of the third code stream; calculating a loss S.sub.1 of the first code stream on the high-speed serial bus according to the amplitude A.sub.1 and the amplitude A.sub.1; calculating a loss S.sub.2 of the second code stream on the high-speed serial bus according to the amplitude A.sub.2 and the amplitude A.sub.2; calculating a loss S.sub.3 of the third code stream on the high-speed serial bus according to the amplitude A.sub.3 and the amplitude A.sub.3; and determining the material type of the wiring board of the high-seed serial bus according to: the frequency N.sub.1 of the first code stream and the loss S.sub.1 of the first code stream on the high-speed serial bus, the frequency N.sub.2 of the second code stream and the loss S.sub.2 of the second code stream on the high-speed serial bus, the frequency N.sub.3 of the third code stream and the loss S.sub.3 of the third code stream on the high-speed serial bus, and a material type characteristics table of the wiring board of the high-speed serial bus, and wherein the material type characteristics table comprises: a correspondence among the material type of the wiring board, a loss of a transmitted signal, and a frequency of the transmitted signal.
2. The method according to claim 1, wherein acquiring the loss of the application signal on the high-speed serial bus comprises: acquiring a first amplitude of the application signal at the transmit end of the high-speed serial bus and a second amplitude of the application signal at the receive end of the high-speed serial bus; and calculating the loss of the application signal on the high-speed serial bus according to the first amplitude and the second amplitude.
3. The method according to claim 1, wherein the method further comprises acquiring the parameter configuration table, and wherein acquiring the parameter configuration table comprises: simulating a data transmission stream by using a pseudo random binary sequence (PRBS); testing, based on a selected frequency, a selected material type of the wiring board of the high-speed serial bus, and a selected loss of the data transmission stream on the high-speed serial bus, parameters of the high-speed serial bus; selecting a parameter with a largest bit-error-free interval from the parameters of the high-speed serial bus as an optimal parameter; verifying whether a margin of the optimal parameter is greater than a preset threshold; using the optimal parameter as a verified high-speed serial bus parameter that matches the selected frequency, the selected material type of the wiring board of the high-speed serial bus, and the selected loss of the data transmission stream on the high-speed serial bus when the margin of the optimal parameter is greater than the preset threshold; and writing the verified high-speed serial bus parameter into the parameter configuration table.
4. An apparatus for configuring a high-speed serial bus parameter, comprising: a transmitter configured to send an application signal from a transmit end of a high-speed serial bus to a receive end of the high-speed serial bus, wherein the application signal is used to carry information about transmission data; a processor coupled to the transmitter and configured to: acquire a loss of the application signal on the high-speed serial bus and a material type of a wiring board of the high-speed serial bus; acquire a frequency of the application signal according to one of a transmit rate and a receive rate of the application signal; search a parameter configuration table for the high-speed serial bus parameter that matches all of: the frequency of the application signal, the loss of the application signal on the high-speed serial bus, and the material type of the wiring board of the high-speed serial bus, wherein the parameter configuration table comprises a correspondence between a bus parameter and a signal frequency, a signal loss, and the material type of the wiring board; and configure the high-speed serial bus according to the high-speed serial bus parameter, wherein the transmitter is further configured to send a first code stream, a second code stream, and a third code stream from the transmit end of the high-speed serial bus to the receive end of the high-speed serial bus, wherein the processor is further configured to: acquire an amplitude A.sub.1 of the first code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.1 of the first code stream at the receive end of the high-speed serial bus; acquire an amplitude A.sub.2 of the second code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.2 of the second code stream at the receive end of the high-speed serial bus; acquire an amplitude A.sub.3 of the third code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.3 of the third code stream at the receive end of the high-seed serial bus: acquire a frequency N.sub.1 of the first code stream, a frequency N.sub.2 of the second code stream, and a frequency N.sub.3 of the third code stream; calculate a loss S.sub.1 of the first code stream on the high-speed serial bus according to the amplitude A.sub.1 and the amplitude A.sub.1; calculate a loss S.sub.2 of the second code stream on the high-speed serial bus according to the amplitude A.sub.2 and the amplitude A.sub.2; calculate a loss S.sub.3 of the third code stream on the high-speed serial bus according to the amplitude A.sub.3 and the amplitude A.sub.3; and determine the material type of the wiring board of the high-speed serial bus according to: the frequency N.sub.1 of the first code stream, the loss S.sub.1 of the first code stream on the high-speed serial bus, the frequency N.sub.2 of the second code stream and the loss S.sub.2 of the second code stream on the high-speed serial bus, the frequency N.sub.3 of the third code stream and the loss S.sub.3 of the third code stream on the high-speed serial bus, and a material type characteristics table of the wiring board of the high-speed serial bus, and wherein the material type characteristics table comprises: a correspondence among the material type of the wiring board, a loss of a transmitted signal, and a frequency of the transmitted signal.
5. The apparatus according to claim 4, wherein the processor is her configured to: acquire a first amplitude of the application signal at the transmit end of the high-speed serial bus and a second amplitude of the application signal at the receive end of the high-speed serial bus; and calculate the loss of the application signal on the high-speed serial bus according to the first amplitude and the second amplitude.
6. The apparatus according to claim 4, wherein the processor is further configured to generate the parameter configuration table.
7. The apparatus according to claim 6, wherein the processor is further configured to: simulate a data transmission stream by using a pseudo random binary sequence (PRBS); test, based on a selected frequency, a selected material type of the wiring board of the high-speed serial bus, and a selected loss of the data transmission stream on the high-speed serial bus, parameters of the high-speed serial bus; select a parameter with a largest bit-error-free interval as an optimal parameter from the parameters of the high-speed serial bus; verify whether a margin of the optimal parameter is greater than a preset threshold; and use the optimal parameter as a verified high-speed serial bus parameter that matches the selected frequency, the selected material type of the wiring board of the high-speed serial bus, and the selected loss of the data transmission stream on the high-speed serial bus when it is determined that a margin of the optimal parameter is greater than a preset threshold; and write the verified high-speed serial bus parameter into the parameter configuration table.
8. A system for configuring a high-speed serial bus parameter, comprising: a high-speed serial bus comprising a transmit end a receive end; and a processor coupled to the high-speed serial bus and configured to: send an application signal from a transmit end of a high-speed serial bus to a receive end of the high-speed serial bus, wherein the application signal is used to carry information about transmission data; acquire a loss of the application signal on the high-speed serial bus and a material type of a wiring board of the high-speed serial bus; acquire a frequency of the application signal according to one of a transmit rate and a receive rate of the application signal; search a parameter configuration table for a high-speed serial bus parameter that matches all of: the frequency of the application signal, the loss of the application signal on the high-speed serial bus, and the material type of the wiring board of the high-speed serial bus, wherein the parameter configuration table comprises: a correspondence between a bus parameter and a signal frequency, a signal loss, and a material type of the wiring board; configure the high-speed serial bus according to the high-speed serial bus parameter; cause a first code stream, a second code stream, and a third code stream to be sent from the transmit end of the high-speed serial bus to the receive end of the high-speed serial bus; acquire an amplitude A.sub.1 of the first code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.1 of the first code stream at the receive end of the high-speed serial bus: acquire an amplitude A.sub.2 of the second code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.2 of the second code stream at the receive end of the high-speed serial bus; acquire an amplitude A.sub.3 of the third code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.3 of the third code stream at the receive end of the high-speed serial bus; acquire a frequency N.sub.1 of the first code stream, a frequency N.sub.2 of the second code stream, and a frequency N.sub.3 of the third code stream: calculate a loss S.sub.1 of the first code stream on the high-speed serial bus according to the amplitude A.sub.1 and the amplitude A.sub.1; calculate a loss S.sub.2 of the second code stream on the high-speed serial bus according to the amplitude A.sub.2 and the amplitude A.sub.2; calculate a loss S.sub.3 of the third code stream on the high-speed serial bus according to the amplitude A.sub.3 and the amplitude A.sub.3; and determine the material type of the wiring board of the high-speed serial bus according to: the frequency N.sub.1 of the first code stream, the loss S.sub.1 of the first code stream on the high-speed serial bus, the frequency N.sub.2 of the second code stream and the loss S.sub.2 of the second code stream on the high-speed serial bus, the frequency N.sub.3 of the third code stream, the loss S.sub.3 of the third code stream on the high-speed serial bus, and a material type characteristics table of the wiring board of the high-speed serial bus, wherein the material type characteristics table comprises: a correspondence among the material type of the wiring board, a loss of a transmitted signal, and a frequency of the transmitted signal.
9. The system according to claim 8, wherein the processor is further configured to: acquire a first amplitude of the application signal at the transmit end of the high-speed serial bus and a second amplitude of the application signal at the receive end of the high-speed serial bus; and calculate the loss of the application signal on the high-speed serial bus according to the first amplitude and the second amplitude.
10. The system according to claim 8, wherein the processor is further configured to generate the parameter configuration table.
11. The system according to claim 10, wherein the processor is further configured to: simulate a data transmission stream by using a pseudo random binary sequence (PRBS); test, based on a selected frequency, a selected material type of the wiring board of the high-speed serial bus, and a selected loss of the data transmission stream on the high-speed serial bus, parameters of the high-speed serial bus; and select a parameter with a largest bit-error-free interval as an optimal parameter from the parameters of the high-speed serial bus; verify whether a margin of the optimal parameter is greater than a preset threshold; and use the optimal parameter as a verified high-speed serial bus parameter that matches a selected frequency, the material type of the wiring board of the high-speed serial bus, and the loss of the data transmission stream on the high-speed serial bus when it is determined that a margin of the optimal parameter is greater than a preset threshold; and write the verified high-speed serial bus parameter into the parameter configuration table.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1) To describe the technical solutions in the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments or the prior art. the accompanying drawings in the following description show merely some embodiments of the present disclosure, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DESCRIPTION OF EMBODIMENTS
(11) The following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. the described embodiments are merely a part rather than all of the embodiments of the present disclosure. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
(12)
(13) S201: Send an application signal from a transmit end of a high-speed serial bus to a receive end of the high-speed serial bus.
(14) In a process of transmitting the application signal by using the high-speed serial bus, attenuation of the application signal occurs on the high-speed serial bus, and the application signal is compensated by using a pre-emphasis technology at the transmit end of the high-speed serial bus and using an equalization technology at the receive end of the high-speed serial bus. Therefore, parameters need to be configured at the two ends of the high-speed serial bus, so as to satisfy a need for compensating the application signal.
(15) S202: Acquire a frequency of the application signal, a loss of the application signal on the high-speed serial bus, and a material type of a wiring board of the high-speed serial bus. the loss of the application signal on the high-speed serial bus is related to the frequency of the application signal and the material type of the wiring board of the high-speed serial bus; and an apparatus for configuring a high-speed serial bus parameter may obtain the frequency of the application signal according to a rate of the application signal at the transmit end or the receive end of the high-speed serial bus, and may obtain the loss of the application signal on the high-speed serial bus according to an amplitude of the application signal at the transmit end and the receive end of the high-speed serial bus. For the material type of the wiring board of the high-speed serial bus, because a material type characteristics table, which is provided by a manufacturer of the wiring board of the high-speed serial bus, of the wiring board of the high-speed serial bus includes a relationship between a loss of a transmitted signal on a high-speed serial bus with each type of material and a frequency of the transmitted signal, losses of testing signals with different frequencies on a high-speed serial bus may be tested, and then the material type of the wiring board of the high-speed serial bus is determined according to the material type characteristics table, which is provided by the manufacturer of the wiring board of the high-speed serial bus, of the wiring board of the high-speed serial bus.
(16) S203: Search a parameter configuration table for a high-speed serial bus parameter that matches all of: the frequency of the application signal, the loss of the application signal on the high-speed serial bus, and the material type of the wiring board of the high-speed serial bus.
(17) S204: Configure the high-speed serial bus according to the high-speed serial bus parameter. the parameter configuration table may be defined in advance. The parameter configuration table includes a correspondence between a bus parameter and a signal frequency, a signal loss, and a material type of a wiring board, that is, includes high-speed serial bus parameters that match different signal frequencies, different signal losses, and different material types of a wiring board of a high-speed serial bus. Therefore, after the frequency of the application signal, the loss of the application signal on the high-speed serial bus, and the material type of the wiring board of the high-speed serial bus are acquired, the high-speed serial bus parameter that matches the frequency of the application signal, the loss of the application signal on the high-speed serial bus, and the material type of the wiring board of the high-speed serial bus may be found, and then, the high-speed serial bus may be configured according to the found high-speed serial bus parameter.
(18) In this embodiment, an application signal is sent from a transmit end of a high-speed serial bus to a receive end of the high-speed serial bus; a frequency of the application signal, a loss of the application signal on the high-speed serial bus, and a material type of a wiring board of the high-speed serial bus are acquired; then, a parameter configuration table that is defined in advance is searched for a high-speed serial bus parameter that matches the frequency of the application signal, the loss of the application signal on the high-speed serial bus, and the material type of the wiring board of the high-speed serial bus; and then, quick configuration of the high-speed serial bus may be implemented according to the found high-speed serial bus parameter. Because a parameter configuration table including high-speed serial bus parameters that match different signal frequencies, different signal losses, and different material types of a wiring board of a high-speed serial bus is defined in advance, the technical solution provided in this embodiment of the present disclosure can improve efficiency of configuring a high-speed serial bus parameter.
(19) According to the foregoing method, the step of acquiring the frequency of the application signal includes: acquiring, from the transmit end of the high-speed serial bus, a transmit rate of the application signal, or acquiring, from the receive end of the high-speed serial bus, a receive rate of the application signal; and calculating the frequency of the application signal according to the transmit rate or the receive rate of the application signal. The step of acquiring the loss of the application signal on the high-speed serial bus includes: acquiring an amplitude of the application signal at the transmit end of the high-speed serial bus and an amplitude of the application signal at the receive end of the high-speed serial bus; and calculating the loss of the application signal on the high-speed serial bus according to the amplitude of the application signal at the transmit end of the high-speed serial bus and the amplitude of the application signal at the receive end of the high-speed serial bus.
(20) For example, an application signal 010101 . . . 0101 is sent from the transmit end of the high-speed serial bus at a signal rate of N gigabit/second (Gbit/s), and an amplitude of the application signal at the transmit end of the high-speed serial bus is read. When the application signal is received at the receive end of the high-speed serial bus, an amplitude of the application signal at the receive end of the high-speed serial bus is read from clock and data recovery (CDR). As may be known from that a transmit rate of the application signal is N Gbit/s, a frequency of the application signal is N/2 gigabit, and then, a loss of the application signal at the frequency of N/2 gigabit may be calculated according to the amplitude of the application signal at the receive end of the high-speed serial bus and the amplitude of the application signal at the transmit end of the high-speed serial bus.
(21)
(22) S301: Send a first code stream, a second code stream, and a third code stream from a transmit end of a high-speed serial bus to a receive end of the high-speed serial bus.
(23) S302: Acquire an amplitude A.sub.1 of the first code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.1 of the first code stream at the receive end of the high-speed serial bus, acquire an amplitude A.sub.2 of the second code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.2 of the second code stream at the receive end of the high-speed serial bus, and acquire an amplitude A.sub.3 of the third code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.3 of the third code stream at the receive end of the high-speed serial bus; and acquire a frequency N.sub.1 of the first code stream, a frequency N.sub.2 of the second code stream, and a frequency N.sub.3 of the third code stream.
(24) S303: Calculate a loss S.sub.1 of the first code stream on the high-speed serial bus according to the amplitude A.sub.1 of the first code stream at the transmit end of the high-speed serial bus and the amplitude A.sub.1 of the first code stream at the receive end of the high-speed serial bus, where the frequency of the first code stream is N.sub.1; calculate a loss S.sub.2 of the second code stream on the high-speed serial bus according to the amplitude A.sub.2 of the second code stream at the transmit end of the high-speed serial bus and the amplitude A.sub.2 of the second code stream at the receive end of the high-speed serial bus, where the frequency of the second code stream is N.sub.2; and calculate a loss S.sub.3 of the third code stream on the high-speed serial bus according to the amplitude A.sub.3 of the third code stream at the transmit end of the high-speed serial bus and the amplitude A.sub.3 of the third code stream at the receive end of the high-speed serial bus, where the frequency of the third code stream is N.sub.3.
(25) S304: Determine a material type of a wiring board of the high-speed serial bus according to the frequency N.sub.1 of the first code stream and the loss S.sub.1 of the first code stream on the high-speed serial bus, the frequency N.sub.2 of the second code stream and the loss S.sub.2 of the second code stream on the high-speed serial bus, the frequency N3 of the third code stream and the loss S3 of the third code stream on the high-speed serial bus, and a material type characteristics table, which is provided by a manufacturer of the wiring board of the high-speed serial bus, of the wiring board of the high-speed serial bus.
(26) The material type characteristics table includes a correspondence between a loss of a transmitted signal on a high-speed serial bus with each type of material and a frequency of the transmitted signal.
(27) The first code stream, the second code stream, and the third code stream may be pseudo random binary sequences PRBSs. For example, a first code stream 010101 . . . 0101 is sent from the transmit end of the high-speed serial bus at a signal rate of N Gbit/s, and an amplitude of the first code stream at the transmit end of the high-speed serial bus is read. When the first code stream is received at the receive end of the high-speed serial bus, an amplitude of the first code stream at the receive end of the high-speed serial bus is read from CDR. As can be known from that a transmit rate of the first code stream is N Gbit/s, a frequency of the first code stream is N/2 gigabit, and then, a loss S.sub.1 of the first code stream at the frequency of N/2 gigabit may be calculated according to the amplitude of the first code stream at the receive end of the high-speed serial bus and the amplitude of the first code stream at the transmit end of the high-speed serial bus.
(28) Similarly, a loss S.sub.2 of a second code stream 00110011 . . . 00110011 at a frequency of N/4 gigabit and a loss S.sub.3 of a third code stream 0000111100001111 . . . 00001111 at a frequency of N/8 gigabit may be calculated; and the material type of the wiring board may be determined according to a proportional relationship among S.sub.1, S.sub.2, and S.sub.3 and a loss relationship between different types of materials of the wiring board at each frequency, where the loss relationship is included in the material type characteristics table, which is provided by the manufacturer, of the wiring board.
(29) The foregoing method further includes: acquiring a parameter configuration table. Preferably, the acquiring a parameter configuration table includes simulating a data transmission stream by using a pseudo random binary sequence PRBS, testing, based on the selected frequency, material type of the wiring board of the high-speed serial bus, and loss of the signal on the high-speed serial bus, a high-speed serial bus parameter, and selecting a parameter with a largest bit-error-free interval as an optimal parameter, verifying, by using a parameter adjustment tool provided by a manufacturer of a receive-end chip of the high-speed serial bus, whether a margin of the selected optimal parameter is greater than a preset threshold, and if yes, using the optimal parameter as a high-speed serial bus parameter that matches the selected frequency, material type of the wiring board of the high-speed serial bus, and loss of the signal on the high-speed serial bus, and writing the high-speed serial bus parameter into the parameter configuration table.
(30)
(31) S402: Select high-speed serial buses with different signal losses for each selected material type of the wiring board and frequency of the signal.
(32) S403: Test parameters of the selected high-speed serial buses in a traversal manner.
(33) S404: Select a set of parameters with a largest bit-error-free interval according to a testing result.
(34) S405: Verify whether a margin of the selected parameter is greater than a preset threshold, and if yes, execute S406, and otherwise, execute S407.
(35) S406: Write the selected parameter into a parameter configuration table.
(36) After the selected parameter is written into the parameter configuration table, go to S407.
(37) S407: Determine whether all the high-speed serial buses with different signal losses have been tested, if not, go back to S402 to continue to test the other high-speed serial buses with signal losses in a traversal manner; and if yes, go back to S401 to select a material type of a wiring board and a frequency of a signal again, until all parameters of high-speed serial buses with different material types of wiring boards, different signal frequencies, and different signal losses are tested, so as to eventually complete definition of the parameter configuration table.
(38) Table 1 is a parameter configuration table of a signal at a frequency N1, Table 2 is a parameter configuration table of a signal at a frequency N2, and Table 3 is a parameter configuration table of a signal at a frequency Nm. A loss of the signal at the frequency Nm may be obtained by means of calculation according to a differential loss value of a material of a wiring board at the frequency Nm and a length of a high-speed serial bus, where the differential loss value refers to a relationship between a signal loss and a length of a high-speed serial bus.
(39) It should be noted that Table 1, Table 2, and Table 3 are schematic tables for ease of understanding for readers, and a format of the parameter configuration table is not limited herein.
(40) TABLE-US-00001 TABLE 1 Parameter configuration table of a signal at a frequency N1 Frequency N1 Loss 1 (dB) Loss 2 (dB) . . . Loss n (dB) Material A Parameter set Parameter set . . . Parameter set N.sub.1(A.sub.1) N.sub.1(A.sub.2) N.sub.1(A.sub.3) Material B Parameter set Parameter set . . . Parameter set N.sub.1(B.sub.1) N.sub.1(B.sub.2) N.sub.1(B.sub.3) Material C Parameter set Parameter set . . . Parameter set N.sub.1(C.sub.1) N.sub.1(C.sub.2) N.sub.1(C.sub.3)
(41) TABLE-US-00002 TABLE 2 Parameter configuration table of a signal at a frequency N2 Frequency N2 Loss 1 (dB) Loss 2 (dB) . . . Loss n (dB) Material A Parameter set Parameter set . . . Parameter set N.sub.2(A.sub.1) N.sub.2(A.sub.2) N.sub.2(A.sub.3) Material B Parameter set Parameter set . . . Parameter set N.sub.2(B.sub.1) N.sub.2(B.sub.2) N.sub.2(B.sub.3) Material C Parameter set Parameter set . . . Parameter set N.sub.2(C.sub.1) N.sub.2(C.sub.2) N.sub.2(C.sub.3)
(42) TABLE-US-00003 TABLE 3 Parameter configuration table of a signal at a frequency Nm Frequency Nm Loss 1 (dB) Loss 2 (dB) . . . Loss n (dB) Material A Parameter set Parameter set . . . Parameter set N.sub.m(A.sub.1) N.sub.m(A.sub.2) N.sub.m(A.sub.3) Material B Parameter set Parameter set . . . Parameter set N.sub.m(B.sub.1) N.sub.m(B.sub.2) N.sub.m(B.sub.3) Material C Parameter set Parameter set . . . Parameter set N.sub.m(C.sub.1) N.sub.m(C.sub.2) N.sub.m(C.sub.3)
(43) In this embodiment, a parameter configuration table of a high-speed serial bus is defined in advance, so that in an actual application process, the parameter configuration table that is defined in advance only needs to be searched for a high-speed serial bus parameter that matches a frequency of an application signal, a loss of the application signal on the high-speed serial bus, and a material type of a wiring board of the high-speed serial bus, so as to configure the high-speed serial bus according to the found high-speed serial bus parameter, thereby improving efficiency of configuring a high-speed serial bus parameter.
(44)
(45) S501: A transmit end of a high-speed serial bus sends a code stream 010101 . . . 0101 at a signal rate of N Gbit/s.
(46) S502: A receive end of the high-speed serial bus receives the code stream.
(47) S503: Read an amplitude of the received code stream from CDR of the receive end of the high-speed serial bus.
(48) S504: Calculate a loss A of the code stream at a frequency of N/2 gigabit according to the amplitude, which is read from the CDR, of the code stream and an amplitude of the code stream at the transmit end.
(49) S505: Change the code stream at the transmit end, and calculate a loss B of a code stream 00110011 . . . 00110011 at a frequency of N/4 gigabit and a loss C of a code stream 0000111100001111 . . . 00001111 at a frequency of N/8 gigabit.
(50) S506: Determine a material type of a wiring board according to a proportional relationship among A, B, and C and according to a material type characteristic table, which is provided by a manufacturer, of the wiring board.
(51) S507: Read a signal rate on the high-speed serial bus in an actual application, determine a frequency of a signal on which parameter configuration is to be performed, and calculate a signal loss according to amplitudes of the signal at the transmit end and the receive end of the high-speed serial bus.
(52) S508: Search a parameter configuration table for a matched parameter according to the material type of the wiring board, the frequency of the signal, and the signal loss, and configure a high-speed serial bus parameter.
(53) In this embodiment, first, PRBSs with different frequencies are used as testing signals to determine a material type of a wiring board of a high-speed serial bus; then, a signal loss of an actual application signal on the high-speed serial bus is calculated; and then, a parameter configuration table that is defined in advance is searched for a high-speed serial bus parameter that matches a frequency of the application signal, a loss of the application signal on the high-speed serial bus, and the material type of the wiring board of the high-speed serial bus, thereby implementing quick configuration of the high-speed serial bus.
(54)
(55) The apparatus for configuring a high-speed serial bus parameter in this embodiment may be configured to execute the method in the method embodiment shown in
(56) On the basis of the apparatus described in
(57) Implementation principles and technical effects to be achieved of the apparatus for configuring a high-speed serial bus parameter in this embodiment have been described in the foregoing, and details are not described herein again.
(58) As shown in
(59) The apparatus for configuring a high-speed serial bus parameter in this embodiment may be configured to execute the method in the method embodiment shown in
(60) Based on the apparatus described in
(61) Implementation principles and technical effects to be achieved of the apparatus for configuring a high-speed serial bus parameter in this embodiment have been described in the foregoing, and details are not described herein again.
(62)
(63) In some implementation manners, the memory 903 stores a program 905, and the processor 901 executes the program 905 stored in the memory 903, so as to implement a method for configuring a high-speed serial bus parameter, where the method includes sending an application signal from a transmit end of a high-speed serial bus to a receive end of the high-speed serial bus, where the application signal is used to carry information about transmission data, acquiring a loss of the application signal on the high-speed serial bus and a material type of a wiring board of the high-speed serial bus, and acquiring a frequency of the application signal according to a transmit rate or a receive rate of the application signal, searching a parameter configuration table for a high-speed serial bus parameter that matches all of: the frequency of the application signal, the loss of the application signal on the high-speed serial bus, and the material type of the wiring board of the high-speed serial bus, where the parameter configuration table includes a correspondence between a bus parameter and a signal frequency, a signal loss, and a material type of a wiring board, and configuring the high-speed serial bus according to the high-speed serial bus parameter.
(64) According to the foregoing program for executing the method for configuring a high-speed serial bus parameter, preferably, the acquiring a loss of the application signal on the high-speed serial bus includes acquiring a first amplitude of the application signal at the transmit end of the high-speed serial bus and a second amplitude of the application signal at the receive end of the high-speed serial bus, and calculating the loss of the application signal on the high-speed serial bus according to the first amplitude and the second amplitude.
(65) According to the foregoing program for executing the method for configuring a high-speed serial bus parameter, preferably, the acquiring a material type of a wiring board of the high-speed serial bus includes sending a first code stream, a second code stream, and a third code stream from the transmit end of the high-speed serial bus to the receive end of the high-speed serial bus, acquiring an amplitude A.sub.1 of the first code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.1 of the first code stream at the receive end of the high-speed serial bus, acquiring an amplitude A.sub.2 of the second code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.2 of the second code stream at the receive end of the high-speed serial bus, and acquiring an amplitude A.sub.3 of the third code stream at the transmit end of the high-speed serial bus and an amplitude A.sub.3 of the third code stream at the receive end of the high-speed serial bus, acquiring a frequency N.sub.1 of the first code stream, a frequency N.sub.2 of the second code stream, and a frequency N.sub.3 of the third code stream, calculating a loss S.sub.1 of the first code stream on the high-speed serial bus according to the amplitude A.sub.1 and the amplitude A.sub.1, calculating a loss S.sub.2 of the second code stream on the high-speed serial bus according to the amplitude A.sub.2 and the amplitude A.sub.2, and calculating a loss S.sub.3 of the third code stream on the high-speed serial bus according to the amplitude A.sub.3 and the amplitude A.sub.3, and determining the material type of the wiring board of the high-speed serial bus according to the frequency N.sub.1 of the first code stream and the loss S.sub.1 of the first code stream on the high-speed serial bus, the frequency N.sub.2 of the second code stream and the loss S.sub.2 of the second code stream on the high-speed serial bus, the frequency N.sub.3 of the third code stream and the loss S.sub.3 of the third code stream on the high-speed serial bus, and a material type characteristics table of the wiring board of the high-speed serial bus, where the material type characteristics table includes a correspondence among a material type of a wiring board, a loss of a transmitted signal, and a frequency of the transmitted signal.
(66) According to the foregoing program for executing the method for configuring a high-speed serial bus parameter, preferably, the method further includes: acquiring the parameter configuration table.
(67) The acquiring the parameter table includes simulating a data transmission stream by using a PRBS, testing, based on the selected frequency, material type of the wiring board of the high-speed serial bus, and loss of the signal on the high-speed serial bus, the high-speed serial bus parameter, and selecting a parameter with a largest bit-error-free interval as an optimal parameter, verifying whether a margin of the selected optimal parameter is greater than a preset threshold, and if yes, using the optimal parameter as a high-speed serial bus parameter that matches the selected frequency, material type of the wiring board of the high-speed serial bus, and loss of the signal on the high-speed serial bus, and writing the high-speed serial bus parameter into the parameter configuration table.
(68) The apparatus for configuring a high-speed serial bus parameter provided in the embodiment of the present disclosure, a high-speed serial bus, and a transmit end and a receive end of the high-speed serial bus together form a system for configuring a high-speed serial bus parameter. The apparatus for configuring a high-speed serial bus parameter is shown in any one of
(69) During specific implementation, the system for configuring a high-speed serial bus parameter may be any device implemented by using a high-speed serial bus, for example, a switch or a router.
(70) Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present disclosure, but not for limiting the present disclosure. Although the present disclosure is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some technical features thereof, without departing from the scope of the technical solutions of the embodiments of the present disclosure.