Disclosure of Invention
The invention mainly aims to provide a pre-emphasis parameter adjusting method, device and equipment and a readable storage medium, and aims to solve the technical problem that a great amount of time is required to be spent in determining a better transmitting end pre-emphasis coefficient in the prior art through a manual debugging mode.
In a first aspect, the present invention provides a method for adjusting a pre-emphasis parameter, where the method for adjusting a pre-emphasis parameter includes:
step S10, adjusting pre-emphasis parameters of each serdes;
step S20, a control transmitting terminal transmits a test signal to a receiving terminal based on the adjusted pre-emphasis parameter, and each vertex coordinate of a new eye pattern generated based on the test signal received by the receiving terminal is obtained;
step S30, calculating the area of the new eye diagram according to the vertex coordinates of the new eye diagram, and comparing the area of the new eye diagram with the historic maximum eye diagram area;
step S40, determining the adjustment direction of each serdes according to the comparison result;
step S50, according to the adjustment direction of each serdes, adjusting the pre-emphasis parameters of each serdes, and executing step S20.
Optionally, the step S10 includes:
step S101, configuring initial pre-emphasis parameters for each serdes according to the types of each serdes in a transmitting end port;
step S102, a control transmitting terminal transmits a test signal to a receiving terminal based on the initial pre-emphasis parameter, and each vertex coordinate of an initial eye pattern generated based on the test signal received by the receiving terminal side is obtained;
step S103, determining the deflection of the initial eye pattern according to the vertex coordinates of the initial eye pattern;
step S104, determining a pre-emphasis parameter selectable range according to the bias;
step S105, adjusting the pre-emphasis parameter of each serdes based on the selectable range of pre-emphasis parameters and the type of each serdes.
Optionally, after the step S102, the method further includes:
step S106, determining whether the eliminating condition is met according to the vertex coordinates of the initial eye pattern;
if the rejection condition is satisfied, executing step S101;
if the rejection condition is not satisfied, executing step S103;
after step S20, further comprising:
step S60, determining whether the eliminating condition is met according to the vertex coordinates of the new eye pattern;
if the rejection condition is satisfied, executing step S105;
if the rejection condition is not satisfied, step S30 is executed.
Optionally, the step S106 includes:
detecting whether the abscissa deviation between the upper vertex and the lower vertex of the initial eye pattern is larger than a first preset deviation or not;
detecting whether the ordinate deviation between the left vertex and the right vertex of the initial eye pattern is larger than a second preset deviation or not;
if the abscissa deviation between the upper vertex and the lower vertex of the initial eye pattern is larger than the first preset deviation and/or the ordinate deviation between the left vertex and the right vertex of the initial eye pattern is larger than the second preset deviation, determining that the rejection condition is met;
if the abscissa deviation between the upper vertex and the lower vertex of the initial eye pattern is not greater than the first preset deviation, and the ordinate deviation between the left vertex and the right vertex of the initial eye pattern is not greater than the second preset deviation, determining that the rejection condition is not met;
the step S60 includes:
detecting whether the abscissa deviation between the upper vertex and the lower vertex of the new eye pattern is larger than a first preset deviation or not;
detecting whether the ordinate deviation between the left vertex and the right vertex of the new eye pattern is larger than a second preset deviation or not;
if the abscissa deviation between the upper vertex and the lower vertex of the new eye pattern is larger than the first preset deviation and/or the ordinate deviation between the left vertex and the right vertex of the new eye pattern is larger than the second preset deviation, determining that the rejection condition is met;
if the abscissa deviation between the upper vertex and the lower vertex of the new eye pattern is not greater than the first preset deviation, and the ordinate deviation between the left vertex and the right vertex of the new eye pattern is not greater than the second preset deviation, determining that the rejection condition is not satisfied.
Optionally, the step S40 includes:
if the area of the new eye pattern is smaller than the historic maximum eye pattern area, determining the adjustment direction of each serdes as the reverse adjustment direction of the current adjustment direction of each serdes;
if the area of the new eye diagram is larger than the historic maximum eye diagram area, determining the adjustment direction of each serdes as the current adjustment direction of each serdes.
Optionally, the step S50 includes:
according to the adjustment direction of each serdes, adjusting the pre-emphasis parameter of each serdes;
detecting whether the pre-emphasis parameters of each serdes after adjustment exceed the pre-emphasis parameter selectable range corresponding to the type of each serdes;
if at least one target serdes exists, adjusting the pre-emphasis parameter of the target serdes in the opposite adjustment direction of the determined adjustment direction corresponding to the target serdes, wherein the pre-emphasis parameter after adjustment of the target serdes exceeds the pre-emphasis parameter selectable range corresponding to the type of the target serdes, and executing step S20.
Optionally, after step S30, the method further includes:
and if the area of the new eye pattern is larger than the historical maximum eye pattern area, taking the area of the new eye pattern as the historical maximum eye pattern area.
In a second aspect, the present invention further provides a pre-emphasis parameter adjustment device, where the pre-emphasis parameter adjustment device includes:
the adjusting module is used for adjusting the pre-emphasis parameters of each serdes;
the control module is used for controlling the transmitting end to transmit a test signal to the receiving end based on the adjusted pre-emphasis parameter and acquiring each vertex coordinate of a new eye pattern generated based on the test signal received by the receiving end;
the comparison module is used for calculating the area of the new eye diagram according to the vertex coordinates of the new eye diagram and comparing the area of the new eye diagram with the historic maximum eye diagram area;
the determining module is used for determining the adjustment direction of each serdes according to the comparison result;
and the adjusting module is also used for adjusting the pre-emphasis parameters of the serdes according to the adjusting direction of the serdes.
In a third aspect, the present invention also provides a pre-emphasis parameter adjustment device, the pre-emphasis parameter adjustment device comprising a processor, a memory, and a pre-emphasis parameter adjustment program stored on the memory and executable by the processor, wherein the pre-emphasis parameter adjustment program, when executed by the processor, implements the steps of the pre-emphasis parameter adjustment method as described above.
In a fourth aspect, the present invention also provides a readable storage medium having stored thereon a pre-emphasis parameter adjustment program, wherein the pre-emphasis parameter adjustment program, when executed by a processor, implements the steps of the pre-emphasis parameter adjustment method as described above.
In the invention, the pre-emphasis parameters of each serdes are adjusted; the control transmitting terminal transmits a test signal to the receiving terminal based on the adjusted pre-emphasis parameter, and acquires each vertex coordinate of a new eye pattern generated based on the test signal received by the receiving terminal; calculating according to the vertex coordinates of the new eye pattern to obtain the area of the new eye pattern, and comparing the area of the new eye pattern with the historic maximum eye pattern area; determining the adjustment direction of each serdes according to the comparison result; according to the adjustment direction of each serdes, adjusting the pre-emphasis parameter of each serdes; and executing the step that the control transmitting terminal transmits a test signal to the receiving terminal based on the adjusted pre-emphasis parameter and acquires the vertex coordinates of a new eye diagram at the receiving terminal. According to the invention, based on the idea of negative feedback regulation, the regulating direction of each serdes is determined according to the comparison result of the area of the eye diagram corresponding to the new pre-emphasis parameter and the historical maximum eye diagram area, the pre-emphasis parameters of each serdes are regulated again according to the regulating direction, and the process is repeated, so that manual regulation is not needed, the workload is greatly saved, and the time required for finding the better pre-emphasis parameters is saved.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In a first aspect, an embodiment of the present invention provides a pre-emphasis parameter adjustment device, where the pre-emphasis parameter adjustment device may be a device with a data processing function, such as a personal computer, a notebook computer, a server, or the like.
Referring to fig. 1, fig. 1 is a schematic hardware structure of a pre-emphasis parameter adjustment device according to an embodiment of the present invention. In an embodiment of the present invention, the pre-emphasis parameter adjustment device may include a processor 1001 (e.g., a central processing unit Central Processing Unit, a CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communications between these components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM) or a stable memory (non-volatile memory), such as a disk memory, and the memory 1005 may alternatively be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration shown in fig. 1 is not limiting of the invention and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
With continued reference to fig. 1, an operating system, a network communication module, a user interface module, and a pre-emphasis parameter adjustment program may be included in memory 1005, which is a type of computer storage medium in fig. 1. The processor 1001 may call a pre-emphasis parameter adjustment program stored in the memory 1005, and execute the pre-emphasis parameter adjustment method provided in the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a method for adjusting a pre-emphasis parameter.
In an embodiment, referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a pre-emphasis parameter adjustment method according to the present invention. As shown in fig. 2, the pre-emphasis parameter adjustment method includes:
step S10, adjusting pre-emphasis parameters of each serdes;
in this embodiment, for the switch, from the bottom layer of the hardware, the number of 10g optical ports (1 serdes) and 100g optical ports (4 serdes) are different, the conventional adjustment is only performed for the ports, and each serdes parameter is the same, but from the physical channel, each serdes is independent, and different types of serdes under the same port adopt the same parameter, which obviously cannot achieve the best effect. In order to optimize the signal quality above each serdes, the pre-emphasis parameters of the individual serdes are adjusted according to the type of the individual serdes.
According to the chip debugging document description, the pre-emphasis parameter selectable ranges corresponding to different types of serdes are different, and then the pre-emphasis parameters of the serdes can be adjusted according to the pre-emphasis parameter selectable range corresponding to each type of serdes.
Further, in an embodiment, referring to fig. 3, fig. 3 is a schematic diagram of a refinement process of step S10 in fig. 2. As shown in fig. 3, step S10 includes:
step S101, configuring initial pre-emphasis parameters for each serdes according to the types of each serdes in a transmitting end port;
in the present embodiment, for example: the types 1 and 2 of serdes correspond to the pre-emphasis parameter optional range 1, the type 3 of serdes corresponds to the pre-emphasis parameter optional range 2, and the type 4 of serdes corresponds to the pre-emphasis parameter optional range 3 and 4. Assuming that the transmitting terminal port comprises 4 serdes, the type of the serdes1 is type 1, the type of the serdes2 is type 2, the type of the serdes3 is type 3, and the type of the serdes4 is type 4, randomly selecting a group of pre-emphasis parameters from the pre-emphasis parameter selectable range 1 as initial pre-emphasis parameters of the serdes1, and configuring the serdes 1; randomly selecting a group of pre-emphasis parameters from the pre-emphasis parameter selectable range 2 as initial pre-emphasis parameters of serdes2, and configuring the serdes 2; similarly, configuring the serdes3 and the serdes4 in the same way can realize that initial pre-emphasis parameters are configured for each serdes according to the types of each serdes in the port of the sending end.
Step S102, a control transmitting terminal transmits a test signal to a receiving terminal based on the initial pre-emphasis parameter, and each vertex coordinate of an initial eye pattern generated based on the test signal received by the receiving terminal side is obtained;
in this embodiment, after the initial pre-emphasis parameters are configured for each serdes, the control transmitting terminal sends the test signal to the receiving terminal based on the configuration, and the oscilloscope connected to the receiving terminal can generate an initial eye diagram according to the test signal received by the receiving terminal. And establishing a rectangular coordinate system on the oscilloscope by taking the center point of the oscilloscope as the origin of coordinates, so as to obtain the coordinates of each vertex of the initial eye diagram. Each vertex coordinate includes: upper vertex coordinates, lower vertex coordinates, left vertex coordinates, and right vertex coordinates.
Step S103, determining the deflection of the initial eye pattern according to the vertex coordinates of the initial eye pattern;
in this embodiment, the bias of the initial eye diagram is first determined according to the vertex coordinates of the initial eye diagram. The bias of the initial eye pattern is divided into 4 cases:
if the sum of the ordinate of the upper vertex and the ordinate of the lower vertex is greater than zero, the initial eye diagram is deviated upwards;
if the sum of the ordinate of the upper vertex and the ordinate of the lower vertex is smaller than zero, the initial eye diagram is deviated downwards;
if the sum of the abscissa of the left vertex and the abscissa of the right vertex is smaller than zero, the initial eye diagram is left;
if the sum of the left vertex abscissa and the right vertex abscissa is greater than zero, the initial eye diagram is biased to the right.
Step S104, determining a pre-emphasis parameter selectable range according to the bias;
in this embodiment, the selectable ranges of the corresponding pre-emphasis parameters are set for different offsets based on the chip debug document description.
Step S105, adjusting the pre-emphasis parameter of each serdes based on the selectable range of pre-emphasis parameters and the type of each serdes.
In this embodiment, if the pre-emphasis parameter selectable range a is determined according to the bias, the pre-emphasis parameters of the respective serdes are further adjusted according to the pre-emphasis parameter selectable range a and the types of the respective serdes. For example, the type of the serdes1 is type 1, the serdes of the type 1 corresponds to the pre-emphasis parameter optional range 1, the intersection pre-emphasis parameter optional range 11 of the pre-emphasis parameter optional range a and the pre-emphasis parameter optional range 1 is determined, a group of pre-emphasis parameters is randomly selected from the pre-emphasis parameter optional range 11 to configure the serdes1, and thus the pre-emphasis parameters of the serdes1 are adjusted based on the pre-emphasis parameter optional range determined by bias and the type of the serdes 1. In the same way, the pre-emphasis parameters of other serdes are adjusted.
Step S20, a control transmitting terminal transmits a test signal to a receiving terminal based on the adjusted pre-emphasis parameter, and each vertex coordinate of a new eye pattern generated based on the test signal received by the receiving terminal is obtained;
in this embodiment, after the pre-emphasis parameters of each serdes are adjusted in step S10, the transmitting terminal is controlled to transmit a test signal to the receiving terminal based on the adjusted pre-emphasis parameters, so as to obtain the vertex coordinates of a new eye pattern generated based on the test signal received by the receiving terminal. The specific steps of the embodiment are similar to step S102, and will not be described here.
Step S30, calculating the area of the new eye diagram according to the vertex coordinates of the new eye diagram, and comparing the area of the new eye diagram with the historic maximum eye diagram area;
in this embodiment, the area of the eye pattern s=x Difference of difference *Y Difference of difference 2, wherein X Difference of difference Is the absolute value of the horizontal coordinate difference value of the left and right vertexes, Y Difference of difference The absolute value of the vertical coordinate difference between the upper and lower vertexes.
The historical maximum eye diagram refers to the eye diagram with the largest area in the obtained eye diagrams in the cyclic process of the method in the embodiment.
In a certain cycle, after the area of the new eye pattern is calculated according to the vertex coordinates of the new eye pattern, the area of the new eye pattern in the current cycle can be compared with the historic maximum eye pattern area.
Step S40, determining the adjustment direction of each serdes according to the comparison result;
in this embodiment, if the area of the new eye pattern is larger than the historic maximum eye pattern area, it is indicated that the pre-emphasis parameters of each serdes are adjusted according to the current adjustment direction, so that the obtained eye pattern area is increased, and the current adjustment direction is kept unchanged; if the area of the new eye diagram is smaller than the historical maximum eye diagram area, the pre-emphasis parameters of each serdes are adjusted according to the current adjustment direction, the obtained eye diagram area is reduced, and the adjustment direction of each serdes is changed.
Further, in an embodiment, step S40 includes:
if the area of the new eye pattern is smaller than the historic maximum eye pattern area, determining the adjustment direction of each serdes as the reverse adjustment direction of the current adjustment direction of each serdes; if the area of the new eye diagram is larger than the historic maximum eye diagram area, determining the adjustment direction of each serdes as the current adjustment direction of each serdes.
In this embodiment, the set of pre-emphasis parameters includes parameter 1, parameter 2, parameter 3, parameter 4, parameter 5, and parameter 6. Taking serdes1 as an example, the current adjustment direction of serdes1 is: parameter 1 plus 1, parameter 2 plus 1, parameter 3 minus 1, parameter 4 plus 1, parameter 5 minus 1, and parameter 6 plus 1. If the area of the new eye diagram is larger than the historic maximum eye diagram area, the adjustment direction of serdes1 is still the current adjustment direction; if the area of the new eye pattern is smaller than the historic maximum eye pattern area, the adjustment direction of serdes1 is changed into the reverse adjustment direction of the current adjustment direction, namely: parameter 1 minus 1, parameter 2 minus 1, parameter 3 plus 1, parameter 4 minus 1, parameter 5 plus 1, and parameter 6 minus 1.
Similarly, the direction of adjustment of each serdes can be determined in the same manner.
Step S50, according to the adjustment direction of each serdes, adjusting the pre-emphasis parameters of each serdes, and executing step S20.
In this embodiment, after determining the adjustment direction of each serdes according to step S40, the pre-emphasis parameters of each serdes can be adjusted according to the determined adjustment direction of each serdes. Taking serdes1 as an example, the adjustment direction of serdes1 determined according to step S40 is: and (3) adjusting the current pre-emphasis parameter of serdes1 according to the adjustment direction if the parameter 1 is added with 1, the parameter 2 is added with 1, the parameter 3 is subtracted with 1, the parameter 4 is added with 1, the parameter 5 is subtracted with 1 and the parameter 6 is added with 1, and then executing the step S20 based on the current configuration.
In this embodiment, according to the type of each serdes in the port of the transmitting end, an initial pre-emphasis parameter is configured for each serdes; the control transmitting end transmits a test signal to the receiving end based on the initial pre-emphasis parameter, and each vertex coordinate of an initial eye pattern generated based on the test signal received by the receiving end side is obtained; according to the vertex coordinates of the initial eye diagram, adjusting pre-emphasis parameters of each serdes; the control transmitting terminal transmits a test signal to the receiving terminal based on the adjusted pre-emphasis parameter, and acquires each vertex coordinate of a new eye pattern generated based on the test signal received by the receiving terminal; calculating according to the vertex coordinates of the new eye pattern to obtain the area of the new eye pattern, and comparing the area of the new eye pattern with the historic maximum eye pattern area; determining the adjustment direction of each serdes according to the comparison result; according to the adjustment direction of each serdes, adjusting the pre-emphasis parameter of each serdes; and executing the step that the control transmitting terminal transmits a test signal to the receiving terminal based on the adjusted pre-emphasis parameter and acquires the vertex coordinates of a new eye diagram at the receiving terminal. According to the embodiment, the pre-emphasis parameters of the serdes in the transmitting end port are automatically configured initially, the pre-emphasis parameters of the serdes are adjusted according to the vertex coordinates of the eye pattern obtained under the initial configuration, subsequently, based on the thought of negative feedback adjustment, the adjustment direction of the serdes is determined according to the comparison result of the area of the eye pattern corresponding to the new pre-emphasis parameters and the historical maximum eye pattern area, the pre-emphasis parameters of the serdes are adjusted again according to the adjustment direction, and the process is repeated, so that manual adjustment is not needed, the workload is greatly saved, and the time required for finding the optimal pre-emphasis parameters is saved.
Further, in an embodiment, referring to fig. 4, fig. 4 is a flow chart illustrating another embodiment of the pre-emphasis parameter adjustment method of the present invention. As shown in fig. 4, after the step S102, the method further includes:
step S106, determining whether the eliminating condition is met according to the vertex coordinates of the initial eye pattern;
if the rejection condition is satisfied, executing step S101;
if the rejection condition is not satisfied, executing step S103;
after step S20, further comprising:
step S60, determining whether the eliminating condition is met according to the vertex coordinates of the new eye pattern;
if the rejection condition is satisfied, executing step S105;
if the rejection condition is not satisfied, step S30 is executed.
In this embodiment, after step S102, whether the rejection condition is satisfied is determined according to each vertex coordinate of the initial eye pattern, if the rejection condition is satisfied, it is indicated that the initial eye pattern is unavailable, step S101 is performed, and the specific embodiment of step S101 is described above, which is not repeated herein; if the rejection condition is not satisfied, the initial eye diagram is usable, step S103 is performed, and the specific embodiment of step S103 is described above, which is not repeated here.
Similarly, after step S20, determining whether a rejection condition is satisfied according to each vertex coordinate of the new eye pattern, if the rejection condition is satisfied, then, if the new eye pattern is not usable, step S105 is executed, and the specific embodiment of step S105 is referred to the above description, and details are not repeated herein; if the rejection condition is not satisfied, the new eye diagram is usable, step S30 is executed, and the specific embodiment of step S30 is described above, which is not repeated here.
Further, in an embodiment, the step S106 includes:
detecting whether the abscissa deviation between the upper vertex and the lower vertex of the initial eye pattern is larger than a first preset deviation or not; detecting whether the ordinate deviation between the left vertex and the right vertex of the initial eye pattern is larger than a second preset deviation or not; if the abscissa deviation between the upper vertex and the lower vertex of the initial eye pattern is larger than the first preset deviation and/or the ordinate deviation between the left vertex and the right vertex of the initial eye pattern is larger than the second preset deviation, determining that the rejection condition is met; if the abscissa deviation between the upper vertex and the lower vertex of the initial eye pattern is not greater than the first preset deviation, and the ordinate deviation between the left vertex and the right vertex of the initial eye pattern is not greater than the second preset deviation, determining that the rejection condition is not met;
in this embodiment, an abscissa deviation between an upper vertex and a lower vertex of an initial eye pattern and an ordinate deviation between a left vertex and a right vertex of the initial eye pattern are calculated; if the abscissa deviation is larger than the first preset deviation and/or the ordinate deviation is larger than the second preset deviation, the initial eye diagram is a distorted rhombic quadrilateral, the rejection condition is determined to be met, and if the abscissa deviation is not larger than the first preset deviation and the ordinate deviation is not larger than the second preset deviation, the initial eye diagram is considered to be a non-distorted rhombic quadrilateral, and the rejection condition is not met. The first preset deviation and the second preset deviation are set according to actual needs.
Further, in an embodiment, the midpoint of four sides of the eye pattern may be selected, and the slope 1 of the straight line 1 passing through the upper vertex and the right vertex is calculated first, then the slope 2 of the straight line 2 passing through the upper vertex and the midpoint of the side 1 is calculated, or the slope 2 of the straight line 2 passing through the right vertex and the midpoint of the side 1 is calculated, finally the absolute value of the difference between the slope 1 and the slope 2 is calculated, and the absolute value is recorded as the absolute value 1 corresponding to the side 1, and so on, so as to obtain the absolute value corresponding to each side.
If the absolute value corresponding to at least one edge is larger than the preset value, determining that the eliminating condition is met; otherwise, determining that the rejection condition is not satisfied.
The step S60 includes:
detecting whether the abscissa deviation between the upper vertex and the lower vertex of the new eye pattern is larger than a first preset deviation or not; detecting whether the ordinate deviation between the left vertex and the right vertex of the new eye pattern is larger than a second preset deviation or not; if the abscissa deviation between the upper vertex and the lower vertex of the new eye pattern is larger than the first preset deviation and/or the ordinate deviation between the left vertex and the right vertex of the new eye pattern is larger than the second preset deviation, determining that the rejection condition is met; if the abscissa deviation between the upper vertex and the lower vertex of the new eye pattern is not greater than the first preset deviation, and the ordinate deviation between the left vertex and the right vertex of the new eye pattern is not greater than the second preset deviation, determining that the rejection condition is not satisfied.
The present embodiment is substantially the same as the previous embodiment, and will not be described here.
Further, in one embodiment, S50 includes:
according to the adjustment direction of each serdes, adjusting the pre-emphasis parameter of each serdes; detecting whether the pre-emphasis parameters of each serdes after adjustment exceed the pre-emphasis parameter selectable range corresponding to the type of each serdes; if at least one target serdes exists, adjusting the pre-emphasis parameter of the target serdes in the opposite adjustment direction of the determined adjustment direction corresponding to the target serdes, wherein the pre-emphasis parameter after adjustment of the target serdes exceeds the pre-emphasis parameter selectable range corresponding to the type of the target serdes, and executing step S20.
In this embodiment, after adjusting the pre-emphasis parameters of each serdes according to the adjustment directions of each serdes, it is required to detect whether the pre-emphasis parameters of each serdes after adjustment exceed the pre-emphasis parameter selectable range corresponding to the type of each serdes, if at least one target serdes exists, the target serdes refers to the serdes whose adjusted pre-emphasis parameters exceed the pre-emphasis parameter selectable range corresponding to the type, and then the current pre-emphasis parameters of the target serdes are adjusted in the opposite adjustment directions of the determined adjustment directions corresponding to the target serdes, and step S20 is executed. It should be noted that, for non-target serdes, no adjustment is required to its current pre-emphasis parameters.
By the embodiment, the situation that the boundary of the selectable range of the pre-emphasis parameter corresponding to the type is exceeded can be avoided.
Further, in an embodiment, after step S30, the method further includes:
and if the area of the new eye pattern is larger than the historical maximum eye pattern area, taking the area of the new eye pattern as the historical maximum eye pattern area.
In this embodiment, if the area of the new eye pattern is larger than the historical maximum eye pattern area, the area of the new eye pattern is used as the historical maximum eye pattern area.
In a third aspect, an embodiment of the present invention further provides a pre-emphasis parameter adjustment device.
In an embodiment, referring to fig. 5, fig. 5 is a schematic functional block diagram of an embodiment of a pre-emphasis parameter adjustment device according to the present invention. As shown in fig. 5, the pre-emphasis parameter adjustment device includes:
an adjustment module 10, configured to adjust pre-emphasis parameters of each serdes;
the control module 20 is configured to control the transmitting end to transmit a test signal to the receiving end based on the adjusted pre-emphasis parameter, and obtain each vertex coordinate of a new eye pattern generated based on the test signal received by the receiving end;
a comparison module 30, configured to calculate an area of the new eye diagram according to the vertex coordinates of the new eye diagram, and compare the area of the new eye diagram with the historical maximum eye diagram area;
a determining module 40, configured to determine an adjustment direction of each serdes according to the comparison result;
the adjusting module 10 is further configured to adjust the pre-emphasis parameter of each serdes according to the adjusting direction of each serdes.
Further, in an embodiment, the adjusting module 10 is configured to:
configuring initial pre-emphasis parameters for each serdes according to the types of each serdes in a transmitting end port;
the control transmitting end transmits a test signal to the receiving end based on the initial pre-emphasis parameter, and each vertex coordinate of an initial eye pattern generated based on the test signal received by the receiving end side is obtained;
determining the deflection of the initial eye diagram according to the vertex coordinates of the initial eye diagram;
determining a pre-emphasis parameter selectable range based on the bias;
and adjusting the pre-emphasis parameters of the serdes based on the pre-emphasis parameter selectable range and the types of the serdes.
Further, in an embodiment, the pre-emphasis parameter adjustment device further includes a rejection module, configured to:
determining whether a rejection condition is met according to each vertex coordinate of the initial eye diagram;
if the rejection condition is met, executing the step of configuring initial pre-emphasis parameters for each serdes according to the types of each serdes in the port of the sending end;
if the eliminating condition is not met, executing the step of determining the deflection of the initial eye diagram according to the vertex coordinates of the initial eye diagram;
determining whether a rejection condition is met according to each vertex coordinate of the new eye diagram;
if the rejection condition is met, executing the step of adjusting the pre-emphasis parameters of each serdes based on the pre-emphasis parameter selectable range and the types of each serdes;
and if the rejection condition is not met, executing the step of calculating the area of the new eye diagram according to the vertex coordinates of the new eye diagram and comparing the area of the new eye diagram with the historic maximum eye diagram area.
Further, in an embodiment, the rejection module is configured to:
detecting whether the abscissa deviation between the upper vertex and the lower vertex of the initial eye pattern is larger than a first preset deviation or not;
detecting whether the ordinate deviation between the left vertex and the right vertex of the initial eye pattern is larger than a second preset deviation or not;
if the abscissa deviation between the upper vertex and the lower vertex of the initial eye pattern is larger than the first preset deviation and/or the ordinate deviation between the left vertex and the right vertex of the initial eye pattern is larger than the second preset deviation, determining that the rejection condition is met;
if the abscissa deviation between the upper vertex and the lower vertex of the initial eye pattern is not greater than the first preset deviation, and the ordinate deviation between the left vertex and the right vertex of the initial eye pattern is not greater than the second preset deviation, determining that the rejection condition is not met;
detecting whether the abscissa deviation between the upper vertex and the lower vertex of the new eye pattern is larger than a first preset deviation or not;
detecting whether the ordinate deviation between the left vertex and the right vertex of the new eye pattern is larger than a second preset deviation or not;
if the abscissa deviation between the upper vertex and the lower vertex of the new eye pattern is larger than the first preset deviation and/or the ordinate deviation between the left vertex and the right vertex of the new eye pattern is larger than the second preset deviation, determining that the rejection condition is met;
if the abscissa deviation between the upper vertex and the lower vertex of the new eye pattern is not greater than the first preset deviation, and the ordinate deviation between the left vertex and the right vertex of the new eye pattern is not greater than the second preset deviation, determining that the rejection condition is not satisfied.
Further, in an embodiment, the determining module 40 is configured to:
if the area of the new eye pattern is smaller than the historic maximum eye pattern area, determining the adjustment direction of each serdes as the reverse adjustment direction of the current adjustment direction of each serdes;
if the area of the new eye diagram is larger than the historic maximum eye diagram area, determining the adjustment direction of each serdes as the current adjustment direction of each serdes.
Further, in an embodiment, the pre-emphasis parameter adjusting device further includes an out-of-range processing module, configured to:
detecting whether the pre-emphasis parameters of each serdes after adjustment exceed the pre-emphasis parameter selectable range corresponding to the type of each serdes;
if at least one target serdes exists, the pre-emphasis parameters of the target serdes are adjusted in the reverse adjustment direction of the determined adjustment direction corresponding to the target serdes, and the pre-emphasis parameters after adjustment of the target serdes exceed the pre-emphasis parameter selectable range corresponding to the type of the target serdes.
Further, in an embodiment, the pre-emphasis parameter adjustment device further includes a maximum eye pattern recognition module, configured to:
and if the area of the new eye pattern is larger than the historical maximum eye pattern area, taking the area of the new eye pattern as the historical maximum eye pattern area.
The function implementation of each module in the pre-emphasis parameter adjustment device corresponds to each step in the pre-emphasis parameter adjustment method embodiment, and the function and implementation process thereof are not described in detail herein.
In a fourth aspect, embodiments of the present invention also provide a readable storage medium.
The readable storage medium of the present invention stores a pre-emphasis parameter adjustment program, wherein the pre-emphasis parameter adjustment program, when executed by a processor, implements the steps of the pre-emphasis parameter adjustment method as described above.
The method implemented when the pre-emphasis parameter adjustment procedure is executed may refer to various embodiments of the pre-emphasis parameter adjustment method of the present invention, which are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising several instructions for causing a terminal device to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.