An automated framework design method and system for chip system testing

By designing a unified automation framework in chip system testing, using environmental parameters to determine test stages, and uniformly managing the test case execution process and command transmission, the problem of differences in automation frameworks at different stages in traditional solutions is solved, and labor costs and maintenance difficulty are reduced. Achieved the unity and efficiency of test cases and framework.

CN118193379BActive Publication Date: 2024-09-03WUXI STARS MICRO SYSTEM TECHNOLOGIES CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410308889.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-18
Publication Date
2024-09-03
Estimated Expiration
2044-03-18

AI Technical Summary

Technical Problem

In traditional chip system testing, there are differences in the design of the automation framework between the prototype stage and the post-silicon stage, resulting in the need to write two sets of automation frameworks and scripts, which increases labor costs and maintenance difficulty, and makes it impossible to execute automated scripts for complex scenarios on the prototype environment.

Method used

Design an automation framework that develops unified test cases at the test case layer, adds environmental parameters at the framework layer according to the test stage and business scenarios, manages the test case execution process in a unified manner, and calls the serial port or software interface of the communication layer through a unified business interface , to realize command transmission in different test stages.

Benefits of technology

It realizes the integration of automation frameworks in different system testing stages, reduces the need for frequent changes to prototype versions and software versions, reduces the cost of repeated writing and maintenance of automated test cases and frameworks, and unifies script and command execution methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118193379B
    Figure CN118193379B
Patent Text Reader

Abstract

A method and system for designing an automated framework for chip system testing, the method comprising: developing test cases at a test case layer according to chip test objectives, adding environmental parameters to a test framework according to different test phases and test business scenarios, and managing the execution process of test cases in a unified manner at the framework layer; managing test case implementation in a unified manner; encapsulating different test business scenarios at a business layer, and providing a unified business call execution interface for the test case layer, and implementing business information interaction by calling a unified business interface encapsulation method in an interface layer through the business layer; judging the test phase through environmental parameters in the framework layer, calling a serial port command of a communication layer through a unified business interface when the test phase is a prototype phase, and calling a software interface command of a communication layer through a unified business interface when the test phase is a post-silicon phase. The present invention realizes the integration of different system test phases in an automated framework.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of chip testing, and in particular relates to an automated framework design method and system for chip system testing. Background Art

[0002] The system-level test of the verification chip is mainly divided into prototype stage system test and post-silicon stage system test. The prototype stage system test is to use the FPGA environment to verify the system function and firmware function completeness test after the connection of each module system before the chip is taped out. The post-silicon stage system test is to use the product card form to connect to the system after the tape-out, and use software commands to perform system testing.

[0003] With the rapid development of chip design, the functions of chips are becoming more and more complex, and manual testing can no longer fully cover all system test scenarios. Repeated test scenarios can be executed by automated means to reduce labor costs and reduce the probability of errors. Due to the different environments, test objectives and test scopes of system testing in the prototype test phase and system testing in the post-silicon phase, there are also great differences in the commands executed and the methods of issuing them. The traditional solution requires the writing of two sets of automation frameworks and script executions, and the prototype firmware version and software tool version need to be frequently iterated, which increases the labor cost of writing and maintaining automation scripts.

[0004] In addition, see Figure 1 The traditional automation framework for system testing in the prototype stage has simple execution logic and fast script design, but the applicable scenarios are relatively single, because verifying the execution of a function often requires executing multiple serial port commands to be implemented, so usually a script can only execute one scenario. If there are multiple scenarios, new scripts need to be developed for execution. At the same time, the scope of system testing in the prototype stage is relatively limited, and it is impossible to develop automated scripts for complex scenarios in the prototype environment.

[0005] Traditional post-silicon system testing Figure 2 When designing and developing automation scripts, it is necessary to consider the reusability of functions. At the same time, the way to issue commands is through software tools, and a new command transmission method needs to be developed separately to ensure the efficiency and reusability of command execution. Summary of the invention

[0006] The purpose of the present invention is to provide an automated framework design method and system for chip system testing, aiming to integrate the automated frameworks of two system testing stages.

[0007] According to a first aspect of the present invention, there is provided an automated framework design method for chip system testing, comprising:

[0008] Develop test cases at the test case layer according to the chip test objectives, add environmental parameters at the framework layer according to different test phases and test business scenarios, and uniformly manage the execution process of the test cases;

[0009] Encapsulate different test business scenarios in the business layer, and call the unified business interface in the interface layer through the business layer;

[0010] The test phase is determined by environmental parameters in the framework layer. When the test phase is the prototype phase, the serial port command of the communication layer is called through the unified business interface. When the test phase is the post-silicon phase, the software interface command of the communication layer is called through the unified business interface.

[0011] Preferably, the execution process of the test case is uniformly managed, further comprising:

[0012] Centrally manage the execution order, execution process, pre-test, post-test, test logs and test reports of test cases, and manage the environmental parameters of the framework.

[0013] Preferably, the method further comprises:

[0014] The data layer is used to encapsulate the data format returned by the interface layer into a globally unified data type structure.

[0015] Preferably, after the unified business interface in the interface layer is called by the business layer, the method further includes:

[0016] According to the environment parameters added in the framework layer, it is determined whether the called object is a serial interface or a software interface. If it is a serial interface, the test stage is determined to be the prototype stage. If it is a software interface, the test stage is determined to be the post-silicon stage.

[0017] Preferably, the communication layer implements a transmission method for executing by sending down commands through serial port on FPGA environment in the prototype stage, and a transmission method for sending down commands through software on HOST in the post-silicon stage.

[0018] According to a second aspect of the present invention, a system for chip system testing is provided, comprising:

[0019] An execution unit, which is used to develop test cases in the test case layer according to the chip test objectives, add environmental parameters in the framework layer according to different test phases and test business scenarios, and uniformly manage the execution process of the test cases;

[0020] The test case unit is used to write the test case execution steps and logic in the test case layer, encapsulate and implement different test cases, and call and execute them through the framework layer;

[0021] An encapsulation unit, used to encapsulate different test business scenarios in the business layer, and call the unified business interface in the interface layer through the business layer;

[0022] The calling unit is used to call the serial port command of the communication layer through the unified business interface when the test stage is the prototype stage, and to call the software interface command of the communication layer through the unified business interface when the test stage is the post-silicon stage.

[0023] Compared with the related art, the technical solution of the present invention has the following advantages:

[0024] The automation frameworks of different system testing phases are integrated to design and develop a new framework structure, which unifies the scripts, command execution methods, test reports and approaches. During the system testing phase, the prototype version or software version does not need to be changed frequently, reducing the cost of repeated writing of automation test cases and frameworks due to the two sets of environments, as well as the cost of automation script maintenance.

[0025] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures and processes indicated in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. It is obvious that the drawings described below are certain embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 It is a system testing flow chart of the prototype stage according to the prior art.

[0028] Figure 2 It is a flow chart of post-silicon stage system testing according to the prior art.

[0029] Figure 3 It is a flow chart of the automated framework design method for chip system testing according to the present invention.

[0030] Figure 4 1 is an automated framework diagram for chip system testing according to the present invention.

[0031] Figure 5 It is a schematic diagram of the unified management process of test cases at the framework layer according to the present invention.

[0032] Figure 6It is a schematic diagram of a service scenario of service layer encapsulation testing according to the present invention. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] Based on the above analysis, the present invention proposes an automated framework design method and system for chip system testing, which encapsulates corresponding command transmission methods for different test phases and exposes a unified calling method upward.

[0035] Different modules are encapsulated for the commands in the prototype stage and the post-silicon stage from the perspective of system functions. A unified interface call module is encapsulated based on the system functions for calling between other layers. A unified business function module and a unified test case script are developed. The test case script only contains the business execution logic and sequence, and does not contain test commands and transmission methods. Only one test case is written, and the environment parameters of the framework layer are judged based on the interface layer to implement the delivery of different environments. All the use case scripts implement business process execution by calling the business layer interface. Use a unified data type structure to avoid the problem of inconsistent data interaction formats between different layers.

[0036] See also Figure 3 The automated framework design method for chip system testing provided by the present invention includes:

[0037] Step 101: Develop test cases at the test case layer according to the chip test objectives, add environmental parameters at the framework layer according to different test phases and test business scenarios, and uniformly manage the execution process of the test cases.

[0038] The present invention mainly starts from the perspective of overall framework design, with a total of 6 layers of architecture, and the specific framework diagram is shown in Figure 4. The framework layer manages the execution order, execution flow, pre-test, post-test, test log and test report management and execution of test cases, as well as the management of the overall framework environment parameters.

[0039] See also Figure 5When the framework layer starts the automation, it collects environmental information based on the configuration parameters of the framework and stores it in the environment variables. Then, the framework layer collects executable use cases within the scope of the executed use cases and judges the environment parameters required by the use cases. If the use case does not meet the environmental requirements, it will not be added to the queue to be executed. The use cases that meet the environmental requirements will be added to the execution queue. The framework layer executes the pre-function for each use case before execution, and executes the post-function after the use case ends. The overall process control is judged and identified by the framework layer. During the use case execution process, the log and result information of the use case execution are collected, and uniformly collected, managed, and displayed through built-in methods.

[0040] The test case layer develops scripts for the overall test objectives, and no longer considers the development of different test phases and scenarios. Environment parameters are added through the framework layer, and the framework unified interface layer automatically determines the interface to be executed and the delivery method.

[0041] Step 102: Encapsulate different test business scenarios in the business layer, and call the unified business interface in the interface layer through the business layer.

[0042] Based on business scenarios and processes, the business layer calls the unified business interface in the interface layer to implement method call encapsulation for different scenarios. The data layer encapsulates the data format returned from the interface layer into a globally unified data type structure for the interface layer and business layer to call.

[0043] Figure 6 A specific embodiment of the present invention is shown. Based on the same business scenario, FPGA serial port commands are respectively used to encapsulate into FPGA interface logic functions and SSH interface logic functions, so that when the unified call interface is called, the FPGA interface logic function or SSH interface logic function to be executed is first selected through environmental parameters, and then the input parameters of the unified call interface are passed to the specific implementation function method, thereby realizing the encapsulation of different interface scenarios into a unified business interface function method.

[0044] Step 103: Determine the test phase through environmental parameters in the framework layer. When the test phase is the prototype phase, call the serial port command of the communication layer through the unified business interface. When the test phase is the post-silicon phase, call the software interface command of the communication layer through the unified business interface.

[0045] The interface layer encapsulates the serial port commands of the prototype phase into different function methods, and calls the serial port transmission method in the interface layer to execute the commands and return the results. The software tool commands of the system test phase are encapsulated into different function methods, and the HOST command transmission method in the interface layer is called to execute the commands and return the results. The interface layer also develops a unified business call interface based on the overall business. The interface uses the environmental parameters of the framework layer to determine whether to call the serial interface or software interface to achieve a unified method.

[0046] The communication layer implements the transmission method of sending and executing commands through serial port commands on the FPGA environment in the prototype stage, and the transmission method of sending commands on the HOST through software in the post-silicon stage. It is exposed to the interface layer through a unified interface for calling.

[0047] It can be seen that compared with the related art, the automation framework design method for chip system testing proposed in the present invention integrates the automation frameworks of different system testing stages, designs and develops a new framework structure, unifies test case scripts, command execution methods, test reports and approaches, and during the system testing stage, the prototype version or software version does not need to be changed frequently, reducing the cost of repeated writing of automation test cases and frameworks due to the two sets of environments, as well as the cost of automation script maintenance.

[0048] Accordingly, the present invention provides a system for chip system testing in a second aspect, comprising:

[0049] An execution unit, which is used to develop test cases in the test case layer according to the chip test objectives, add environmental parameters in the framework layer according to different test phases and test business scenarios, and uniformly manage the execution process of the test cases;

[0050] The test case unit is used to write the test case execution steps and logic in the test case layer, encapsulate and implement different test cases, and call and execute them through the framework layer;

[0051] An encapsulation unit, used to encapsulate different test business scenarios in the business layer, and call the unified business interface in the interface layer through the business layer;

[0052] The calling unit is used to call the serial port command of the communication layer through the unified business interface when the test stage is the prototype stage, and to call the software interface command of the communication layer through the unified business interface when the test stage is the post-silicon stage.

[0053] The above-mentioned system can be implemented through the automated framework design method for chip system testing provided by the embodiment of the first aspect above. The specific implementation method can be found in the description in the embodiment of the first aspect, and will not be repeated here.

[0054] It is understood that the structures, names and parameters described in the above embodiments are only examples. Those skilled in the art can also easily combine and adjust the structural features of the above embodiments according to the use requirements, and should not limit the concept of the present invention to the specific details of the above examples.

[0055] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for designing an automated framework for chip system testing, characterized in that: include: Develop test cases at the test case layer according to the chip test objectives, add environmental parameters at the framework layer according to different test phases and test business scenarios, and uniformly manage the execution process of the test cases; Encapsulate different test business scenarios in the business layer, and call the unified business interface in the interface layer through the business layer; The test phase is determined by the environmental parameters in the framework layer. When the test phase is the prototype phase, the serial port command of the communication layer is called through the unified business interface. When the test phase is the post-silicon phase, the software interface command of the communication layer is called through the unified business interface, including a transmission method for executing the communication layer's prototype phase by sending serial port commands on the FPGA environment, and a transmission method for sending commands on the HOST through software in the post-silicon phase, which are exposed to the interface layer for calling through a unified interface.

2. The automated framework design method for chip system testing according to claim 1, characterized in that: The unified management of the execution process of the test case further includes: The execution order, execution process, pre-test, post-test, test log and test report of test cases are managed uniformly, and the environmental parameters of the overall framework are managed uniformly.

3. The automated framework design method for chip system testing according to claim 1, characterized in that: The method further includes: The data layer is used to encapsulate the data format returned by the interface layer into a globally unified data type structure.

4. The automated framework design method for chip system testing according to claim 1, characterized in that: After the unified business interface in the interface layer is called by the business layer, the method further includes: According to the environment parameters added in the framework layer, it is determined whether the serial interface or the software interface is called. If it is a serial interface, the test stage is determined to be the prototype stage. If it is a software interface, the test stage is determined to be the post-silicon stage.

5. A system for chip system testing, characterized in that: include: An execution unit, used to develop test cases at the test case layer according to the chip test objectives, add environmental parameters at the framework layer according to different test phases and test business scenarios, and uniformly manage the execution process of the test cases at the framework layer; The test case unit is used to write the test case execution steps and logic in the test case layer, encapsulate and implement different test cases, and call and execute them through the framework layer; An encapsulation unit, used to encapsulate different test business scenarios in the business layer, and call the unified business interface in the interface layer through the business layer; The calling unit is used to determine the test stage through the environmental parameters in the framework layer. When the test stage is the prototype stage, the serial port command of the communication layer is called through the unified business interface. When the test stage is the post-silicon stage, the software interface command of the communication layer is called through the unified business interface. The communication layer implements the transmission method of sending and executing through serial port commands on the FPGA environment in the prototype stage, and the transmission method of sending commands on the HOST through software in the post-silicon stage, which are exposed to the interface layer for calling through a unified interface.

6. The system for chip system testing according to claim 5, characterized in that: The execution unit is further used for: The execution order, execution process, pre-test, post-test, test log and test report of test cases are managed uniformly, and the environmental parameters of the overall framework are managed uniformly.

7. The system for chip system testing according to claim 5, characterized in that: The encapsulation unit is further used for: The data layer is used to encapsulate the data format returned by the interface layer into a globally unified data type structure.

8. The system for chip system testing according to claim 5, characterized in that: The encapsulation unit is further used for: According to the environment parameters added in the framework layer, it is determined whether the called object is a serial interface or a software interface. If it is a serial interface, the test stage is determined to be the prototype stage. If it is a software interface, the test stage is determined to be the post-silicon stage.

Citation Information

Patent Citations

  • Multifunctional embedded development tool with USB interface

    CN107341111A

  • Automatic test platform of high-speed ADC chip and software framework design method thereof

    CN107390109A

  • Test system and test method based on microkernel

    CN114090459A

  • TBOX power supply management automation test device, system and method

    CN114416568A

  • Public solution model test automation framework

    US20130339792A1