Chip testing method and device and electronic equipment

By automatically processing test process files and configuration files, the automated execution and result verification of chip tests are achieved, which solves the inefficiency and delay problems caused by manual programming in the existing technology, and improves the efficiency and accuracy of chip tests.

CN118964205APending Publication Date: 2024-11-15BEIJING TONGFANG MICROELECTRONICS
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411122241.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

When existing chip testing technology is upgraded or changes in the test content, it is necessary to manually reprogram the main control chip, resulting in increased testing complexity and time cost, reduced efficiency and delayed progress.

Method used

By obtaining the test process file, converting it into a configuration file, and parsing the configuration file, the chip to be tested executes the corresponding test instructions, realizing automated execution and result verification, avoiding manual operations and verification, and uniformly updating the test scripts.

Benefits of technology

It improves the efficiency and accuracy of chip testing, reduces the workload and time cost of reprogramming, and realizes automatic synchronous updates of all master chips.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964205A_ABST
    Figure CN118964205A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of chip testing, and discloses a method for chip testing, which comprises the following steps: acquiring a test process file; converting the obtained test process file into a configuration file; and analyzing the configuration file to enable the to-be-tested chip to execute a test instruction corresponding to the configuration file. Automatic execution and result verification of the test script are realized. When the test script is changed, the main control chip can analyze the configuration file only by running again to obtain the test process file and converting the obtained test process file into the configuration file, so that the to-be-tested chip executes the test instruction and outputs the result. The workload and the time cost of reprogramming are reduced, and the chip testing efficiency is improved. The invention further discloses a chip testing device and electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip testing technology, for example, to a method and device for chip testing, and electronic equipment. Background Art

[0002] Chip testing is a key step to ensure that the chip works properly under various environments and usage conditions. At present, in the chip testing process, in order to comprehensively evaluate the performance and reliability of the chip, a large number of different types of tests are involved in the testing process. These tests include but are not limited to high temperature operation life test, durability test, read disturbance test, program disturbance test, stability test and power consumption test. Therefore, different test processes need to be formulated for different test contents.

[0003] In order to meet different test contents, in the related technology, when the chip under test is upgraded or replaced, or when the test content changes, the main control chip is reprogrammed, and the test process is modified accordingly, and the chip under test is tested according to the changed test process.

[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art: Although the related technology can realize different tests on the chip under test, it requires manual reprogramming of the main control chip. In particular, once a problem is found, it is usually necessary to modify the test script multiple times to find the cause of the problem or fix the problem. After each modification of the test script, all the main control chips need to be reprogrammed, which greatly increases the complexity and time cost of the test, reduces the efficiency of chip testing, and may also cause delays in the test progress.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical elements or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0007] The embodiments of the present disclosure provide a method and device for chip testing, and electronic equipment, which can improve the efficiency of chip testing.

[0008] In some embodiments, the method for chip testing includes: obtaining a test flow file; converting the obtained test flow file into a configuration file; parsing the configuration file so that the chip to be tested executes the test instructions corresponding to the configuration file.

[0009] Optionally, the acquired test process file is converted into a configuration file, including: identifying the sent content and expected content in the acquired test process file; wherein the sent content includes test instructions; performing instruction writing processing on the sent content and the expected content respectively; structurally encapsulating the sent content and the expected content after the instruction writing processing to obtain the configuration file.

[0010] Optionally, instruction writing processing is performed on the sent content and the expected content respectively, including: when the sent content is identified, creating a sending instruction and storing the sent content; when the expected content is identified, using the expected content as the expected result corresponding to the test instruction in the sent content.

[0011] Optionally, parsing the configuration file so that the chip under test executes the test instructions corresponding to the configuration file includes: converting the configuration file into a nested structure; and controlling the chip under test to execute the test instructions corresponding to the configuration file according to the instruction set in the nested structure.

[0012] Optionally, according to the instruction set in the nested structure, the chip under test is controlled to execute the test instructions corresponding to the configuration file, including: obtaining the number of instruction set loops; sending the test instructions in the instruction set to the chip under test to control the chip under test to execute the test instructions; after completing all the test instructions in the instruction set, controlling the number of instruction set loops to decrease until the number of instruction set loops is less than a set threshold.

[0013] Optionally, according to the instruction set in the nested structure, controlling the chip under test to execute the test instructions corresponding to the configuration file also includes: after sending the test instructions in the instruction set to the chip under test, obtaining the reply content returned by the chip under test executing the test instructions; comparing the reply content with the expected result corresponding to the test instruction to obtain a comparison result.

[0014] Optionally, obtaining the test process file includes: running a test script to obtain a test log file; extracting the test process in the test log file, and using the test process as the test process file.

[0015] Optionally, obtaining the test process file includes: obtaining a test process edited by a user, and using the test process as the test process file.

[0016] In some embodiments, the device for chip testing includes: a processor and a memory storing program instructions, and the processor is configured to execute the above-mentioned method for chip testing when running the program instructions.

[0017] In some embodiments, the electronic device includes: an electronic device body; and the device for chip testing as described above, installed on the electronic device body.

[0018] The method, device, and electronic device for chip testing provided by the embodiments of the present disclosure can achieve the following technical effects: The disclosed embodiment realizes the automatic execution of test scripts and result verification. When the test script changes, it is only necessary to re-run to obtain the test flow file, and convert the obtained test flow file into a configuration file. The main control chip can parse the configuration file so that the chip under test executes the test instructions and outputs the results. No manual operation and verification are required, which improves the test efficiency and accuracy. Compared with the related art, the disclosed embodiment can uniformly update the test script without the need to program each main control chip separately. In this way, when the test script changes, all main control chips can be automatically updated synchronously. The workload and time cost of reprogramming are reduced, and the chip testing efficiency is improved.

[0019] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein: Figure 1 is a schematic diagram of an implementation environment of a method for chip testing provided by an embodiment of the present disclosure; Figure 2 is a schematic diagram of a chip testing method provided by an embodiment of the present disclosure; Figure 3 is a schematic diagram of a loop execution test instruction provided by an embodiment of the present disclosure; Figure 4 is an interactive schematic diagram of a method for chip testing provided by an embodiment of the present disclosure; Figure 5 is a schematic diagram of another chip testing method provided by an embodiment of the present disclosure; Figure 6 is a schematic diagram of another method for chip testing provided by an embodiment of the present disclosure; Figure 7 It is a schematic diagram of a device for chip testing provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0021] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0022] The terms "first", "second", etc. in the technical solutions described in the embodiments of the present disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so as to describe the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0023] Unless otherwise stated, the term "plurality" means two or more.

[0024] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0025] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0026] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0027] Chip testing is a crucial link in the semiconductor industry, involving the verification of various performance indicators of the chip during the design, production, packaging and final application process. The purpose of the test is to ensure that the chip can operate stably and reliably under various expected working environments and usage conditions, while meeting the expected performance standards.

[0028] During the chip testing process, many types of tests are performed, including but not limited to functional testing, performance testing, reliability testing, environmental testing, and compatibility testing. Each test is designed to evaluate the performance of the chip under specific conditions. Different types of tests often require different test environments and conditions. In order to adapt to different testing requirements, test engineers must design and use a variety of test platforms and tools.

[0029] As technology develops, testing methods are also constantly improving, including the use of automated testing, machine learning, and artificial intelligence technologies to improve testing efficiency.

[0030] Figure 1 FIG. 1 is a schematic diagram of an implementation environment of a method for chip testing provided by an embodiment of the present disclosure. Figure 1 As shown, the implementation environment of the above method may include a main control chip 100 , a host computer 200 , and a chip under test 300 .

[0031] The host computer 200 provides the main control chip 100 with a test flow file, and the main control chip 100 converts the acquired test flow file into a configuration file and parses the configuration file to obtain the test instructions. Finally, the chip under test 300 performs the test according to the test instructions sent by the main control chip 100, obtains the corresponding test results, and completes the test process.

[0032] Combination Figure 2 As shown, the embodiment of the present disclosure provides a method for chip testing, including: S201, the main control chip obtains the test process file.

[0033] S202, the main control chip converts the acquired test process file into a configuration file.

[0034] S203, the main control chip parses the configuration file so that the chip under test executes the test instructions corresponding to the configuration file.

[0035] The method for chip testing provided by the embodiment of the present disclosure realizes the automatic execution of the test script and the result verification. When the test script changes, it is only necessary to re-run to obtain the test flow file, and convert the obtained test flow file into a configuration file. The main control chip can parse the configuration file so that the chip to be tested executes the test instructions and outputs the results. No manual operation and verification are required, which improves the test efficiency and accuracy.

[0036] Compared with the related art, the embodiment of the present disclosure can update the test script uniformly without programming each main control chip separately. In this way, when the test script changes, all main control chips can be automatically updated synchronously. The workload and time cost of reprogramming are reduced, and the chip testing efficiency is improved.

[0037] Furthermore, the disclosed embodiments are highly flexible and scalable. Whether it is a high-temperature operating life test, endurance test, read disturbance test, prog disturbance test, stability test, power consumption test or other different tests, the test scripts can be configured and adjusted to meet different test requirements. This ensures the reliability and performance of the chip under various environments and usage conditions.

[0038] High-Temperature Operating Life Test is an accelerated aging test method that accelerates the aging process of the chip by running it in a high-temperature environment, thereby predicting the life of the chip under normal use conditions.

[0039] Endurance testing evaluates the performance changes of a chip after long-term use through repeated read and write operations.

[0040] The read disturbance test (Read Disturb) and program disturbance test (Prog Disturb) are used to evaluate the chip reliability and data integrity under frequent read and program operations respectively.

[0041] The stability test evaluates the performance stability of the chip under different temperature and voltage conditions.

[0042] The power consumption test evaluates the power consumption performance of the chip in different operating modes.

[0043] Optionally, the acquired test process file is converted into a configuration file, including: identifying the sent content and expected content in the acquired test process file; wherein the sent content includes test instructions; performing instruction writing processing on the sent content and the expected content respectively; structurally encapsulating the sent content and the expected content after the instruction writing processing to obtain the configuration file.

[0044] In the disclosed embodiment, the test flow file can be converted into a binary file, and the conversion method is to read the communication data and results in the test flow file, and convert them into a binary configuration file through a specific parsing algorithm. The conversion method is to traverse the test flow file in sequence and find the sent content or expected content in the test flow file. The sent content and the expected content are processed by instruction writing, and after the test flow file traversal is completed, the data is encapsulated according to the configuration file structure.

[0045] Optionally, instruction writing processing is performed on the sent content and the expected content respectively, including: when the sent content is identified, creating a sending instruction and storing the sent content; when the expected content is identified, using the expected content as the expected result corresponding to the test instruction in the sent content.

[0046] In the disclosed embodiment, by traversing the test process file, the sent content or expected content can be found in the test process file. After the sent content is found, a sending instruction is created and stored in the sent content. After the expected content is found, the expected content is used as the expected result corresponding to the test instruction in the sent content.

[0047] Optionally, parsing the configuration file so that the chip under test executes the test instructions corresponding to the configuration file includes: converting the configuration file into a nested structure; and controlling the chip under test to execute the test instructions corresponding to the configuration file according to the instruction set in the nested structure.

[0048] In the embodiment of the present disclosure, each instruction set includes: a 4-byte repeat count, used to indicate the number of times the instruction set and instructions in the instruction set are repeatedly executed; a 1-byte command nest count, used to indicate the number of sub-instruction sets included in the instruction set; and a 1-byte command count, used to indicate the number of instructions included in the instruction set.

[0049] Each instruction contains: a 4-byte header to indicate the instruction type, subtype, parameters, etc.; a 1-byte length to indicate how many blocks the instruction contains; a number of blocks, the number of which matches the length byte. Blocks are divided into three types: fixed content type; operation result type and expected result type.

[0050] The fixed content type contains: 1 fixed byte, 0x00, which is used to indicate that the block is a fixed value; 1 byte content length, which is used to indicate the length of the subsequent content part; several bytes of content, whose length matches the content length, which is used to save the actual content to be sent. The fixed content type is used when the length of the content to be sent is clear and the content is fixed.

[0051] As shown in Table 1 (the contents in the table are all in hexadecimal, with spaces separating single bytes), when the main control chip is required to send fixed content 01 and content 02, instructions 01 and 02 can be used.

[0052] Table 1

[0053] The operation result type includes: 1 type byte, with a value of 0x01~0x0A, which is used to indicate that the block content needs to use the result of the previous operation instruction. The value of type is the sequence number of the previous result. When type is 0x01, it means the most recent operation result is used. When type is 0x02, it means the result of the second to last operation is used; 1 byte content length, which is used to indicate the length of the data of the previous result to be used; 1 byte content start index, which is used to indicate the starting position of the data of the previous result to be used.

[0054] When the content to be sent needs to use the previous result, this block type needs to be used to send data. For example, in Table 2 (the contents in the table are all in hexadecimal, with spaces separating single bytes): When the first 3 bytes of the result of instruction 01 need to be sent, instruction 02 should be sent. When the second to fourth bytes of the result of instruction 01 plus a fixed 0xAABBCC need to be sent, instruction 03 should be used (note that type should use 0x02 at this time, because instruction 01 is the second to last instruction at this time).

[0055] Table 2

[0056] The expected result type includes: 1 fixed byte, 0xFF, used to indicate that the block is the expected result; 1 byte content length, used to indicate the length of the subsequent content part; several bytes of expected content, whose length is consistent with the content length, used to save the expected return result of the tested chip.

[0057] Optionally, according to the instruction set in the nested structure, the chip under test is controlled to execute the test instructions corresponding to the configuration file, including: obtaining the number of instruction set loops; sending the test instructions in the instruction set to the chip under test to control the chip under test to execute the test instructions; after completing all the test instructions in the instruction set, controlling the number of instruction set loops to decrease until the number of instruction set loops is less than a set threshold.

[0058] In the disclosed embodiment, after parsing the parsed instructions into an instruction set nested structure according to the configuration file structure, the instructions of each instruction set are executed in sequence in a depth-first manner until the number of loops is reached, and then the next instruction set is traversed until the number of loops of all instruction sets is reached.

[0059] As shown in the nested structure of instruction sets in Table 3, instruction set 1 is the entry instruction set.

[0060] Table 3

[0061] According to the nested structure of the instruction set shown in Table 3, Figure 3 The sequence shown is completed. The actual execution of the instructions is: (((instruction 1 + instruction 2) × 2 times + instruction 3 × 7 times) × 5 times + (instruction 4 + instruction 5) × 100 times) × 1000 times.

[0062] Optionally, according to the instruction set in the nested structure, controlling the chip under test to execute the test instructions corresponding to the configuration file also includes: after sending the test instructions in the instruction set to the chip under test, obtaining the reply content returned by the chip under test executing the test instructions; comparing the reply content with the expected result corresponding to the test instruction to obtain a comparison result.

[0063] In the disclosed embodiment, when the instruction contains a block of expected result type, after the content is sent to the chip under test and the actual result is received, it will be compared with the content in the expected content in the block, and the comparison result will be saved, and finally all the comparison results will be output.

[0064] In practical applications, combined with Figure 4 As shown, the main control chip will eventually output all the comparison results back to the host computer.

[0065] S401, the host computer converts the test process file into a configuration file.

[0066] S402, the host computer downloads the configuration file to the main control chip.

[0067] S403, after the main control chip is powered on, the command at the specified location is parsed.

[0068] S404, the main control chip sends the parsed test instruction to the chip under test.

[0069] S405, the chip under test performs a test according to the test instruction sent by the main control chip, and returns a reply content.

[0070] S406, the main control chip compares the reply content with the expected result corresponding to the test instruction to obtain a comparison result.

[0071] S407, the main control chip returns the comparison result to the host computer.

[0072] Optionally, obtaining the test process file includes: running a test script to obtain a test log file; extracting the test process in the test log file, and using the test process as the test process file.

[0073] Combination Figure 5 As shown, the embodiment of the present disclosure provides another method for chip testing, including: S501, the main control chip runs the test script to obtain a test log file.

[0074] S502, the main control chip extracts the test process in the test log file, and uses the test process as a test process file.

[0075] S503, the main control chip converts the acquired test process file into a configuration file.

[0076] S504, the main control chip parses the configuration file so that the chip under test executes the test instructions corresponding to the configuration file.

[0077] In the disclosed embodiment, the test script is run and the log file of the test script is obtained, and the test process is extracted from the log file and stored as a test process file. The automatic execution of the test script and the result verification are realized. Every time the test script changes, it only needs to be re-run to obtain the log file, and all the main control chips can be automatically synchronized and updated.

[0078] Optionally, obtaining the test process file includes: obtaining a test process edited by a user, and using the test process as the test process file.

[0079] Combination Figure 6 As shown, the embodiment of the present disclosure provides another method for chip testing, including: S601, the main control chip obtains the test process edited by the user, and uses the test process as a test process file.

[0080] S602, the main control chip converts the acquired test process file into a configuration file.

[0081] S603, the main control chip parses the configuration file so that the chip under test executes the test instructions corresponding to the configuration file.

[0082] In the disclosed embodiment, the user edits the test process to customize the test process according to the specific chip or test requirements to ensure that the test covers all key aspects. First, it is necessary to clarify the purpose and requirements of the test, including the type of test, test items, test conditions, etc. Design the test process based on the results of the demand analysis. It may include the order of tests, a detailed description of each test step, required parameters, etc. The test process file usually contains columns and rows separated by commas, each column represents a parameter, and each row represents a test step. For example, a test process file may contain the following columns: test step number, test type (functional test, performance test, etc.), test conditions (such as voltage, temperature, etc.), expected results, and execution commands or scripts.

[0083] Convert the test flow file into a format that the main control chip can parse. You may need to write a script or use a specialized software tool to convert the data in the test flow file into JSON, XML, or other formats supported by the main control chip.

[0084] Finally, after the conversion is completed, it is necessary to verify whether the configuration file is correct and ensure that all test instructions can be correctly parsed by the main control chip.

[0085] Combination Figure 7As shown, the embodiment of the present disclosure provides a device 70 for chip testing, including a processor 700 and a memory 701. Optionally, the device 70 may also include a communication interface 702 and a bus 703. The processor 700, the communication interface 702, and the memory 701 may communicate with each other through the bus 703. The communication interface 702 may be used for information transmission. The processor 700 may call the logic instructions in the memory 701 to execute the method for chip testing of the above embodiment.

[0086] In addition, the logic instructions in the memory 701 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0087] The memory 701 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 700 executes functional applications and data processing by running the program instructions / modules stored in the memory 701, that is, implementing the method for chip testing in the above embodiment.

[0088] The memory 701 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 701 may include a high-speed random access memory and may also include a non-volatile memory.

[0089] The embodiments of the present disclosure provide an electronic device, comprising: an electronic device body, and the above-mentioned device 70 for chip testing. The device 70 for chip testing is installed in the electronic device body. The installation relationship described here is not limited to placement inside the electronic device body, but also includes installation connections with other components of the electronic device, including but not limited to physical connections, electrical connections or signal transmission connections, etc. Those skilled in the art can understand that the device 70 for chip testing can be adapted to a feasible electronic device body, thereby realizing other feasible embodiments.

[0090] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.

[0091] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operations may vary. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of one or more associated listings. In addition, when used in this application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the presence of other identical elements in the process, method or device including the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0092] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0093] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0094] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for chip testing, It is characterized in that include: Get the test process document; Convert the acquired test process file into a configuration file; Parse the configuration file so that the chip under test executes the test instructions corresponding to the configuration file.

2. The method according to claim 1, It is characterized in that Convert the acquired test process file into a configuration file, including: Identify the sent content and expected content in the acquired test process file; wherein the sent content includes the test instructions; Instructions are written for the sent content and the expected content respectively; The sending content and expected content processed by instruction writing are structurally encapsulated to obtain a configuration file.

3. The method according to claim 2, It is characterized in that Instructions are written for the sent content and the expected content respectively, including: When the content to be sent is identified, a sending instruction is created and the sending content is stored; In the case where the expected content is identified, the expected content is used as the expected result corresponding to the test instruction in the sent content.

4. The method according to claim 1, It is characterized in that Parse the configuration file so that the chip under test executes the test instructions corresponding to the configuration file, including: Convert the configuration file into a nested structure; According to the instruction set in the nested structure, the chip under test is controlled to execute the test instructions corresponding to the configuration file.

5. The method according to claim 4, It is characterized in that According to the instruction set in the nested structure, the chip under test is controlled to execute the test instructions corresponding to the configuration file, including: Get the number of instruction set cycles; Sending a test instruction in an instruction set to the chip under test to control the chip under test to execute the test instruction; After all test instructions in the instruction set are completed, the number of instruction set cycles is controlled to decrease until the number of instruction set cycles is less than a set threshold.

6. The method according to claim 5, It is characterized in that According to the instruction set in the nested structure, the chip under test is controlled to execute the test instructions corresponding to the configuration file, and also includes: After sending the test instruction in the instruction set to the chip under test, the reply content returned by the chip under test when executing the test instruction is obtained; The reply content is compared with the expected result corresponding to the test instruction to obtain a comparison result.

7. The method according to any one of claims 1 to 6, It is characterized in that Get the test process documentation, including: Run the test script and obtain the test log file; Extract the test process in the test log file and use the test process as a test process file.

8. The method according to any one of claims 1 to 6, It is characterized in that Get the test process documentation, including: Get the test process edited by the user and use the test process as a test process file.

9. A device for chip testing, comprising a processor and a memory storing program instructions, It is characterized in that The processor is configured to execute the chip testing method according to any one of claims 1 to 7 when running the program instructions.

10. An electronic device, It is characterized in that include: Electronic device body; The device for chip testing as described in claim 9 is installed on the electronic device body.

Citation Information

Cited By

  • Test method and system based on microinstruction classification operation, terminal and storage medium

    CN119535072A