A method and system for testing a system-on-chip

Through the customization of high-speed serial link architecture and adapter, the signal integrity problem in system-on-chip chip testing is solved, efficient and accurate test excitation vector transmission is achieved, testing efficiency and accuracy are improved, and it is suitable for batch testing.

CN111025134BActive Publication Date: 2024-11-05BEIJING INST OF AUTOMATIC TESTING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911401980.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-30
Publication Date
2024-11-05
Estimated Expiration
2039-12-30

AI Technical Summary

Technical Problem

The existing system-on-chip chip testing methods have signal integrity problems due to the large number of pins, resulting in limited test frequency and high test costs. The test equipment is prone to exceed the chassis capacity limit, making it difficult to provide the correct excitation vector, resulting in test failure.

Method used

Using a high-speed serial link architecture, the connection is established through a customized adapter, and after diagnosis and calibration, the test excitation vector is obtained one by one and checked, and transmitted to the input pin of the system chip to be tested. The vector is transmitted using full duplex mode to ensure that Signal quality and flexibility in resource allocation.

Benefits of technology

It simplifies the connection between the automatic test equipment and the system-on-chip chip to be tested, improves testing efficiency, ensures the accuracy of test results, and supports batch testing, reducing testing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111025134B_ABST
    Figure CN111025134B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for testing a system-on-chip chip. The method diagnoses and calibrates a first adapter and a second adapter connected based on a high-speed serial link; after the diagnosis and calibration are completed, the test excitation vector and the expected vector of each system-on-chip chip to be tested are obtained one by one through the first adapter, and the test excitation vector is compressed and packaged based on the high-speed serial link and transmitted to the second adapter to obtain the test excitation vector of a certain system-on-chip chip to be tested; the obtained test excitation vector is verified, and if the verification passes, the test excitation vector is correspondingly transmitted to the input pin of the corresponding system-on-chip chip to be tested to complete the test. The method replaces the traditional test cable with a high-speed serial transmission medium, and compresses the test excitation vector after serialization and adds a verification mechanism, so that the mapping of the test excitation vector to the input pin of the system-on-chip chip to be tested is not only fully programmable, but also ensures the accuracy of the test results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for testing a system-on-chip chip, and also relates to a corresponding system-on-chip chip testing system, belonging to the technical field of integrated circuit testing. Background Art

[0002] In recent years, with the development of mobile Internet, system-on-chip has been widely used. From the application requirements and development characteristics of system-on-chip chips, system-on-chip chips are not like traditional integrated circuits. They are no longer a circuit with a single function. System-on-chip chip devices integrate processors, large-capacity storage circuits, user logic and various analog circuits precisely. Especially with the expansion of the application field of system-on-chip chips, system-on-chip chips will integrate more functions, have higher integration and faster speed; therefore, some new requirements for system-on-chip chip testing have emerged, such as: how to meet the increasing and changing test functions of system-on-chip chips; how to solve the increase in test costs caused by the expansion of automatic test equipment functions; how to avoid the obsolescence of test equipment caused by the increasingly shorter system-on-chip chip development cycle.

[0003] Judging from the current mainstream applications, general SoC chips have more than 500 or even thousands of pins. To test such SoC chips, automatic test equipment is required to provide a large number of pin resources, requiring the timing generation module and storage resources to increase exponentially, and more modules must be integrated in the chassis, which can easily exceed the capacity limit of the chassis. For another example, the large number of pin configurations of SoC chips require high-end testers, which greatly increases the testing cost. In addition, the SoC chip test system requires large test resources, and the intensive configuration of resources can easily cause signal integrity problems such as clock jitter, crosstalk, and electromagnetic compatibility (EMI). In severe cases, it is difficult to provide the correct excitation vector, resulting in test failure.

[0004] like Figure 1 As shown in the figure, the traditional test method of the SoC chip is implemented by automatic test equipment (ATE), in which the ATE and the adapter of the SoC chip under test are generally connected by cables. Among them, the device power supply (DPS) provides power for the device under test, and the precision measurement unit (PMU) is used for DC parameter testing. The function test (FT) of the SoC chip is mainly completed by the vector generator and the comparison circuit. However, due to the large number of pins of the SoC chip, signal integrity issues such as mutual interference between cables have become the main reason for limiting the test frequency. Summary of the invention

[0005] The primary technical problem to be solved by the present invention is to provide a method for testing a system-on-chip chip.

[0006] Another technical problem to be solved by the present invention is to provide a test system for a system-on-chip test chip.

[0007] In order to achieve the above object, the present invention adopts the following technical solutions:

[0008] According to a first aspect of an embodiment of the present invention, a method for testing a system-on-chip chip is provided, comprising the following steps:

[0009] Step S1: customizing a first adapter and a second adapter respectively according to specific test requirements of each SoC to be tested, and establishing a connection between the two adapters based on a high-speed serial link;

[0010] Step S2: diagnosing and calibrating the first adapter and the second adapter connected based on the high-speed serial link;

[0011] Step S3: after the diagnostic calibration is completed, the test stimulus vector and the expected vector of each of the system-on-chip chips to be tested are obtained one by one through the first adapter, and the test stimulus vector is compressed and packaged based on the high-speed serial link and then transmitted to the second adapter to obtain the test stimulus vector of a certain system-on-chip chip to be tested;

[0012] Step S4: verifying the obtained test excitation vector. If the verification passes, the test excitation vector is transmitted to the input pin of the corresponding system-on-chip chip to be tested to complete the test.

[0013] Preferably, the first adapter and the second adapter are connected based on the physical layer of the high-speed serial link and in an end-to-end connection mode;

[0014] The physical layer adopts full-duplex mode to transmit vectors, specifically used for transmitting test stimulus vectors from the first adapter to the second adapter, and transmitting response vectors from the second adapter to the first adapter; or used for transmitting test stimulus vectors and expected vectors from the first adapter to the second adapter, and transmitting test results from the second adapter to the first adapter.

[0015] Preferably, step S2 includes the following sub-steps:

[0016] Step S21: obtaining a diagnostic vector through the first adapter;

[0017] Step S22: the diagnostic vector is compressed by serialization and a check code is added, and then transmitted to the second adapter for verification;

[0018] Step S23: the first adapter determines whether the diagnosis is passed according to the diagnostic vector returned by the second adapter; if the diagnosis fails, the frequency and phase of the first adapter are adjusted, and step S21 is continued until the diagnostic calibration is completed.

[0019] Preferably, step S3 includes the following sub-steps:

[0020] Step S31: obtaining original test stimulus vectors and expected vectors for testing each of the system-on-chip chips to be tested one by one;

[0021] Step S32: serializing and formatting the original test stimulus vector of a certain system-on-chip chip to be tested based on the vector representation layer to form a bit stream file suitable for transmission on a high-speed serial link;

[0022] Step S33: after encoding the bit stream file based on the data link layer and adding a verification mechanism, the bit stream file is transmitted to the second adapter, so that the second adapter determines that the encoding is correct and then decodes it to obtain a test stimulus vector of a system-on-chip chip to be tested.

[0023] Preferably, step S3 is to obtain the test excitation vector and expected vector of each system-on-chip to be tested one by one through the first adapter after the diagnostic calibration is completed, and transmit them to the second adapter after compression and packaging based on the high-speed serial link to obtain the test excitation vector and expected vector of a system-on-chip to be tested.

[0024] Preferably, obtaining a test stimulus vector and an expected vector of a certain system-on-chip chip to be tested comprises the following sub-steps:

[0025] Step S34: obtaining original test stimulus vectors and expected vectors for testing each of the system-on-chip chips to be tested one by one;

[0026] Step S35: serializing and formatting the original test stimulus vector and the expected vector of a certain system-on-chip chip to be tested based on the vector representation layer to form a bit stream file suitable for transmission on a high-speed serial link;

[0027] Step S36: After encoding the bit stream file based on the data link layer and adding a verification mechanism, it is transmitted to the second adapter, so that the second adapter decodes after determining that the encoding is correct to obtain a test stimulus vector and an expected vector of a system-on-chip chip to be tested.

[0028] Preferably, in step S4, if the test excitation vector obtained by the second adapter through verification is correct, the test excitation vector is transmitted to the input pin of the corresponding system-on-chip chip to be tested to obtain a corresponding response vector;

[0029] The response vector is encoded and serialized by the high-speed scan link of the second adapter and then returned to the first adapter for comparison with the expected vector to determine whether the system-on-chip chip under test fails;

[0030] Alternatively, the second adapter compares the response vector with the expected vector to determine whether the system-on-chip chip to be tested fails.

[0031] According to a second aspect of an embodiment of the present invention, there is provided a test system for a system-on-chip chip, comprising a first adapter and a second adapter, wherein the first adapter and the second adapter are connected based on a high-speed serial link, and the second adapter is provided with a plurality of test access modules corresponding to the system-on-chip chip to be tested;

[0032] The first adapter is used to calibrate the first adapter and the second adapter connected based on the high-speed serial link;

[0033] The second adapter is used to diagnose the first adapter and the second adapter connected based on the high-speed serial link through each of the test access modules;

[0034] The first adapter is further configured to obtain the test stimulus vector and the expected vector of each system-on-chip chip to be tested one by one, compress and package the test stimulus vector based on the high-speed serial link, and then transmit it to the second adapter; or compress and package the test stimulus vector and the expected vector based on the high-speed serial link, and then transmit it to the second adapter;

[0035] The second adapter is also used to obtain, through the corresponding test access module, the test excitation vector or the test excitation vector and the expected vector of the system-on-chip chip to be tested corresponding to the test access module according to the compressed and packaged data sent by the first adapter, and verify the test excitation vector. If the verification passes, the test excitation vector is transmitted to the corresponding system-on-chip chip to be tested accordingly to obtain a response vector, which is transmitted to the first adapter for comparison to obtain a test result; or the response vector is compared with the expected vector through the second adapter to obtain a test result.

[0036] Preferably, the first adapter comprises a vector generator, a protocol encoder, a driving circuit, a timing calibration module and a comparison module, wherein the vector generator, the protocol encoder and the driving circuit are connected in sequence, and the driving circuit, the timing calibration module and the comparison module are respectively connected to the test access module through the high-speed serial link;

[0037] The vector generator is used to serialize and format the original test stimulus vector of a certain system-on-chip chip to be tested based on the vector representation layer to form a bit stream file;

[0038] The protocol encoder is used to encode the bit stream file based on the data link layer and add a verification mechanism;

[0039] The driving circuit is used to drive the vector signal onto the transmission medium;

[0040] The timing calibration module is used to transmit the obtained diagnostic vector to the second adapter for verification after serial compression and adding a verification code, and judge whether the diagnosis is passed according to the diagnostic vector returned by the second adapter. If the diagnosis fails, the frequency and phase of the timing calibration module are adjusted until the diagnostic calibration is completed;

[0041] The comparison module is used to receive a response vector output by the system-on-chip chip under test, and compare the response vector with a corresponding expected vector to confirm whether the system-on-chip chip under test fails.

[0042] Preferably, each test access module comprises a serializer and a deserializer, a protocol decoder, a verification module and a high-speed scan link, wherein the serializer and the deserializer, the protocol decoder and the verification module are connected in sequence, the output end of the verification module is connected to the input pin of the corresponding system-on-chip chip to be tested, and the output pin of the system-on-chip chip to be tested is connected to the high-speed scan link;

[0043] The serializer and deserializer is used to decompress and deserialize the correctly encoded bit stream file to extract multiple frames of data from the bit stream file;

[0044] The protocol decoder is used to perform protocol decoding on the multiple frames of data to obtain a test excitation vector sequence and a check vector sequence, or to obtain the test excitation vector sequence, an expected vector sequence and the check vector sequence;

[0045] The verification module is used to verify the obtained test excitation vector, and if the verification passes, the test excitation vector is transmitted to the input pin of the corresponding system-on-chip chip to be tested;

[0046] The high-speed scan link is used to encode and serialize the response vector output by the system-on-chip chip under test and return it to the first adapter; or the second adapter compares the response vector with the expected vector and returns the obtained test result to the first adapter.

[0047] The system-on-chip test method and system provided by the present invention implement the test of the system-on-chip based on the high-speed serial link architecture, simplify the connection mode between the automatic test equipment and the system-on-chip to be tested, replace the traditional test cable with the high-speed serial transmission medium, and compress the test excitation vector after serialization and add the verification mechanism, so that the mapping of the test excitation vector to the input pin of the system-on-chip to be tested is not only fully programmable, but also ensures the accuracy of the test result. In addition, the system-on-chip test method is conducive to completing the batch test of the system-on-chip, and improves the test efficiency of the system-on-chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 General method for testing traditional SoC chips;

[0049] Figure 2 A schematic flow chart of a method for testing a system-on-chip chip provided by the present invention;

[0050] Figure 3 A schematic diagram of the hierarchical structure of a high-speed serial link protocol in the test method of the system-on-chip chip provided by the present invention;

[0051] Figure 4 This is a schematic diagram of the structure of the test system for the system-on-chip provided by the present invention. DETAILED DESCRIPTION

[0052] The technical content of the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0053] like Figure 2 As shown, the method for testing the system-on-chip provided by the present invention comprises the following steps:

[0054] Step S1: Customize a first adapter and a second adapter respectively according to the specific test requirements of each SoC to be tested, and establish a connection between the two adapters based on a high-speed serial link.

[0055] The first adapter and the second adapter are both high-speed serial link adapters customized based on the specific test requirements of the high-speed serial link and the system chip to be tested. Specifically, the first adapter is a vector serialization and compression adapter installed at the end of the integrated circuit automatic test equipment (Automatic Test Equipment, ATE); the second adapter is a vector deserialization and decompression adapter installed at the end of the system chip to be tested.

[0056] The so-called customizing the first adapter and the second adapter according to the specific test requirements of each system-on-chip chip to be tested respectively means that the number of endpoints is correspondingly equipped on the first adapter and the second adapter according to the number of pins of the system-on-chip chip to be tested, the number of system-on-chip chips to be tested simultaneously and the compression ratio of the test vector, and each endpoint in the first adapter can compress a number of test vector bits. In addition, each endpoint on the first adapter and the second adapter corresponds to a transmission link, and the test vectors required for all pins of each system-on-chip chip to be tested are transmitted to the second adapter through the first adapter. Among them, the test vectors required for all pins of each system-on-chip chip to be tested refer to the test stimulus vectors applied to the input pins of each system-on-chip chip to be tested, and the expected vectors used to observe whether the state of the output pins of each system-on-chip chip to be tested reaches the expected state. Therefore, it is only necessary to define the decoding sequence of the vector bit stream of the second adapter to freely allocate channels to the pins of each system-on-chip chip to be tested, so that the system resource allocation can be freely configured to the pins of the corresponding system-on-chip chip to be tested.

[0057] In the embodiment of the present invention, the test stimulus vector is applied to each system-on-chip to be tested based on the communication protocol framework of the high-speed serial link to complete the test. Figure 3 As shown, the communication protocol framework of the high-speed serial link between the first adapter and the second adapter includes a vector representation layer, a data link layer and a physical layer from top to bottom. In this step, the first adapter and the second adapter are connected based on the physical layer of the high-speed serial link and an end-to-end connection method is adopted. In order to ensure that the physical layer can pass the data correctly, provide sufficient bandwidth, and reduce channel congestion, the transmission medium of the physical layer can use a high-quality differential cable, or an optical module and an optical fiber for transmission. For example, the transmission medium can be implemented by using Category 5, Category 5e, Category 6 twisted pair and optical fiber, which mainly depends on the compression ratio of the test vector and the vector transmission bit rate.

[0058] The physical layer adopts full-duplex mode to transmit vectors, that is, the test stimulus vector applied to each system chip under test is transmitted from the first adapter to the second adapter, and the response vector output by the output pin of the system chip under test is transmitted from the second adapter to the first adapter. Alternatively, the test stimulus vector and the expected vector are transmitted from the first adapter to the second adapter, and the test result is transmitted from the second adapter to the first adapter.

[0059] Furthermore, in order to reduce interference with vector transmission, a required bit stream signal driving circuit may be provided in the first adapter and the second adapter, and the driving circuit may be implemented by a differential driving circuit, and the vector signal is driven to the transmission medium by the differential driving circuit. The differential mode of the differential driving circuit includes but is not limited to commonly used differential circuit standards, such as Positive Emitter-Coupled Logic (PECL), Low-Voltage Differential Signals (LVDS), and Current Mode Logic (CML).

[0060] It should be emphasized that in order to ensure that the test excitation vector applied to the input pin of the system chip under test can meet the test requirements, each channel serial bit stream sequence of the test excitation vector can be approximated by a square wave. The specific design needs to ensure that the signal is close to the ideal square wave, and each channel of the test excitation vector must have a sufficiently high cutoff frequency.

[0061] In addition, for high-speed serial links, in addition to ensuring signal quality from aspects such as circuit topology, the bandwidth of the selected buffer register is not less than 5Gbit / s. When the transmission medium is 1 meter long and the clock frequency is 2.5GHz, the eye diagram quality is tested through simulation and experiment, indicating that the high-speed serial link connecting the first adapter and the second adapter has good signal quality. If the transmission medium is too long, pre-emphasis processing can be performed at the driver end. At the 2.5GHz frequency, a maximum emphasis of nearly 30dB can be implemented.

[0062] Step S2: diagnose and calibrate the first adapter and the second adapter connected via a high-speed serial link.

[0063] This step includes the following sub-steps:

[0064] Step S21: Obtain a diagnostic vector through the first adapter.

[0065] The integrated circuit automatic test equipment is pre-set with a diagnostic vector for diagnosing the first adapter and the second adapter connected to the high-speed serial link. The diagnostic vector is loaded on the first adapter to ensure that a reliable vector transmission link is established between the first adapter and the second adapter; the diagnostic vector includes an all-0 vector, an all-1 vector and an AC vector. The all-0 vector refers to stimulating all input pins of the system chip on the test chip to 0, with the purpose of diagnosing whether a positive pulse glitch error will be generated after passing through the serial link; the all-1 vector refers to stimulating all input pins of the system chip on the test chip to 1, with the purpose of diagnosing whether a negative pulse glitch error will be generated after passing through the serial link; the AC vector refers to the vector formed by alternately setting adjacent input pins of the system chip on the test chip to 0 and 1, with the purpose of diagnosing whether the output clock phase of the positioning calibration module of the first adapter is correct.

[0066] Step S22: The diagnostic vector is compressed by serialization and a check code is added, and then transmitted to the second adapter for verification.

[0067] After the first adapter obtains the diagnostic vector from the integrated circuit automatic test equipment, it transmits the diagnostic vector to the second adapter after serial compression and adding a check code. If the second adapter verifies that there is no error, it returns the diagnostic vector to the first adapter.

[0068] Step S23: the first adapter determines whether the diagnosis is passed according to the diagnostic vector returned by the second adapter; if the diagnosis fails, the frequency and phase of the timing calibration module of the first adapter are adjusted, and step S21 is continued until the diagnostic calibration is completed.

[0069] The first adapter determines whether the diagnosis is passed by comparing the diagnostic vector returned from the second adapter. If the diagnosis fails, the frequency and phase of the timing calibration module of the first adapter are adjusted to increase the effective sampling rate of the vector data, and then the diagnostic calibration is performed again until the diagnostic calibration is completed.

[0070] Step S3: After the diagnostic calibration is completed, the test stimulus vector and the expected vector of each system-on-chip chip to be tested are obtained one by one through the first adapter, and the test stimulus vector is compressed and packaged based on the high-speed serial link and transmitted to the second adapter to obtain the test stimulus vector of a system-on-chip chip to be tested.

[0071] This step includes the following sub-steps:

[0072] Step S31: obtaining original test stimulus vectors and expected vectors for testing each system-on-chip chip to be tested one by one.

[0073] A test excitation vector and an expected vector for testing each system-on-chip chip to be tested are pre-set on the integrated circuit automatic test equipment. The test excitation vector is used to be transmitted to the input pin of each system-on-chip chip to be tested; the expected vector is used to determine whether the test of the system-on-chip chip to be tested is successful; wherein the excitation vector is a digital sequence composed of 0 and 1 for the actual test requirements of different system-on-chip chips to be tested; the expected vector is an expected digital sequence composed of 0 and 1, which is used to determine whether the response sequence output by the system-on-chip chip is consistent with the expected digital sequence.

[0074] The original test stimulus vector and expected vector for testing each system-on-chip chip to be tested are obtained one by one from the integrated circuit automatic test equipment through the first adapter. The original test stimulus vector and expected vector are standard parallel format vectors, and the bit width of each row of the vector corresponds to the number of pins of the system-on-chip chip to be tested.

[0075] Step S32: serialize and format the obtained original test stimulus vector of a certain system-on-chip chip to be tested based on the vector representation layer to form a bit stream file suitable for transmission on a high-speed serial link.

[0076] The first adapter serializes and formats the original test stimulus vector of a certain system-on-chip chip to be tested based on the vector representation layer to obtain a test stimulus vector sequence, and sets corresponding feature fields to characterize the properties of the test stimulus vector, thereby forming a bit stream file suitable for transmission on a high-speed serial link. The bit stream file is composed of multiple frames of data, each frame of data includes a header and a vector data segment. Among them, the vector data segment is a stimulus vector sequence for applying to the input pin of the system-on-chip chip to be tested.

[0077] Step S33: after encoding the bit stream file based on the data link layer and adding a verification mechanism, the bit stream file is transmitted to the second adapter, so that the second adapter decodes after judging that the encoding is correct to obtain a test stimulus vector of a certain system-on-chip chip to be tested.

[0078] The first adapter encodes the bitstream file formed in step S32 based on the data link layer and adds a verification mechanism to the bitstream file to ensure reliable transmission of the test excitation vector. The first adapter uses a DC balanced encoding technology to complete the encoding process of the bitstream file. For example, when the 8B / 10B encoding method is used to complete the encoding of the bitstream file, for the vector sequence in the bitstream file, it is ensured that the number of consecutive 1s or 0s does not exceed 5 bits, that is, a 0 or 1 must be inserted after every 5 consecutive 1s or 0s, so that the number of 0s and 1s in the vector sequence in a frame of data is basically the same, so as to avoid data distortion and inter-code interference.

[0079] The first adapter and the second adapter also ensure that the test stimulus vector is correctly transmitted between the automatic test equipment and the system-on-chip chip to be tested based on the data link layer. Specifically, when the first adapter encodes the bitstream file, it obtains a check vector sequence for checking the correctness of the stimulus vector sequence based on the stimulus vector sequence in the bitstream file and based on a certain algorithm. The check vector sequence is included in the data frame of the bitstream file as a check segment to form a check mechanism.

[0080] The second adapter uses the test access module corresponding to each on-chip system chip to be tested to determine whether an error occurs when encoding the encoded bit stream file based on the DC balanced encoding technology. If the encoding of the bit stream file is correct, the encoded bit stream file is decompressed and deserialized by the test access module corresponding to each on-chip system chip to be tested, so as to extract multiple frames of data in the bit stream file, and the protocol decoding is controlled by the synchronous state machine for the multiple frames of data to obtain the excitation vector sequence and the check vector sequence. If the encoding of the bit stream file is wrong, the result that the encoding error of the bit stream file corresponding to a certain on-chip system chip to be tested is fed back to the first adapter, and the bit stream file of a certain on-chip system chip to be tested that has been re-encoded is transmitted to the second adapter through the first adapter until the second adapter determines that there is no error in the encoding of the bit stream file of a certain on-chip system chip to be tested transmitted by the first adapter.

[0081] In addition, step S3 can also be that after the diagnostic calibration is completed, the test stimulus vector and the expected vector of each system-on-chip chip to be tested are obtained in sequence through the first adapter, and the test stimulus vector and the expected vector of a system-on-chip chip to be tested are transmitted to the second adapter after compression and packaging based on the high-speed serial link, so as to obtain the test stimulus vector and the expected vector of a system-on-chip chip to be tested. It includes the following sub-steps:

[0082] Step S34: Obtaining original test stimulus vectors and expected vectors for testing each SoC chip to be tested one by one. This step is the same as step S31 and will not be described in detail here.

[0083] Step S35: serialize and format the original test stimulus vector and expected vector of a certain system-on-chip chip to be tested based on the vector representation layer to form a bit stream file suitable for transmission on a high-speed serial link.

[0084] The first adapter serializes and formats the original test stimulus vector and expected vector of a system-on-chip chip under test based on the vector representation layer to obtain a stimulus vector sequence and an expected vector sequence, and sets corresponding feature fields to characterize the properties of the test stimulus vector and the expected vector, thereby forming a bit stream file suitable for transmission on a high-speed serial link. The bit stream file is composed of multiple frames of data, each frame of data includes a header and a vector data segment. Among them, the vector data segment is a test stimulus vector sequence applied to the input pin of the system-on-chip chip under test and a response vector sequence used to determine whether the output of the system-on-chip chip under test reaches the expected expected vector sequence.

[0085] Step S36: after encoding the bit stream file based on the data link layer and adding a verification mechanism, the bit stream file is transmitted to the second adapter, so that the second adapter determines that the encoding is correct and then decodes it to obtain a test stimulus vector and an expected vector of a certain system-on-chip chip to be tested.

[0086] The difference between this step and step S33 is that

[0087] If the encoding of the bit stream file is correct, the encoded bit stream file is decompressed and deserialized respectively through the test access module corresponding to each system-on-chip chip to be tested to extract multiple frames of data in the bit stream file, and the protocol decoding is controlled by the synchronous state machine for the multiple frames of data to obtain the test excitation vector sequence, expected vector sequence and check vector sequence.

[0088] Step S4: verifying the obtained test excitation vector. If the verification passes, the test excitation vector is transmitted to the input pin of the corresponding system-on-chip chip to be tested to complete the test.

[0089] Since the data link layer specifies the transmission of data frames on the physical channel and the processing method when errors occur, the test access module of the second adapter also uses a cyclic redundancy check (CRC) based on the obtained check vector sequence to implement error correction of the test excitation vector transmitted to the second adapter, so as to ensure that the test excitation vector loaded into the system chip under test is consistent with the vector representation layer of the first adapter.

[0090] If the test excitation vector verified by the second adapter is correct, the test excitation vector is transmitted to the input pin of the corresponding system-on-chip chip under test. Under the action of the excitation vector of the test excitation vector, the system-on-chip chip under test outputs the corresponding response vector through its output pin.

[0091] The response vector output by the SoC chip to be tested is encoded and serialized by the high-speed scanning link of the second adapter, and then returned to the first adapter through the transmission medium of the high-speed serial link. Since encoding and serializing the response vector output by the SoC chip to be tested consumes a certain clock beat, the response vector received by the first adapter is compared with the expected vector after time compensation. If the response vector is consistent with the expected vector, it is considered that the SoC chip to be tested that outputs the response vector is not failed. If the response vector is inconsistent with the expected vector, it is considered that the SoC chip to be tested has failed. The test results of each SoC chip to be tested are saved by the first adapter until the test of all SoC chips to be tested is completed, the test is terminated, and the test results are generated into a result report and transmitted to the automatic test equipment.

[0092] Alternatively, the second adapter compares the response vector output by the SoC chip to be tested with the expected vector. If the response vector is consistent with the expected vector, it is considered that the SoC chip to be tested that outputs the response vector is not failed. If the response vector is inconsistent with the expected vector, it is considered that the SoC chip to be tested has failed. The test results of each SoC chip to be tested are saved by the first adapter until all SoC chips to be tested are tested. The test is terminated, and the test results are generated into a result report. After being encoded and serialized by the high-speed scanning link of the second adapter, they are returned to the first adapter through the transmission medium of the high-speed serial link and transmitted to the automatic test equipment through the first adapter.

[0093] If the test stimulus vector obtained by the second adapter is incorrect, the verification result is fed back to the first adapter, and the first adapter obtains the test stimulus vector from the automatic test equipment again, and continues to complete the test of the system chip to be tested based on steps S3 and S4.

[0094] When testing the SoC, the automatic test equipment provides power to the SoC through the resource board, and implements the testing of the functions and DC parameters of the SoC. For example, the DC parameter testing of the SoC is completed through the precision measurement unit (PMU) of the resource board. The existing mature technology for implementing the testing of the functions and DC parameters of the SoC is not described here.

[0095] It should be emphasized that, if necessary, the test code can also be downloaded to the system-on-chip to be tested through a high-speed serial link, and a test instruction transmission channel can be established between the automatic test equipment and the system-on-chip to be tested according to the configuration of the system-on-chip to be tested. For mainstream system-on-chip chips, simulation test commands can be loaded through a high-speed serial link to control the operating state of the system-on-chip chip, and test excitation vectors can be applied to the system-on-chip chip for testing. Generally, the test of the system-on-chip to be tested includes multiple test excitation vectors and expected vectors, and test excitation vectors of different models are applied to the system-on-chip to be tested in turn until all test models are tested.

[0096] In addition, if Figure 4 As shown, the present invention also provides a system-on-chip chip test system, including a first adapter 1 and a second adapter 2, wherein the first adapter 1 and the second adapter 2 are connected based on a high-speed serial link; wherein the second adapter 2 is provided with a plurality of test access modules 21 corresponding to the system-on-chip chips to be tested. One or more system-on-chip chips to be tested are installed in the second adapter through a suitable test fixture, and a test excitation vector is applied to the system-on-chip chip to be tested, and then the test excitation vector is executed and the output end of the comparison system-on-chip chip is detected with an expected value to determine whether the system-on-chip chip is failed.

[0097] The first adapter 1 is used to calibrate the first adapter and the second adapter connected based on a high-speed serial link.

[0098] The second adapter 2 is used for diagnosing the first adapter and the second adapter connected based on a high-speed serial link through each test access module.

[0099] The first adapter 1 is also used to obtain the test stimulus vector and expected vector of each system-on-chip chip to be tested one by one, compress and package the test stimulus vector based on the high-speed serial link, and then transmit it to the second adapter; or compress and package the test stimulus vector and expected vector based on the high-speed serial link and then transmit it to the second adapter.

[0100] The second adapter 2 is also used to obtain the test stimulus vector of the system-on-chip chip to be tested corresponding to the test access module according to the compressed and packaged data sent by the first adapter, and verify the test stimulus vector. If the verification passes, the test stimulus vector is transmitted to the input pin of the corresponding system-on-chip chip to be tested to obtain a response vector, which is transmitted to the first adapter for comparison to obtain a test result. Alternatively, the response vector is compared with the expected vector through the second adapter to obtain a test result.

[0101] like Figure 4As shown, the first adapter 1 includes a vector generator 11, a protocol encoder 12, a driving circuit 13, a timing calibration module 14 and a comparison module 15. The vector generator 11, the protocol encoder 12 and the driving circuit 13 are connected in sequence, and the driving circuit 13, the timing calibration module 14 and the comparison module 15 are respectively connected to the test access module 21 through a high-speed serial link.

[0102] The vector generator 11 is used for serializing and formatting the original test stimulus vector of a certain system-on-chip chip to be tested based on the vector representation layer to form a bit stream file suitable for transmission on a high-speed serial link.

[0103] The protocol encoder 12 is used to encode the bit stream file based on the data link layer and add a verification mechanism.

[0104] The driving circuit 13 is used to drive the vector signal onto the transmission medium.

[0105] The timing calibration module 14 is used to transmit the obtained diagnostic vector to the second adapter for verification after serial compression and adding a verification code, and judge whether the diagnosis passes according to the diagnostic vector returned by the second adapter. If the diagnosis fails, the frequency and phase of the timing calibration module 14 are adjusted until the diagnostic calibration is completed.

[0106] The comparison module 15 is used to receive the response vector output by the system-on-chip chip under test, and compare the response vector with the corresponding expected vector to confirm whether the system-on-chip chip under test fails.

[0107] like Figure 4 As shown, each test access module 21 includes a serializer and deserializer 210, a protocol decoder 211, a verification module 212 and a high-speed scan link 213; the serializer and deserializer 210, the protocol decoder 211, and the verification module 212 are connected in sequence, the output end of the verification module 212 is connected to the input pin of the corresponding system-on-chip chip to be tested, and the output pin of the system-on-chip chip to be tested is connected to the high-speed scan link 213.

[0108] The serializer and deserializer 210 is used to decompress and deserialize the correctly encoded bit stream file to extract multiple frames of data from the bit stream file.

[0109] The protocol decoder 211 is used to control protocol decoding for multiple frames of data through a synchronous state machine to obtain an excitation vector sequence and a check vector sequence, or to obtain an excitation vector sequence, an expected vector sequence and a check vector sequence.

[0110] The verification module 212 is used to verify the obtained test stimulus vector. If the verification passes, the test stimulus vector is transmitted to the input pin of the corresponding system-on-chip chip under test.

[0111] The high-speed scanning link 213 is used to encode and serialize the response vector output by the system-on-chip chip under test, and return it to the first adapter through the transmission medium of the high-speed serial link; or, after the second adapter compares the response vector with the expected vector, the obtained test result is returned to the first adapter through the transmission medium of the high-speed serial link.

[0112] The process of the system-on-chip chip testing system provided by the present invention to implement the system-on-chip chip testing based on various components is the same as the above method steps, and will not be described in detail here.

[0113] The system-on-chip test method and system provided by the present invention implement the test of the system-on-chip based on the high-speed serial link architecture, simplify the connection mode between the automatic test equipment and the system-on-chip to be tested, replace the traditional test cable with the high-speed serial transmission medium, and compress the test excitation vector after serialization and add the verification mechanism, so that the mapping of the test excitation vector to the input pin of the system-on-chip to be tested is not only fully programmable, but also ensures the accuracy of the test result. In addition, the system-on-chip test method is conducive to completing the batch test of the system-on-chip, and improves the test efficiency of the system-on-chip.

[0114] The above is a detailed description of the system-on-chip test method and system provided by the present invention. For those skilled in the art, any obvious changes made to it without departing from the essential spirit of the present invention will fall within the protection scope of the patent right of the present invention.

Claims

1. A method for testing a system-on-chip chip, characterized in that The steps include: Step S1: customizing a first adapter and a second adapter respectively according to specific test requirements of each SoC to be tested, and establishing a connection between the two adapters based on a high-speed serial link; Step S2: performing diagnostic calibration on the first adapter and the second adapter connected based on the high-speed serial link; wherein a diagnostic vector is obtained through the first adapter, and the diagnostic vector is transmitted to the second adapter for verification after being serialized and compressed and adding a check code; the first adapter determines whether the diagnosis is passed according to the diagnostic vector returned by the second adapter; if the diagnosis fails, the frequency and phase of the first adapter are adjusted, and the diagnostic vector is continued to be obtained through the first adapter until the diagnostic calibration is completed; Step S3: after the diagnostic calibration is completed, the test stimulus vector and the expected vector of each of the system-on-chip chips to be tested are obtained one by one through the first adapter, and the test stimulus vector and the expected vector are compressed and packaged based on the high-speed serial link and then transmitted to the second adapter to obtain the test stimulus vector and the expected vector of a certain system-on-chip chip to be tested; Step S4: verifying the obtained test excitation vector. If the verification passes, the test excitation vector is transmitted to the input pin of the corresponding system-on-chip chip to be tested to complete the test.

2. The method for testing a system-on-chip according to claim 1, wherein: Based on the physical layer of the high-speed serial link, the first adapter and the second adapter are connected in an end-to-end connection mode; the physical layer transmits vectors in full-duplex mode.

3. The method for testing a system-on-chip according to claim 1, wherein Step S3 includes the following sub-steps: Step S31: obtaining original test stimulus vectors and expected vectors for testing each of the system-on-chip chips to be tested one by one; Step S32: serializing and formatting the original test stimulus vector of a certain system-on-chip chip to be tested based on the vector representation layer to form a bit stream file suitable for transmission on a high-speed serial link; Step S33: after encoding the bit stream file based on the data link layer and adding a verification mechanism, the bit stream file is transmitted to the second adapter, so that the second adapter determines that the encoding is correct and then decodes it to obtain a test stimulus vector of a system-on-chip chip to be tested.

4. The method for testing a system-on-chip chip as claimed in claim 1, characterized in that Obtaining a test stimulus vector and an expected vector of a certain system-on-chip chip to be tested comprises the following sub-steps: Step S34: obtaining original test stimulus vectors and expected vectors for testing each of the system-on-chip chips to be tested one by one; Step S35: serializing and formatting the original test stimulus vector and expected vector of a certain system-on-chip chip to be tested based on the vector representation layer to form a bit stream file suitable for transmission on a high-speed serial link; Step S36: After encoding the bit stream file based on the data link layer and adding a verification mechanism, it is transmitted to the second adapter, so that the second adapter decodes after determining that the encoding is correct to obtain a test stimulus vector and an expected vector of a system-on-chip chip to be tested.

5. The method for testing a system-on-chip chip as claimed in claim 1, characterized in that In step S4, if the test excitation vector obtained by the second adapter through verification is correct, the test excitation vector is transmitted to the input pin of the corresponding system-on-chip chip to be tested to obtain a corresponding response vector; After being encoded and serialized by the high-speed scan link of the second adapter, the response vector is returned to the first adapter to be compared with the expected vector to determine whether the system chip under test has failed; alternatively, the second adapter compares the response vector with the expected vector to determine whether the system chip under test has failed.

6. A system-on-chip test system for implementing the system-on-chip test method according to any one of claims 1 to 5, characterized in that The first adapter and the second adapter are connected based on a high-speed serial link, and the second adapter is provided with a plurality of test access modules corresponding to the system-on-chip chips to be tested; The first adapter is used to calibrate the first adapter and the second adapter connected based on the high-speed serial link; The second adapter is used to diagnose the first adapter and the second adapter connected based on the high-speed serial link through each of the test access modules; The first adapter is further configured to obtain the test stimulus vector and the expected vector of each system-on-chip chip to be tested one by one, compress and package the test stimulus vector based on the high-speed serial link, and then transmit it to the second adapter; or compress and package the test stimulus vector and the expected vector based on the high-speed serial link, and then transmit it to the second adapter; The second adapter is also used to obtain, through the corresponding test access module, the test excitation vector or the test excitation vector and the expected vector of the system-on-chip chip to be tested corresponding to the test access module according to the compressed and packaged data sent by the first adapter, and verify the test excitation vector. If the verification passes, the test excitation vector is transmitted to the corresponding system-on-chip chip to be tested accordingly to obtain a response vector, which is transmitted to the first adapter for comparison to obtain a test result; or the response vector is compared with the expected vector through the second adapter to obtain a test result.

7. The system on chip test system as claimed in claim 6, characterized in that: The first adapter comprises a vector generator, a protocol encoder, a driving circuit, a timing calibration module and a comparison module, wherein the vector generator, the protocol encoder and the driving circuit are connected in sequence, and the driving circuit, the timing calibration module and the comparison module are respectively connected to the test access module through the high-speed serial link; The vector generator is used to serialize and format the original test stimulus vector of a certain system-on-chip chip to be tested based on the vector representation layer to form a bit stream file; The protocol encoder is used to encode the bit stream file based on the data link layer and add a verification mechanism; The driving circuit is used to drive the vector signal onto the transmission medium; The timing calibration module is used to transmit the obtained diagnostic vector to the second adapter for verification after serial compression and adding a verification code, and determine whether the diagnosis is passed based on the diagnostic vector returned by the second adapter. If the diagnosis fails, adjust the frequency and phase of the timing calibration module until the diagnostic calibration is completed; the comparison module is used to receive the response vector output by the system-on-chip chip under test, and compare the response vector with the corresponding expected vector to confirm whether the system-on-chip chip under test has failed.

8. The system on chip test system as claimed in claim 7, characterized in that: Each test access module comprises a serializer and a deserializer, a protocol decoder, a verification module and a high-speed scan link, wherein the serializer and the deserializer, the protocol decoder and the verification module are connected in sequence, an output end of the verification module is connected to an input pin of a corresponding system-on-chip chip to be tested, and an output pin of the system-on-chip chip to be tested is connected to the high-speed scan link; The serializer and deserializer is used to decompress and deserialize the correctly encoded bit stream file to extract multiple frames of data from the bit stream file; The protocol decoder is used to perform protocol decoding on the multiple frames of data to obtain an excitation vector sequence and a check vector sequence, or to obtain the excitation vector sequence, the expected vector sequence and the check vector sequence; The verification module is used to verify the obtained test excitation vector. If the verification passes, the test excitation vector is transmitted to the input pin of the corresponding system-on-chip chip under test; the high-speed scanning link is used to encode and serialize the response vector output by the system-on-chip chip under test, and return it to the first adapter; or, the second adapter compares the response vector with the expected vector, and the obtained test result is returned to the first adapter.