A method, apparatus, device and medium for testing an integrated circuit bus

By receiving and classifying the test data from the master end at the slave end, generating timing signals, and detecting waveform changes, the complexity of IIC interface testing is solved, and the testing effect is simplified.

CN116881060BActive Publication Date: 2026-11-27INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310943840.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2026-11-27
Estimated Expiration
2043-07-28

AI Technical Summary

Technical Problem

In existing technologies, testing the IIC interface requires a one-to-one connection between the logic analyzer and the functional test line, resulting in high testing complexity.

Method used

By receiving the test data sent by the master unit at the slave end, classifying and matching the addresses, generating timing signals, detecting waveform changes, and determining the signal type, the test complexity is reduced.

Benefits of technology

The elimination of the need for one-to-one connection to test equipment simplifies the testing process of the IIC interface and reduces testing complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116881060B_ABST
    Figure CN116881060B_ABST
Patent Text Reader

Abstract

The application discloses a kind of integrated circuit bus test method, device, equipment and medium, it is related to computer test technical field.The method comprises the following steps: receiving the test data sent by host end through integrated circuit bus;Test data is classified to obtain classification result;Wherein, each integrated circuit bus sends multiple test data of same type;According to classification result, address matching is carried out, and matching result is obtained;According to matching result, the test result of integrated circuit bus is determined;Wherein, test data classification comprises: detecting the waveform corresponding to test data;When waveform is always fixed level value, determine the test data corresponding to waveform as first signal and / or second signal.Because slave end can classify test data, at this time, it is not necessary to connect each IIC interface one-to-one for testing logic analyzer and functional test line to test, at this time, avoid connecting multiple test equipment, and reduce the test complexity of IIC interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer testing technology, and in particular to a testing method, apparatus, device, and medium for an integrated circuit bus. Background Technology

[0002] As computer motherboards require increasingly more functions, the number of Inter-Integrated Circuit (IIC) buses used to transmit data for these functions is also growing. These IIC buses can be referred to as IIC interfaces or IIC buses. Functional testing of the IIC interface primarily involves testing the serial data signal (SDA signal) and the serial clock signal (SCL signal). Additionally, the DC signal (VCC) and the ground signal (GND) can also be tested.

[0003] The existing method for testing IIC interfaces is that each IIC interface needs to be connected one-to-one with a logic analyzer and functional test lines for testing. This results in too many logic analyzers and functional test lines connected to all IIC interfaces, making the testing of IIC interfaces complicated.

[0004] Given the aforementioned problems, finding ways to avoid connecting multiple test devices and reduce the testing complexity of the IIC interface is a problem that those skilled in the art are striving to solve. Summary of the Invention

[0005] The purpose of this invention is to provide a testing method, apparatus, device, and medium for integrated circuit buses, which solves the problem of the complexity of IIC interface testing caused by the requirement of one-to-one connection between the logic analyzer and functional test lines used for testing.

[0006] To address the aforementioned technical problems, this invention provides a testing method for an integrated circuit bus, applied to the slave end, the method comprising:

[0007] Receive the test data sent by the host via the integrated circuit bus;

[0008] The test data is classified to obtain classification results; each integrated circuit bus sends multiple test data of the same type.

[0009] The address is matched based on the classification results to obtain the matching results;

[0010] The test results for the integrated circuit bus are determined based on the matching results;

[0011] The classification of the test data includes:

[0012] Detect the waveform corresponding to the test data;

[0013] When the waveform remains at a fixed level, the test data corresponding to the waveform is determined to be the first signal and / or the second signal.

[0014] On the other hand, the classification of the test data includes:

[0015] Receive the test trigger command;

[0016] Generate timing signals according to the test instructions;

[0017] Based on time-series signals, detect the waveform corresponding to the test data;

[0018] The test data corresponding to the waveform is determined as the third signal and / or the fourth signal based on the order of the waveform's level changes.

[0019] On the other hand, determining that the test data corresponding to the waveform is the first signal and / or the second signal includes:

[0020] When the waveform is a fixed high level value, the test data corresponding to the waveform is determined as the first signal;

[0021] When the waveform is a fixed low level value, the test data corresponding to the waveform is determined as the second signal.

[0022] On the other hand, determining the test data corresponding to the waveform as the third and / or fourth signal based on the order of changes in the waveform's level values ​​includes:

[0023] When the waveform changes from a low level to a high level in the first timing sequence, the test data corresponding to the waveform is determined to be the third signal.

[0024] When the waveform changes from a low level to a high level in the second timing sequence, the test data corresponding to the waveform is determined to be the fourth signal; wherein, the first timing sequence is shorter than the second timing sequence.

[0025] On the other hand, determining the test results for the integrated circuit bus based on the matching results includes:

[0026] When the matching result is successful, the test result is determined to be successful when the third signal is kept at a low level by the preset rising edge of the detection timing signal.

[0027] If the matching result is unsuccessful, the test result is determined to be a test failure when the preset falling edge of the timing signal is detected.

[0028] On the other hand, when the test data includes serial data signals, serial clock signals, DC signals, and ground signals, the classification results obtained from classifying the test data include:

[0029] The corresponding waveforms are generated based on the test data, including serial data signal waveforms, serial clock signal waveforms, DC signal waveforms, and ground signal waveforms.

[0030] When the waveform remains at a fixed high level, it is determined that the waveform is a DC signal waveform, and the classification result of the corresponding test data is determined to be a DC signal.

[0031] When the waveform remains at a fixed low level, it is determined that the waveform is a ground signal waveform, and the classification result of the corresponding test data is determined to be a ground signal.

[0032] After determining the DC signal and the ground signal, the following is also included:

[0033] Receive the test trigger command;

[0034] Generate timing signals according to the test instructions;

[0035] Based on timing signals, when the waveform changes from a low level to a high level in the first timing sequence, the waveform is determined to be a serial data signal waveform, and the classification result of the corresponding test data is determined to be a serial data signal.

[0036] Based on the timing signal, when the waveform changes from a low level to a high level in the second timing sequence, the waveform is determined to be a serial clock signal waveform, and the classification result of the corresponding test data is determined to be a serial clock signal; wherein, the first timing sequence is less than the second timing sequence.

[0037] To address the aforementioned technical problems, this invention also provides a testing method for an integrated circuit bus, applied to the host side, the method comprising:

[0038] Test data is sent to the slave device via an integrated circuit bus to classify the test data and obtain classification results. Each integrated circuit bus sends multiple test data of the same type, and address matching is performed based on the classification results to obtain matching results. The test results for the integrated circuit bus are then determined based on the matching results. Classification of the test data includes: detecting the waveform corresponding to the test data; if the waveform remains at a fixed level, the test data corresponding to the waveform is determined to be a first signal and / or a second signal.

[0039] To address the aforementioned technical problems, the present invention also provides a testing device for an integrated circuit bus, applied to the slave end, the device comprising:

[0040] The first receiving module is used to receive the test data sent by the host through the integrated circuit bus;

[0041] The classification module is used to classify the test data and obtain the classification results; each integrated circuit bus sends multiple test data of the same type.

[0042] The matching module is used to match addresses based on the classification results and obtain the matching results.

[0043] The first determining module is used to determine the test results of the integrated circuit bus based on the matching results.

[0044] The classification of the test data includes:

[0045] The first detection module is used to detect the waveform corresponding to the test data;

[0046] The second determining module is used to determine the test data corresponding to the waveform as a first signal and / or a second signal when the waveform is always at a fixed level value.

[0047] In addition, the device also includes the following modules:

[0048] On the other hand, the classification of the test data includes:

[0049] The second receiving module is used to receive test trigger commands;

[0050] The first generation module is used to generate timing signals according to test instructions;

[0051] The second detection module is used to detect the waveform corresponding to the test data based on the time-series signal;

[0052] The third determination module is used to determine the test data corresponding to the waveform as the third signal and / or the fourth signal based on the order of the waveform's level value changes.

[0053] On the other hand, determining that the test data corresponding to the waveform is the first signal and / or the second signal includes:

[0054] The fourth determination module is used to determine the test data corresponding to the waveform as the first signal when the waveform is a fixed high level value;

[0055] The fifth determination module is used to determine the test data corresponding to the waveform as the second signal when the waveform is a fixed low level value.

[0056] On the other hand, determining the test data corresponding to the waveform as the third and / or fourth signal based on the order of changes in the waveform's level values ​​includes:

[0057] The sixth determination module is used to determine the test data corresponding to the waveform as the third signal when the waveform changes from a low level value to a high level value in the first timing sequence.

[0058] The seventh determination module is used to determine the test data corresponding to the waveform as the fourth signal when the waveform changes from a low level value to a high level value in the second timing sequence; wherein, the first timing sequence is shorter than the second timing sequence.

[0059] On the other hand, determining the test results for the integrated circuit bus based on the matching results includes:

[0060] The first detection and determination module is used to determine the test result as successful when the third signal is kept at a low level during the preset rising edge of the detection timing signal if the matching result is successful.

[0061] The second detection and determination module is used to determine the test result as a test failure when the preset falling edge of the timing signal is detected, if the matching result is a failed match.

[0062] On the other hand, when the test data includes serial data signals, serial clock signals, DC signals, and ground signals, the classification results obtained from classifying the test data include:

[0063] The second generation module is used to generate corresponding waveforms based on the test data. The waveforms include serial data signal waveforms, serial clock signal waveforms, DC signal waveforms, and ground signal waveforms.

[0064] The eighth determination module is used to determine that the waveform is a DC signal waveform when the waveform is always at a fixed high level, and to determine that the classification result of the corresponding test data is a DC signal.

[0065] The ninth determination module is used to determine that when the waveform is always a fixed low level value, the waveform is a ground signal waveform, and the classification result of the corresponding test data is a ground signal.

[0066] After determining the DC signal and the ground signal, the following is also included:

[0067] The third receiving module is used to receive test trigger commands;

[0068] The third generation module is used to generate timing signals according to test instructions;

[0069] The tenth determination module is used to determine, based on the timing signal, that when the waveform changes from a low level value to a high level value in the first timing sequence, the waveform is a serial data signal waveform, and the classification result of the corresponding test data is determined to be a serial data signal.

[0070] The eleventh determination module is used to determine, based on the timing signal, that when the waveform changes from a low level to a high level in the second timing sequence, the waveform is a serial clock signal waveform, and the classification result of the corresponding test data is determined to be a serial clock signal; wherein, the first timing sequence is less than the second timing sequence.

[0071] To address the aforementioned technical problems, the present invention also provides a testing device for an integrated circuit bus, applied to a host side, the device comprising:

[0072] The transmitting module is used to transmit test data to the slave device via the integrated circuit bus, so that the slave device can classify the test data and obtain a classification result. Each integrated circuit bus transmits multiple test data of the same type, performs address matching based on the classification result, obtains a matching result, and determines the test result for the integrated circuit bus based on the matching result. The classification of the test data includes: detecting the waveform corresponding to the test data; when the waveform remains at a fixed level, determining that the test data corresponding to the waveform is a first signal and / or a second signal.

[0073] To address the aforementioned technical problems, the present invention also provides a testing device for an integrated circuit bus, comprising:

[0074] Memory, used to store computer programs;

[0075] A processor is used to direct computer programs to implement the steps of testing methods for integrated circuit buses.

[0076] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the aforementioned test method for all integrated circuit buses.

[0077] This invention provides a testing method for an integrated circuit bus, applied to a slave device. The method includes: receiving test data sent by a master device through the integrated circuit bus; classifying the test data to obtain classification results; wherein each integrated circuit bus sends multiple test data of the same type; performing address matching based on the classification results to obtain matching results; and determining the test result for the integrated circuit bus based on the matching results. The classification of the test data includes: detecting the waveform corresponding to the test data; and determining that the test data corresponding to the waveform is a first signal and / or a second signal when the waveform is consistently at a fixed level. Since the slave device can classify the test data, it is unnecessary to connect each IIC interface one-to-one to a logic analyzer and functional test lines for testing. This avoids connecting multiple test devices and reduces the testing complexity of the IIC interfaces.

[0078] The present invention also provides a test device, equipment and medium for integrated circuit buses, with the same effect as above. Attached Figure Description

[0079] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0080] Figure 1 This is a flowchart of a test method for an integrated circuit bus provided in an embodiment of the present invention;

[0081] Figure 2 This is a structural diagram of a test device for an integrated circuit bus provided in an embodiment of the present invention;

[0082] Figure 3 This is a structural diagram of a test device for an integrated circuit bus provided in an embodiment of the present invention. Detailed Implementation

[0083] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0084] The core of this invention is to provide a testing method, apparatus, device, and medium for integrated circuit buses, which can avoid connecting multiple testing devices and reduce the testing complexity of the IIC interface.

[0085] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0086] Figure 1 This is a flowchart of a test method for an integrated circuit bus provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the test method for this integrated circuit bus, applied to the slave end, includes:

[0087] S10: Receive the test data sent by the host through the integrated circuit bus;

[0088] S11: Classify the test data to obtain classification results; wherein, each integrated circuit bus sends multiple test data of the same type;

[0089] S12: Perform address matching based on the classification results to obtain the matching results;

[0090] S13: Determine the test results for the integrated circuit bus based on the matching results;

[0091] The classification of the test data includes:

[0092] Detect the waveform corresponding to the test data;

[0093] When the waveform remains at a fixed level, the test data corresponding to the waveform is determined to be the first signal and / or the second signal.

[0094] It should be noted that in this embodiment, the slave device can be understood as a test fixture for testing the integrated circuit bus, and the master device can be understood as a server equipped with an integrated circuit bus. The test data is categorized within the test fixture. At this point, it is not necessary to concern oneself with which type of data the interface used to transmit the test data is suitable for; only the normal connection between the server and the test fixture needs to be ensured. Correspondingly, when the type of test data is not important, the number of interfaces on the server used for data transmission can be reduced. For example, the original 50 interfaces can be reduced to 10 interfaces. The original 50 interfaces each transmitted 50 sets of data. When reducing the number of server interfaces, the 50 sets of data are categorized, resulting in n categorization structures, where n is less than 10. This allows data of the same type to be grouped together, and the grouped data of the same type is transmitted through a single interface. This avoids connecting multiple test devices and reduces the testing complexity of the IIC interface.

[0095] When the test data is classified into four types, they are represented by the first signal, the second signal, the third signal, and the fourth signal, respectively. The detection of the four signals is as follows:

[0096] Detect the waveform corresponding to the test data;

[0097] When the waveform remains at a fixed level, the test data corresponding to the waveform is determined to be the first signal and / or the second signal.

[0098] When the waveform is a fixed high level value, the test data corresponding to the waveform is determined as the first signal;

[0099] When the waveform is a fixed low level value, the test data corresponding to the waveform is determined as the second signal.

[0100] Additionally, receive test trigger commands;

[0101] Generate timing signals according to the test instructions;

[0102] Based on time-series signals, detect the waveform corresponding to the test data;

[0103] The test data corresponding to the waveform is determined as the third signal and / or the fourth signal based on the order of the waveform's level changes.

[0104] When the waveform changes from a low level to a high level in the first timing sequence, the test data corresponding to the waveform is determined to be the third signal.

[0105] When the waveform changes from a low level to a high level in the second timing sequence, the test data corresponding to the waveform is determined to be the fourth signal; wherein, the first timing sequence is shorter than the second timing sequence.

[0106] It is understandable that time series signals can be used as a benchmark for data analysis. The time points from which the time series signals are output can be sequentially referred to as the i-th time series, where i gradually increases with a step value of 1.

[0107] In some embodiments, determining the test results for the integrated circuit bus based on the matching results includes:

[0108] When the matching result is successful, the test result is determined to be successful when the third signal is kept at a low level during the preset rising edge of the detection timing signal. The preset rising edge is generally set to the 9th rising edge of the timing signal, and the third signal is at a low level during the rising edge period.

[0109] Additionally, a notification signal indicating successful test can be output upon successful test.

[0110] If the matching result is unsuccessful, the test result is determined to be a test failure when the preset falling edge of the timing signal is detected; the preset falling edge is generally set to the 10th falling edge of the timing signal.

[0111] Additionally, an alarm signal indicating a successful test can be output when the test fails.

[0112] Based on the above embodiments, as a more preferred embodiment, when the four types of test data include serial data signals, serial clock signals, DC signals, and ground signals, the classification results obtained by classifying the test data include:

[0113] The corresponding waveforms are generated based on the test data, including serial data signal waveforms, serial clock signal waveforms, DC signal waveforms, and ground signal waveforms.

[0114] When the waveform remains at a fixed high level, it is determined that the waveform is a DC signal waveform, and the classification result of the corresponding test data is determined to be a DC signal.

[0115] When the waveform remains at a fixed low level, it is determined that the waveform is a ground signal waveform, and the classification result of the corresponding test data is determined to be a ground signal.

[0116] After determining the DC signal and the ground signal, the following is also included:

[0117] Receive the test trigger command;

[0118] Generate timing signals according to the test instructions;

[0119] Based on timing signals, when the waveform changes from a low level to a high level in the first timing sequence, the waveform is determined to be a serial data signal waveform, and the classification result of the corresponding test data is determined to be a serial data signal.

[0120] Based on the timing signal, when the waveform changes from a low level to a high level in the second timing sequence, the waveform is determined to be a serial clock signal waveform, and the classification result of the corresponding test data is determined to be a serial clock signal; wherein, the first timing sequence is less than the second timing sequence.

[0121] Additionally, it is understood that this invention also provides a testing method for an integrated circuit bus, applied to the host side. The method includes: sending test data to the slave side via the integrated circuit bus; enabling the slave side to classify the test data and obtain classification results; wherein each integrated circuit bus sends multiple test data of the same type, performs address matching based on the classification results, obtains matching results, and determines the test result for the integrated circuit bus based on the matching results. This also avoids connecting multiple test devices, reducing the testing complexity of the IIC interface.

[0122] In the above embodiments, the testing method for integrated circuit buses has been described in detail. This invention also provides embodiments corresponding to the testing apparatus for integrated circuit buses. It should be noted that this invention describes the apparatus embodiments from two perspectives: one based on functional modules, and the other based on hardware.

[0123] Figure 2 This is a structural diagram of a test device for an integrated circuit bus provided in an embodiment of the present invention, as shown below. Figure 2 As shown, the present invention also provides a test device for an integrated circuit bus, applied to the slave end, the device comprising:

[0124] The first receiving module 20 is used to receive the test data sent by the host end through the integrated circuit bus;

[0125] Classification module 21 is used to classify the test data to obtain classification results; wherein, each integrated circuit bus sends multiple test data of the same type;

[0126] Matching module 22 is used to perform address matching based on the classification results to obtain the matching results;

[0127] The first determining module 23 is used to determine the test results of the integrated circuit bus based on the matching results;

[0128] The classification of the test data includes:

[0129] The first detection module is used to detect the waveform corresponding to the test data;

[0130] The second determining module is used to determine the test data corresponding to the waveform as a first signal and / or a second signal when the waveform is always at a fixed level value.

[0131] In addition, the device also includes the following modules:

[0132] In some embodiments, classifying the test data includes:

[0133] The second receiving module is used to receive test trigger commands;

[0134] The first generation module is used to generate timing signals according to test instructions;

[0135] The second detection module is used to detect the waveform corresponding to the test data based on the time-series signal;

[0136] The third determination module is used to determine the test data corresponding to the waveform as the third signal and / or the fourth signal based on the order of the waveform's level value changes.

[0137] In some embodiments, determining that the test data corresponding to the waveform is a first signal and / or a second signal includes:

[0138] The fourth determination module is used to determine the test data corresponding to the waveform as the first signal when the waveform is a fixed high level value;

[0139] The fifth determination module is used to determine the test data corresponding to the waveform as the second signal when the waveform is a fixed low level value.

[0140] In some embodiments, determining the test data corresponding to the waveform as a third signal and / or a fourth signal based on the order of changes in the waveform's level values ​​includes:

[0141] The sixth determination module is used to determine the test data corresponding to the waveform as the third signal when the waveform changes from a low level value to a high level value in the first timing sequence.

[0142] The seventh determination module is used to determine the test data corresponding to the waveform as the fourth signal when the waveform changes from a low level value to a high level value in the second timing sequence; wherein, the first timing sequence is shorter than the second timing sequence.

[0143] In some embodiments, determining the test results for the integrated circuit bus based on the matching results includes:

[0144] The first detection and determination module is used to determine the test result as successful when the third signal is kept at a low level during the preset rising edge of the detection timing signal if the matching result is successful.

[0145] The second detection and determination module is used to determine the test result as a test failure when the preset falling edge of the timing signal is detected, if the matching result is a failed match.

[0146] In some embodiments, when the test data includes serial data signals, serial clock signals, DC signals, and ground signals, the classification results obtained by classifying the test data include:

[0147] The second generation module is used to generate corresponding waveforms based on the test data. The waveforms include serial data signal waveforms, serial clock signal waveforms, DC signal waveforms, and ground signal waveforms.

[0148] The eighth determination module is used to determine that the waveform is a DC signal waveform when the waveform is always at a fixed high level, and to determine that the classification result of the corresponding test data is a DC signal.

[0149] The ninth determination module is used to determine that when the waveform is always a fixed low level value, the waveform is a ground signal waveform, and the classification result of the corresponding test data is a ground signal.

[0150] After determining the DC signal and the ground signal, the following is also included:

[0151] The third receiving module is used to receive test trigger commands;

[0152] The third generation module is used to generate timing signals according to test instructions;

[0153] The tenth determination module is used to determine, based on the timing signal, that when the waveform changes from a low level value to a high level value in the first timing sequence, the waveform is a serial data signal waveform, and the classification result of the corresponding test data is determined to be a serial data signal.

[0154] The eleventh determination module is used to determine, based on the timing signal, that when the waveform changes from a low level to a high level in the second timing sequence, the waveform is a serial clock signal waveform, and the classification result of the corresponding test data is determined to be a serial clock signal; wherein, the first timing sequence is less than the second timing sequence.

[0155] In addition, the present invention also provides another integrated circuit bus testing device, applied to the host side, the device comprising:

[0156] The transmitting module is used to send the test data to the slave end through the integrated circuit bus, so that the slave end can classify the test data and obtain the classification result. Among them, each integrated circuit bus sends multiple test data of the same type, performs address matching according to the classification result, obtains the matching result, and determines the test result of the integrated circuit bus based on the matching result.

[0157] Since the embodiments of the apparatus and the embodiments of the method correspond to each other, please refer to the description of the embodiments of the method for the embodiments of the apparatus, which will not be repeated here.

[0158] Figure 3 This is a structural diagram of a test device for an integrated circuit bus provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the test equipment for the integrated circuit bus includes:

[0159] Memory 30 is used to store computer programs;

[0160] The processor 31 is used to implement the steps of the integrated circuit bus testing method mentioned in the above embodiments when executing a computer program.

[0161] The integrated circuit bus testing equipment provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.

[0162] The processor 31 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 31 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 31 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 31 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 31 may also include an Artificial Intelligence (AI) processor, which is used to handle computational operations related to machine learning.

[0163] The memory 30 may include one or more computer-readable storage media, which may be non-transitory. The memory 30 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 30 is used to store at least the following computer program, which, after being loaded and executed by the processor 31, is capable of implementing the relevant steps of the integrated circuit bus testing method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 30 may also include an operating system and data, and the storage method may be temporary or permanent. The operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, the integrated circuit bus testing method.

[0164] In some embodiments, the test equipment for the integrated circuit bus may further include a display screen, input / output interfaces, communication interfaces, a power supply, and a communication bus.

[0165] Those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the test equipment for the integrated circuit bus and may include more or fewer components than shown.

[0166] The integrated circuit bus testing device provided in this embodiment of the invention includes a memory 30 and a processor 31. When the processor 31 executes the program stored in the memory 30, it can implement the integrated circuit bus testing method.

[0167] Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps described in the above method embodiments (which may be a method corresponding to the host side, a method corresponding to the slave side, or a method corresponding to both the host side and the slave side).

[0168] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.

[0169] The present invention has provided a detailed description of a testing method, apparatus, device, and medium for an integrated circuit bus. The various embodiments in the specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make various improvements and modifications to the present invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

[0170] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A testing method for an integrated circuit bus, characterized in that, Applied to the slave device, the method includes: Receive the test data sent by the host via the integrated circuit bus; The test data is classified to obtain a classification result; wherein, each integrated circuit bus sends multiple test data of the same type, the host summarizes the test data of the same type respectively, and transmits the summarized test data of the same type through an interface; Address matching is performed based on the classification results to obtain the matching results; The test results for the integrated circuit bus are determined based on the matching results; The classification of the tested data includes: Detect the waveform corresponding to the test data; When the waveform remains at a fixed level value, the test data corresponding to the waveform is determined to be a first signal and / or a second signal. Receive the test trigger command; Generate timing signals according to the test instructions; Based on the timing signal, detect the waveform corresponding to the test data; The test data corresponding to the waveform is determined to be the third signal and / or the fourth signal based on the order of the level changes of the waveform. Wherein, determining the tested data corresponding to the waveform as a third signal and / or a fourth signal based on the order of the waveform's level value changes includes: When the waveform changes from a low level value to a high level value in the first timing sequence, the test data corresponding to the waveform is determined to be the third signal; When the waveform changes from a low level to a high level in the second timing sequence, the test data corresponding to the waveform is determined to be the fourth signal; wherein, the first timing sequence is shorter than the second timing sequence. The step of determining the test result for the integrated circuit bus based on the matching result includes: When the matching result is a successful match, if the third signal is kept at a low level by the preset rising edge of the timing signal, the test result is determined to be a successful test. If the matching result is unsuccessful, then when a preset falling edge of the timing signal is detected, the test result is determined to be a test failure.

2. The test method for an integrated circuit bus according to claim 1, characterized in that, Determining that the tested data corresponding to the waveform is a first signal and / or a second signal includes: When the waveform is a fixed high level value, the test data corresponding to the waveform is determined to be the first signal; When the waveform is a fixed low level value, the test data corresponding to the waveform is determined to be the second signal.

3. The test method for an integrated circuit bus according to claim 1, characterized in that, When the test data includes serial data signals, serial clock signals, DC signals, and ground signals, the classification result obtained by classifying the test data includes: Based on the test data, corresponding waveforms are generated, including serial data signal waveforms, serial clock signal waveforms, DC signal waveforms, and ground signal waveforms; When the waveform is always at a fixed high level, the waveform is determined to be the DC signal waveform, and the classification result of the corresponding test data is determined to be the DC signal. When the waveform is always a fixed low level value, the waveform is determined to be the ground signal waveform, and the classification result of the corresponding test data is determined to be the ground signal. After determining the DC signal and the ground signal, the process further includes: Receive the test trigger command; Generate timing signals according to the test instructions; Based on the timing signal, when the waveform changes from a low level value to a high level value in the first timing sequence, the waveform is determined to be the serial data signal waveform, and the classification result of the corresponding test data is determined to be the serial data signal. Based on the timing signal, when the waveform changes from a low level to a high level in the second timing sequence, the waveform is determined to be the serial clock signal waveform, and the classification result of the corresponding test data is determined to be the serial clock signal; wherein, the first timing sequence is less than the second timing sequence.

4. A testing method for an integrated circuit bus, characterized in that, Applied to the host side, the method includes: Test data is sent to the slave device via an integrated circuit bus; the slave device then classifies the test data to obtain a classification result. Each integrated circuit bus sends multiple test data of the same type. The master device summarizes the test data of the same type and transmits the summarized test data through a single interface. Address matching is performed based on the classification result to obtain a matching result. The test result for the integrated circuit bus is determined based on the matching result. The classification of the test data includes: detecting the waveform corresponding to the test data; determining the test data corresponding to the waveform as a first signal and / or a second signal when the waveform is consistently at a fixed level; receiving a test trigger command; generating a timing signal according to the test command; detecting the waveform corresponding to the test data based on the timing signal; and determining the test data corresponding to the waveform as a third signal and / or a fourth signal based on the order of the waveform's level changes. The step of determining the test data corresponding to the waveform as a third signal and / or a fourth signal based on the order of the waveform's level value changes includes: when the waveform changes from a low level value to a high level value in a first timing sequence, determining the test data corresponding to the waveform as the third signal; when the waveform changes from a low level value to a high level value in a second timing sequence, determining the test data corresponding to the waveform as the fourth signal. Wherein, the first timing sequence is less than the second timing sequence; the step of determining the test result of the integrated circuit bus based on the matching result includes: when the matching result is a successful match, the test result is determined to be a successful test when the third signal is kept at a low level by a preset rising edge of the timing signal; when the matching result is a failed match, the test result is determined to be a failed test when the preset falling edge of the timing signal is detected.

5. A testing device for an integrated circuit bus, characterized in that, Applied to the slave end, the device includes: The first receiving module is used to receive the test data sent by the host through the integrated circuit bus; A classification module is used to classify the test data to obtain a classification result; wherein, each integrated circuit bus sends multiple test data of the same type, the host end summarizes the test data of the same type respectively, and transmits the summarized test data of the same type through an interface; The matching module is used to perform address matching based on the classification results to obtain matching results; The first determining module is used to determine the test result of the integrated circuit bus based on the matching result; The classification of the tested data includes: The first detection module is used to detect the waveform corresponding to the test data; The second determining module is used to determine, when the waveform is always at a fixed level value, that the test data corresponding to the waveform is a first signal and / or a second signal; The second receiving module is used to receive test trigger commands; The first generation module is used to generate timing signals according to the test instructions; The second detection module is used to detect the waveform corresponding to the test data based on the timing signal; The third determining module is used to determine, based on the order of the level changes of the waveform, that the test data corresponding to the waveform is a third signal and / or a fourth signal; The third determining module includes: The sixth determining module is used to determine the test data corresponding to the waveform as the third signal when the waveform changes from a low level value to a high level value in the first timing sequence. The seventh determining module is used to determine that the test data corresponding to the waveform is the fourth signal when the waveform changes from a low level value to a high level value in the second timing sequence; wherein the first timing sequence is shorter than the second timing sequence; The first determining module includes: The first detection and determination module is used to determine the test result as successful when the matching result is a successful match, and when the third signal is kept at a low level by the preset rising edge of the timing signal. The second detection and determination module is used to determine the test result as a test failure when the matching result is a failed match and a preset falling edge of the timing signal is detected.

6. A test device for an integrated circuit bus, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the test method for an integrated circuit bus as described in any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the test method for an integrated circuit bus as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • I2C (Inter-Integrated Circuit) bus analysis device

    CN108845967A

  • Server and communication fault processing method and system of I2C bus

    CN111737183A