Method, device, computer equipment and storage medium for automatically measuring PCIE eye diagram
By implementing the method of automatically measuring the PCIE eye diagram in the SSD firmware, it solves the problem that the existing technology cannot quickly and accurately measure the consistency and quality of a large number of platform signals, and provides a fast and accurate eye diagram analysis tool to satisfy the needs of production lines and customers. End-to-end testing requirements.
Patent Information
- Application Number
- CN202111161069.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Existing laboratory test methods cannot effectively measure PCIE signal consistency and signal quality on a large number of platforms, especially in production line or client environments, and cannot meet the demand for fast and accurate eye diagram data acquisition.
The method of automatically measuring the PCIE eye diagram in the SSD firmware includes obtaining the read command issued by the host, parsing the command parameters, starting the eye diagram test circuit, obtaining the eye diagram data, and calculating based on the number of sampling points and the number of error bits. Eye height and eye width data are returned to the host. This method adjusts the voltage offset and phase offset based on the PCIE channel number, and outputs the sampling points and the number of error bits under the corresponding parameters.
It provides a convenient and fast eye diagram analysis tool, which can better meet the needs in production line testing and client failure analysis, and achieves fast and accurate measurement of PCIE signal consistency and quality.
Smart Images

Figure CN113868064B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of measuring PCIE eye diagrams, and in particular to a method, device, computer equipment and storage medium for automatically measuring PCIE eye diagrams. Background Art
[0002] Solid-state drives based on the PCIE interface have been widely used in various consumer-grade PCs and enterprise-level servers. Currently, PCIE4.0 has begun to be fully popularized, and its interface transmission rate has reached 16GT / s. With the increase in data transmission rate, challenges are faced in terms of PCIE signal consistency and signal quality.
[0003] Among them, in existing laboratories, high-sampling oscilloscopes and adapter fixtures can be used to complete PCIE signal sampling and generate corresponding eye diagrams through eye diagram tools. The laboratory's test equipment can accurately obtain eye diagram data under a fixed platform, but due to resource limitations, this method cannot perform relevant signal measurements on a large number of platforms, especially in production lines with a large number of failure sites or signal consistency tests on the client; therefore, it cannot meet the needs. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and provide a method, device, computer equipment and storage medium for automatically measuring a PCIE eye diagram.
[0005] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0006] The method for automatically measuring a PCIE eye diagram comprises the following steps:
[0007] Get the read command sent by the host;
[0008] Parse the read command and get the command parameters;
[0009] Start the eye diagram test circuit according to the command parameters, and then obtain the eye diagram data;
[0010] The eye height and eye width data are calculated according to the eye diagram data, and the eye height and eye width data are returned to the host.
[0011] Its further technical solution is: the command parameter is the PCIE channel number.
[0012] Its further technical solution is: the eye diagram test circuit is started according to the command parameters, and then in the step of obtaining the eye diagram data, the eye diagram test circuit corresponding to the PCIE channel number is started according to the command parameters, and the voltage offset and phase offset of the eye diagram test circuit are adjusted, and then the eye diagram test circuit outputs the number of sampling points and the number of error bits under the corresponding parameters.
[0013] A further technical solution is: the eye height and eye width data are calculated according to the eye diagram data, and the eye height and eye width data are returned to the host step, and the eye height and eye width data are calculated according to the number of sampling points and the number of error bits.
[0014] A device for automatically measuring a PCIE eye diagram, comprising: an acquisition unit, a parsing unit, a start acquisition unit and a calculation return unit;
[0015] The acquisition unit is used to acquire a read command sent by the host;
[0016] The parsing unit is used to parse the read command to obtain command parameters;
[0017] The start acquisition unit is used to start the eye diagram test circuit according to the command parameters and then acquire the eye diagram data;
[0018] The calculation and return unit is used to calculate the eye height and eye width data according to the eye diagram data, and return the eye height and eye width data to the host.
[0019] Its further technical solution is: the command parameter is the PCIE channel number.
[0020] Its further technical solution is: in the startup acquisition unit, the eye diagram test circuit corresponding to the PCIE channel number is started according to the command parameters, and the voltage offset and phase offset of the eye diagram test circuit are adjusted, and then the eye diagram test circuit outputs the number of sampling points and the number of error bits under the corresponding parameters.
[0021] A further technical solution is: in the calculation return unit, the eye height and eye width data are calculated according to the number of sampling points and the number of error bits.
[0022] A computer device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method for automatically measuring a PCIE eye diagram as described above is implemented.
[0023] A storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method for automatically measuring a PCIE eye diagram as described above can be implemented.
[0024] Compared with the prior art, the present invention has the following beneficial effects: by implementing eye diagram measurement and analysis in SSD firmware, a convenient and fast eye diagram analysis tool is provided for production line testing and client failure analysis, which can better meet the needs.
[0025] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art 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 labor.
[0027] Figure 1 A schematic diagram of a process for automatically measuring a PCIE eye diagram provided by an embodiment of the present invention;
[0028] Figure 2 A schematic diagram of the application principle framework of the method for automatically measuring a PCIE eye diagram provided by an embodiment of the present invention;
[0029] Figure 3 A schematic diagram of the application circuit principle of the method for automatically measuring the PCIE eye diagram provided by an embodiment of the present invention;
[0030] Figure 4 A schematic diagram of a digital eye diagram of an error bit rate of a method for automatically measuring a PCIE eye diagram provided by an embodiment of the present invention;
[0031] Figure 5 A schematic block diagram of a device for automatically measuring a PCIE eye diagram provided by an embodiment of the present invention;
[0032] Figure 6 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0034] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0035] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0036] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0037] See also Figures 1 to 6 The specific embodiment shown, wherein please refer to Figures 1 to 4 As shown, the present invention discloses a method for automatically measuring a PCIE eye diagram, comprising the following steps:
[0038] S1, obtain the read command sent by the host;
[0039] Among them, Figure 2 As shown, the read command sent by the host is obtained through the front-end module of the SSD.
[0040] S2, parse the read command and get the command parameters;
[0041] The read command is parsed by the front-end module of the SSD, and the command parameter is the PCIE channel number.
[0042] S3, starting the eye diagram test circuit according to the command parameters, and then obtaining the eye diagram data;
[0043] Among them, in step S3, the eye diagram test circuit corresponding to the PCIE channel number is started according to the command parameters, and the voltage offset and phase offset of the eye diagram test circuit are adjusted, and then the eye diagram test circuit outputs the number of sampling points and the number of error bits under the corresponding parameters.
[0044] Among them, Figure 3 As shown, the firmware obtains the bit error rate (BER) at the corresponding position by adjusting the voltage offset and phase offset in the eye diagram test circuit. The adjustment range of the voltage offset is 0-800mv, with a step length of 1mv; the adjustment range of the phase offset is 0-512UI, with a step length of 8UI. The bit error rate (BER) = number of error bits * 10000 / number of sampling points.
[0045] S4, calculating the eye height and eye width data according to the eye diagram data, and returning the eye height and eye width data to the host.
[0046] Among them, Figure 4 As shown in FIG. 1 , after obtaining and collecting the error bit rate data (i.e., eye diagram data) of all sampling points, a two-dimensional array with the dimensions of voltage and phase is obtained. Then, the error bit rate data is classified, and the symbol '#' is used to represent the point where the error bit rate is greater than 0, and the symbol '.' represents the point where the error bit rate is equal to 0. The data is flattened to a two-dimensional interval with voltage and phase as coordinates, and the following can be obtained: Figure 4The digital eye diagram based on the error bit rate is shown, and then the firmware uses a two-dimensional array table lookup program to obtain the upper, lower, left, and right boundaries of the array with error bit rate = 0, that is, to calculate the eye width and eye height data.
[0047] The present invention has an embedded eye diagram test circuit at the back end of the DFE circuit inside the PCIE PHY. The SSD firmware adjusts the amplitude of the vertically shifted signal of the eye diagram test circuit and the horizontally shifted sampling position, and calculates the bit error rate and error bit rate at each shifted position as the original data for eye diagram generation; then the firmware implements the eye diagram center search and eye width and height data calculation based on the error bit rate.
[0048] The present invention implements eye diagram measurement and analysis in SSD firmware, provides a convenient and fast eye diagram analysis tool for production line testing and client failure analysis, and can better meet the needs.
[0049] See also Figure 5 As shown, the present invention also discloses a device for automatically measuring a PCIE eye diagram, comprising: an acquisition unit 10, a parsing unit 20, a start acquisition unit 30 and a calculation return unit 40;
[0050] The acquisition unit 10 is used to acquire a read command sent by the host;
[0051] The parsing unit 20 is used to parse the read command to obtain command parameters;
[0052] The start acquisition unit 30 is used to start the eye diagram test circuit according to the command parameters and then acquire the eye diagram data;
[0053] The calculation and return unit 40 is used to calculate the eye height and eye width data according to the eye diagram data, and return the eye height and eye width data to the host.
[0054] Wherein, the command parameter is the PCIE channel number.
[0055] Among them, in the startup acquisition unit 30, the eye diagram test circuit corresponding to the PCIE channel number is started according to the command parameters, and the voltage offset and phase offset of the eye diagram test circuit are adjusted, and then the eye diagram test circuit outputs the number of sampling points and the number of error bits under the corresponding parameters.
[0056] Wherein, in the calculation and return unit 40, the eye height and eye width data are calculated according to the number of sampling points and the number of error bits.
[0057] It should be noted that technicians in the relevant field can clearly understand that the specific implementation process of the above-mentioned device for automatically measuring the PCIE eye diagram and each unit can refer to the corresponding description in the aforementioned method embodiment. For the convenience and conciseness of the description, it will not be repeated here.
[0058] The above-mentioned device for automatically measuring the PCIE eye diagram can be implemented in the form of a computer program, and the computer program can be used in Figure 6 Runs on the computer device shown.
[0059] See also Figure 6 , Figure 6 is a schematic block diagram of a computer device provided in an embodiment of the present application; the computer device 500 may be a terminal or a server, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of multiple servers.
[0060] See also Figure 6 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .
[0061] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a method for automatically measuring a PCIE eye diagram.
[0062] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0063] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for automatically measuring a PCIE eye diagram.
[0064] The network interface 505 is used to communicate with other devices over the network. Figure 6 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0065] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0066] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0067] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the above-mentioned method for automatically measuring a PCIE eye diagram can be implemented.
[0068] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0069] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0070] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0071] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0072] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.
[0073] The above embodiments are preferred implementation schemes of the present invention. In addition, the present invention may also be implemented in other ways. Any obvious replacement without departing from the concept of the present technical solution is within the protection scope of the present invention.
Claims
1. A method for automatically measuring a PCIE eye diagram, characterized in that: The following steps are involved: Get the read command sent by the host; Parse the read command and get the command parameters; Start the eye diagram test circuit according to the command parameters, and then obtain the eye diagram data; Calculate the eye height and eye width data according to the eye diagram data, and return the eye height and eye width data to the host; The command parameter is the PCIE channel number; In the step of starting the eye diagram test circuit according to the command parameters and then obtaining the eye diagram data, the eye diagram test circuit corresponding to the PCIE channel number is started according to the command parameters, and the voltage offset and phase offset of the eye diagram test circuit are adjusted, and then the eye diagram test circuit outputs the number of sampling points and the number of error bits under the corresponding parameters; After obtaining and collecting the error bit rate data of all sampling points, a two-dimensional array with dimensions of voltage and phase is obtained, and then the error bit rate data is classified, with the symbol '#' representing the point with error bit rate>0 and the symbol '.' representing the point with error bit rate=0, and flattened to a two-dimensional interval with voltage and phase as coordinates to obtain a digital eye diagram based on the error bit rate. Then, the firmware can query through the two-dimensional array table lookup program to obtain the upper, lower, left and right boundaries of the array with error bit rate=0, that is, calculate the eye width and eye height data.
2. A device for automatically measuring a PCIE eye diagram, characterized in that: include: Acquisition unit, parsing unit, start acquisition unit and calculation return unit; The acquisition unit is used to acquire a read command sent by the host; The parsing unit is used to parse the read command to obtain command parameters; The start acquisition unit is used to start the eye diagram test circuit according to the command parameters and then acquire the eye diagram data; The calculation and return unit is used to calculate the eye height and eye width data according to the eye diagram data, and return the eye height and eye width data to the host; The command parameter is the PCIE channel number; In the startup acquisition unit, an eye diagram test circuit corresponding to the PCIE channel number is started according to the command parameters, and the voltage offset and phase offset of the eye diagram test circuit are adjusted, and then the eye diagram test circuit outputs the number of sampling points and the number of error bits under the corresponding parameters; After obtaining and collecting the error bit rate data of all sampling points, a two-dimensional array with dimensions of voltage and phase is obtained, and then the error bit rate data is classified, with the symbol '#' representing the point with error bit rate>0 and the symbol '.' representing the point with error bit rate=0, and flattened to a two-dimensional interval with voltage and phase as coordinates to obtain a digital eye diagram based on the error bit rate. Then, the firmware can query through the two-dimensional array table lookup program to obtain the upper, lower, left and right boundaries of the array with error bit rate=0, that is, calculate the eye width and eye height data.
3. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method for automatically measuring a PCIE eye diagram as claimed in claim 1 when executing the computer program.
4. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a processor, the method for automatically measuring a PCIE eye diagram as claimed in claim 1 can be implemented.
