CN113190387A - Compensation code type switching method and trigger equipment - Google Patents

Compensation code type switching method and trigger equipment Download PDF

Info

Publication number
CN113190387A
CN113190387A CN202110394448.6A CN202110394448A CN113190387A CN 113190387 A CN113190387 A CN 113190387A CN 202110394448 A CN202110394448 A CN 202110394448A CN 113190387 A CN113190387 A CN 113190387A
Authority
CN
China
Prior art keywords
trigger
trigger signal
information
code pattern
compensation code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110394448.6A
Other languages
Chinese (zh)
Inventor
范纲波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110394448.6A priority Critical patent/CN113190387A/en
Publication of CN113190387A publication Critical patent/CN113190387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The application discloses a compensating code pattern switching method and trigger equipment in PCIe (peripheral component interface express) conformance testing, wherein the method is applied to preset trigger equipment and comprises the following steps: acquiring a compensation code type switching instruction through a local first interface, wherein the compensation code type switching instruction comprises compensation code type information to be switched; determining trigger signal information according to the current compensation code pattern information and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information; and transmitting the trigger signal to a server currently carrying out the PCIe conformance test through a local second interface, wherein the second interface is connected with the server currently carrying out the PCIe conformance test through a first connecting wire. Therefore, the method can be quickly switched to the designated compensation code pattern, the time waste derived by manual pressing errors is reduced, the manual operation is replaced by an automatic flow, the switching accuracy is improved, and the working efficiency and quality of compensation code pattern switching are improved.

Description

Compensation code type switching method and trigger equipment
Technical Field
The present invention relates to the PCIe test technology field, and in particular, to a compensation pattern switching method and a trigger device in a PCIe compliance test.
Background
PCIe (Peripheral Component Interconnect Express) is an indispensable high-speed serial expansion bus in a server, and in a practical process, a Compliance test (company test) needs to be performed on PCIe in the server. During the PCIe conformance test, the PCIe compensation patterns and the rates need to be switched. PCIe1.0 Transmission rate is 2.5GT/s (Giga Transmission per second), including 1 compensating pattern; PCIe2.0 transmission rate is 5.0GT/s, including 2 compensation patterns; PCIe3.0 transmission rate is 8.0GT/s, including 11 compensation code patterns; PCIe4.0 transmission rate is 16.0GT/s, and includes 20 complementary patterns.
At present, the compensating code pattern switching method in the PCIe compliance test is to connect a PCIe jig card with a mechanical trigger button to a CPU or PCIe switch of a server, and to trigger the conversion of the compensating code pattern, or the conversion of the compensating code pattern and the conversion rate by pressing the button once. In this manner, the switching of the rate and the offset patterns is a loop, starting from pci 1.0 to the end of the last offset pattern of pci 4.0, pressing the toggle button 34 times for one loop, e.g., if the first offset pattern of pci 4.0 is to be tested, the toggle button must be pressed 14 times, if the number of inadvertent presses exceeds, the toggle button must be pressed back to pci 1.0, and then the 14 times of press attempts are made again until the first offset pattern of pci 4.0 appears.
In the above conventional method, the test engineer needs to manually press the trigger button to switch the PCIe rate and the compensation pattern, from PCIe1.0 to PCIe4.0, the whole acquisition process is lengthy, and the PCIe rate and the compensation pattern need to be switched by pressing the trigger button without stopping manual operation. If the button is pressed again in the order of the speed and the compensation pattern, the button is pressed again to make a loop if the button is pressed by mistake, which still does not consider the situation of the PCIe5.0, and if the compensation pattern of the PCIe5.0 is added, the loop is expected to be about 50 times, so that the efficiency and the accuracy of the method are very poor.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a compensation pattern switching method and trigger device in PCIe compliance test, which can quickly switch to an assigned compensation pattern, reduce time waste derived from manual pressing errors, and use an automated process to replace manual operation, thereby increasing switching accuracy and improving working efficiency and quality of compensation pattern switching. The specific scheme is as follows:
in a first aspect, the present application discloses a method for switching compensation patterns in a PCIe compliance test, which is applied to a preset trigger device, and includes:
acquiring a compensation code pattern switching instruction through a local first interface, wherein the compensation code pattern switching instruction comprises compensation code pattern information to be switched;
determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information;
and transmitting the trigger signal to a server currently carrying out PCIe conformance testing through a local second interface, wherein the second interface is connected with the server currently carrying out the PCIe conformance testing through a first connecting wire.
Optionally, the obtaining, through the local first interface, the compensation pattern switching instruction includes:
and acquiring a compensation code pattern switching instruction issued by the terminal equipment through a local first interface, wherein the first interface is connected with the terminal equipment through a second connecting line.
Optionally, the first interface is a USB interface, and the second connection line is a USB data line.
Optionally, the determining, according to the current compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to, trigger signal information, and outputting a trigger signal according to the trigger signal information includes:
determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched by a local microcontroller;
and controlling a local crystal oscillator to output a trigger signal according to the trigger signal information through the microcontroller.
Optionally, the determining, according to the current compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to, trigger signal information, and outputting a trigger signal according to the trigger signal information includes:
determining trigger signal information according to the current compensation code pattern information of a server currently performing PCIe conformance test and the compensation code pattern information to be switched, wherein the trigger signal information comprises the number of trigger signals;
and outputting the trigger signals of the number of the trigger signals, wherein each trigger signal is a clock signal with a first preset time length value, a second preset time length value is arranged between every two adjacent trigger signals at intervals, and the first preset time length value is smaller than the second preset time length value.
Optionally, the determining, according to the current compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to, trigger signal information includes:
determining first trigger signal information corresponding to compensation code pattern information of a server currently performing PCIe conformance test according to a preset trigger time comparison table, wherein the preset trigger time comparison table comprises the number of trigger signals required for switching from the PCIe1.0 compensation code pattern to each PCIe compensation code pattern, and the first trigger signal information comprises the number of first trigger signals;
determining second trigger signal information corresponding to the compensation code pattern information to be switched according to the preset trigger time comparison table, wherein the second trigger signal information comprises the number of second trigger signals;
and determining the trigger signal information according to the first trigger signal information and the second trigger signal information.
Optionally, the determining the trigger signal information according to the first trigger signal information and the second trigger signal information includes:
if the number of the first trigger signals is smaller than that of the second trigger signals, taking a first difference value between the number of the second trigger signals and the number of the first trigger signals as the number of the trigger signals to obtain the trigger signal information;
and if the number of the first trigger signals is larger than that of the second trigger signals, determining a second difference value between the total number of the preset PCIe compensation patterns and the number of the first trigger signals, and taking the sum of the second difference value and the number of the second trigger signals as the number of the trigger signals to obtain the trigger signal information.
In a second aspect, the present application discloses a triggering device, comprising:
the first interface is used for acquiring a compensation code type switching instruction, wherein the compensation code type switching instruction comprises compensation code type information to be switched;
the trigger signal generating module is used for determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information;
and the second interface is used for transmitting the trigger signal to the server which is currently carrying out the PCIe conformance test, wherein the second interface is connected with the server which is currently carrying out the PCIe conformance test through a first connecting wire.
Optionally, the trigger signal generating module includes:
the microcontroller is used for determining trigger signal information according to the current compensation code pattern information of the server currently carrying out PCIe conformance test and the compensation code pattern information to be switched;
the microcontroller is used for controlling a local crystal oscillator to output a trigger signal according to the trigger signal information;
the crystal oscillator is used for outputting the trigger signal under the control of the microcontroller.
Optionally, the trigger signal generating module is configured to:
determining trigger signal information according to the current compensation code pattern information of a server currently performing PCIe conformance test and the compensation code pattern information to be switched, wherein the trigger signal information comprises the number of trigger signals;
and outputting the trigger signals of the number of the trigger signals, wherein each trigger signal is a clock signal with a first preset time length value, a second preset time length value is arranged between every two adjacent trigger signals at intervals, and the first preset time length value is smaller than the second preset time length value.
The method is applied to the preset trigger equipment, and the compensation code pattern switching instruction is obtained through the local first interface, wherein the compensation code pattern switching instruction comprises compensation code pattern information to be switched. And then determining trigger signal information according to the current compensation code pattern information of the server currently performing the PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information. And then, the trigger signal can be transmitted to the server currently performing the PCIe compliance test through a local second interface, wherein the second interface is connected with the server currently performing the PCIe compliance test through a first connecting line. Therefore, the compensation code pattern is automatically switched by using the trigger device, and after the compensation code pattern switching instruction is acquired through the first interface, determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information, then the trigger signal is transmitted to the server which is currently carrying out the PCIe conformance test by the second interface, compare and switch by artifical manual among the prior art, convert into complete automatically controlled in this application, can the fast switch to appointed compensation pattern, reduce the artifical time waste who presses the mistake and derive, the manual operation is replaced to the application automation flow, has increased and has switched the degree of accuracy, has improved compensation pattern and has switched work efficiency and quality.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a compensating pattern switching method in a PCIe compliance test according to the present disclosure;
FIG. 2 is a flowchart of a specific compensating pattern switching method in a PCIe compliance test according to the present disclosure;
fig. 3 is a schematic structural diagram of a trigger device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, the compensating code pattern switching method in the PCIe compliance test is to connect a PCIe jig card with a mechanical trigger button to a CPU or PCIe switch of a server, and to trigger the conversion of the compensating code pattern, or the conversion of the compensating code pattern and the conversion rate by pressing the button once. In this manner, the switching of the rate and the offset patterns is a loop, starting from pci 1.0 to the end of the last offset pattern of pci 4.0, pressing the toggle button 34 times for one loop, e.g., if the first offset pattern of pci 4.0 is to be tested, the toggle button must be pressed 14 times, if the number of inadvertent presses exceeds, the toggle button must be pressed back to pci 1.0, and then the 14 times of press attempts are made again until the first offset pattern of pci 4.0 appears. In the method, a test engineer needs to manually press the trigger button to switch the PCIe rate and the compensation code pattern from PCIe1.0 to PCIe4.0, the whole acquisition process is long, and the PCIe rate and the compensation code pattern need to be switched by continuously and manually pressing the trigger button. If the button is pressed again in the order of the speed and the compensation pattern, the button is pressed again to make a loop if the button is pressed by mistake, which still does not consider the situation of the PCIe5.0, and if the compensation pattern of the PCIe5.0 is added, the loop is expected to be about 50 times, so that the efficiency and the accuracy of the method are very poor. In view of this, the present application provides a compensation pattern switching method in PCIe compliance test, which can quickly switch to an assigned compensation pattern, reduce time waste derived from manual pressing errors, and use an automated process to replace manual operation, thereby increasing switching accuracy and improving working efficiency and quality of compensation pattern switching.
Referring to fig. 1, an embodiment of the present application discloses a compensation pattern switching method in a PCIe compliance test, which is applied to a preset trigger device, and the method includes:
step S11: and acquiring a compensation code pattern switching instruction through a local first interface, wherein the compensation code pattern switching instruction comprises compensation code pattern information to be switched.
In an actual implementation process, a compensation code pattern switching instruction needs to be acquired through a local first interface, wherein the compensation code pattern switching instruction includes compensation code pattern information to be switched. The first interface is an interface for communicating the trigger device with a test engineer, and the first interface may be an interface designed by using a programming language, and as can be understood, the first interface may also be a hardware interface.
Specifically, the obtaining of the compensation pattern switching instruction through the local first interface includes: and acquiring a compensation code pattern switching instruction issued by the terminal equipment through a local first interface, wherein the first interface is connected with the terminal equipment through a second connecting line. That is, the trigger device may be connected to the terminal device through the first interface by using a first connection line, then the user triggers a compensation code pattern switching instruction through the terminal device, and then the terminal device may issue the compensation code pattern switching instruction to the trigger device, where the first interface is a USB (Universal Serial Bus) interface, and the second connection line is a USB data line.
Step S12: and determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information.
It can be understood that after the compensation pattern switching instruction is acquired, trigger signal information needs to be determined according to the compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched, and a trigger signal is output according to the trigger signal information.
Specifically, determining trigger signal information according to the current compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to, and outputting a trigger signal according to the trigger signal information includes: determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched by a local microcontroller; and controlling a local crystal oscillator to output a trigger signal according to the trigger signal information through the microcontroller.
That is, the triggering device may include a microcontroller and a crystal oscillator, and the microcontroller may determine triggering signal information according to the current compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to, and then control the crystal oscillator to output a triggering signal by using the triggering signal information.
Specifically, determining trigger signal information according to the current compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to, and outputting a trigger signal according to the trigger signal information includes: determining trigger signal information according to the current compensation code pattern information of a server currently performing PCIe conformance test and the compensation code pattern information to be switched, wherein the trigger signal information comprises the number of trigger signals; and outputting the trigger signals of the number of the trigger signals, wherein each trigger signal is a clock signal with a first preset time length value, a second preset time length value is arranged between every two adjacent trigger signals at intervals, and the first preset time length value is smaller than the second preset time length value.
That is, it is necessary to determine how many trigger signals need to be triggered according to the current compensation pattern information and the compensation pattern information to be switched, and then continuously output a corresponding number of trigger signals, where each trigger signal is a clock signal with a first preset duration value, and every two adjacent trigger signals are separated by a second preset duration value. In order to be able to determine how many trigger signals need to be triggered, a corresponding recording point is required in the trigger device for recording the currently located compensation pattern information.
If the current compensation code pattern of the server currently performing the PCIe compliance test is pci 1.0, and the compensation code pattern to be switched to is the eighth compensation code pattern of pci 3.0, the trigger signal information packet is 10 trigger signals, where the trigger signals may be clock signals with a time length of 1ms, and an interval between every two trigger signals is 100ms, the PCIe compensation code pattern may be switched from pci 1.0 to the eighth compensation code pattern of pci 3.0 in a time of about 1 second.
Wherein, the determining the trigger signal information according to the current compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to includes: determining first trigger signal information corresponding to compensation code pattern information of a server currently performing PCIe conformance test according to a preset trigger time comparison table, wherein the preset trigger time comparison table comprises the number of trigger signals required for switching from the PCIe1.0 compensation code pattern to each PCIe compensation code pattern, and the first trigger signal information comprises the number of first trigger signals; determining second trigger signal information corresponding to the compensation code pattern information to be switched according to the preset trigger time comparison table, wherein the second trigger signal information comprises the number of second trigger signals; and determining the trigger signal information according to the first trigger signal information and the second trigger signal information.
If the current compensation code pattern of the server currently performing the PCIe compliance test is the 10 th compensation code pattern of PCIe3.0, the compensation code pattern to be switched is the 1 st compensation code pattern of PCIe2.0, since the number of trigger signals required for switching from the PCIe1.0 compensation code pattern to the 10 th compensation code pattern of PCIe3.0 in the preset trigger number comparison table is 12, the number of the first trigger signals is 12, the number of trigger signals required for switching from the PCIe1.0 compensation code pattern to the 1 st compensation code pattern of PCIe2.0 in the preset trigger number comparison table is 1, and the number of the second trigger signals is 1.
The determining the trigger signal information according to the first trigger signal information and the second trigger signal information includes: if the number of the first trigger signals is smaller than that of the second trigger signals, taking a first difference value between the number of the second trigger signals and the number of the first trigger signals as the number of the trigger signals to obtain the trigger signal information; and if the number of the first trigger signals is larger than that of the second trigger signals, determining a second difference value between the total number of the preset PCIe compensation patterns and the number of the first trigger signals, and taking the sum of the second difference value and the number of the second trigger signals as the number of the trigger signals to obtain the trigger signal information.
For example, the currently located compensation code pattern of the server currently performing the PCIe compliance test is the 10 th compensation code pattern of PCIe3.0, the compensation code pattern to be switched is the 1 st compensation code pattern of PCIe2.0, since the number of trigger signals required to switch from the 10 th compensation code pattern of PCIe1.0 to the PCIe3.0 in the preset trigger number comparison table is 12, the number of the first trigger signals is 12, the number of trigger signals required to switch from the PCIe1.0 compensation code pattern to the 1 st compensation code pattern of PCIe2.0 in the preset trigger number comparison table is 1, the number of the second trigger signals is 1, and the total number of the PCIe compensation code patterns is set to 34. The second difference is 22 and the sum of the second difference and the number of the second trigger signals is 23, i.e. the number of the trigger signals is 23.
Step S13: and transmitting the trigger signal to a server currently carrying out PCIe conformance testing through a local second interface, wherein the second interface is connected with the server currently carrying out the PCIe conformance testing through a first connecting wire.
After the trigger signal is output, the trigger signal needs to be transmitted to the server currently performing the PCIe compliance test through the second interface on the trigger device, specifically, the trigger signal may be transmitted to a CPU or a PCIe switch in the server currently performing the PCIe compliance test through the second interface on the trigger device.
The method is applied to the preset trigger equipment, and the compensation code pattern switching instruction is obtained through the local first interface, wherein the compensation code pattern switching instruction comprises compensation code pattern information to be switched. And then determining trigger signal information according to the current compensation code pattern information of the server currently performing the PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information. And then, the trigger signal can be transmitted to the server currently performing the PCIe compliance test through a local second interface, wherein the second interface is connected with the server currently performing the PCIe compliance test through a first connecting line. Therefore, the compensation code pattern is automatically switched by using the trigger device, and after the compensation code pattern switching instruction is acquired through the first interface, determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information, then the trigger signal is transmitted to the server which is currently carrying out the PCIe conformance test by the second interface, compare and switch by artifical manual among the prior art, convert into complete automatically controlled in this application, can the fast switch to appointed compensation pattern, reduce the artifical time waste who presses the mistake and derive, the manual operation is replaced to the application automation flow, has increased and has switched the degree of accuracy, has improved compensation pattern and has switched work efficiency and quality.
As shown in fig. 2. Taking the example of switching from the compensation code pattern of pci 1.0 to the seventh compensation code pattern of pci 3.0, a communication interface is first designed by using a programming language as a first interface, the triggering device is connected to the server through the second interface and the first connection line, the seventh compensation code pattern of pci 3.0 is input or selected through the first interface, and it is determined that 9 consecutive trigger signals must be sent through a preset trigger number comparison table. The trigger device sends 9 continuous trigger signals to the corresponding interface of the server, and the corresponding interface of the server receives the trigger signals and switches the signals to the seventh compensation code pattern of PCIe3.0, and records the current compensation code pattern information.
Referring to fig. 3, an embodiment of the present application discloses a trigger device, including:
the first interface 11 is configured to obtain a compensation pattern switching instruction, where the compensation pattern switching instruction includes compensation pattern information to be switched to;
the trigger signal generating module 12 is configured to determine trigger signal information according to current compensation code pattern information of a server currently performing a PCIe conformance test and the compensation code pattern information to be switched to, and output a trigger signal according to the trigger signal information;
and the second interface 13 is configured to transmit the trigger signal to the server currently performing the PCIe compliance test, where the second interface is connected to the server currently performing the PCIe compliance test through a first connection line.
The method is applied to the preset trigger equipment, and the compensation code pattern switching instruction is obtained through the local first interface, wherein the compensation code pattern switching instruction comprises compensation code pattern information to be switched. And then determining trigger signal information according to the current compensation code pattern information of the server currently performing the PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information. And then, the trigger signal can be transmitted to the server currently performing the PCIe compliance test through a local second interface, wherein the second interface is connected with the server currently performing the PCIe compliance test through a first connecting line. Therefore, the compensation code pattern is automatically switched by using the trigger device, and after the compensation code pattern switching instruction is acquired through the first interface, determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information, then the trigger signal is transmitted to the server which is currently carrying out the PCIe conformance test by the second interface, compare and switch by artifical manual among the prior art, convert into complete automatically controlled in this application, can the fast switch to appointed compensation pattern, reduce the artifical time waste who presses the mistake and derive, the manual operation is replaced to the application automation flow, has increased and has switched the degree of accuracy, has improved compensation pattern and has switched work efficiency and quality.
In some specific implementations, the first interface 11 is configured to:
and acquiring a compensation code pattern switching instruction issued by the terminal equipment, wherein the first interface is connected with the terminal equipment through a second connecting line.
In some specific implementations, the first interface 11 is a USB interface, and the second connection line is a USB data line.
In some specific implementations, the trigger signal generating module 12 includes:
the microcontroller is used for determining trigger signal information according to the current compensation code pattern information of the server currently carrying out PCIe conformance test and the compensation code pattern information to be switched;
the microcontroller is used for controlling a local crystal oscillator to output a trigger signal according to the trigger signal information;
the crystal oscillator is used for outputting the trigger signal under the control of the microcontroller.
In some specific implementations, the trigger signal generating module 12 is configured to:
determining trigger signal information according to the current compensation code pattern information of a server currently performing PCIe conformance test and the compensation code pattern information to be switched, wherein the trigger signal information comprises the number of trigger signals;
and outputting the trigger signals of the number of the trigger signals, wherein each trigger signal is a clock signal with a first preset time length value, a second preset time length value is arranged between every two adjacent trigger signals at intervals, and the first preset time length value is smaller than the second preset time length value.
In some specific implementations, the trigger signal generating module 12 is configured to:
determining first trigger signal information corresponding to compensation code pattern information of a server currently performing PCIe conformance test according to a preset trigger time comparison table, wherein the preset trigger time comparison table comprises the number of trigger signals required for switching from the PCIe1.0 compensation code pattern to each PCIe compensation code pattern, and the first trigger signal information comprises the number of first trigger signals;
determining second trigger signal information corresponding to the compensation code pattern information to be switched according to the preset trigger time comparison table, wherein the second trigger signal information comprises the number of second trigger signals;
and determining the trigger signal information according to the first trigger signal information and the second trigger signal information.
In some specific implementations, the trigger signal generating module 12 is configured to:
if the number of the first trigger signals is smaller than that of the second trigger signals, taking a first difference value between the number of the second trigger signals and the number of the first trigger signals as the number of the trigger signals to obtain the trigger signal information;
and if the number of the first trigger signals is larger than that of the second trigger signals, determining a second difference value between the total number of the preset PCIe compensation patterns and the number of the first trigger signals, and taking the sum of the second difference value and the number of the second trigger signals as the number of the trigger signals to obtain the trigger signal information.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of other elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above detailed description is given to a compensation code pattern switching method and a trigger device in a PCIe conformance test, and a specific example is applied in the present disclosure to explain the principle and the implementation of the present disclosure, and the description of the above embodiment is only used to help understand the method and the core idea of the present disclosure; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A compensating code pattern switching method in PCIe conformance testing is applied to preset trigger equipment and comprises the following steps:
acquiring a compensation code pattern switching instruction through a local first interface, wherein the compensation code pattern switching instruction comprises compensation code pattern information to be switched;
determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information;
and transmitting the trigger signal to a server currently carrying out PCIe conformance testing through a local second interface, wherein the second interface is connected with the server currently carrying out the PCIe conformance testing through a first connecting wire.
2. The method of claim 1, wherein the obtaining the compensation pattern switching command through the local first interface comprises:
and acquiring a compensation code pattern switching instruction issued by the terminal equipment through a local first interface, wherein the first interface is connected with the terminal equipment through a second connecting line.
3. The method of claim 2, wherein the first interface is a USB interface, and the second connection line is a USB data line.
4. The method of claim 1, wherein the determining trigger information according to the currently located compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to and outputting a trigger according to the trigger information includes:
determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched by a local microcontroller;
and controlling a local crystal oscillator to output a trigger signal according to the trigger signal information through the microcontroller.
5. The method of claim 1, wherein the determining trigger information according to the currently located compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to and outputting a trigger according to the trigger information includes:
determining trigger signal information according to the current compensation code pattern information of a server currently performing PCIe conformance test and the compensation code pattern information to be switched, wherein the trigger signal information comprises the number of trigger signals;
and outputting the trigger signals of the number of the trigger signals, wherein each trigger signal is a clock signal with a first preset time length value, a second preset time length value is arranged between every two adjacent trigger signals at intervals, and the first preset time length value is smaller than the second preset time length value.
6. The method of claim 5, wherein the determining the trigger information according to the currently located compensation pattern information of the server currently performing the PCIe compliance test and the compensation pattern information to be switched to includes:
determining first trigger signal information corresponding to compensation code pattern information of a server currently performing PCIe conformance test according to a preset trigger time comparison table, wherein the preset trigger time comparison table comprises the number of trigger signals required for switching from the PCIe1.0 compensation code pattern to each PCIe compensation code pattern, and the first trigger signal information comprises the number of first trigger signals;
determining second trigger signal information corresponding to the compensation code pattern information to be switched according to the preset trigger time comparison table, wherein the second trigger signal information comprises the number of second trigger signals;
and determining the trigger signal information according to the first trigger signal information and the second trigger signal information.
7. The method of claim 6, wherein the determining the trigger information according to the first trigger information and the second trigger information comprises:
if the number of the first trigger signals is smaller than that of the second trigger signals, taking a first difference value between the number of the second trigger signals and the number of the first trigger signals as the number of the trigger signals to obtain the trigger signal information;
and if the number of the first trigger signals is larger than that of the second trigger signals, determining a second difference value between the total number of the preset PCIe compensation patterns and the number of the first trigger signals, and taking the sum of the second difference value and the number of the second trigger signals as the number of the trigger signals to obtain the trigger signal information.
8. A trigger device, comprising:
the first interface is used for acquiring a compensation code type switching instruction, wherein the compensation code type switching instruction comprises compensation code type information to be switched;
the trigger signal generating module is used for determining trigger signal information according to the current compensation code pattern information of the server currently performing PCIe conformance test and the compensation code pattern information to be switched, and outputting a trigger signal according to the trigger signal information;
and the second interface is used for transmitting the trigger signal to the server which is currently carrying out the PCIe conformance test, wherein the second interface is connected with the server which is currently carrying out the PCIe conformance test through a first connecting wire.
9. The trigger device of claim 8, wherein the trigger signal generation module comprises:
the microcontroller is used for determining trigger signal information according to the current compensation code pattern information of the server currently carrying out PCIe conformance test and the compensation code pattern information to be switched;
the microcontroller is used for controlling a local crystal oscillator to output a trigger signal according to the trigger signal information;
the crystal oscillator is used for outputting the trigger signal under the control of the microcontroller.
10. The trigger device of claim 8, wherein the trigger signal generation module is configured to:
determining trigger signal information according to the current compensation code pattern information of a server currently performing PCIe conformance test and the compensation code pattern information to be switched, wherein the trigger signal information comprises the number of trigger signals;
and outputting the trigger signals of the number of the trigger signals, wherein each trigger signal is a clock signal with a first preset time length value, a second preset time length value is arranged between every two adjacent trigger signals at intervals, and the first preset time length value is smaller than the second preset time length value.
CN202110394448.6A 2021-04-13 2021-04-13 Compensation code type switching method and trigger equipment Pending CN113190387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110394448.6A CN113190387A (en) 2021-04-13 2021-04-13 Compensation code type switching method and trigger equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110394448.6A CN113190387A (en) 2021-04-13 2021-04-13 Compensation code type switching method and trigger equipment

Publications (1)

Publication Number Publication Date
CN113190387A true CN113190387A (en) 2021-07-30

Family

ID=76975609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110394448.6A Pending CN113190387A (en) 2021-04-13 2021-04-13 Compensation code type switching method and trigger equipment

Country Status (1)

Country Link
CN (1) CN113190387A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006631A (en) * 2021-09-17 2022-02-01 苏州浪潮智能科技有限公司 Cable testing device and method based on code pattern signal verification

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180025481A (en) * 2016-08-31 2018-03-09 사단법인 엑시콘산학공동연구소 PCIe test apparatus
CN108108277A (en) * 2017-12-19 2018-06-01 郑州云海信息技术有限公司 A kind of PCIE transmitting terminals pattern test system and test method
CN110515788A (en) * 2019-09-29 2019-11-29 浪潮商用机器有限公司 A kind of test device of data-interface
CN111737070A (en) * 2020-06-19 2020-10-02 浪潮电子信息产业股份有限公司 USB3.0 interface signal test system and method
CN111812373A (en) * 2020-06-28 2020-10-23 浪潮电子信息产业股份有限公司 PCIe mainboard signal automatic testing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180025481A (en) * 2016-08-31 2018-03-09 사단법인 엑시콘산학공동연구소 PCIe test apparatus
CN108108277A (en) * 2017-12-19 2018-06-01 郑州云海信息技术有限公司 A kind of PCIE transmitting terminals pattern test system and test method
CN110515788A (en) * 2019-09-29 2019-11-29 浪潮商用机器有限公司 A kind of test device of data-interface
CN111737070A (en) * 2020-06-19 2020-10-02 浪潮电子信息产业股份有限公司 USB3.0 interface signal test system and method
CN111812373A (en) * 2020-06-28 2020-10-23 浪潮电子信息产业股份有限公司 PCIe mainboard signal automatic testing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114006631A (en) * 2021-09-17 2022-02-01 苏州浪潮智能科技有限公司 Cable testing device and method based on code pattern signal verification

Similar Documents

Publication Publication Date Title
US8041979B2 (en) Method and a system for synchronising respective state transitions in a group of devices
US8854924B2 (en) Method, a device and a system for executing an action at a predetermined time
CN110515788B (en) Testing device for data interface
US20090113183A1 (en) Method of controlling a device and a device controlled thereby
CN113190387A (en) Compensation code type switching method and trigger equipment
CN111327500B (en) NCSI bus construction method, device, equipment and storage medium
CN111812373A (en) PCIe mainboard signal automatic testing device
CN106557419B (en) Program testing method and device
CN113407469B (en) Parameter configuration method and device, storage medium and electronic device
CN111751776B (en) Time verification system and method for digital relay protection tester
CN113094316A (en) Online switching device and method of NCSI (non-volatile memory) signals
KR101552714B1 (en) method and system for analyzing automatically physical layer in car communication
CN111045358A (en) Data acquisition method, device, equipment and medium
CN115718249A (en) ATE-oriented chip test vector conversion method
CN114443537A (en) Method, device, equipment and medium for configuring parameters of PCIE signal sending terminal
CN113704152A (en) PCIe slot interface switching equipment, test equipment, system and method
CN115379491A (en) Time service compensation method, wireless time service terminal, electronic device and storage medium
US11031972B2 (en) Method for automatically selecting a frequency band
CN110609243A (en) Method and system for testing CPU power supply efficiency and related components
CN111984577A (en) Burning control system and burning control method
CN1321383C (en) Peripheral interface converter suitable for general-purpose serial bus and its control method
CN109495170B (en) Received signal monitoring method for optical module, optical module and optical line terminal
JP7128852B2 (en) ERROR RATE MEASUREMENT DEVICE AND ERROR RATE MEASUREMENT METHOD
CN114121121B (en) Test circuit
CN215006633U (en) Data acquisition card of oscillograph

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210730

RJ01 Rejection of invention patent application after publication