[go: up one dir, main page]

CN112269120A - Interface signal loopback test method, apparatus, computer equipment and storage medium - Google Patents

Interface signal loopback test method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN112269120A
CN112269120A CN202011221490.XA CN202011221490A CN112269120A CN 112269120 A CN112269120 A CN 112269120A CN 202011221490 A CN202011221490 A CN 202011221490A CN 112269120 A CN112269120 A CN 112269120A
Authority
CN
China
Prior art keywords
chip
tested
determining
state parameter
condition
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.)
Granted
Application number
CN202011221490.XA
Other languages
Chinese (zh)
Other versions
CN112269120B (en
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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202011221490.XA priority Critical patent/CN112269120B/en
Publication of CN112269120A publication Critical patent/CN112269120A/en
Application granted granted Critical
Publication of CN112269120B publication Critical patent/CN112269120B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2851Testing of integrated circuits [IC]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/50Testing of electric apparatus, lines, cables or components for short-circuits, continuity, leakage current or incorrect line connections
    • G01R31/66Testing of connections, e.g. of plugs or non-disconnectable joints

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • General Engineering & Computer Science (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application relates to an interface signal loop test method, an interface signal loop test device, computer equipment and a storage medium. The method comprises the following steps: sending a query instruction to a powered chip to be tested; the chip to be tested is in a low level state; under the condition of receiving the state parameter returned by the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected; and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received. By adopting the method, all signals of the production chip or the PCIE interface can be completely tested, including data signals, clocks and reference clock signals, so that the complex process that auxiliary equipment such as an oscilloscope is required for testing is avoided, the PCIE interface hardware and whether an internal module is connected or not can be quickly and efficiently tested, and the test efficiency of the production chip is effectively improved.

Description

Interface signal loop test method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for testing loop of interface signals, a computer device, and a storage medium.
Background
With the development of computer technology, a pcie (peripheral component interconnect express) interface is widely used in hardware, and communication terminals are more and more common in life of people, and in order to ensure perfect operation of network establishment of communication equipment, many pieces of equipment are required to have a function of loop back test so as to remotely monitor whether the operation of the communication equipment is qualified. Before shipping, a chip or a module of the terminal device needs to perform hardware and interface function access testing, so that testing whether the loop back function of the communication device is qualified before shipping becomes one of important tests.
However, in the current loop test method, it is limited to test only data signals, but not clock signals and reference clock signals, and during the PCIE interface path test, the interface path test can be performed only by accessing the master device and the slave device, or separate tests are performed by using auxiliary devices such as an oscilloscope, which requires a lot of labor and effort to perform the test, and thus, the test efficiency of the chip is low.
Disclosure of Invention
In view of the above, it is desirable to provide an interface signal loop test method, an interface signal loop test apparatus, a computer device, and a storage medium, which can improve the test efficiency of a production chip.
An interface signal loopback test method, the method comprising:
sending a query instruction to a powered chip to be tested; the chip to be tested is in a low level state;
under the condition of receiving the state parameter returned by the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected;
and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
In one embodiment, the signal channels corresponding to the chips to be tested include a data signal channel and a clock signal channel.
In one embodiment, after sending the query instruction to the powered chip to be tested, the method further includes:
detecting the state parameter of the grounding line corresponding to each clock signal;
determining that the link corresponding to the clock signal is successfully connected under the condition that the state parameter of the grounding line is detected to be in a low level state;
and determining that the link connection corresponding to the clock signal fails under the condition that the state parameter of the grounding line is detected to be in a high-impedance state.
An interface signal loop back test apparatus, the apparatus comprising:
the sending module is used for sending a query instruction to the electrified chip to be tested; the chip to be tested is in a low level state;
the determining module is used for determining that the signal channel corresponding to the chip to be tested is successfully connected under the condition of receiving the state parameter returned by the chip to be tested; and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
sending a query instruction to a powered chip to be tested; the chip to be tested is in a low level state;
under the condition of receiving the state parameter returned by the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected;
and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
sending a query instruction to a powered chip to be tested; the chip to be tested is in a low level state;
under the condition of receiving the state parameter returned by the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected;
and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
An interface signal loopback test method, the method comprising:
carrying out low level setting operation on a pin corresponding to each clock signal channel of a chip to be tested, and then carrying out power-on operation on the chip to be tested;
sending a query instruction to the chip to be tested;
under the condition of receiving the state parameter returned by the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected;
and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
In one embodiment, the performing a low level setting operation on the pin of each clock signal channel of the chip to be tested includes:
each clock signal channel is externally connected with a resistor with a preset numerical value;
and carrying out grounding connection operation on the corresponding pin of each clock signal channel.
In one embodiment, after sending the query instruction to the chip to be tested, the method further includes:
detecting the state parameter of the grounding line corresponding to each clock signal;
determining that the link corresponding to the clock signal is successfully connected under the condition that the state parameter of the grounding line is detected to be in a low level state;
and determining that the link connection corresponding to the clock signal fails under the condition that the state parameter of the grounding line is detected to be in a high-impedance state.
An interface signal loop back test apparatus, the apparatus comprising:
the device comprises a setting module, a power-on module and a power-on module, wherein the setting module is used for carrying out low-level setting operation on pins corresponding to each clock signal channel of a chip to be tested and then carrying out power-on operation on the chip to be tested;
the sending module is used for sending a query instruction to the chip to be tested;
the determining module is used for determining that the signal channel corresponding to the chip to be tested is successfully connected under the condition of receiving the state parameter returned by the chip to be tested; and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
carrying out low level setting operation on a pin corresponding to each clock signal channel of a chip to be tested, and then carrying out power-on operation on the chip to be tested;
sending a query instruction to the chip to be tested;
under the condition of receiving the state parameter returned by the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected;
and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
carrying out low level setting operation on a pin corresponding to each clock signal channel of a chip to be tested, and then carrying out power-on operation on the chip to be tested;
sending a query instruction to the chip to be tested;
under the condition of receiving the state parameter returned by the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected;
and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
According to the interface signal loop test method, the interface signal loop test device, the computer equipment and the storage medium, the inquiry instruction is sent to the electrified chip to be tested, and the chip to be tested is in a low level state. And under the condition of receiving the return state parameters of the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected. And under the condition that the return state parameters of the chip to be tested are not received, determining that the connection of the signal channel corresponding to the chip to be tested fails. Therefore, all signals of the production chip or the PCIE interface can be completely tested, including data signals, clocks and reference clock signals, the complex process that auxiliary equipment such as an oscilloscope is required to test is avoided, whether the PCIE interface hardware and the internal module are connected or not is rapidly tested, and therefore the testing efficiency of the production chip is effectively improved.
According to the interface signal loop test method, the interface signal loop test device, the computer equipment and the storage medium, after the low level setting operation is carried out on the pin corresponding to each clock signal channel of the chip to be tested, the power-on operation is carried out on the chip to be tested. And sending a query instruction to the chip to be tested, and determining that the signal channel corresponding to the chip to be tested is successfully connected under the condition of receiving the state parameter returned by the chip to be tested. And under the condition that the return state parameters of the chip to be tested are not received, determining that the connection of the signal channel corresponding to the chip to be tested fails. Therefore, after the low-level setting operation is carried out on the clock signal of the PCIE interface, the verification of the signal hardware access can be realized, the complex flow that the auxiliary equipment such as an oscilloscope is required for testing is avoided, and the testing efficiency of the production chip is effectively improved.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of an application environment of a method for loop testing interface signals;
FIG. 2 is a flowchart illustrating a method for loop back testing interface signals according to an embodiment;
FIG. 3A is a diagram illustrating a loopback test performed on a chip under test according to an embodiment;
FIG. 3B is a flowchart illustrating the steps of detecting the state parameter of the ground line corresponding to each clock signal according to one embodiment;
FIG. 4 is a flowchart illustrating a method for loop-back testing interface signals according to another embodiment;
FIG. 5 is a flow chart illustrating the steps of performing a low level set operation on the pins of each clock signal channel of the chip under test in one embodiment;
FIG. 6 is a block diagram of an embodiment of an interface signal loopback test apparatus;
FIG. 7 is a block diagram of an interface signal loopback test device according to another embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The interface signal loop test method provided by the application can be applied to the application environment shown in fig. 1. Wherein, the terminal 102 communicates with the chip 104 to be tested through a network. The terminal 102 sends a query command to the powered chip 104 to be tested, and the chip 104 to be tested is in a low level state. Under the condition that the terminal 102 receives the state parameter returned by the chip 104 to be tested, the signal channel corresponding to the chip 104 to be tested is determined to be successfully connected. The terminal 102 determines that the connection of the signal channel corresponding to the chip 104 to be tested fails when the terminal does not receive the status parameter returned by the chip 104 to be tested. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In one embodiment, as shown in fig. 2, an interface signal loopback test method is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
step 202, sending a query instruction to the powered chip to be tested, wherein the chip to be tested is in a low level state.
PCI-express (peripheral component interconnect express) is a high-speed serial computer expansion bus standard, originally named "3 GIO", which was proposed by Intel in 2001, to replace the old PCI, PCI-X and AGP bus standards. PCIe belongs to high-speed serial point-to-point double-channel high-bandwidth transmission, connected devices distribute independent channel bandwidth and do not share bus bandwidth, and the PCIe mainly supports functions of active power management, error reporting, end-to-end reliable transmission, hot plug, quality of service (QOS) and the like.
PCIe is renamed to PCI-Express, which is called PCI-e for short, after being authenticated and issued by PCI-SIG (PCI Special interest group). Its main advantages are high data transmission rate and high development potential. The PCI-e interface is a high-speed communication interface, can be used for communication between board sets and can also be used for communication between board cards. With the wide use of the PCI-e interface in hardware, the chip or the module needs to perform hardware and interface function access testing before shipping, so testing whether the loopback function of the communication device is qualified before shipping becomes one of important tests. Before the chip or the module leaves the factory, a worker can utilize the testing tool to perform access testing on the produced chip so as to ensure that the chip leaves the factory and can normally work.
Specifically, the terminal is exemplified as the test device. The terminal can send a query instruction to the powered chip to be tested, and the chip to be tested is in a low level state. The powered chip to be tested is powered on, namely, the chip to be tested is powered on in a normal voltage range, so that the chip to be tested can be started normally. The low level state is an operation of setting a low level of a signal of the chip to be tested so as to be in the low level state. For example, the user terminal may manually send the query command through the AT command, that is, the user may manually send the query command to AT + GTSET ═ pcie que through the AT command, 0.
And 204, under the condition that the return state parameters of the chip to be tested are received, determining that the signal channel corresponding to the chip to be tested is successfully connected.
After the terminal sends the query instruction to the powered chip to be tested, the terminal determines that the signal channel corresponding to the chip to be tested is successfully connected under the condition that the terminal receives the state parameter returned by the chip to be tested. Specifically, after the terminal sends the query instruction to the powered chip to be tested, when the PCI-e loop test is successful, the state parameter pcielopback ok is returned, that is, when the user terminal receives the state parameter value returned by the chip to be tested, it can be determined that the signal channel corresponding to the chip to be tested is successfully connected, that is, after the user sees the return value, it can be determined that the PCIE loop test is successful.
And step 206, determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
After the terminal sends the query instruction to the powered chip to be tested, the terminal determines that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the terminal does not receive the state parameter returned by the chip to be tested. Specifically, after the terminal sends the query instruction to the powered chip to be tested, when the PCI-e loop test is successful, the status parameter pcielopback ok is returned, that is, when the user terminal receives the status parameter value returned by the chip to be tested, the signal channel corresponding to the chip to be tested is determined to be successfully connected, that is, when the user sees the return value, the success of the PCI-e loop test can be confirmed, and if the loop test is unsuccessful, the data is not returned, that is, when the user terminal does not receive the status parameter value returned by the chip to be tested, the connection failure of the signal channel corresponding to the chip to be tested can be determined, that is, when the user does not see the return value, the failure of the PCI-e loop test can be confirmed. In the application, the configuration of the register is carried out on the PCIE module inside the chip or the module to be tested, and the PCIE time sequence inside the module is set to be the RC module, so that the purpose of PCIE communication is realized, and whether the access state is achieved can be rapidly verified. The register configuration refers to the configuration of high and low levels of a circuit in a chip to be tested.
In the conventional PCI-e interface loop test method, only data signals can be tested, clock signals and reference clock signals cannot be tested, and when the clock signals and the reference clock signals are tested on a production line, auxiliary equipment such as code logic or an oscilloscope and the like is required to be tested independently, so that the efficiency of testing production chips on the production line is low, and a user cares whether the loop of the PCI-e interface can be tested efficiently and stably on a module or a chip production line. In this embodiment, by sending the query instruction to the powered chip to be tested, the chip to be tested is in a low level state. And under the condition of receiving the return state parameters of the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected. And under the condition that the return state parameters of the chip to be tested are not received, determining that the connection of the signal channel corresponding to the chip to be tested fails. Therefore, all signals of the production chip or the PCIE interface can be completely tested, including data signals, clocks and reference clock signals, the complex process that auxiliary equipment such as an oscilloscope is required for testing is avoided, whether the PCIE interface hardware and the internal module are connected or not is rapidly and efficiently tested, and therefore the testing efficiency of the production chip is effectively improved.
In one embodiment, the signal channels corresponding to the chips to be tested comprise a data signal channel and a clock signal channel. Fig. 3A is a schematic diagram illustrating a loop test performed on a certain chip to be tested. Signals transmitted by the PCIE interface belong to differential signals, so RXO _ P and RXO _ M respectively represent positive and negative of the received signal. TXO _ P and TXO _ M represent positive and negative of the transmit signal, respectively. R denotes reception, i.e., a received signal. T denotes send, i.e., transmission information. When the PCIE protocol performs communication, a receive signal and a transmit signal need to be connected, so that the test device can test the transmit-receive signal, and the transmit signal and the receive signal are collectively referred to as a data signal. For example, during the loopback test, the RX-type signal and the TX-type signal are short-circuited, and the terminal is used to test whether the hardware path of the data signal is normal, and during the loopback test, the ioctl returns test data, which is related information of the PCIE connection state. Data link refers to the state of Data connection of the PCIE interface. Meanwhile, in the embodiment of the application, the hardware path verification can be performed on the clock signal, namely the CLK-like signal. For example, during loop back test, CLK-like signals are connected to external devices, and the CLK-like signals are grounded, and the test terminal is used to perform detection on the ground lines of the CLK-like signals, so that a complicated process of testing auxiliary devices such as an oscilloscope is avoided, and verification of hardware paths of the CLK-like signals is achieved. In this embodiment, not only Rx and Tx signals are shorted, and then data transceiving operation is performed, but also the CLK signals are grounded, and the terminal can perform corresponding detection operation on the ground of the CLK signals, so that the hardware path of the signals can be quickly and efficiently verified.
In an embodiment, as shown in fig. 3B, after sending the query instruction to the powered chip to be tested, the method further includes a step of detecting a state parameter of the ground line corresponding to each clock signal, which specifically includes:
step 302, detecting a state parameter of the ground line corresponding to each clock signal.
And 304, determining that the link corresponding to the clock signal is successfully connected under the condition that the state parameter of the grounding line is detected to be in a low level state.
And step 306, determining that the link connection corresponding to the clock signal fails under the condition that the state parameter of the grounding line is detected to be in a high-impedance state.
After the terminal sends the query instruction to the powered chip to be tested, the terminal can detect the state parameters of the grounding line corresponding to each clock signal. Specifically, the terminal may detect a state parameter of the ground line corresponding to each clock signal. And determining that the link corresponding to the clock signal is successfully connected under the condition that the terminal detects that the state parameter of the grounding line is in a low level state. And determining that the link connection corresponding to the clock signal fails under the condition that the terminal detects that the state parameter of the grounding line is in a high-impedance state. Before the power-on operation is performed on the chip to be tested, the hardware can be adjusted correspondingly. For example, as shown in fig. 3A, PCIE _ CLK _ REQ, REF _ CLK _ P, and REF _ CLK _ M signals may be respectively connected to 50-ohm resistors on a fixture such as a production line, and then connected to a ground signal, where the ground signal is used to connect the pins or signals to ground on a circuit board, and the ground signal is used to pull down the signals. And after the adjusted chip or module to be tested is electrified, the chip or module to be tested is started normally. Further, the terminal may detect a state parameter of the ground line corresponding to each clock signal of the PCIE _ CLK _ REQ, REF _ CLK _ P, and REF _ CLK _ M. And determining that the link corresponding to the PCIE _ CLK _ REQ signal is successfully connected under the condition that the terminal detects that the state parameter of the grounding line corresponding to the PCIE _ CLK _ REQ signal is in a low level state. In the case where the terminal detects that the state parameter of the ground line corresponding to REF _ CLK _ M is in a high impedance state, it is determined that the link connection corresponding to the REF _ CLK _ M signal has failed. Therefore, the PCIE network card equipment is completely simulated by using the register configuration and adjusting the resistance value of the hardware, all signals of the chip or the PCIE can be completely tested, including data signals, clocks and reference clock signals, the verification of hardware paths of all signals is realized, and the test efficiency of the production chip is effectively improved.
In one embodiment, as shown in fig. 4, an interface signal loopback test method is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
step 402, after performing low level setting operation on the pin corresponding to each clock signal channel of the chip to be tested, performing power-on operation on the chip to be tested.
Step 404, sending a query command to the chip to be tested.
And 406, determining that the signal channel corresponding to the chip to be tested is successfully connected under the condition that the return state parameter of the chip to be tested is received.
And step 408, determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
The terminal can perform power-on operation on the chip to be tested after performing low-level setting operation on the pin corresponding to each clock signal channel of the chip to be tested. Wherein, the chip to be tested can be installed in the terminal equipment. And the terminal sends a query instruction to the electrified chip to be tested, and determines that the signal channel corresponding to the chip to be tested is successfully connected under the condition that the terminal receives the state parameter returned by the chip to be tested. And under the condition that the terminal does not receive the state parameter returned by the chip to be tested, determining that the connection of the signal channel corresponding to the chip to be tested fails. Therefore, after the low-level setting operation is carried out on the clock signal of the PCIE interface, the verification of the signal hardware access can be realized, the complex flow that the auxiliary equipment such as an oscilloscope is required for testing is avoided, and the testing efficiency of the production chip is effectively improved.
In one embodiment, as shown in fig. 5, the step of performing a low setting operation on a pin of each clock signal channel of the chip to be tested includes:
step 502, each clock signal channel is externally connected with a resistor with a preset numerical value.
And step 504, performing a ground connection operation on the corresponding pin of each clock signal channel.
The terminal can perform power-on operation on the chip to be tested after performing low-level setting operation on the pin corresponding to each clock signal channel of the chip to be tested. Specifically, the terminal may externally connect a resistor with a preset value to each clock signal channel, and perform a ground connection operation on a pin corresponding to each clock signal channel. For example, a preset value of resistance may be set to 50 ohms, and the ground resistance is a protective measure to prevent lightning strikes on devices such as power and electronics. The grounding operation is an operation for setting a low level to the outside of a corresponding pin of each clock signal channel. For example, the terminal may verify hardware paths of CLK-like signals, which are clock signals on a jig such as a production line. For example, the PCIE _ CLK _ REQ, REF _ CLK _ P, and REF _ CLK _ M signals represent reference clock signals, respectively. The method can be used for externally connecting PCIE _ CLK _ REQ, REF _ CLK _ P and REF _ CLK _ M signals with resistors with preset values of 50 ohms on fixtures such as a production line, performing grounding connection operation on pins corresponding to each clock signal channel of the PCIE _ CLK _ REQ, the REF _ CLK _ P and the REF _ CLK _ M, and starting the chips or modules to be tested which are subjected to the grounding connection operation normally after power-on operation is performed on the chips or modules to be tested. Further, the terminal may detect a state parameter of the ground line corresponding to each clock signal of the PCIE _ CLK _ REQ, REF _ CLK _ P, and REF _ CLK _ M. Therefore, the PCIE network card equipment is completely simulated by using the register configuration and adjusting the resistance value of the hardware, all signals of the chip or the PCIE can be efficiently tested, the signals comprise data signals, clocks and reference clock signals, the hardware access verification of all the signals is realized, and the chip testing efficiency is effectively improved.
In one embodiment, after sending the query instruction to the chip to be tested, the method further includes a step of detecting a state parameter of the ground line corresponding to each clock signal, which specifically includes:
and detecting the state parameter of the grounding line corresponding to each clock signal.
And determining that the link corresponding to the clock signal is successfully connected under the condition that the state parameter of the grounding line is detected to be in a low level state.
And under the condition that the state parameter of the grounding line is detected to be in a high-impedance state, determining that the link connection corresponding to the clock signal fails.
After the terminal sends the query instruction to the powered chip to be tested, the terminal can detect the state parameters of the grounding line corresponding to each clock signal. Specifically, the terminal may detect a state parameter of the ground line corresponding to each clock signal. And determining that the link corresponding to the clock signal is successfully connected under the condition that the terminal detects that the state parameter of the grounding line is in a low level state. And determining that the link connection corresponding to the clock signal fails under the condition that the terminal detects that the state parameter of the grounding line is in a high-impedance state. Before the power-on operation is performed on the chip to be tested, the hardware can be adjusted correspondingly. For example, the PCIE _ CLK _ REQ, REF _ CLK _ P, and REF _ CLK _ M signals may be externally connected to 50-ohm resistors and grounded, respectively, on a fixture such as a production line. And after the adjusted chip or module to be tested is electrified, the chip or module to be tested is started normally. Further, the terminal may detect a state parameter of the ground line corresponding to each clock signal of the PCIE _ CLK _ REQ, REF _ CLK _ P, and REF _ CLK _ M. And determining that the link corresponding to the PCIE _ CLK _ REQ signal is successfully connected under the condition that the terminal detects that the state parameter of the grounding line corresponding to the PCIE _ CLK _ REQ signal is in a low level state. In the case where the terminal detects that the state parameter of the ground line corresponding to REF _ CLK _ M is in a high impedance state, it is determined that the link connection corresponding to the REF _ CLK _ M signal has failed. Therefore, the PCIE network card equipment is completely simulated by using the register configuration and adjusting the resistance value of the hardware, all signals of the chip or the PCIE can be completely tested, including data signals, clocks and reference clock signals, the verification of hardware paths of all signals is realized, and the test efficiency of the production chip is effectively improved.
It should be understood that although the various steps in the flow charts of fig. 1-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 6, there is provided an interface signal loop test apparatus, including: a sending module 602 and a determining module 604, wherein:
the sending module 602 is configured to send an inquiry instruction to a powered chip to be tested, where the chip to be tested is in a low level state.
A determining module 604, configured to determine that a signal channel corresponding to a chip to be tested is successfully connected when receiving a status parameter returned by the chip to be tested; and under the condition that the return state parameters of the chip to be tested are not received, determining that the connection of the signal channel corresponding to the chip to be tested fails.
In one embodiment, the apparatus further comprises: and a detection module.
The detection module is used for detecting the state parameters of the grounding line corresponding to each clock signal; determining that the link corresponding to the clock signal is successfully connected under the condition that the state parameter of the grounding line is detected to be in a low level state; and under the condition that the state parameter of the grounding line is detected to be in a high-impedance state, determining that the link connection corresponding to the clock signal fails.
In one embodiment, as shown in fig. 7, there is provided an interface signal loop test apparatus, including: a setting module 702, a sending module 704, and a determining module 706, wherein:
the setting module 702 is configured to perform a low level setting operation on a pin corresponding to each clock signal channel of a chip to be tested, and then perform a power-on operation on the chip to be tested.
The sending module 704 is configured to send a query instruction to the chip to be tested.
A determining module 706, configured to determine that a signal channel corresponding to the chip to be tested is successfully connected when receiving the status parameter returned by the chip to be tested; and under the condition that the return state parameters of the chip to be tested are not received, determining that the connection of the signal channel corresponding to the chip to be tested fails.
In one embodiment, the apparatus further comprises: and connecting the modules.
The connecting module is used for externally connecting a resistor with a preset numerical value to each clock signal channel and performing grounding connection operation on a pin corresponding to each clock signal channel.
In one embodiment, the apparatus further comprises: and a detection module.
The detection module is used for detecting the state parameters of the grounding line corresponding to each clock signal; determining that the link corresponding to the clock signal is successfully connected under the condition that the state parameter of the grounding line is detected to be in a low level state; and under the condition that the state parameter of the grounding line is detected to be in a high-impedance state, determining that the link connection corresponding to the clock signal fails.
For specific definition of the interface signal loop test apparatus, reference may be made to the above definition of the interface signal loop test method, which is not described herein again. All or part of each module in the interface signal loopback testing device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method for testing a loop back of an interface signal. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the steps of the above-described method embodiments being implemented when the computer program is executed by the processor.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An interface signal loopback test method, the method comprising:
sending a query instruction to a powered chip to be tested; the chip to be tested is in a low level state;
under the condition of receiving the state parameter returned by the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected;
and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
2. The method of claim 1, wherein the signal channels corresponding to the chips under test comprise a data signal channel and a clock signal channel.
3. The method of claim 1, wherein after sending the query command to the powered-up chip under test, the method further comprises:
detecting the state parameter of the grounding line corresponding to each clock signal;
determining that the link corresponding to the clock signal is successfully connected under the condition that the state parameter of the grounding line is detected to be in a low level state;
and determining that the link connection corresponding to the clock signal fails under the condition that the state parameter of the grounding line is detected to be in a high-impedance state.
4. An interface signal loopback test method, the method comprising:
carrying out low level setting operation on a pin corresponding to each clock signal channel of a chip to be tested, and then carrying out power-on operation on the chip to be tested;
sending a query instruction to the chip to be tested;
under the condition of receiving the state parameter returned by the chip to be tested, determining that the signal channel corresponding to the chip to be tested is successfully connected;
and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
5. The method of claim 4, wherein the performing a low setting operation on the pin of each clock signal channel of the chip under test comprises:
each clock signal channel is externally connected with a resistor with a preset numerical value;
and carrying out grounding connection operation on the corresponding pin of each clock signal channel.
6. The method of claim 5, wherein after sending the query instruction to the chip under test, the method further comprises:
detecting the state parameter of the grounding line corresponding to each clock signal;
determining that the link corresponding to the clock signal is successfully connected under the condition that the state parameter of the grounding line is detected to be in a low level state;
and determining that the link connection corresponding to the clock signal fails under the condition that the state parameter of the grounding line is detected to be in a high-impedance state.
7. An interface signal loopback test device, the device comprising:
the sending module is used for sending a query instruction to the electrified chip to be tested; the chip to be tested is in a low level state;
the determining module is used for determining that the signal channel corresponding to the chip to be tested is successfully connected under the condition of receiving the state parameter returned by the chip to be tested; and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
8. An interface signal loopback test device, the device comprising:
the device comprises a setting module, a power-on module and a power-on module, wherein the setting module is used for carrying out low-level setting operation on pins corresponding to each clock signal channel of a chip to be tested and then carrying out power-on operation on the chip to be tested;
the sending module is used for sending a query instruction to the chip to be tested;
the determining module is used for determining that the signal channel corresponding to the chip to be tested is successfully connected under the condition of receiving the state parameter returned by the chip to be tested; and determining that the connection of the signal channel corresponding to the chip to be tested fails under the condition that the return state parameter of the chip to be tested is not received.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202011221490.XA 2020-11-05 2020-11-05 Interface signal loopback test method, device, computer equipment and storage medium Active CN112269120B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011221490.XA CN112269120B (en) 2020-11-05 2020-11-05 Interface signal loopback test method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011221490.XA CN112269120B (en) 2020-11-05 2020-11-05 Interface signal loopback test method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112269120A true CN112269120A (en) 2021-01-26
CN112269120B CN112269120B (en) 2024-12-13

Family

ID=74346109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011221490.XA Active CN112269120B (en) 2020-11-05 2020-11-05 Interface signal loopback test method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112269120B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014339A (en) * 2021-02-20 2021-06-22 山东英信计算机技术有限公司 Quality test method, device and equipment for PCIe external plug-in card receiving channel
CN113297020A (en) * 2021-05-20 2021-08-24 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for testing hardware module in chip and readable storage medium
CN113960502A (en) * 2021-09-15 2022-01-21 中国航空工业集团公司西安飞机设计研究所 State detection method for universal EWIS electric connector
CN115242681A (en) * 2022-09-20 2022-10-25 苏州浪潮智能科技有限公司 A test system, method, device and storage medium for an in-chip communication module
CN117172202A (en) * 2023-09-05 2023-12-05 苏州异格技术有限公司 Core particle self-checking and inter-core particle communication recovery method and device
CN117639973A (en) * 2023-12-12 2024-03-01 广州润芯信息技术有限公司 Method, system and device for testing transceiver chip
CN118055051A (en) * 2022-11-16 2024-05-17 宁畅信息产业(北京)有限公司 Interface communication rate detection control method, device, equipment and medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4064486A (en) * 1975-05-29 1977-12-20 Burroughs Corporation Data communications loop synchronizer
JPH10260907A (en) * 1997-03-19 1998-09-29 Fujitsu Ltd Bus interface method and bus interface diagnostic method
JP2001004683A (en) * 1999-06-21 2001-01-12 Toshiba Corp Self-inspecting device
KR20020069454A (en) * 2001-02-26 2002-09-04 삼성전자 주식회사 Apparatus for loop back test in interface port
US20040044928A1 (en) * 2002-09-04 2004-03-04 Der-Shyong Chang Test device and method for information transmission interfaces
JP2009300126A (en) * 2008-06-11 2009-12-24 Fujitsu Microelectronics Ltd Test method for device under test
US20100327877A1 (en) * 2009-06-24 2010-12-30 Hynix Semiconductor Inc. Radio frequency identification (rfid) device and method for testing the same
CN104202208A (en) * 2014-08-04 2014-12-10 上海斐讯数据通信技术有限公司 A test fixture for a loopback function of a communication terminal
CN104407954A (en) * 2014-11-24 2015-03-11 深圳市振邦智能科技有限公司 Method for detecting I/O (input/output) interface faults in MCU (microprogrammed control unit)
CN107599656A (en) * 2017-10-11 2018-01-19 珠海奔图电子有限公司 Chip and its installation detection method, replaceable unit and image processing system
US20180088176A1 (en) * 2016-09-27 2018-03-29 Samsung Electronics Co., Ltd. Sequential circuit, scan chain circuit including the same and integrated circuit including the same
US20180164374A1 (en) * 2016-12-13 2018-06-14 Via Technologies, Inc. Interface chip and test method therefor
CN110554298A (en) * 2019-08-27 2019-12-10 江苏芯盛智能科技有限公司 Chip and chip testing method
JP2020077171A (en) * 2018-11-07 2020-05-21 株式会社デンソー Electronic control device
CN111726818A (en) * 2019-03-19 2020-09-29 深圳市广和通无线股份有限公司 Wireless chip testing method and device, computer equipment and storage medium
CN111766509A (en) * 2020-09-02 2020-10-13 深圳芯邦科技股份有限公司 Chip testing method and related equipment

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4064486A (en) * 1975-05-29 1977-12-20 Burroughs Corporation Data communications loop synchronizer
JPH10260907A (en) * 1997-03-19 1998-09-29 Fujitsu Ltd Bus interface method and bus interface diagnostic method
JP2001004683A (en) * 1999-06-21 2001-01-12 Toshiba Corp Self-inspecting device
KR20020069454A (en) * 2001-02-26 2002-09-04 삼성전자 주식회사 Apparatus for loop back test in interface port
US20040044928A1 (en) * 2002-09-04 2004-03-04 Der-Shyong Chang Test device and method for information transmission interfaces
JP2009300126A (en) * 2008-06-11 2009-12-24 Fujitsu Microelectronics Ltd Test method for device under test
US20100327877A1 (en) * 2009-06-24 2010-12-30 Hynix Semiconductor Inc. Radio frequency identification (rfid) device and method for testing the same
CN104202208A (en) * 2014-08-04 2014-12-10 上海斐讯数据通信技术有限公司 A test fixture for a loopback function of a communication terminal
CN104407954A (en) * 2014-11-24 2015-03-11 深圳市振邦智能科技有限公司 Method for detecting I/O (input/output) interface faults in MCU (microprogrammed control unit)
US20180088176A1 (en) * 2016-09-27 2018-03-29 Samsung Electronics Co., Ltd. Sequential circuit, scan chain circuit including the same and integrated circuit including the same
US20180164374A1 (en) * 2016-12-13 2018-06-14 Via Technologies, Inc. Interface chip and test method therefor
CN107599656A (en) * 2017-10-11 2018-01-19 珠海奔图电子有限公司 Chip and its installation detection method, replaceable unit and image processing system
JP2020077171A (en) * 2018-11-07 2020-05-21 株式会社デンソー Electronic control device
CN111726818A (en) * 2019-03-19 2020-09-29 深圳市广和通无线股份有限公司 Wireless chip testing method and device, computer equipment and storage medium
CN110554298A (en) * 2019-08-27 2019-12-10 江苏芯盛智能科技有限公司 Chip and chip testing method
CN111766509A (en) * 2020-09-02 2020-10-13 深圳芯邦科技股份有限公司 Chip testing method and related equipment

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
TAKASAKA SHIGEHIRO* 等: "Development of an Optical Phase-Locked Loop for 1-THz Optical Beat Signal Generation", 《FURUKAWA REVIEW》, 31 December 2008 (2008-12-31), pages 6 - 11 *
杨利水 等: "《继电保护及自动装置的检验与调试》", 28 February 2006, 中国电力出版社, pages: 158 - 159 *
潘莹玉: "《电力通信设备》", 30 June 2003, 中国电力出版, pages: 88 - 90 *
鞠婧: "光传送网设备多业务接口板的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 May 2016 (2016-05-15), pages 136 - 241 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014339A (en) * 2021-02-20 2021-06-22 山东英信计算机技术有限公司 Quality test method, device and equipment for PCIe external plug-in card receiving channel
CN113297020A (en) * 2021-05-20 2021-08-24 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for testing hardware module in chip and readable storage medium
CN113960502A (en) * 2021-09-15 2022-01-21 中国航空工业集团公司西安飞机设计研究所 State detection method for universal EWIS electric connector
CN115242681A (en) * 2022-09-20 2022-10-25 苏州浪潮智能科技有限公司 A test system, method, device and storage medium for an in-chip communication module
CN118055051A (en) * 2022-11-16 2024-05-17 宁畅信息产业(北京)有限公司 Interface communication rate detection control method, device, equipment and medium
CN117172202A (en) * 2023-09-05 2023-12-05 苏州异格技术有限公司 Core particle self-checking and inter-core particle communication recovery method and device
CN117172202B (en) * 2023-09-05 2024-05-07 苏州异格技术有限公司 Core particle self-checking and inter-core particle communication recovery method and device
CN117639973A (en) * 2023-12-12 2024-03-01 广州润芯信息技术有限公司 Method, system and device for testing transceiver chip

Also Published As

Publication number Publication date
CN112269120B (en) 2024-12-13

Similar Documents

Publication Publication Date Title
CN112269120B (en) Interface signal loopback test method, device, computer equipment and storage medium
EP2158495B1 (en) Integrated circuit with self-test feature for validating functionality of external interfaces
US10929260B2 (en) Traffic capture and debugging tools for identifying root causes of device failure during automated testing
US11828787B2 (en) Eye diagram capture test during production
CN104516798B (en) Wireless one-to-many test system
US7484188B2 (en) On-chip test circuit and method for testing of system-on-chip (SOC) integrated circuits
US10175296B2 (en) Testing a board assembly using test cards
US10346265B2 (en) Protocol aware testing engine for high speed link integrity testing
CN109428778B (en) Mainboard network connectivity test method and device
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
CN111290891B (en) Computer system and method for testing computer system
US7650540B2 (en) Detecting and differentiating SATA loopback modes
CN113254284A (en) Chip testing method, device, equipment, storage medium and program product
CN106598639A (en) Upgrading method and system for logic chip
CN102222056A (en) Electronic equipment with embedded system
CN116820856A (en) A PCIe link detection expansion board, method, terminal and storage medium
US8391162B2 (en) Apparatus and method for testing SMNP cards
US9158609B2 (en) Universal serial bus testing device
US7289925B2 (en) Systems and methods for assessing timing of PCI signals
CN101071394A (en) Inter-board transparent transmission bus test device and method
TWI704361B (en) An automated circuit board test system and a method thereof
CN104753613A (en) Serial port communication testing device and testing method
Chakraborty et al. A practical approach to comprehensive system test & debug using boundary scan based test architecture
CN117910401B (en) Method, apparatus, device, storage medium and program product for configuring operation mode
TW202439146A (en) Electronic device debug method

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
GR01 Patent grant
GR01 Patent grant