CN111984477B - PCIe equipment signal parameter dynamic correction device and method - Google Patents
PCIe equipment signal parameter dynamic correction device and method Download PDFInfo
- Publication number
- CN111984477B CN111984477B CN202010655809.3A CN202010655809A CN111984477B CN 111984477 B CN111984477 B CN 111984477B CN 202010655809 A CN202010655809 A CN 202010655809A CN 111984477 B CN111984477 B CN 111984477B
- Authority
- CN
- China
- Prior art keywords
- unit
- test
- pcie
- error rate
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The invention provides a PCIe equipment signal parameter dynamic correction device and a method, wherein the device comprises: an error rate configuration unit, configured to configure a TLP layer error retransmission rate; the test template unit is used for providing a plurality of test templates for selecting a required test sending sequence; the emphasis and pre-emphasis parameter adjusting unit is used for automatically and dynamically adjusting and correcting the eq/deq parameter under a standard mode specified by a PCIe protocol aiming at the output and the input of a PCIe link respectively; the loop test unit is used for marking a loop mark on the test sending sequence and then sending the test sending sequence; the data integrity checking unit is used for carrying out cyclic redundancy code checking and link cyclic redundancy code checking on the end-to-end of the PCIe link so as to judge whether the PCIe link signal is deteriorated; and the data comparison unit is used for comparing the test sending sequence sent by the PCIe interface with the received decoded data in the test mode. The invention is realized in the chip, can be tested by directly connecting the EP device of the opposite terminal, has low cost, is automatically carried out and has high efficiency.
Description
Technical Field
The invention relates to the technical field of chip production, in particular to a device and a method for dynamically correcting PCIe equipment signal parameters.
Background
Pcie (pcie express) interface is a bus interface, and uses a point-to-point serial connection, and compared with a shared parallel architecture of PCI and earlier computer buses, each device has its own dedicated connection, and does not need to request a bandwidth from the entire bus, and can increase a data transfer rate to a very high frequency, which reaches a high bandwidth that cannot be provided by PCI, and thus becomes a mainstream bus interface in the industry at present.
In practical use, the existing host device and PCIe interface signals are not completely adapted, and therefore a signal compatibility test needs to be performed on the host device, and at present, a specific practice is to use a PCIe association test fixture to perform an internal loop bandwidth signal-to-noise test, that is, connect the PCIe association test fixture to a PCIe slot of the host device, use a signal generator to send a TX signal, and compare the TX signal with a returned signal to obtain a test result, where the test flow is only from the chip output end to the last slot for the version. However, the PCIe association test fixture is a large test device, which is expensive, and is only used by the manufacturer of the chip or host device, which is an unbearable cost for many users.
Even some host equipment manufacturers can directly use the signal data set by the chip manufacturers, and the chip manufacturers need to use an evaluation board (a PCB board provided with a chip and external equipment) for reference and tuning parameters of the evaluation board for clients after the chips are produced. Therefore, some manufacturers of host equipment may directly use the chip manufacturers to evaluate the tuning parameters of the board, which brings about a certain hidden danger for the following reasons:
(1) the external equipment has larger randomness, can only be compatible with most products, and cannot be completely compatible;
(2) after multi-stage bridging, impedance parameters change greatly, which greatly affects signals, causes the increase of retransmission rate and affects power consumption and performance;
(3) the signal parameters with better level adaptation can be degraded along with the change of the use environment.
Based on this, this case is under the condition that does not increase board level hardware and produces the line station, directly realizes a PCIe equipment parameter's dynamic correction device and method in the chip inside, need not to increase purchase costs such as PCIe association's test fixture, and no matter be the producer or the end user can carry out the test as required.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a device and a method for dynamically correcting PCIe equipment signal parameters, which are realized in a chip, and an EP (Internet protocol) device directly connected with an opposite end can be tested without increasing the purchase cost of test fixtures of a PCIe association and the like and increasing board-level hardware and production line stations.
In a first aspect, the present invention provides a PCIe device signal parameter dynamic correction apparatus, which is characterized in that: set up in the inside chip of PCIe device, and include:
an error rate configuration unit, configured to receive a configuration of a TLP layer error retransmission rate by a user, where the TLP layer error retransmission rate is recorded as an error rate;
the test template unit is used for providing a plurality of test templates for a user to select the required test template, and each test template stores a test sending sequence;
the emphasis and pre-emphasis parameter adjusting unit is used for automatically and dynamically adjusting and correcting the eq/deq parameter under a standard mode specified by a PCIe protocol aiming at the output and the input of a PCIe link respectively;
the loop test unit is used for marking a loop mark on the test sending sequence in a test state and then sending the test sending sequence;
the data integrity checking unit is used for checking the cyclic redundancy codes of the end-to-end of the PCIe link and the cyclic redundancy codes of the link, and judging that the PCIe link signal is deteriorated when the cyclic redundancy codes and the cyclic redundancy codes of the link are incomplete;
the error rate counting unit is used for counting the error rate under the condition that PCIe link signals are deteriorated, and when the error rate reaches the configuration value of the error rate configuration unit, the emphasis and pre-emphasis parameter adjustment unit is automatically triggered to enter a dynamic adjustment and correction function, and the loop test unit enters a test state;
and the data comparison unit is used for transferring the test sending sequence sent by the loop test unit to the opposite-end EP device in a test state, receiving decoded data returned by the opposite-end EP device, comparing the test sending sequence with the decoded data, and feeding a comparison result back to the emphasis and pre-emphasis parameter adjustment unit.
In a second aspect, the present invention provides a PCIe device signal parameter dynamic correction method, which is implemented inside a chip, and includes the following steps:
s1, accepting the configuration of the test mode by the user through the mode selection unit; receiving the configuration of a user on the TLP layer error retransmission rate through an error rate configuration unit, wherein the TLP layer error retransmission rate is recorded as an error rate; providing a plurality of test sending sequences for a user to select through a test template unit;
s2, after configuration is completed, enabling the PCIe link to be connected with an EP device at the opposite end for normal use, carrying out end-to-end cyclic redundancy code check and link cyclic redundancy code check through the data integrity check unit, starting the error rate statistical unit to carry out statistics on the error rate in unit time if the cyclic redundancy code check and the link cyclic redundancy code are incomplete, and automatically triggering the dynamic correction function of PCIe device signal parameters if the error rate reaches the configuration value of the error rate configuration unit;
s3, triggering the emphasis and pre-emphasis parameter adjustment unit to automatically and dynamically adjust eq/deq parameters, and then triggering the loop test unit to enable the opposite end EP device to enter a loop test mode;
s4, in a loop test mode, a test sending sequence is taken out from the test template selected by the user, sent out after a loop test unit marks a loop mark, sent out to the opposite end EP device through a PCIe interface by a data comparison unit, and then the data comparison unit receives the returned data decoded by the opposite end EP device;
s5, comparing the sent test sending sequence with the received decoded data by the data comparing unit to see whether the test sending sequence is consistent with the received decoded data, if so, indicating that the eq/deq parameter is a proper parameter, and ending the process; if not, the process returns to step S3.
One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages: the device and the method provided by the embodiment of the application are realized in a chip, and the EP device directly connected with the opposite end can be tested without increasing the purchase cost of testing clamps and the like of PCIe association and without increasing board level hardware and production line stations. And a plurality of configuration units are provided, for example, the configuration of the user on the test mode can be received through the mode selection unit, the configuration of the user on the error retransmission rate of the TLP layer can be received through the error rate configuration unit, a plurality of test sending sequences are provided for the user to select through the test template unit, and the configuration of the user on the test mode can be received through the mode selection unit, so that the test is more diversified, and the test result is more accurate and reasonable. And because an AER mechanism in a PCIe protocol can be adopted to count the error rate in real time, and the test is triggered through the error rate, the parameter correction can be carried out in the operation process of the external PCIe equipment, and the aim of dynamically adjusting the signal parameters is fulfilled.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
FIG. 1 is a schematic block diagram of the system of the present invention;
FIG. 2 is a schematic diagram of an apparatus according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method according to a second embodiment of the present invention.
Detailed Description
The embodiment of the application provides the device and the method for dynamically correcting the PCIe equipment signal parameters, which are realized in a chip, and the EP equipment directly connected with the opposite end can be tested without increasing the purchase cost of test fixtures and the like of a PCIe association and without increasing board-level hardware and production line stations.
The technical scheme in the embodiment of the application has the following general idea: the method is realized in the chip, the EP device directly connected with the opposite end can be tested, a plurality of configuration units are arranged, for example, an error rate configuration unit, a test template unit and a mode selection unit are arranged, and under the configuration of a user, more diversified tests are provided. The eq/deq parameter can be automatically adjusted under the standard mode specified by PCIe protocol until the eq/deq parameter is proper by setting the emphasis and pre-emphasis parameter adjustment unit. The test is completely automatic, the purchase cost of a test fixture of a PCIe association and the like is not required to be increased, the board level hardware and the production line station are not required to be increased, and the test cost and the error rate are greatly reduced.
Before describing the specific embodiment, a system framework during testing according to the embodiment of the present application is described, and as shown in fig. 1, the system framework during testing is divided into a chip and two pairs of end EP devices:
the chip belongs to PCIe equipment, and the dynamic correction device and the dynamic correction method for PCIe equipment signal parameters are realized inside the chip.
Example one
As shown in fig. 2, the present embodiment provides a dynamic PCIe device signal parameter calibration apparatus, which is disposed inside a chip of a PCIe device, and includes:
an error rate configuration unit, configured to receive a configuration of a TLP layer error retransmission rate by a user, where the TLP layer error retransmission rate is recorded as an error rate;
the test template unit is used for providing a plurality of test templates for a user to select the required test template, and each test template stores a test sending sequence;
the emphasis and pre-emphasis parameter adjusting unit is used for automatically and dynamically adjusting and correcting the eq/deq parameter under a standard mode specified by a PCIe protocol aiming at the output and the input of a PCIe link respectively; however, in practical applications, influences of various parameters of the PCIe device and the board level need to be considered, for example, unstable signal parameters of the PCIe device are considered, and data transmission failure is easily caused by signal errors, so that fine dynamic adjustment needs to be considered.
The loop test unit is used for testing the loop bandwidth of the PCIe link, and when the error rate statistic unit reaches a trigger condition, the dynamic correction function of the PCIe equipment signal parameter is automatically triggered, so that the loop test unit enters a test state and starts to test the loop bandwidth of the PCIe link;
the data integrity checking unit is used for performing cyclic redundancy code (end-to-end CRC) and link cyclic redundancy code (linkCRC) of the end-to-end of the PCIe link, and judging that the PCIe link signal is deteriorated when the cyclic redundancy code and the link cyclic redundancy code are incomplete; the cyclic redundancy check and the LINK cyclic redundancy check belong to check data of two layers of a standard PCIe LINK layer and a TLP layer, and in a PCIe communication packet, generally, the ECRC can better reflect a data state seen by an opposite-end TLP layer, and a CRC state of a LINK layer only provides a reference because data is not formally decoded yet.
The error rate counting unit is used for counting the error rate under the condition that PCIe link signals are deteriorated, and automatically triggering the emphasis and pre-emphasis parameter adjusting unit to enter a dynamic adjustment and correction function and enabling the loop test unit to enter a test state when the error rate reaches a configuration value of the error rate configuration unit;
and the data comparison unit is used for transferring the test sending sequence sent by the loop test unit to the opposite-end EP device in a test state, receiving decoded data returned by the opposite-end EP device, comparing the test sending sequence with the decoded data, and feeding a comparison result back to the emphasis and pre-emphasis parameter adjustment unit.
When the weighting and pre-weighting parameter adjusting unit automatically adjusts the eq/deq parameter, the protocol recommendation value is continuously increased and decreased downwards and upwards until the upper and lower boundaries of the signal change are detected.
The error rate statistic unit is used for carrying out statistics on the error rate in unit time and comprises the following two modes:
firstly, if the opposite end EP device supports AER, the AER information of both sides is directly inquired for statistics; the error rate is counted by directly utilizing an AER mechanism in the PCIe protocol, and the dynamic correction of the PCIe device signal parameters can be easily realized.
Second, if the peer EP device does not support AER, it counts the number density of retransmission interrupts per unit time of the host interface. For example, one thousand retransmissions are implemented within one second per unit time, 1000 retransmission interruptions are generated, the bit density is marked to be 1, the bit error rate is set to be 0.5, that is, 500 retransmissions are generated within 1 second, and so on, and the PCIe device signal parameter dynamic correction can still be implemented.
As a preferred implementation manner of this embodiment, the apparatus further includes:
the mode selection unit is used for setting a test mode by a user, and the test mode comprises the following two aspects:
(1) whether the test is absolutely needed or not is judged, if the user configuration is yes, the step S2 is carried out, and if the user configuration is not, the process is ended;
(2) and testing whether subdivision into different lane granularities is needed, if the user configuration is yes, and the number of lanes is configured to be n, and circulating the steps S3 to the step 5 for each lane until n lanes are corrected.
The device of this example was tested according to the method of example two, and the specific steps are described in example two below.
In addition, it should be noted that: in a specific implementation, all units in the apparatus in this embodiment may be software modules, or may be hardware modules, or a part of the apparatus may be software modules (e.g., bit error rate configuration unit, test template unit, emphasis and pre-emphasis parameter adjustment unit, and data integrity check unit), and another part may be hardware modules (e.g., loop back test unit and data comparison unit), as long as the same functions are achieved.
Based on the same inventive concept, the application also provides a method corresponding to the device in the first embodiment, which is detailed in the second embodiment.
Example two
As shown in fig. 3, in this embodiment, a PCIe device signal parameter dynamic correction method is provided, which is implemented inside a chip, and includes the following steps:
s1, accepting the configuration of the test mode by the user through the mode selection unit; receiving the configuration of a user on the TLP layer error retransmission rate through an error rate configuration unit, wherein the TLP layer error retransmission rate is recorded as an error rate; providing a plurality of test sending sequences for a user to select through a test template unit;
s2, after configuration is completed, enabling the PCIe link to be connected with an EP device at the opposite end for normal use, carrying out end-to-end cyclic redundancy code check and link cyclic redundancy code check through the data integrity check unit, starting the error rate statistic unit to carry out statistics on the error rate in unit time if the cyclic redundancy code check and the link cyclic redundancy code are incomplete, and automatically triggering the dynamic correction function of PCIe device signal parameters if the error rate reaches the configuration value of the error rate configuration unit;
s3, triggering the emphasis and pre-emphasis parameter adjustment unit to automatically and dynamically adjust eq/deq parameters, and then triggering the loop test unit to enable the opposite end EP device to enter a loop test mode;
s4, in a loop test mode, a test sending sequence is taken out from the test template selected by the user, sent out after a loop test unit marks a loop mark, sent out to the opposite end EP device through a PCIe interface by a data comparison unit, and then the data comparison unit receives the returned data decoded by the opposite end EP device;
s5, comparing the sent test sending sequence with the received decoded data by the data comparing unit to see whether the test sending sequence is consistent with the received decoded data, if so, indicating that the eq/deq parameter is a proper parameter, and ending the process; if not, the process returns to step S3.
When the weighting and pre-weighting parameter adjusting unit automatically adjusts the eq/deq parameter, the protocol recommendation value is continuously increased and decreased downwards and upwards until the upper and lower boundaries of signal deterioration are detected.
The error rate statistic unit is used for carrying out statistics on the error rate in unit time and comprises the following two modes:
firstly, if the opposite end EP device supports AER, the AER information of both sides is directly inquired for statistics;
second, if the peer EP device does not support AER, the count is based on the retransmission interruption number density per unit time of the host interface.
As a preferred implementation manner of this embodiment, the apparatus further includes:
in step S1, the method further includes accepting, by a mode selection unit, a configuration of a test mode by a user, where the test mode includes the following two aspects:
(1) whether the test is absolutely needed or not is judged, if yes, the step S2 is executed, and if not, the flow is ended;
(2) and testing whether the lanes need to be subdivided into different lane granularities, if the user configuration is yes, and the number of the lanes is n, wherein n is larger than or equal to 2, the steps S3 and S5 are circulated for each lane until the n lanes are corrected.
Where n or more Lanes are corrected according to the same set of eq/deq parameters, or each Lane is corrected using a separate eq/deq parameter.
Since the method described in the second embodiment of the present invention is a method for performing a test by using the device in the first embodiment of the present invention, the device described in the first embodiment of the present invention and the method described in the second embodiment of the present invention are the same inventive concept, and those skilled in the art can understand the corresponding functions of the device and the method, and thus will not be described herein again.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages: the device and the method provided by the embodiment of the application are realized in a chip, and the EP device directly connected with the opposite end can be tested without increasing the purchase cost of testing clamps and the like of PCIe association and without increasing board level hardware and production line stations. And a plurality of configuration units are provided, for example, the configuration of the user on the test mode can be received through the mode selection unit, the configuration of the user on the error retransmission rate of the TLP layer can be received through the error rate configuration unit, a plurality of test sending sequences are provided for the user to select through the test template unit, and the configuration of the user on the test mode can be received through the mode selection unit, so that the test is more diversified, and the test result is more accurate and reasonable. And because an AER mechanism in a PCIe protocol can be adopted to count the error rate in real time, and the test is triggered through the error rate, the signal parameters can be dynamically adjusted.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.
Claims (8)
1. A PCIe device signal parameter dynamic correction device is characterized in that: set up in the inside chip of PCIe device, and include:
an error rate configuration unit, configured to receive a configuration of a TLP layer error retransmission rate by a user, where the TLP layer error retransmission rate is recorded as an error rate;
the test template unit is used for providing a plurality of test templates for a user to select the required test template, and each test template stores a test sending sequence;
the emphasis and pre-emphasis parameter adjusting unit is used for automatically and dynamically adjusting and correcting the eq/deq parameter under a standard mode specified by a PCIe protocol aiming at the output and the input of a PCIe link respectively;
the loop test unit is used for marking a loop mark on the test sending sequence in a test state and then sending the test sending sequence;
the data integrity checking unit is used for checking the cyclic redundancy codes of the end-to-end PCIe link and the cyclic redundancy codes of the link, and judging that the PCIe link signal is deteriorated when the cyclic redundancy code check of the end-to-end PCIe link and the cyclic redundancy code check of the link are incomplete;
the error rate counting unit is used for counting the error rate under the condition that PCIe link signals are deteriorated, and when the error rate reaches the configuration value of the error rate configuration unit, the emphasis and pre-emphasis parameter adjustment unit is automatically triggered to enter a dynamic adjustment and correction function, and the loop test unit enters a test state;
a data comparison unit, configured to forward the test sending sequence sent by the loop test unit to an opposite-end EP device in a test state, receive decoded data returned by the opposite-end EP device, compare the test sending sequence with the decoded data, and if a comparison result is consistent, indicate that the eq/deq parameter is a suitable parameter at this time, end the process; and if the parameters are inconsistent, triggering an emphasis and pre-emphasis parameter adjusting unit to automatically and dynamically adjust the eq/deq parameters, and then triggering a loop test unit to enable the opposite-end EP device to enter a loop test mode.
2. The PCIe device signal parameter dynamic correction apparatus of claim 1, wherein: and when the weighting and pre-weighting parameter adjusting unit automatically adjusts the eq/deq parameter, the protocol recommendation value is continuously increased and decreased downwards and upwards until the upper and lower boundaries of the signal change are detected.
3. The PCIe device signal parameter dynamic correction apparatus of claim 1, wherein: the error rate statistic unit is used for carrying out statistics on the error rate in unit time and comprises the following two modes:
firstly, if the opposite end EP device supports AER, the AER information of both sides is directly inquired for statistics;
second, if the peer EP device does not support AER, the count is based on the retransmission interruption number density per unit time of the host interface.
4. The apparatus of claim 3, wherein the PCIe device signal parameter dynamic correction apparatus comprises: further comprising:
the mode selection unit is used for setting a test mode by a user, and the test mode comprises the following two aspects:
(1) if the user configuration is yes, after the configuration is completed, the PCIe link is connected with an EP device at the opposite end to be normally used, end-to-end cyclic redundancy code verification and link cyclic redundancy code verification are carried out through a data integrity verification unit, if the end-to-end cyclic redundancy code verification and the link cyclic redundancy code verification of the PCIe link are incomplete, the error rate statistical unit is started to carry out statistics on the error rate in unit time, if the error rate reaches a configuration value of the error rate configuration unit, a dynamic correction function of PCIe device signal parameters is automatically triggered to dynamically correct the PCIe device signal parameters, and if the user configuration is not, the flow is ended;
(2) and testing whether the LANes need to be subdivided into different Lane granularities, if the user configuration is yes, and the number of the LANes is configured to be n, wherein n is larger than or equal to 2, the PCIe device signal parameter dynamic correction is respectively carried out on each Lane until n LANes are corrected.
5. A PCIe device signal parameter dynamic correction method is characterized in that: is realized in a chip and comprises the following steps:
s1, receiving the configuration of the test mode by the user through the mode selection unit; receiving the configuration of a user on the TLP layer error retransmission rate through an error rate configuration unit, wherein the TLP layer error retransmission rate is recorded as an error rate; providing a plurality of test sending sequences for a user to select through a test template unit; the test mode includes the following two aspects:
(1) whether the test is absolutely needed or not is judged, if the user configuration is yes, the step S2 is carried out, and if the user configuration is not, the process is ended;
(2) testing whether the lanes need to be subdivided into different lane granularities, if the user configuration is yes, and the number of the lanes is n, wherein n is larger than or equal to 2, the steps S2 to S5 are circulated for each lane until the n lanes are corrected;
s2, after configuration is completed, enabling the PCIe link to be connected with an EP device at the opposite end for normal use, carrying out end-to-end cyclic redundancy code check and link cyclic redundancy code check through the data integrity check unit, if the end-to-end cyclic redundancy code check and the link cyclic redundancy code check of the PCIe link are incomplete, starting the error rate statistical unit to carry out statistics on the error rate in unit time, and if the error rate reaches the configuration value of the error rate configuration unit, automatically triggering the dynamic correction function of the PCIe device signal parameter;
s3, triggering the emphasis and pre-emphasis parameter adjustment unit to automatically and dynamically adjust eq/deq parameters, and then triggering the loop test unit to enable the opposite end EP device to enter a loop test mode;
s4, in a loop test mode, a test sending sequence is taken out from the test template selected by the user, sent out after a loop test unit marks a loop mark, sent out to the opposite end EP device through a PCIe interface by a data comparison unit, and then the data comparison unit receives the returned data decoded by the opposite end EP device;
s5, comparing the sent test sending sequence with the received decoded data by the data comparing unit to see whether the test sending sequence is consistent with the received decoded data, if so, indicating that the eq/deq parameter is a proper parameter, and ending the process; if not, the process returns to step S3.
6. The method of claim 5, wherein the dynamic correction of the signal parameters of the PCIe device comprises: and when the weighting and pre-weighting parameter adjusting unit automatically adjusts the eq/deq parameter, the protocol recommendation value is continuously increased and decreased downwards and upwards until the upper and lower boundaries of the signal change are detected.
7. The method of claim 5, wherein the dynamic correction of the signal parameters of the PCIe device comprises: the error rate statistic unit is used for carrying out statistics on the error rate in unit time and comprises the following two modes:
firstly, if the opposite end EP device supports AER, the AER information of both sides is directly inquired for statistics;
second, if the peer EP device does not support AER, the count is based on the retransmission interruption number density per unit time of the host interface.
8. The method of claim 5, wherein the dynamic correction of the signal parameters of the PCIe device comprises: n or more Lanes are corrected according to the same set of eq/deq parameters, or each Lane is corrected using a separate eq/deq parameter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010655809.3A CN111984477B (en) | 2020-07-09 | 2020-07-09 | PCIe equipment signal parameter dynamic correction device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010655809.3A CN111984477B (en) | 2020-07-09 | 2020-07-09 | PCIe equipment signal parameter dynamic correction device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111984477A CN111984477A (en) | 2020-11-24 |
CN111984477B true CN111984477B (en) | 2022-05-17 |
Family
ID=73438539
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010655809.3A Active CN111984477B (en) | 2020-07-09 | 2020-07-09 | PCIe equipment signal parameter dynamic correction device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111984477B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113114595B (en) * | 2021-04-08 | 2022-11-18 | 山东华芯半导体有限公司 | Dual-port PCIe SSD link fault tolerance device and method |
CN113176963B (en) * | 2021-04-29 | 2022-11-11 | 山东英信计算机技术有限公司 | PCIe fault self-repairing method, device, equipment and readable storage medium |
CN114443537B (en) * | 2022-01-28 | 2023-12-19 | 浪潮(山东)计算机科技有限公司 | PCIE signal transmitting end parameter configuration method, device, equipment and medium |
CN117271201B (en) * | 2023-11-22 | 2024-03-19 | 北京紫光芯能科技有限公司 | Cyclic redundancy check device and cyclic redundancy check method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530211A (en) * | 2013-10-12 | 2014-01-22 | 江苏华丽网络工程有限公司 | PCIE loop back self-test method based on UVM platform |
CN104184617A (en) * | 2014-08-12 | 2014-12-03 | 福建星网锐捷网络有限公司 | Method, device and system for configuring pre-emphasis for interconnection equipment and network device |
CN105630641A (en) * | 2014-10-27 | 2016-06-01 | 青岛金讯网络工程有限公司 | PCIE loopback self-detection method |
CN106817258A (en) * | 2017-01-13 | 2017-06-09 | 郑州云海信息技术有限公司 | A kind of method and device chosen and verify PCIE link equalization parameters |
CN107066417A (en) * | 2017-02-28 | 2017-08-18 | 郑州云海信息技术有限公司 | A kind of method and apparatus of link parameter on-line tuning |
CN107329774A (en) * | 2017-05-24 | 2017-11-07 | 华为技术有限公司 | The method and apparatus for determining Redriver chip parameters |
CN109818886A (en) * | 2018-12-07 | 2019-05-28 | 华为技术有限公司 | A kind of method and device configuring balance parameters |
CN109936425A (en) * | 2019-03-29 | 2019-06-25 | 武汉邮电科学研究院有限公司 | A kind of debugging system and method for preemphasis |
-
2020
- 2020-07-09 CN CN202010655809.3A patent/CN111984477B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103530211A (en) * | 2013-10-12 | 2014-01-22 | 江苏华丽网络工程有限公司 | PCIE loop back self-test method based on UVM platform |
CN104184617A (en) * | 2014-08-12 | 2014-12-03 | 福建星网锐捷网络有限公司 | Method, device and system for configuring pre-emphasis for interconnection equipment and network device |
CN105630641A (en) * | 2014-10-27 | 2016-06-01 | 青岛金讯网络工程有限公司 | PCIE loopback self-detection method |
CN106817258A (en) * | 2017-01-13 | 2017-06-09 | 郑州云海信息技术有限公司 | A kind of method and device chosen and verify PCIE link equalization parameters |
CN107066417A (en) * | 2017-02-28 | 2017-08-18 | 郑州云海信息技术有限公司 | A kind of method and apparatus of link parameter on-line tuning |
CN107329774A (en) * | 2017-05-24 | 2017-11-07 | 华为技术有限公司 | The method and apparatus for determining Redriver chip parameters |
CN109818886A (en) * | 2018-12-07 | 2019-05-28 | 华为技术有限公司 | A kind of method and device configuring balance parameters |
CN109936425A (en) * | 2019-03-29 | 2019-06-25 | 武汉邮电科学研究院有限公司 | A kind of debugging system and method for preemphasis |
Non-Patent Citations (1)
Title |
---|
"PCIE2.0 高速路由器感应分析";田天;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20140930(第09期);第I136-59页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111984477A (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111984477B (en) | PCIe equipment signal parameter dynamic correction device and method | |
KR101967473B1 (en) | System and method for deterministic testing of packet error rate in electronic devices | |
US7773531B2 (en) | Method for testing data packet transceiver using loop back packet generation | |
KR101370553B1 (en) | System, Mobile Communication Unit and Method for Testing a Receiver Performance | |
US8731493B2 (en) | Wireless local area network test system with forced transmit rates during protocol-based testing | |
US10567123B2 (en) | Methods, systems and computer readable media for evaluating link or component quality using synthetic forward error correction (FEC) | |
CN105991358B (en) | Method, device, test board and system for testing interface board flow | |
US20040153913A1 (en) | System and method of detecting a bit processing error | |
CN107483157A (en) | A kind of CRC check method and system based on FPGA | |
KR101049517B1 (en) | Error rate determination method and inspection device | |
KR101173600B1 (en) | Method of Determining an Error Rate and a Suitable Testing Device | |
CN115687226A (en) | I2c bus communication method, device and readable storage medium | |
CN112350785B (en) | Method and system for checking SERDES communication link performance | |
US8687681B2 (en) | Receiver and signal testing method thereof | |
CN111459727B (en) | Intelligent automatic test system and method for serial port baud rate maximum error-free tolerance range | |
US7979756B2 (en) | Apparatus, system and method for a go/no go link integrity tester | |
CN114443537B (en) | PCIE signal transmitting end parameter configuration method, device, equipment and medium | |
CN115934438A (en) | Universal serial bus hub test system, method and related device | |
CN113656234B (en) | Self-testing device and self-testing method for chip USB module | |
CN111367259B (en) | Low-cost digital signal processing module automatic testing device and method | |
US11870595B2 (en) | Method and test device for performing packet error rate measurement | |
WO2023035850A1 (en) | High-speed serial link test method and apparatus | |
CN102904564A (en) | Method for adjusting driving current of transmission interface and relevant device | |
CN117155837A (en) | Switch chip testing method and device, electronic equipment and storage medium | |
CN116627734A (en) | Serial port testing method, serial port testing device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |