Eye pattern scanning method, device, equipment and storage medium
By dividing the random bit stream of the signal into a grid in a high-speed transmission system and calculating the bit error rate to generate an eye diagram outline, the problem of high cost of measuring eye diagrams in traditional oscilloscopes is solved, efficient signal quality monitoring is achieved, and the cost is reduced. Increased profits.
Patent Information
- Application Number
- CN202210987333.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-17
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-08-17
AI Technical Summary
In high-speed transmission systems, the cost of using traditional oscilloscopes to measure eye diagrams is high, resulting in high cost and low benefits in signal quality monitoring.
By receiving a random bit stream of signals, it is divided into multiple grids, the grid is scanned according to the scanning offset in the preset eye width and eye height direction, the bit error rate is calculated, and the bit error rate and label value are generated according to the bit error rate and label value The grid outline, which then draws the eye diagram of the signal, avoids the use of traditional oscilloscopes.
It reduces the cost of signal quality monitoring, improves benefits, and realizes efficient signal quality monitoring in high-speed transmission systems.
Smart Images

Figure CN115378845B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of programmable logic devices and relates to an eye diagram scanning method, device, equipment and storage medium. Background Art
[0002] The eye diagram is an intuitive signal quality monitoring method. It sends a random bit stream at the transmitter and observes it through an oscilloscope at the receiver. The receiver judges the performance of the signal transmission system based on the shape and opening amplitude of the eye diagram. With the development of high-speed digital systems, high-speed serial data is widely used, and FPGA (Field Programmable Gate Array) with embedded high-speed serial interface has also been widely used. The corresponding high-speed serial signal quality test is becoming more and more frequent and important. In high-speed transmission systems, the cost of using an oscilloscope to measure the eye diagram is very expensive. If the traditional oscilloscope is used to measure the eye diagram, the signal quality monitoring cost is high and the benefits are low. Summary of the invention
[0003] Based on this, the present invention provides an eye diagram scanning method, device, equipment and storage medium, which solves the problem of high cost and low benefit in observing eye diagrams in high-speed transmission systems using oscilloscopes in the prior art.
[0004] An eye diagram scanning method provided by an embodiment of the present invention includes:
[0005] Receive a random bit stream of a signal and divide the eye diagram formed by superimposing the signals into multiple grids;
[0006] Scan the grid according to the preset scanning offset in the eye width and eye height direction to obtain the bit error rate of the data in the grid;
[0007] The outline of the grid is generated according to the bit error rate of the data in the grid and the set annotation value, and the eye diagram of the signal is obtained from the outline of the grid.
[0008] Further, scanning the grid according to the preset scanning offset in the eye width and eye height direction to obtain the bit error rate of the data in the grid includes:
[0009] Determining the grid position points on the eye diagram that need to be scanned according to the preset eye width and eye height scanning offset;
[0010] Compare the determined grid position point data with the center data of the eye diagram, if the grid position point data is inconsistent with the center data of the eye diagram, it is error data;
[0011] Obtaining a bit error rate of the grid position point data according to the number of grid position point data and the number of bit error data;
[0012] After scanning all the position points in the grid, the bit error rate of the data in the grid is obtained.
[0013] Further, the generating the outline of the grid according to the bit error rate of the data in the grid and the set annotation value, and generating the eye diagram of the signal from the outline of the grid includes:
[0014] Compare the bit error rate of the point where the grid position point data is inconsistent with the eye diagram center data with a set marking value, and if the bit error rate is greater than the set marking value, mark the grid position point as a marking point;
[0015] Generating a contour in the grid according to the marking points in the grid, and then obtaining a contour of the signal corresponding to the set annotation value;
[0016] The set annotation value is adjusted to obtain the contours of the signal corresponding to different set annotation values, and different colors are filled between adjacent contours to obtain the eye diagram of the signal.
[0017] Furthermore, after obtaining the bit error rate of the data in the grid according to the number of data and the number of errors at the grid position, the method further comprises:
[0018] According to the preset scanning offset in the eye width and eye height direction, all grids in the eye diagram are traversed in sequence, and data and bit error data corresponding to the position points in the grid are stored in sequence according to the traversal order.
[0019] Furthermore, the receiving signal random bit stream, before dividing the eye diagram formed by signal superposition into a plurality of grids, further comprises:
[0020] An IP bit stream of an eye diagram is created and sent to a signal test piece.
[0021] Furthermore, the receiving signal random bit stream, before dividing the eye diagram formed by signal superposition into a plurality of grids, further comprises:
[0022] Setting a measurement range of the signal random bit stream;
[0023] The number of comparisons between the data of the grid position points and the center data of the eye diagram is set.
[0024] The embodiment of the present invention further provides an eye diagram scanning device, the device comprising:
[0025] A division module, used for receiving a signal random bit stream and dividing an eye diagram formed by superimposing the signals into a plurality of grids;
[0026] An acquisition module, used for scanning the grid according to a preset scanning offset in the eye width and eye height direction, to obtain a bit error rate of data in the grid;
[0027] The eye diagram generation module is used to generate the outline of the grid according to the bit error rate of the data in the grid and the set annotation value, and obtain the eye diagram of the signal from the outline of the grid.
[0028] An embodiment of the present invention further provides a terminal device, the terminal device comprising:
[0029] Memory: used to store computer programs;
[0030] Processor: used to execute the computer program to implement any of the above-mentioned eye diagram scanning methods.
[0031] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the eye diagram scanning method described in any one of the above items is implemented.
[0032] An eye diagram scanning method provided by an embodiment of the present invention divides an eye diagram formed by superimposing signals into multiple grids by receiving a random bit stream of a signal; scans the grids according to a preset scanning offset in the direction of eye width and eye height to obtain the bit error rate of the data in the grids; generates the outline of the grid according to the bit error rate of the data in the grid and a set annotation value, and obtains the eye diagram of the signal from the outline of the grid. This avoids the use of a traditional oscilloscope to measure the eye diagram in a high-speed transmission system, reduces the cost of signal quality monitoring, and increases the benefits. The present invention also provides an eye diagram scanning device, equipment, and storage medium, which can also achieve the above-mentioned effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A schematic diagram of a flow chart of an eye diagram scanning method provided by an embodiment of the present invention;
[0035] Figure 2 for Figure 1 Schematic diagram of the process of step S2;
[0036] Figure 3 for Figure 1 Schematic diagram of the process of step S3;
[0037] Figure 4 A schematic flow chart of another eye diagram scanning method provided by an embodiment of the present invention;
[0038] Figure 5 A schematic block diagram of an eye pattern scanning device provided by an embodiment of the present invention;
[0039] Figure 6 for Figure 5 Obtain a block diagram of the module;
[0040] Figure 7 for Figure 5 The block diagram of the eye diagram generation module is shown in FIG.
[0041] Figure 8 A schematic block diagram of another eye pattern scanning device provided by an embodiment of the present invention;
[0042] Fig. 9 A schematic diagram of the structure of a terminal device disclosed in an embodiment of the present invention;
[0043] Fig.10 The present invention is a schematic diagram of a computer storage medium disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0045] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. 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. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0047] In the following description, use of suffixes such as “module,” “part,” or “unit” used to refer to elements is merely for facilitating description of the present application, and has no specific meaning by itself.
[0048] like Figure 1 FIG. 1 is a flow chart of an eye diagram scanning method provided by an embodiment of the present invention, wherein the method comprises:
[0049] Step S10: receiving a signal random bit stream, and dividing an eye diagram formed by superimposing the signals into a plurality of grids.
[0050] As an intuitive means of signal quality monitoring, the eye diagram can be accurately measured and displayed to help judge the performance of the signal transmission system. Specifically, after receiving the signal random bit stream, the eye diagram formed by signal superposition is divided into multiple grids, such as a grid with a resolution of N*M.
[0051] Step S20: Scan the grid according to the preset scanning offset in the eye width and eye height directions to obtain the bit error rate of the data in the grid.
[0052] In some embodiments, Figure 2 As shown, step S2 includes:
[0053] Step S201: determining the grid position points to be scanned on the eye diagram according to the preset eye width and the scanning offset in the eye height direction;
[0054] Step S202: Compare the determined grid position point data with the center data of the eye diagram. If the grid position point data is inconsistent with the center data of the eye diagram, it is error data.
[0055] Step S203: obtaining the bit error rate of the grid position point data according to the number of grid position point data and the number of bit error data;
[0056] Step S204: After scanning all the position points in the grid, the bit error rate of the data in the grid is obtained.
[0057] Specifically, on the two-dimensional graph where the eye diagram is located, the scanning starting point is first determined, and starting from the scanning starting point, the grid position point on the eye diagram that needs to be scanned is determined according to the preset scanning offset in the eye width and eye height direction at each scan, and then the data of the grid position point is compared with the center data of the eye diagram. If they are inconsistent, the data is error data, and the error rate of the grid position point data is obtained according to the grid position point data and the error data. The scanning offset in the preset eye width and eye height direction can be set according to user needs.
[0058] Preferably, if Figure 2 As shown, the step S20 further includes:
[0059] Step S205: traverse all grids in the eye diagram in sequence according to the preset eye width and eye height scanning offset, and store data and bit error data corresponding to the position points in the grid in sequence according to the traversal order.
[0060] Specifically, all grids in the eye diagram can be traversed in sequence according to the preset scanning offset in the eye width and eye height directions to obtain data and bit error data at different positions in all grids, and the data and bit error data corresponding to the position points in the grids can be stored in sequence according to the traversal order to speed up the scanning process.
[0061] Step S30: generating an outline of the grid according to the bit error rate of the data in the grid and a set annotation value, and obtaining an eye diagram of the signal from the outline of the grid.
[0062] In some embodiments, as shown in 3, the step S3 includes:
[0063] Step S301: comparing the bit error rate of the point where the grid position point data is inconsistent with the eye diagram center data with a set marking value, and if the bit error rate is greater than the set marking value, marking the grid position point as a marking point;
[0064] Step S302: generating a contour in the grid according to the marking points in the grid, and then obtaining a contour of the signal corresponding to the set annotation value;
[0065] Step S303: adjusting the set annotation value to obtain the contours of the signal corresponding to different set annotation values, and filling different colors between adjacent contours to obtain the eye diagram of the signal.
[0066] Specifically, the grid is traversed according to the scanning offset in the preset eye width and eye height directions to obtain the bit error rate of the grid position point data, and then the bit error rate of the grid position point data is compared with the set marking value. If the bit error rate is greater than the set marking value, the grid position point is recorded as a marking point; all position points in the grid are traversed to obtain all marking points in the grid, the contour in the grid is generated according to all marking points in the grid, and then the contour lines in all grids are spliced to obtain the contour of the signal corresponding to the set marking value; then the set marking value is adjusted, and steps S301 and S302 are repeated to obtain the contour of the signal corresponding to different set marking values, and different colors are filled between adjacent contours to obtain the eye diagram of the signal.
[0067] Preferably, the above step S30 can be implemented by a square grid method.
[0068] It should be understood that the size of the serial numbers of the steps in all the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0069] An eye diagram scanning method provided by an embodiment of the present invention divides an eye diagram formed by signal superposition into multiple grids by receiving a signal random bit stream; scans the grids according to a preset scanning offset in the eye width and eye height direction to obtain the bit error rate of the data in the grids; generates the outline of the grid according to the bit error rate of the data in the grid and a set annotation value, and obtains the eye diagram of the signal from the outline of the grid. In a high-speed transmission system, the eye diagram is measured by avoiding the use of a traditional oscilloscope, reducing the signal quality monitoring cost and increasing the benefits.
[0070] In some embodiments, Figure 4 As shown, before step S10, it also includes:
[0071] Step S01: Create an IP bit stream of the eye diagram, and send the IP bit stream of the eye diagram to a signal test piece.
[0072] Specifically, sending the IP bit stream that creates the eye diagram to the signal test piece creates a channel for obtaining the signal random bit stream.
[0073] In some embodiments, Figure 4 As shown, before step 1, the step also includes:
[0074] Step S02: setting the measurement range of the signal random bit stream; setting the number of comparisons between the data of the grid position points and the center data of the eye diagram.
[0075] like Figure 5FIG. 5 is a block diagram of an eye diagram scanning device 500 provided in an embodiment of the present invention. The device 500 includes:
[0076] A division module 501 is used to receive a signal random bit stream and divide an eye diagram formed by superimposing the signals into a plurality of grids;
[0077] An acquisition module 502 is used to scan the grid according to a preset scanning offset in the eye width and eye height direction to obtain a bit error rate of data in the grid;
[0078] The eye diagram generation module 503 is used to generate the outline of the grid according to the bit error rate of the data in the grid and the set annotation value, and obtain the eye diagram of the signal from the outline of the grid.
[0079] In some embodiments, Figure 6 As shown, the acquisition module 502 includes:
[0080] The grid position determination module 5021 is used to determine the grid position points that need to be scanned on the eye diagram according to the preset scanning offset in the eye width and eye height directions;
[0081] The error code acquisition module 5022 is used to compare the determined grid position point data with the center data of the eye diagram. If the grid position point data is inconsistent with the center data of the eye diagram, it is error code data;
[0082] The grid location point bit error rate acquisition module 5023 is used to obtain the bit error rate of the grid location point data according to the number of grid location point data and the number of bit error data.
[0083] The grid bit error rate acquisition module 5024 is used to scan all the position points in the grid and obtain the bit error rate of the data in the grid.
[0084] In some embodiments, Figure 7 As shown, the eye diagram generation module 503 includes:
[0085] The marking point acquisition module 5031 is used to compare the bit error rate of the point where the grid position point data is inconsistent with the eye diagram center data with a set marking value, and if the bit error rate is greater than the set marking value, the grid position point is recorded as a marking point;
[0086] A grid contour generating module 5032, configured to generate a contour in the grid according to the marking points in the grid, and thereby obtain a contour of the signal corresponding to the set marking value;
[0087] The eye diagram drawing module 5033 is used to adjust the set annotation value, obtain the outline of the signal corresponding to different set annotation values, fill different colors between adjacent outlines, and obtain the eye diagram of the signal.
[0088] In some embodiments, Figure 6 As shown, the acquisition module 502 also includes:
[0089] The storage module 5025 is used to traverse all the grids in the eye diagram in sequence according to the preset scanning offset in the eye width and eye height direction, and store the data and error data corresponding to the position points in the grid in sequence according to the traversal order.
[0090] In some embodiments, Figure 8 As shown, the device 500 also includes:
[0091] The eye diagram IP bit stream creation module 504 is used to create an IP bit stream of the eye diagram, and send the IP bit stream of the eye diagram to the signal test piece.
[0092] In some embodiments, Figure 8 As shown, the device 500 also includes:
[0093] The setting module 505 is used to set the measurement range of the signal random bit stream; and to set the number of comparisons between the data of the grid position points and the center data of the eye diagram.
[0094] like Fig. 9 FIG. 1 is a schematic diagram of the structure of a terminal device disclosed in an embodiment of the present invention. The computer device may include:
[0095] A memory 901 storing executable program codes;
[0096] A processor 902 connected to the memory 901;
[0097] The processor 902 calls the executable program code stored in the memory 901 to execute the steps in the eye pattern scanning method of the present invention.
[0098] See also Fig.10 The embodiment of the present invention discloses a computer storage medium 1001, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the eye pattern scanning method of the present invention.
[0099] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0100] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0101] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. An eye diagram scanning method, characterized in that: The method comprises: Receive a random bit stream of a signal and divide the eye diagram formed by superimposing the signals into multiple grids; Scan the grid according to the preset scanning offset in the eye width and eye height direction to obtain the bit error rate of the data in the grid; Generating the outline of the grid according to the bit error rate of the data in the grid and the set annotation value, and obtaining the eye diagram of the signal from the outline of the grid; The step of scanning the grid according to the preset scanning offset in the eye width and eye height direction to obtain the bit error rate of the data in the grid includes: Determining the grid position points on the eye diagram that need to be scanned according to the preset eye width and eye height scanning offset; Compare the determined grid position point data with the center data of the eye diagram, if the grid position point data is inconsistent with the center data of the eye diagram, it is error data; Obtaining a bit error rate of the grid position point data according to the number of grid position point data and the number of bit error data; After scanning all the position points in the grid, the bit error rate of the data in the grid is obtained; The step of generating the outline of the grid according to the bit error rate of the data in the grid and the set annotation value, and generating the eye diagram of the signal from the outline of the grid comprises: Compare the bit error rate of the point where the grid position point data is inconsistent with the eye diagram center data with a set marking value, and if the bit error rate is greater than the set marking value, mark the grid position point as a marking point; Generating a contour in the grid according to the marking points in the grid, and then obtaining a contour of the signal corresponding to the set annotation value; The set annotation value is adjusted to obtain the contours of the signal corresponding to different set annotation values, and different colors are filled between adjacent contours to obtain the eye diagram of the signal.
2. An eye pattern scanning method according to claim 1, characterized in that: After obtaining the bit error rate of the data in the grid according to the number of data and the number of errors at the grid position, the method further comprises: According to the preset scanning offset in the eye width and eye height direction, all grids in the eye diagram are traversed in sequence, and data and bit error data corresponding to the position points in the grid are stored in sequence according to the traversal order.
3. An eye pattern scanning method according to claim 1, characterized in that: Before the step of receiving a random bit stream of a signal and dividing an eye diagram formed by superimposing the signals into a plurality of grids, the step further includes: An IP bit stream of an eye diagram is created and sent to a signal test piece.
4. The eye pattern scanning method according to claim 1, characterized in that: Before the step of receiving a random bit stream of a signal and dividing an eye diagram formed by superimposing the signals into a plurality of grids, the step further includes: Setting a measurement range of the signal random bit stream; The number of comparisons between the data of the grid position points and the center data of the eye diagram is set.
5. An eye pattern scanning device, characterized in that: The device comprises: A division module, used for receiving a signal random bit stream and dividing an eye diagram formed by superimposing the signals into a plurality of grids; An acquisition module, used for scanning the grid according to a preset scanning offset in the eye width and eye height direction, to obtain a bit error rate of the data in the grid; An eye diagram generating module, used for generating the outline of the grid according to the bit error rate of the data in the grid and the set annotation value, and obtaining the eye diagram of the signal from the outline of the grid; The step of scanning the grid according to the preset scanning offset in the eye width and eye height direction to obtain the bit error rate of the data in the grid includes: Determining the grid position points on the eye diagram that need to be scanned according to the preset eye width and eye height scanning offset; Compare the determined grid position point data with the center data of the eye diagram, if the grid position point data is inconsistent with the center data of the eye diagram, it is error data; Obtaining a bit error rate of the grid position point data according to the number of grid position point data and the number of bit error data; After scanning all the position points in the grid, the bit error rate of the data in the grid is obtained; The step of generating the outline of the grid according to the bit error rate of the data in the grid and the set annotation value, and generating the eye diagram of the signal from the outline of the grid comprises: Compare the bit error rate of the point where the grid position point data is inconsistent with the eye diagram center data with a set marking value, and if the bit error rate is greater than the set marking value, mark the grid position point as a marking point; Generating a contour in the grid according to the marking points in the grid, and then obtaining a contour of the signal corresponding to the set annotation value; The set annotation value is adjusted to obtain the contours of the signal corresponding to different set annotation values, and different colors are filled between adjacent contours to obtain the eye diagram of the signal.
6. A terminal device, comprising: Memory: used to store computer programs; Processor: used for executing the computer program to implement the eye diagram scanning method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the eye diagram scanning method according to any one of claims 1 to 4 is implemented.
