Method, device, medium and equipment for obtaining signal eye diagram parameters
By collecting signal waveform data to recover the clock signal and converting it into a single column matrix, the problem of excessive use of eye diagram parameter extraction resources in the prior art is solved, and efficient eye diagram parameter calculation is achieved.
Patent Information
- Application Number
- CN202411900872.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2044-12-23
AI Technical Summary
In the prior art, the calculation time and memory consumption of eye diagram parameter extraction are too large, resulting in excessive resource consumption.
Recover the clock signal by collecting waveform data of signal rate, splitting the signal and drawing the eye diagram, converting the eye diagram into an eye diagram matrix, and converting it into a single-column matrix based on the restored symbol width and the number of symbols to be drawn, and the calculation amount is reduced by using matrix segmentation to obtain eye diagram parameters.
It reduces the computing time consumption and memory usage, and improves the efficiency and accuracy of signal eye diagram parameter extraction.
Smart Images

Figure CN119848454B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of digital signal processing technology, and in particular to a method, device, medium and equipment for obtaining signal eye diagram parameters. Background Art
[0002] An eye diagram is the result of an oscilloscope overlaying various scanned patterns using persistence. The resulting pattern resembles an eye, hence the name. Because eye diagrams contain rich information and can reveal the effects of intersymbol crosstalk and noise, allowing for system quality assessment, eye diagram analysis is central to signal integrity analysis in high-speed interconnect systems.
[0003] However, the current algorithms for extracting eye diagram parameters are relatively complex. For example, the extraction method based on the K-Means clustering algorithm requires multiple clustering operations on the data. Each clustering operation requires calculating the distance between the cluster center and the data point. These complex calculation processes will take up a lot of memory and computing resources, and the operating equipment needs to invest more computing power. In addition, when faced with the processing and analysis of large amounts of signal data, the processing and storage of intermediate data will further consume memory, resulting in excessive computing time and memory consumption. Summary of the Invention
[0004] The main purpose of this application is to provide a method, device, medium and equipment for obtaining signal eye diagram parameters, aiming to solve the problems of excessive calculation time and memory consumption in eye diagram parameter extraction in the prior art.
[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for obtaining signal eye diagram parameters, which is applied to a non-return-to-zero coded signal, comprising the following steps:
[0007] Acquire waveform data of the original signal according to the signal rate, and recover the clock signal from the waveform data;
[0008] Based on the clock signal, split the original signal and draw the eye diagram;
[0009] The eye diagram is converted into an eye diagram matrix, and the eye diagram matrix is converted into a single-column matrix according to the symbol width obtained by recovering the clock signal, the number of symbols to be drawn, and the eye diagram matrix;
[0010] Eye diagram parameters are obtained according to the data parameters of the single-column matrix and / or the eye diagram matrix; wherein the data parameters include a first mean and a first standard deviation of the first half of the data of the single-column matrix, and a second mean and a second standard deviation of the second half of the data of the single-column matrix.
[0011] In a possible implementation of the first aspect, converting the eye diagram into an eye diagram matrix, and converting the eye diagram matrix into a single-column matrix based on the symbol width obtained from the recovered clock signal, the number of symbols to be drawn, and the eye diagram matrix, includes:
[0012] Convert the eye diagram into an eye matrix;
[0013] Calculate the first column boundary and the second column boundary according to the symbol width obtained from the recovered clock signal, the number of symbols to be drawn, and the eye diagram matrix;
[0014] The data between the first column boundary and the second column boundary in each row of the eye diagram matrix are summed, and the summed data are placed in a new matrix to convert the eye diagram matrix into a single-column matrix.
[0015] In a possible implementation manner of the first aspect, obtaining eye diagram parameters according to data parameters of a single-column matrix and / or an eye diagram matrix includes:
[0016] Based on the eye diagram matrix, construct an evaluation matrix;
[0017] Based on the index of the minimum value in the evaluation matrix, the intersection parameter is obtained;
[0018] According to the cross point parameters and the data parameters of the single column matrix, the eye height parameter, the eye width parameter, the jitter parameter and the cross ratio parameter are obtained.
[0019] In a possible implementation of the first aspect, constructing an evaluation matrix according to the eye diagram matrix includes:
[0020] Divide the eye diagram matrix into equal parts based on columns to obtain a first eye diagram sub-matrix and a second eye diagram sub-matrix;
[0021] Splitting the first eye pattern sub-matrix and the second eye pattern sub-matrix along the column direction to obtain a first matrix and a second matrix respectively;
[0022] Calculate the mean and standard deviation of the data in the first matrix and the second matrix respectively, and place the calculation results in the first matrix unit and the second matrix unit respectively;
[0023] The first matrix unit and the second matrix unit are normalized respectively and then added to the standard matrix to obtain the evaluation matrix.
[0024] In a possible implementation of the first aspect, the data parameters of a single-column matrix and / or the eye diagram matrix, and obtaining the eye diagram parameters, include:
[0025] According to the first mean, a level 1 parameter is obtained;
[0026] According to the second mean, a 0-level parameter is obtained;
[0027] Obtaining an eye amplitude parameter according to a difference between the first mean and the second mean;
[0028] An extinction ratio parameter is obtained according to a ratio of the first mean value to the second mean value.
[0029] In a possible implementation manner of the first aspect, obtaining eye diagram parameters according to data parameters of a single-column matrix and / or an eye diagram matrix includes:
[0030] A signal-to-noise ratio parameter is obtained according to a ratio of a difference between the first mean and the second mean to a sum of the first standard deviation and the second standard deviation.
[0031] In a possible implementation manner of the first aspect, obtaining eye diagram parameters according to data parameters of a single-column matrix and / or an eye diagram matrix includes:
[0032] According to the data parameters of the single-column matrix, the data mean of the target column in the target row of the eye diagram matrix is obtained;
[0033] A rise time parameter and a fall time parameter are obtained according to the data mean of the target column in the target row of the eye diagram matrix.
[0034] In a second aspect, an embodiment of the present application provides a signal eye diagram parameter acquisition device, which is applied to a non-return-to-zero coded signal, comprising:
[0035] An acquisition module, the acquisition module is used to acquire waveform data of the original signal according to the signal rate and recover the clock signal from the waveform data;
[0036] The drawing module is used to segment the original signal and draw the eye diagram based on the clock signal;
[0037] A conversion module, the conversion module is used to convert the eye diagram into an eye diagram matrix, and convert the eye diagram matrix into a single column matrix according to the symbol width obtained by the recovered clock signal, the number of symbols to be drawn, and the eye diagram matrix;
[0038] An acquisition module is used to obtain eye diagram parameters based on data parameters of a single-column matrix and / or an eye diagram matrix; wherein the data parameters include a first mean and a first standard deviation of the first half of the data of the single-column matrix, and a second mean and a second standard deviation of the second half of the data of the single-column matrix.
[0039] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, the signal eye diagram parameter obtaining method provided in any one of the first aspects above is implemented.
[0040] In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein:
[0041] Memory is used to store computer programs;
[0042] The processor is used to load and execute a computer program so that the electronic device executes the signal eye diagram parameter acquisition method provided in any one of the first aspects above.
[0043] Compared with the prior art, the present invention has the following advantages:
[0044] The embodiments of the present application propose a method, apparatus, medium, and equipment for obtaining signal eye diagram parameters, the method comprising: collecting waveform data of an original signal according to a signal rate, and recovering a clock signal from the waveform data; based on the clock signal, slicing the original signal and drawing an eye diagram; converting the eye diagram into an eye diagram matrix, and converting the eye diagram matrix into a single-column matrix based on the symbol width obtained by recovering the clock signal, the number of symbols to be drawn, and the eye diagram matrix; obtaining eye diagram parameters based on data parameters of the single-column matrix and / or the eye diagram matrix; wherein the data parameters include a first mean and a first standard deviation of the first half of the data of the single-column matrix, and a second mean and a second standard deviation of the second half of the data of the single-column matrix. This application first collects waveform data of sufficient length for clock recovery and eye diagram drawing, and then converts the drawn eye diagram and the information it contains into a matrix, which is subsequently analyzed in matrix form, reducing the pressure of data analysis and the consumption of computing time. Then, the symbol width and the number of symbols to be drawn are obtained by recovering the clock signal, and the eye diagram matrix is converted into a single-column matrix. The transformation between matrices is simpler, and the amount of calculation is greatly reduced by matrix segmentation. It does not require a large amount of memory, and the effect of signal eye diagram parameter extraction is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of the electronic device structure of the hardware operating environment involved in the embodiments of the present application;
[0046] Figure 2 A flow chart of a method for obtaining signal eye diagram parameters provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of eye diagram parameters extracted by the signal eye diagram parameter acquisition method provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of eye diagram parameters extracted by prior art methods;
[0049] Figure 5 It is a schematic diagram of an eye diagram;
[0050] Figure 6 A schematic diagram of a module of a device for obtaining signal eye diagram parameters provided in an embodiment of the present application;
[0051] Markings in the figure: 101 - processor, 102 - communication bus, 103 - network interface, 104 - user interface, 105 - memory. DETAILED DESCRIPTION
[0052] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0053] Refer to the attached Figure 1 , attached Figure 1 This is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present application. The electronic device may include: a processor 101, such as a central processing unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 104 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 104 may also include a standard wired interface and a wireless interface. The network interface 103 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WI-FI) interface). The memory 105 may optionally be a storage device independent of the aforementioned processor 101. The memory 105 may be a high-speed random access memory (RAM) memory, or a stable non-volatile memory (NVM), such as at least one disk storage; the processor 101 may be a general-purpose processor, including a central processing unit, a network processor, etc., or it may be a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
[0054] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation to the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0055] As attached Figure 1 As shown, the memory 105 as a storage medium may include an operating system, a network communication module, a user interface module, and a signal eye diagram parameter obtaining device.
[0056] In the attached Figure 1In the electronic device shown, the network interface 103 is mainly used for data communication with the network server; the user interface 104 is mainly used for data interaction with the user; the processor 101 and the memory 105 in this application can be set in the electronic device, and the electronic device calls the signal eye diagram parameter acquisition device stored in the memory 105 through the processor 101, and executes the signal eye diagram parameter acquisition method provided in the embodiment of the present application.
[0057] Refer to the attached Figure 2 Based on the hardware devices of the aforementioned embodiments, embodiments of the present application provide a method for obtaining signal eye diagram parameters, which is applied to non-return-to-zero coded signals. Non-return-to-zero (NRZ) coding is a binary signal encoding method in which digital signals can be directly transmitted using baseband transmission, that is, the electrical pulses of the digital signal are directly transmitted in the line. Non-return-to-zero coded signals refer to binary signals in which 1 and 0 are represented by different electronic significant states, and the signal level does not return to zero within a bit period.
[0058] The method comprises the following steps:
[0059] S10: Acquire waveform data of the original signal according to the signal rate, and recover the clock signal from the waveform data.
[0060] S20: Based on the clock signal, split the original signal and draw the eye diagram.
[0061] In the specific implementation process, unlike the persistence accumulation method of modern digital oscilloscopes to generate eye diagrams, the embodiments of the present application can first use a digital oscilloscope to collect waveform data for a sufficiently long time. The amount of data collected is determined by the signal rate, and it is used for clock recovery and eye diagram drawing. The clock signal is recovered from the data through clock recovery, such as using a constant clock, a phase-locked loop, etc., and then the clock is used as a reference to determine the number of code elements to be drawn, the offset and other parameters, and then the original signal is divided. Finally, the divided signals are aligned and drawn into the same image to complete the production of the eye diagram.
[0062] S30: converting the eye diagram into an eye diagram matrix, and converting the eye diagram matrix into a single-column matrix according to the symbol width obtained by recovering the clock signal, the number of symbols to be drawn, and the eye diagram matrix.
[0063] During the specific implementation process, the existing data processing concept is changed, and the eye diagram is converted into a matrix form. The eye diagram parameters that need to be extracted are contained in the matrix and its related parameters. The symbol width obtained by clock recovery is recorded as UI, and the number of symbols to be drawn is set to 2, with no offset. The eye diagram data can be regarded as an MxN matrix, which is recorded as EYE. To further reduce computing power, the eye diagram matrix is converted into a single-column matrix, that is, an Mx1 matrix. Specifically: the eye diagram is converted into an eye diagram matrix, and based on the symbol width obtained from the recovered clock signal, the number of symbols to be drawn, and the eye diagram matrix, the eye diagram matrix is converted into a single-column matrix, including:
[0064] Convert the eye diagram into an eye matrix;
[0065] Calculate the first column boundary and the second column boundary according to the symbol width obtained from the recovered clock signal, the number of symbols to be drawn, and the eye diagram matrix;
[0066] The data between the first column boundary and the second column boundary in each row of the eye diagram matrix are summed, and the summed data are placed in a new matrix to convert the eye diagram matrix into a single-column matrix.
[0067] In the specific implementation process, the column direction boundaries are the left and right boundaries. For example, the first column boundary is the left boundary, the second column boundary is the right boundary, and the left boundary is calculated. Calculate the right boundary The data of the Lth to Rth columns of each row, that is, the data between the first column boundary and the second column boundary, are summed and placed into an Mx1 matrix, which is a single-column matrix.
[0068] S40: Obtain eye diagram parameters according to the data parameters of the single-column matrix and / or the eye diagram matrix; wherein the data parameters include a first mean and a first standard deviation of the first half of the data of the single-column matrix, and a second mean and a second standard deviation of the second half of the data of the single-column matrix.
[0069] In the specific implementation process, the mean L1 and standard deviation L1 of the first 50% of the data in the single column matrix are calculated. std , that is, the first mean and the first standard deviation, calculate the mean L0 and standard deviation L0 of the 50% data after the matrix std , i.e., the second mean and second standard deviation. Parameters that can be extracted from the eye diagram include eye width, eye height, eye amplitude, jitter, signal-to-noise ratio, crossover ratio, extinction ratio, rise time, fall time, 0 level, and 1 level.
[0070] Specifically, according to the data parameters of the single-column matrix and / or the eye diagram matrix, the eye diagram parameters are obtained, including:
[0071] Based on the eye diagram matrix, construct an evaluation matrix;
[0072] Based on the index of the minimum value in the evaluation matrix, the intersection parameter is obtained;
[0073] According to the cross point parameters and the data parameters of the single column matrix, the eye height parameter, the eye width parameter, the jitter parameter and the cross ratio parameter are obtained.
[0074] Among them, according to the eye diagram matrix, an evaluation matrix is constructed, including:
[0075] Divide the eye diagram matrix into equal parts based on columns to obtain a first eye diagram sub-matrix and a second eye diagram sub-matrix;
[0076] Splitting the first eye pattern sub-matrix and the second eye pattern sub-matrix along the column direction to obtain a first matrix and a second matrix respectively;
[0077] Calculate the mean and standard deviation of the data in the first matrix and the second matrix respectively, and place the calculation results in the first matrix unit and the second matrix unit respectively;
[0078] The first matrix unit and the second matrix unit are normalized respectively and then added to the standard matrix to obtain the evaluation matrix.
[0079] In the specific implementation process, the eye diagram matrix is divided into two sub-matrices with the N / 2th column as the center. The left matrix is recorded as EYE_L and the right matrix is recorded as EYE_R, namely the first matrix and the second matrix. The two matrices are processed in the same way. Taking the first matrix as an example, the matrix EYE_L is divided into K smaller matrices in the vertical direction, namely the first matrix units. Matrix segmentation further reduces the amount of calculation, and reduces the computing time and memory consumption.
[0080] Calculate the mean and standard deviation of the data in each small matrix, obtain the calculation results under the first matrix and the second matrix respectively, and put the results into the Kx1 matrix K mean and a Kx1 matrix K std Create a Kx1 matrix Q, which is a standard matrix, where The matrix K std After normalization, it is added to the matrix Q to construct the evaluation matrix.
[0081] Find the index MinIdx of the minimum value in the evaluation matrix, record MinIdx as Y0, and K mean [MinIdx] is recorded as X0, and K std [MinIdx] is recorded as X0 std ; Perform the same operation on the matrix EYE_R to obtain Y1, X1, X1 std The calculation of eye diagram parameters includes:
[0082] Eye height parameter: (L1-3*L1 std )-(L0+3*L0std ), Eye Height refers to the size of the blank area on the vertical axis of the eye diagram. It can reflect the noise tolerance of the signal on the transmission line. The larger the eye height, the greater the noise tolerance of the signal and the better the signal quality.
[0083] Eye width parameter: (X1-3*X1 std )-(X0+3*X0 std ), Eye Width refers to the size of the eye diagram on the horizontal axis, which can reflect the total jitter of the signal. The wider the eye width, the smaller the total jitter of the signal and the better the signal quality. On the contrary, the narrower the eye width, the greater the total jitter of the signal and the worse the signal quality.
[0084] Jitter parameter: X0 std Jitter indicates the instability of the signal in the time domain. In the eye diagram, jitter will cause the lines of the eye diagram to become blurred and the eye diagram to open smaller. Therefore, the smaller the jitter, the better the signal quality.
[0085] Crossover ratio parameters: The Eye Cross Ratio refers to the ratio of the amplitude from the crossover point to the 0 level to the eye amplitude. In an ideal eye diagram, the cross ratio should be close to 50% to optimize the sensitivity of the receiver. If the cross ratio deviates too much from 50%, the receiver may misjudge the signal and increase the bit error rate.
[0086] In one embodiment, the data parameters of a single column matrix and / or an eye diagram matrix, obtaining eye diagram parameters, includes:
[0087] According to the first mean, a level 1 parameter is obtained;
[0088] According to the second mean, a 0-level parameter is obtained;
[0089] Obtaining an eye amplitude parameter according to a difference between the first mean and the second mean;
[0090] An extinction ratio parameter is obtained according to a ratio of the first mean value to the second mean value.
[0091] In the specific implementation process, the 0 level parameter is L0, which represents the voltage level value of logic 0; the 1 level parameter is L1, which represents the voltage level value of logic 1; the eye amplitude parameter: L1-L0, represents the difference between the average distribution of "1" level signal and the average distribution of "0" level signal, and its size reflects the quality of the signal. The larger the eye amplitude, the better the signal quality; the extinction ratio parameter: Defined as the ratio of the statistical average power of the "1" level to the "0" level in the eye diagram, the extinction ratio is an important parameter of the optical communication transmitter. Its size determines the quality of the communication signal. The larger the extinction ratio, the better the logical discrimination rate at the receiver; the smaller the extinction ratio, the more susceptible the signal is to interference, and the system bit error rate will increase.
[0092] In one embodiment, obtaining eye diagram parameters according to the data parameters of a single-column matrix and / or the eye diagram matrix includes:
[0093] A signal-to-noise ratio parameter is obtained according to a ratio of a difference between the first mean and the second mean to a sum of the first standard deviation and the second standard deviation.
[0094] In the specific implementation process, the signal-to-noise ratio parameters are: The signal-to-noise ratio (SNR) is one of the key parameters for evaluating signal quality. A high SNR indicates a relatively high signal strength, making it easier to detect and decode relative to noise. In eye diagram analyzers, SNR is often used to evaluate signal quality in eye diagrams.
[0095] In one embodiment, obtaining eye diagram parameters according to the data parameters of a single-column matrix and / or the eye diagram matrix includes:
[0096] According to the data parameters of the single-column matrix, the data mean of the target column in the target row of the eye diagram matrix is obtained;
[0097] A rise time parameter and a fall time parameter are obtained according to the data mean of the target column in the target row of the eye diagram matrix.
[0098] In the specific implementation process, calculate RF ypct10 =L0+(L1-L0)*0.1, RF ypct90 =L0+(L1-L0)*0.9; According to the definition of IEEE pulse measurement, the rise time is defined as the time from the pulse amplitude of a single edge to the pulse amplitude of 10% to 90%. The position of the pulse amplitude of 10% in the rising edge is recorded as RFypct10, and the position of 90% is recorded as RFypct90. Calculate the left edge Rise xl =X0-UI / 2, calculate the right boundary Rise xr =X0. Calculate the RF in the matrix EYE ypct10 Rise xl ~Rise xr The mean of the column data is recorded as RX pct10 , which is the data mean of the target column in the target row, where the RF ypct10 Behavioral Target Line, Rise x1 ~Rise xr The column is the target column. Calculate the RF in the matrix EYE ypct90 Risex1 ~Rise xr The mean of the data in the column is denoted as FX pct90 , where RF ypct90 Behavioral Target Line, Rise x1 ~Rise xr Column as the target column.
[0099] Calculate the left boundary Rise xl =X0, calculate the right boundary Rise xr =X0+UI / 2; calculate the RF in the matrix EYE ypct90 Rise xl ~Rise xr The mean of the column data is recorded as RX pct90 ; Calculate the RF in the matrix EYE ypct10 Rise x1 ~Rise xr The mean of the data in the column is denoted as FX pct10 The target row and target column are similar to those in the above embodiment.
[0100] Rise time parameter: RX pct90 -RX pct10 Rise time refers to the time interval required for a pulse signal to rise from a specified lower limit to a specified upper limit. A shorter rise time indicates that the signal has a faster response speed. In the eye diagram, the length of the rise time can reflect the steepness of the rising edge of the signal, thereby affecting the clarity and recognizability of the signal.
[0101] Fall time parameter: FX pct10 -FX pct90 Fall time refers to the time interval that a pulse signal takes to fall from a specified upper limit to a specified lower limit. Similar to rise time, a shorter fall time indicates that the signal has a faster response speed. In the eye diagram, the length of the fall time can reflect the steepness of the falling edge of the signal, which also affects the clarity and recognizability of the signal.
[0102] In this embodiment, waveform data of sufficient length is first collected for clock recovery and eye diagram drawing. Secondly, the drawn eye diagram and the information it contains are converted into a matrix, and then analyzed in matrix form, which reduces the pressure of data analysis and the consumption of computing time. Then, the symbol width and the number of symbols to be drawn obtained by recovering the clock signal are used to convert the eye diagram matrix into a single-column matrix. The transformation between matrices is simpler, and the amount of calculation is greatly reduced by matrix segmentation. It does not require a large amount of memory, and the effect of signal eye diagram parameter extraction is improved.
[0103] Reference Attachment Figure 3 -Attached Figure 5, compared with the prior art to illustrate the effect of this application:
[0104] By using a calibrated commercial oscilloscope to collect data for a sufficient period of time and then opening the eye diagram function to obtain relevant data, the generated eye diagram is analyzed using the method of this application to extract parameters, as shown in the attached figure. Figure 3 As shown, compared with the existing technology, the test results are compared in the following table:
[0105] Table 1 - Test results comparison table
[0106]
[0107]
[0108] It can be seen from the above table and the accompanying drawings that since the present application adopts the method of constructing an evaluation matrix, selecting the intersection point by the evaluation function can improve the accuracy in extreme cases. The existing technology does not use the evaluation function, as shown in the attached figure. Figure 4 As shown in the figure, the selection of the intersection point is wrong, resulting in incorrect eye width data.
[0109] The accuracy of the method of this application can also be verified by comparing with the existing technology. Figure 5 The following table compares the eye diagram parameters extracted using the method of the present application and the prior art:
[0110] Table 2 - Extraction results comparison table
[0111] type This application method Existing technology error 0 level -49.70mV -49.94mV 0.480576% 1 level 50.00mV 49.94mV 0.120144% Eye width 87.11mV 87.86mV 0.853631% high aspirations 87.69ps 87.12ps 0.654269% Signal-to-noise ratio 24.93 24.92 0.040128% Rise time 36.54ps 36.26ps 0.772200% Fall time 36.40ps 36.26ps 0.386100% Jitter 2.13ps 2.14ps 0.467289%
[0112] It can be seen from the extraction results that the eye diagram parameters calculated by the method of the present application are consistent with the eye diagram parameters calculated by the prior art, the relative error of the data is within 5%, and the extraction results are reliable.
[0113] Refer to the attached Figure 6 Based on the same inventive concept as in the aforementioned embodiment, the embodiment of the present application further provides a signal eye diagram parameter obtaining device, which is applied to a non-return-to-zero coded signal, comprising:
[0114] An acquisition module, the acquisition module is used to acquire waveform data of the original signal according to the signal rate and recover the clock signal from the waveform data;
[0115] The drawing module is used to segment the original signal and draw the eye diagram based on the clock signal;
[0116] A conversion module, the conversion module is used to convert the eye diagram into an eye diagram matrix, and convert the eye diagram matrix into a single column matrix according to the symbol width obtained by the recovered clock signal, the number of symbols to be drawn, and the eye diagram matrix;
[0117] An acquisition module is used to obtain eye diagram parameters based on data parameters of a single-column matrix and / or an eye diagram matrix; wherein the data parameters include a first mean and a first standard deviation of the first half of the data of the single-column matrix, and a second mean and a second standard deviation of the second half of the data of the single-column matrix.
[0118] Those skilled in the art should understand that the division of the various modules in the embodiment is merely a division of logical functions, and in actual application, they can be fully or partially integrated into one or more actual carriers, and these modules can all be implemented in the form of software called through the processing unit, or all be implemented in the form of hardware, or in the form of a combination of software and hardware. It should be noted that the modules in the signal eye diagram parameter acquisition device in this embodiment correspond one-to-one to the steps in the signal eye diagram parameter acquisition method in the aforementioned embodiment. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned signal eye diagram parameter acquisition method, and will not be repeated here.
[0119] Based on the same inventive concept as in the aforementioned embodiment, an embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, the signal eye diagram parameter obtaining method provided in the embodiment of the present application is implemented.
[0120] Based on the same inventive concept as in the above embodiment, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein:
[0121] Memory is used to store computer programs;
[0122] The processor is used to load and execute a computer program so that the electronic device executes the signal eye diagram parameter acquisition method provided in the embodiment of the present application.
[0123] In some embodiments, the computer-readable storage medium may be a memory device such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface mount memory, optical disk, or CD-ROM; or various devices including any one or any combination of the above memories. The computer may be various computing devices including smart terminals and servers.
[0124] In some embodiments, executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0125] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0126] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0127] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0128] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0129] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0130] In summary, the present application provides a method, device, medium and equipment for obtaining signal eye diagram parameters, which includes: collecting waveform data of the original signal according to the signal rate, and recovering the clock signal from the waveform data; based on the clock signal, dividing the original signal and drawing an eye diagram; converting the eye diagram into an eye diagram matrix, and converting the eye diagram matrix into a single-column matrix according to the symbol width obtained by recovering the clock signal, the number of symbols to be drawn and the eye diagram matrix; obtaining eye diagram parameters according to the data parameters of the single-column matrix and / or the eye diagram matrix; wherein the data parameters include the first mean and first standard deviation of the first half of the data of the single-column matrix, and the second mean and second standard deviation of the second half of the data of the single-column matrix. This application first collects waveform data of sufficient length for clock recovery and eye diagram drawing, and then converts the drawn eye diagram and the information it contains into a matrix, which is subsequently analyzed in matrix form, reducing the pressure of data analysis and the consumption of computing time. Then, the symbol width and the number of symbols to be drawn are obtained by recovering the clock signal, and the eye diagram matrix is converted into a single-column matrix. The transformation between matrices is simpler, and the amount of calculation is greatly reduced by matrix segmentation. It does not require a large amount of memory, and the effect of signal eye diagram parameter extraction is improved.
[0131] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A method for obtaining signal eye diagram parameters, characterized in that: Applied to non-return-to-zero coded signals, the following steps are included: Acquiring waveform data of an original signal according to a signal rate, and recovering a clock signal from the waveform data; Based on the clock signal, slicing the original signal and drawing an eye diagram; Converting the eye diagram into an eye diagram matrix, and converting the eye diagram matrix into a single-column matrix according to a symbol width obtained by recovering the clock signal, a number of symbols to be drawn, and the eye diagram matrix; converting the eye diagram into an eye diagram matrix, and converting the eye diagram matrix into a single-column matrix according to a symbol width obtained by recovering the clock signal, a number of symbols to be drawn, and the eye diagram matrix, includes: Converting the eye diagram into an eye diagram matrix; Calculating a first column boundary and a second column boundary according to a symbol width obtained by recovering the clock signal, the number of symbols to be drawn, and the eye diagram matrix; summing the data between the first column boundary and the second column boundary in each row of data of the eye diagram matrix, and placing the summed data into a new matrix to convert the eye diagram matrix into a single-column matrix; Eye diagram parameters are obtained according to the data parameters of the single-column matrix and / or the eye diagram matrix; wherein the data parameters include a first mean and a first standard deviation of the first half of the data of the single-column matrix, and a second mean and a second standard deviation of the second half of the data of the single-column matrix.
2. The method for obtaining signal eye diagram parameters according to claim 1, wherein: Obtaining eye diagram parameters according to the data parameters of the single-column matrix and / or the eye diagram matrix includes: constructing an evaluation matrix according to the eye diagram matrix; Obtaining a crossover point parameter based on an index of a minimum value in the evaluation matrix; An eye height parameter, an eye width parameter, a jitter parameter, and a cross ratio parameter are obtained according to the cross point parameter and the data parameter of the single column matrix.
3. The method for obtaining signal eye diagram parameters according to claim 2, wherein: The step of constructing an evaluation matrix according to the eye diagram matrix includes: Divide the eye diagram matrix into equal parts based on columns to obtain a first eye diagram sub-matrix and a second eye diagram sub-matrix; Splitting the first eye pattern sub-matrix and the second eye pattern sub-matrix along a column direction to obtain a first matrix and a second matrix respectively; Calculate the mean and standard deviation of the data in the first matrix and the second matrix respectively, and place the calculation results in the first matrix unit and the second matrix unit respectively; The first matrix unit and the second matrix unit are normalized respectively and then added to the standard matrix to obtain an evaluation matrix.
4. The method for obtaining signal eye diagram parameters according to claim 1, wherein: Obtaining eye diagram parameters according to the data parameters of the single-column matrix and / or the eye diagram matrix includes: Obtaining a level 1 parameter according to the first mean value; Obtaining a zero-level parameter according to the second mean; Obtaining an eye amplitude parameter according to a difference between the first mean and the second mean; An extinction ratio parameter is obtained according to a ratio of the first mean value to the second mean value.
5. The method for obtaining signal eye diagram parameters according to claim 1, wherein: Obtaining eye diagram parameters according to the data parameters of the single-column matrix and / or the eye diagram matrix includes: A signal-to-noise ratio parameter is obtained according to a ratio of a difference between the first mean and the second mean to a sum of the first standard deviation and the second standard deviation.
6. The method for obtaining signal eye diagram parameters according to claim 1, wherein: Obtaining eye diagram parameters according to the data parameters of the single-column matrix and / or the eye diagram matrix includes: Obtaining a data mean of a target column in a target row of the eye diagram matrix according to the data parameters of the single-column matrix; A rise time parameter and a fall time parameter are obtained according to the data mean of the target column in the target row of the eye diagram matrix.
7. A signal eye diagram parameter acquisition device, characterized in that: Applications to NRZ coded signals include: An acquisition module, the acquisition module being used to acquire waveform data of an original signal according to a signal rate and to recover a clock signal from the waveform data; A drawing module, configured to segment the original signal and draw an eye diagram based on the clock signal; A conversion module, the conversion module being configured to convert the eye diagram into an eye diagram matrix, and converting the eye diagram matrix into a single-column matrix based on the symbol width obtained by recovering the clock signal, the number of symbols to be drawn, and the eye diagram matrix; the converting the eye diagram into an eye diagram matrix, and converting the eye diagram matrix into a single-column matrix based on the symbol width obtained by recovering the clock signal, the number of symbols to be drawn, and the eye diagram matrix, comprising: Converting the eye diagram into an eye diagram matrix; Calculating a first column boundary and a second column boundary according to a symbol width obtained by recovering the clock signal, the number of symbols to be drawn, and the eye diagram matrix; summing the data between the first column boundary and the second column boundary in each row of data of the eye diagram matrix, and placing the summed data into a new matrix to convert the eye diagram matrix into a single-column matrix; An acquisition module is used to obtain eye diagram parameters based on the data parameters of the single-column matrix and / or the eye diagram matrix; wherein the data parameters include the first mean and the first standard deviation of the first half of the data of the single-column matrix, and the second mean and the second standard deviation of the second half of the data of the single-column matrix.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is loaded and executed by a processor, the signal eye diagram parameter obtaining method according to any one of claims 1 to 6 is implemented.
9. An electronic device, characterized in that: comprising a processor and a memory, wherein: The memory is used to store computer programs; The processor is configured to load and execute the computer program so as to enable the electronic device to execute the signal eye diagram parameter obtaining method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Eye diagram parameter extraction method based on K-Means clustering algorithm
CN106228171A