Design method for automatically testing RGMII eye diagram based on LabVIEW programming
Patent Information
- Application Number
- CN202210141961.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-16
- Publication Date
- 2025-07-25
- Estimated Expiration
- 2042-02-16
AI Technical Summary
[0002]RGMII眼图测试用于验证RGMII总线信号是否满足要求,且功能是否正常工作的情况,通常情况下都需要人为来进行示波器的设置,手动操作费时费力,效率低下,进而发明一种基于labview编程实现自动化测试RGMII眼图的设计方法
[0016] Compared with the prior art, the beneficial effect of the present invention lies in realizing a design method for automatically testing the RGMII eye diagram based on LabVIEW programming, which can automatically control the oscilloscope for parameter setting to achieve automatic testing, and the present invention can greatly improve the testing efficiency.
Smart Images

Figure CN114509588B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of automated testing, and in particular, relates to a design method for automatically testing the RGMII eye diagram based on LabVIEW programming. Background Art
[0002] The RGMII eye diagram test is used to verify whether the RGMII bus signal meets the requirements and whether the function works properly. Usually, the settings of the oscilloscope need to be done manually by humans, which is time-consuming, laborious, and inefficient. Therefore, a design method for automatically testing the RGMII eye diagram based on LabVIEW programming is invented. Summary of the Invention
[0003] In view of this, the present invention aims to propose a design method for automatically testing the RGMII eye diagram based on LabVIEW programming, which can be applied to the verification of a variety of different devices to be tested with RGMII buses. To achieve the above object, the technical solution of the present invention is realized as follows:
[0004] A design method for automatically testing the RGMII eye diagram based on LabVIEW programming includes the following steps:
[0005] S1. Power on the prototype to be tested with an RGMII bus, and use high-speed single-ended probes to weld on the CLK and TX signal lines of the RGMII bus respectively;
[0006] S2. Connect the high-speed single-ended probes to the oscilloscope end, set channel 1 of the oscilloscope to the CLK of the RGMII bus, and set channel 2 of the oscilloscope to the TX of the RGMII bus;
[0007] S3. Connect the computer installed with the test program to the oscilloscope through the network port to complete the physical connection of the test scheme;
[0008] S4. Run the written test program to let the test program automatically complete the oscilloscope test of the RGMII eye diagram, complete the determination of the results, and save the data.
[0009] Further, it also includes an oscilloscope parameter setting method: First, set Channel 1 and Channel 2 of the oscilloscope. Among them, Channel 1 is the CLK signal of the RGMII bus, and Channel 2 is the TX signal of the RGMII bus. Automatically set the voltage scale of Channel 1 of the oscilloscope to 150 mV per grid, automatically set the voltage scale of Channel 2 of the oscilloscope to 150 mV per grid, and automatically set the time scale of the oscilloscope to 1 ns per grid. After the setting is completed, automatically perform the GATING function setting for Channels 1 and 2 of the oscilloscope. The GATING function is a region selection function, that is, only the selected region will perform waveform acquisition and analysis. Currently, use the GATING function to select the TX signal of the RGMII waveform in two clock cycles. The automation program reads the GATING function parameters and determines whether the parameters are correct. If correct, proceed; if incorrect, prompt to manually set the GATING function parameters.
[0010] Further, automatically complete the clock recovery parameter setting for Channels 1 and 2 of the oscilloscope. After completing the automatic setting of the GATING function, the program then performs the clock recovery parameter setting. Automatically set Channel 1 as the clock source and Channel 2 as the data source, and the mode is a clock separation structure, so as to automatically generate an eye diagram. The automation program reads the clock recovery parameter settings and determines whether the parameters are correct. If correct, proceed; if incorrect, prompt to manually set the clock recovery parameters.
[0011] Further, automatically complete the placement of the oscilloscope eye diagram template. After completing the setting of the GATING function and the clock recovery parameter setting, the RGMII eye diagram has been formed. At this time, the automation program will load the set RGMII eye diagram template and place it on the oscilloscope display screen. The automation program determines whether the RGMII eye diagram will touch the RGMII eye diagram template. If it does not touch the RGMII eye diagram template, the program prompts that the test result is PASS; if it touches the RGMII eye diagram template, the program prompts that the test result is FAIL.
[0012] In a second aspect, this solution discloses an electronic device, including a processor and a memory communicatively connected to the processor and used to store instructions executable by the processor. The processor is used to execute the design method for automatically testing the RGMII eye diagram based on LabVIEW programming described in the first aspect.
[0013] In a third aspect, this solution discloses a server, including at least one processor and a memory communicatively connected to the processor. The memory stores instructions executable by the at least one processor. The instructions are executed by the processor so that the at least one processor executes the design method for automatically testing the RGMII eye diagram based on LabVIEW programming described in the first aspect.
[0014] In a fourth aspect, the present solution discloses a computer-readable storage medium storing a computer program which, when executed by a processor, implements the design method for automatically testing the RGMII eye diagram based on LabVIEW programming described in the first aspect.
[0015] Compared with the prior art, the design method for automatically testing the RGMII eye diagram based on LabVIEW programming according to the present invention has the following advantages:
[0016] Compared with the prior art, the beneficial effect of the present invention lies in realizing a design method for automatically testing the RGMII eye diagram based on LabVIEW programming, which can automatically control the oscilloscope for parameter setting to achieve automatic testing, and the present invention can greatly improve the testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The schematic embodiments and descriptions thereof of the present invention are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:
[0018] Figure 1 It is a flowchart of the execution of the automation program of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0019] It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other.
[0020] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by the terms "center", "longitudinal", "transverse", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus cannot be understood as a limitation to the present invention. In addition, the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first", "second", etc. may explicitly or implicitly include one or more of such features. In the description of the present invention, unless otherwise specified, the meaning of "a plurality" is two or more.
[0021] In the description of the present invention, it should be noted that, unless otherwise clearly specified and defined, the terms "installation", "connection", and "linkage" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the communication inside two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood through specific situations.
[0022] The present invention will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0023] The present invention will be further described in detail below with reference to the accompanying drawings.
[0024] Step 1: Power on the prototype to be tested with an RGMII bus, and use high-speed single-ended probes to weld them on the CLK and TX signal lines of the RGMII bus respectively;
[0025] Step 2: Connect the high-speed single-ended probes to the oscilloscope end. Set channel 1 of the oscilloscope to the CLK of the RGMII bus, and set channel 2 of the oscilloscope to the TX of the RGMII bus;
[0026] Step 3: Connect the computer installed with the LabVIEW program to the oscilloscope through the network port to complete the physical connection of the test solution;
[0027] Step 4: Run the written LabVIEW program to automatically complete the oscilloscope's test of the RGMII eye diagram, complete the determination of the results, and save the data;
[0028] Automatically complete the oscilloscope parameter settings. After the program starts running, first set channel 1 and channel 2 of the oscilloscope. Among them, channel 1 is the CLK signal of the RGMII bus, and channel 2 is the TX signal of the RGMII bus. Automatically set the voltage scale of channel 1 of the oscilloscope to 150 mV per grid, automatically set the voltage scale of channel 2 of the oscilloscope to 150 mV per grid, and automatically set the time scale of the oscilloscope to 1 ns per grid. After the settings are completed, automatically perform the GATING function settings for channels 1 and 2 of the oscilloscope. The GATING function is an area selection function, that is, only the selected area will perform waveform acquisition and analysis. Currently, the TX signal of the waveforms of two clock cycles of the RGMII is selected using the GATING function. The automation program reads the GATING function parameter settings and judges whether the parameters are correct. If correct, it will execute the following steps; if incorrect, it will prompt to manually set the GATING function parameters.
[0029] Automatically complete the Clock Recovery parameter settings for oscilloscope channels 1 and 2. After completing the automated setting of the GATING function, the program then performs the Clock Recovery parameter settings, automatically setting channel one as the clock source, channel two as the data source, and the mode as a clock separation structure, thus automatically realizing the generation of the eye diagram. The automated program reads the Clock Recovery parameter settings and determines whether the parameters are correct. If correct, it proceeds; if incorrect, it prompts to manually set the Clock Recovery parameters.
[0030] Automatically complete the placement of the oscilloscope eye diagram template. After completing the settings of the GATING function and the Clock Recovery parameters, the RGMII eye diagram is already formed. At this time, the automated program will load the already set RGMII eye diagram template and place it on the oscilloscope display screen. The automated program determines whether the RGMII eye diagram touches the RGMII eye diagram template. If it does not touch the RGMII eye diagram template, the program prompts that the test result is PASS; if it touches the RGMII eye diagram template, the program prompts that the test result is FAIL.
[0031] Compared with the prior art, the beneficial effect of the present invention lies in realizing a design method for automatically testing the RGMII eye diagram based on labview programming, which can automatically control the oscilloscope for parameter settings and achieve automated testing. The present invention can greatly improve the testing efficiency.
[0032] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A design method for automatically testing the RGMII eye diagram based on LabVIEW programming, characterized in that , including the following steps: S1. Power on the prototype to be tested with an RGMII bus, and use high-speed single-ended probes to weld them to the CLK and TX signal lines of the RGMII bus respectively; S2. Connect the high-speed single-ended probes to the oscilloscope end. Set channel 1 of the oscilloscope to the CLK of the RGMII bus, and set channel 2 of the oscilloscope to the TX of the RGMII bus; S3. Connect the computer installed with the test program to the oscilloscope through the network port to complete the physical connection of the test solution; S4. Run the written test program to let the test program automatically complete the oscilloscope test of the RGMII eye diagram, complete the result determination, and save the data; It also includes an oscilloscope parameter setting method: First, set channel 1 and channel 2 of the oscilloscope. Among them, channel 1 is the CLK signal of the RGMII bus, and channel 2 is the TX signal of the RGMII bus. Automatically set the voltage scale of channel 1 of the oscilloscope to 150 mV per grid, automatically set the voltage scale of channel 2 of the oscilloscope to 150 mV per grid, and automatically set the time scale of the oscilloscope to 1 ns per grid. After the setting is completed, then perform the GATING function setting for channels 1 and 2 of the oscilloscope; The GATING function is a region selection function, that is, only the selected region will perform waveform acquisition and analysis. Currently, the TX signal of the waveforms of two clock cycles of the RGMII is selected using the GATING function. The automation program reads and judges whether the GATING function parameters are correct by reading the GATING function parameters. If they are correct, it will execute the following steps. If they are incorrect, it will prompt to manually set the GATING function parameters; Automatically complete the clock recovery parameter setting for channels 1 and 2 of the oscilloscope. After completing the automatic setting of the GATING function, the program will then perform the clock recovery parameter setting. Automatically set channel 1 as the clock source, channel 2 as the data source, and the mode is the clock separation structure, which is used to automatically generate the eye diagram. The automation program reads and judges whether the clock recovery parameter settings are correct by reading the clock recovery parameters. If they are correct, it will execute the following steps. If they are incorrect, it will prompt to manually set the clock recovery parameters.
2. The design method for automatically testing the RGMII eye diagram based on LabVIEW programming according to claim 1, wherein: Automatically complete the placement of the oscilloscope eye diagram template. After completing the setting of the GATING function and the clock recovery parameter setting, the RGMII eye diagram has been formed. At this time, the automation program will load the set RGMII eye diagram template and place it on the oscilloscope display screen. The automation program determines whether the RGMII eye diagram touches the RGMII eye diagram template. If it does not touch the RGMII eye diagram template, the program prompts that the test result is PASS. If it touches the RGMII eye diagram template, the program prompts that the test result is FAIL.
3. An electronic device, comprising a processor and a memory communicatively connected to the processor and configured to store instructions executable by the processor, wherein: The processor is used to execute the design method for automatically testing the RGMII eye diagram based on LabVIEW programming as described in any one of claims 1-2 above.
4. A server, characterized in that: It includes at least one processor and a memory communicatively connected to the processor. The memory stores instructions executable by the at least one processor. The instructions are executed by the processor to enable the at least one processor to execute the design method for automatically testing the RGMII eye diagram based on LabVIEW programming as described in any one of claims 1-2 above.
5. A computer-readable storage medium stores a computer program, characterized in that: When the computer program is executed by a processor, it implements the design method for automatically testing the RGMII eye diagram based on LabVIEW programming described in any one of claims 1-2.
Citation Information
Patent Citations
Waveform auto-measuring system and method
CN101393234A
Serial bus test method
CN103377105A
Method for realizing light attenuation and reading eye pattern based on labview programming
CN113890604A