[go: up one dir, main page]

CN112015633A - Test excitation multi-platform multiplexing method, device, equipment and storage medium - Google Patents

Test excitation multi-platform multiplexing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112015633A
CN112015633A CN201910465583.8A CN201910465583A CN112015633A CN 112015633 A CN112015633 A CN 112015633A CN 201910465583 A CN201910465583 A CN 201910465583A CN 112015633 A CN112015633 A CN 112015633A
Authority
CN
China
Prior art keywords
test
file
general
macro
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910465583.8A
Other languages
Chinese (zh)
Other versions
CN112015633B (en
Inventor
李光宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Wuxin Technology Co Ltd
Original Assignee
Beijing Wuxin Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Wuxin Technology Co Ltd filed Critical Beijing Wuxin Technology Co Ltd
Priority to CN201910465583.8A priority Critical patent/CN112015633B/en
Publication of CN112015633A publication Critical patent/CN112015633A/en
Application granted granted Critical
Publication of CN112015633B publication Critical patent/CN112015633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/362Debugging of software
    • G06F11/3624Debugging of software by performing operations on the source code, e.g. via a compiler
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The embodiment of the invention discloses a test excitation multi-platform multiplexing method, a test excitation multi-platform multiplexing device, test excitation multi-platform multiplexing equipment and a storage medium. The method comprises the following steps: acquiring a universal test excitation file corresponding to a plurality of tested objects and a macro definition file corresponding to each tested object; the universal test excitation file is used for describing the same test excitation among all the tested objects, and the macro definition file is used for describing different test excitations among all the tested objects; respectively driving corresponding tested objects by adopting a general test excitation file and a macro definition file so as to test the tested objects under comprehensive test excitation; the integrated test stimulus includes the same test stimulus between the objects to be tested and different test stimuli between the objects to be tested and other objects to be tested. The technical scheme of the embodiment of the invention realizes the multiplexing of the same test excitation and different test objects, reduces the coding amount and the coding time and improves the coding efficiency.

Description

测试激励多平台复用方法、装置、设备及存储介质Test excitation multi-platform multiplexing method, device, equipment and storage medium

技术领域technical field

本发明实施例涉及测试技术领域,尤其涉及一种测试激励多平台复用方法、装置、设备及存储介质。Embodiments of the present invention relate to the technical field of testing, and in particular, to a method, apparatus, device, and storage medium for multiplexing multiple platforms of test excitation.

背景技术Background technique

随着测试技术的不断发展,诸如专用集成电路等被测对象的复杂程度越来越高,用于测试被测对象的测试激励也相应地越来越多,导致测试任务比较繁重。With the continuous development of testing technology, the complexity of the object under test such as an application-specific integrated circuit is getting higher and higher, and the test incentives for testing the object under test are correspondingly more and more, resulting in a heavy test task.

现有技术中,对于多个测试激励类似的被测对象,各被测对象需要在对应的测试激励下分别进行测试,这就需要工作人员针对每个被测对象编写一个测试激励,通过将测试激励驱动到不同的被测对象,实现对被测对象的测试验证。但是,使用上述技术对被测对象进行测试验证,不仅不便于测试激励的维护,而且大大增加了编码时间,降低了测试效率。In the prior art, for a plurality of tested objects with similar test stimuli, each tested object needs to be tested under the corresponding test stimuli, which requires the staff to write a test stimulus for each tested object. The excitation is driven to different objects under test to realize the test verification of the objects under test. However, using the above technology to test and verify the object under test is not only inconvenient to maintain the test stimulus, but also greatly increases the coding time and reduces the test efficiency.

发明内容SUMMARY OF THE INVENTION

本发明提供一种测试激励多平台复用方法、装置、设备及存储介质,以实现在不同测试激励中复用同一个通用测试激励文件,减少编码时间,提高测试效率。The invention provides a test excitation multi-platform multiplexing method, device, equipment and storage medium, so as to realize the multiplexing of the same general test excitation file in different test excitations, reduce coding time and improve test efficiency.

第一方面,本发明实施例提供了一种测试激励多平台复用方法,包括:In a first aspect, an embodiment of the present invention provides a multi-platform multiplexing method for test excitation, including:

获取多个被测对象对应的通用测试激励文件,以及各被测对象分别对应的宏定义文件;所述通用测试激励文件用于描述各被测对象之间的相同测试激励,所述宏定义文件用于描述各被测对象之间的不同测试激励;Obtain a general test stimulus file corresponding to a plurality of tested objects, and a macro definition file corresponding to each tested object; the general test stimulus file is used to describe the same test stimulus between the tested objects, and the macro definition file Used to describe the different test stimuli between the tested objects;

采用所述通用测试激励文件和宏定义文件,分别驱动对应的各被测对象,以在综合测试激励下测试各被测对象;所述综合测试激励包括各被测对象之间的相同测试激励以及各被测对象与其它被测对象之间的不同测试激励。The general test stimulus file and the macro definition file are used to drive the corresponding tested objects respectively, so as to test the tested objects under the comprehensive test stimulus; the comprehensive test stimulus includes the same test stimulus among the tested objects and Different test stimuli between the test object and other test objects.

可选的,所述采用所述通用测试激励文件和宏定义文件,分别驱动对应的各被测对象,以在综合测试激励下测试各被测对象,包括:Optionally, the use of the general test stimulus file and the macro definition file to drive the corresponding tested objects respectively, so as to test the tested objects under the comprehensive test stimulus, including:

将所述通用测试激励文件和宏定义文件加载至对应的各被测对象的编译环境中;Loading the general test stimulus file and the macro definition file into the compilation environment of each corresponding measured object;

在编译环境中,编译所述通用测试激励文件和宏定义文件,生成目标代码;In the compilation environment, the general test stimulus file and the macro definition file are compiled to generate object code;

执行所述目标代码,生成综合测试激励,并在所述综合测试激励下测试各被测对象,得到各被测对象的测试结果;Execute the target code, generate a comprehensive test stimulus, and test each tested object under the comprehensive test stimulus to obtain the test result of each tested object;

将各被测对象的测试结果与对应的预期测试结果进行比较,得到测试结论。The test results of each tested object are compared with the corresponding expected test results to obtain a test conclusion.

可选的,所述宏定义文件,包括:定义测试激励的通用宏名,以及扩展自所述通用宏名的、定义被测对象的测试激励的字符串;Optionally, the macro definition file includes: a general macro name that defines the test stimulus, and a character string that is expanded from the general macro name and defines the test stimulus of the tested object;

相应地,所述在编译环境中,编译所述通用测试激励文件和宏定义文件,生成目标代码,包括:Correspondingly, in the compilation environment, the general test stimulus file and the macro definition file are compiled to generate the target code, including:

在编译环境中,当编译到所述通用测试激励文件中的测试激励的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的测试激励的字符串,对所述通用测试激励文件中的测试激励的通用宏名进行替换,生成目标代码。In the compilation environment, when compiling the general macro name of the test stimulus into the general test stimulus file, the character string that defines the test stimulus of the tested object and is expanded from the general macro name in the macro definition file is called , and replace the general macro name of the test stimulus in the general test stimulus file to generate the target code.

可选的,所述宏定义文件,包括:定义描述序列的通用宏名,以及扩展自所述通用宏名的、定义被测对象的描述序列的字符串;Optionally, the macro definition file includes: a general macro name that defines a description sequence, and a character string that is expanded from the general macro name and defines a description sequence of the measured object;

相应地,所述在编译环境中,编译所述通用测试激励文件和宏定义文件,生成目标代码,包括:Correspondingly, in the compilation environment, the general test stimulus file and the macro definition file are compiled to generate the target code, including:

在编译环境中,当编译到所述通用测试激励文件中的描述序列的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的描述序列的字符串,对所述通用测试激励文件中的描述序列的通用宏名进行替换,生成目标代码;In the compilation environment, when compiling the general macro name describing the sequence in the general test stimulus file, call the string in the macro definition file that is expanded from the general macro name and defines the description sequence of the tested object , replace the general macro name of the description sequence in the general test stimulus file, and generate the target code;

其中,所述描述序列由预设数量的基本激励单元按照设定顺序排列获得,用于描述各被测对象之间的不同测试流程。Wherein, the description sequence is obtained by arranging a preset number of basic excitation units in a set order, and is used to describe different test procedures among the tested objects.

可选的,所述宏定义文件,包括:定义时间间隙的通用宏名,以及扩展自所述通用宏名的、定义被测对象的时间间隙的字符串;Optionally, the macro definition file includes: a general macro name that defines a time gap, and a character string that is expanded from the general macro name and defines the time gap of the measured object;

相应地,所述在编译环境中,编译所述通用测试激励文件和宏定义文件,生成目标代码,包括:Correspondingly, in the compilation environment, the general test stimulus file and the macro definition file are compiled to generate the target code, including:

在编译环境中,当编译到所述通用测试激励文件中的时间间隙的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的时间间隙的字符串,对所述通用测试激励文件中的时间间隙的通用宏名进行替换,生成目标代码;In the compilation environment, when compiling into the general macro name of the time slot in the general test stimulus file, call the character string in the macro definition file that is expanded from the general macro name and defines the time slot of the tested object , to replace the general macro name of the time gap in the general test incentive file to generate target code;

其中,所述时间间隙的字符串用于建立与对应的被测对象适配的、发送激励的时间间隙。Wherein, the character string of the time gap is used to establish a time gap for sending excitation adapted to the corresponding measured object.

可选的,所述宏定义文件,包括:定义初始化流程的通用宏名,以及扩展自所述通用宏名的、定义被测对象的初始化流程的字符串;Optionally, the macro definition file includes: a general macro name that defines an initialization process, and a string that expands from the general macro name and defines the initialization process of the object under test;

相应地,所述在编译环境中,编译所述通用测试激励文件和宏定义文件,生成目标代码,包括:Correspondingly, in the compilation environment, the general test stimulus file and the macro definition file are compiled to generate the target code, including:

在编译环境中,当编译到所述通用测试激励文件中的初始化流程的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的初始化流程的字符串,对所述通用测试激励文件中的初始化流程的通用宏名进行替换,生成目标代码;In the compiling environment, when compiling the general macro name of the initialization process in the general test stimulus file, call the string in the macro definition file that is expanded from the general macro name and defines the initialization process of the object under test , replace the general macro name of the initialization process in the general test incentive file to generate target code;

其中,所述初始化流程用于初始化被测对象的配置流程。Wherein, the initialization process is used to initialize the configuration process of the tested object.

可选的,所述宏定义文件,包括:定义被测对象特性的通用宏名,以及扩展自所述通用宏名的、定义被测对象的特性的字符串;Optionally, the macro definition file includes: a general macro name that defines the characteristics of the object under test, and a character string that expands from the general macro name and defines the characteristics of the object under test;

相应地,所述在编译环境中,编译所述通用测试激励文件和宏定义文件,生成目标代码,包括:Correspondingly, in the compilation environment, the general test stimulus file and the macro definition file are compiled to generate the target code, including:

在编译环境中,当编译到所述通用测试激励文件中的被测对象特性的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的特性的字符串,对所述通用测试激励文件中的被测对象特性的通用宏名进行替换,生成目标代码;In the compiling environment, when compiling the general macro name of the characteristic of the tested object in the general test stimulus file, call the character in the macro definition file that is expanded from the general macro name and defines the characteristic of the tested object String, replace the general macro name of the tested object characteristic in the described general test stimulus file, and generate target code;

其中,所述被测对象特性包括访问深度和/或访问宽度。Wherein, the measured object characteristic includes access depth and/or access width.

第二方面,本发明实施例还提供了一种测试激励多平台复用装置,包括:In a second aspect, an embodiment of the present invention also provides a test excitation multi-platform multiplexing device, including:

获取模块,用于获取多个被测对象对应的通用测试激励文件,以及各被测对象分别对应的宏定义文件;所述通用测试激励文件用于描述各被测对象之间的相同测试激励,所述宏定义文件用于描述各被测对象之间的不同测试激励;The acquisition module is used to acquire the general test stimulus files corresponding to the multiple tested objects, and the macro definition files corresponding to the tested objects respectively; the general test stimulus files are used to describe the same test stimulus among the tested objects, The macro definition file is used to describe different test stimuli between the tested objects;

测试模块,用于采用所述通用测试激励文件和宏定义文件,分别驱动对应的各被测对象,以在综合测试激励下测试各被测对象;所述综合测试激励包括各被测对象之间的相同测试激励以及各被测对象与其它被测对象之间的不同测试激励。The test module is used to use the general test stimulus file and the macro definition file to drive the corresponding tested objects respectively, so as to test the tested objects under the comprehensive test stimulus; the comprehensive test stimulus includes the relationship between the tested objects. The same test stimuli and different test stimuli between each test object and other test objects.

第三方面,本发明实施例还提供了一种设备,所述设备包括:In a third aspect, an embodiment of the present invention further provides a device, where the device includes:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现本发明任意实施例提供的测试激励多平台复用方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the test stimulus multi-platform multiplexing method provided by any embodiment of the present invention.

第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例提供的测试激励多平台复用方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the test stimulus multi-platform multiplexing method provided by any embodiment of the present invention.

本发明实施例中,通用测试激励文件用于描述各被测对象之间的相同测试激励,并采用通用测试激励文件驱动各被测对象,从而实现在不同测试对象之间复用同一个通用测试激励文件,即实现了测试激励的复用;宏定义文件用于描述各被测对象之间的不同测试激励,采用通用测试激励文件和宏定义文件,分别驱动对应的各被测对象,以在综合测试激励下测试各被测对象,而无需为各被测对象均编写一套完整的测试激励,采用顶层激励描述相同,底层驱动不同的方式,实现了同一测试激励,在不同测试对象之间的复用,减少编码量和编码时间,提高编码效率,几乎不存在重复性描述,便于测试激励的维护;而且,不同的测试激励通过宏定义的方式抽象化描述,整合了多方面类似的抽象的激励描述,使测试激励描述更加简洁方便,且便于人机交互,进一步提高编码效率,有利于高效地完成测试工作。In the embodiment of the present invention, the general test stimulus file is used to describe the same test stimulus among the tested objects, and the general test stimulus file is used to drive the tested objects, thereby realizing the reuse of the same general test among different test objects Stimulus file, which realizes the multiplexing of test stimuli; the macro definition file is used to describe the different test stimuli between the tested objects, and the general test stimulus file and the macro definition file are used to drive the corresponding tested objects respectively, so as to synthesize the different test stimuli. Test each tested object under test stimulus, without having to write a complete set of test stimulus for each tested object, using the same top-level stimulus description and different bottom-level drivers to achieve the same test stimulus, and between different test objects. Multiplexing, reducing the amount of coding and coding time, improving coding efficiency, and almost no repetitive description, which is convenient for the maintenance of test incentives; moreover, different test incentives are abstractly described through macro definitions, integrating similar abstractions in many aspects. The incentive description makes the test incentive description more concise and convenient, and facilitates human-computer interaction, further improves the coding efficiency, and is conducive to efficiently completing the test work.

附图说明Description of drawings

图1是本发明实施例一中的测试激励多平台复用方法的流程图;Fig. 1 is the flow chart of the test excitation multi-platform multiplexing method in Embodiment 1 of the present invention;

图2a是本发明实施例二中的现有的测试激励发送示意图;Fig. 2a is the existing test excitation transmission schematic diagram in the second embodiment of the present invention;

图2b是本发明实施例二中的测试激励发送示意图;2b is a schematic diagram of test excitation transmission in Embodiment 2 of the present invention;

图3是本发明实施例三中的测试激励多平台复用装置的结构示意图;3 is a schematic structural diagram of a test excitation multi-platform multiplexing device in Embodiment 3 of the present invention;

图4是本发明实施例四中的一种设备的结构示意图。FIG. 4 is a schematic structural diagram of a device in Embodiment 4 of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

实施例一Example 1

图1是本发明实施例一中的测试激励多平台复用方法的流程图,本实施例可适用于对测试激励相似的多个被测对象进行测试的情况,相似的测试激励包括多个被测对象之间相同的测试激励和不同的测试激励。该方法可以由测试激励多平台复用装置来执行,该装置可以由硬件和/或软件来实现,并一般可以集成在提供测试服务的设备中。如图1所示,该方法包括:FIG. 1 is a flowchart of a test stimulus multi-platform multiplexing method in Embodiment 1 of the present invention. This embodiment can be applied to the case of testing multiple tested objects with similar test stimuli. Similar test stimuli include multiple tested objects. The same test stimuli and different test stimuli between the test objects. The method may be performed by a test excitation multi-platform multiplexing apparatus, which may be implemented by hardware and/or software, and may generally be integrated in equipment providing test services. As shown in Figure 1, the method includes:

步骤110、获取多个被测对象对应的通用测试激励文件,以及各被测对象分别对应的宏定义文件;通用测试激励文件用于描述各被测对象之间的相同测试激励,宏定义文件用于描述各被测对象之间的不同测试激励。Step 110: Obtain a general test stimulus file corresponding to a plurality of tested objects, and a macro definition file corresponding to each tested object; the general test stimulus file is used to describe the same test stimulus among the tested objects, and the macro definition file uses It is used to describe the different test stimuli among the test objects.

本实施例中,被测对象又称为在试设备(Design Under Test,DUT),可以在基于通用验证方法学(Universal Verification Methodology,UVM)的验证平台上进行测试验证。本实施例中的多个被测对象的特性类似以及驱动接口类似。示例性地,特性类似指多个被测对象均具有一定的访问深度和/或访问宽度,但访问深度和/或访问宽度的数值不同。驱动接口类似指多个被测对象能够被相同主流程的类似测试激励所驱动。In this embodiment, the object under test is also called a device under test (Design Under Test, DUT), which can be tested and verified on a verification platform based on Universal Verification Methodology (UVM). The properties of the multiple tested objects in this embodiment are similar and the driving interfaces are similar. Exemplarily, the characteristics are similar means that each of the multiple tested objects has a certain access depth and/or access width, but the access depth and/or access width are different in numerical value. Driver interface similarity means that multiple DUTs can be driven by similar test stimuli of the same main process.

由于多个被测对象具有类似特性和类似驱动接口,需要测试相同主流程的测试激励,但是测试激励并非完全相同,而是既具有相同的部分又具有不同的部分,姑且认为多个被测对象的测试激励是相似的。示例性地,相同的测试激励包括:相同的主流程,以及子流程和/或参数;不同的测试激励包括:子流程和/或参数。Since multiple tested objects have similar characteristics and similar drive interfaces, the test stimulus of the same main process needs to be tested, but the test stimulus is not exactly the same, but has both the same part and different parts. The test incentives are similar. Exemplarily, the same test stimuli include: the same main process, and sub-processes and/or parameters; different test stimuli include: sub-processes and/or parameters.

本实施例中,预先将各被测对象之间的相同测试激励的描述写入通用测试激励文件中;并预先将各被测对象之间的不同测试激励的描述分别写入宏定义文件中。其中,通用测试激励文件是指对一个被测对象进行测试任务的描述,其内容可以包括测试目标、测试场景、输入数据、测试步骤、预期测试结果等,用以测试该被测对象是否满足某个设定需求。宏定义文件采用宏定义的方式对不同的测试激励进行抽象描述,从而用宏代替各被测对象之间的不同参数或者不同子流程。而且,宏定义文件集合了多方面不同的测试激励的抽象描述,例如特性不同和时间间隔不同,从而将多方面类似的抽象的激励描述整合到一个文件中,便于维护。In this embodiment, descriptions of the same test stimuli among the tested objects are written in a general test stimulus file in advance; and descriptions of different test stimuli among the tested objects are written into a macro definition file in advance. Among them, the general test stimulus file refers to the description of the test task for an object under test, and its content may include test objectives, test scenarios, input data, test steps, expected test results, etc., to test whether the object under test meets certain requirements. a set requirement. The macro definition file uses the macro definition method to abstractly describe different test stimuli, so that macros are used to replace different parameters or different sub-processes between the tested objects. Moreover, the macro definition file integrates the abstract descriptions of different test stimuli in various aspects, such as different characteristics and different time intervals, so as to integrate the abstract stimuli descriptions that are similar in many aspects into one file for easy maintenance.

进一步的,若多个被测对象的测试激励中包括至少两种类型的测试激励,其中,属于同一类型的测试激励可以认为是相似的,则本实施例可以根据测试激励是否具有相同的主流程,预先对多个被测对象进行相似性划分,将测试激励具有相同主流程的被测对象当作相似的被测对象,分到同一个相似对象集合,针对同一个集合内相似的被测对象,编写一个与多个相似被测对象对应的通用测试激励文件,以及多个与各相似被测对象分别对应的宏定义文件,用于对各相似被测对象进行测试。本实施例中,针对各被测对象,获取与被测对象所属的相似对象集合对应的通用测试激励文件以及与被测对象对应的宏定义文件。可见,各相似的被测对象获取同一通用测试激励文件,以及不同的宏定义文件。Further, if the test stimuli of the multiple tested objects include at least two types of test stimuli, wherein, the test stimuli belonging to the same type can be considered to be similar, then the present embodiment can be based on whether the test stimuli have the same main process. , divide the similarity of multiple tested objects in advance, treat the tested objects with the same main process as similar tested objects, and divide them into the same set of similar objects, aiming at similar tested objects in the same set , write a general test stimulus file corresponding to a plurality of similar test objects, and a plurality of macro definition files corresponding to each similar test object respectively, for testing each similar test object. In this embodiment, for each tested object, a general test stimulus file corresponding to the similar object set to which the tested object belongs and a macro definition file corresponding to the tested object are acquired. It can be seen that each similar test object obtains the same general test stimulus file and different macro definition files.

步骤120、采用通用测试激励文件和宏定义文件,分别驱动对应的各被测对象,以在综合测试激励下测试各被测对象;综合测试激励包括各被测对象之间的相同测试激励以及各被测对象与其它被测对象之间的不同测试激励。Step 120: Use the general test stimulus file and the macro definition file to drive the corresponding tested objects respectively, so as to test each tested object under the comprehensive test stimulus; the comprehensive test stimulus includes the same test stimulus between each tested object and each tested object. Different test stimuli between the test object and other test objects.

获取多个被测对象对应的通用测试激励文件,以及各被测对象分别对应的宏定义文件之后,将通用测试激励文件驱动到各被测对象的接口,将宏定义文件驱动到对应被测对象的接口,进而驱动对应的各被测对象在验证平台上采用两个文件进行测试。在测试过程中需要执行通用测试文件中的主流程,并调用宏定义文件中对不同子流程和/或参数的宏定义,得到完整的综合测试激励,进而在综合测试激励下测试各被测对象。After obtaining the general test stimulus files corresponding to multiple measured objects and the macro definition files corresponding to each measured object, drive the general test stimulus files to the interfaces of each measured object, and drive the macro definition files to the corresponding measured objects. interface, and then drive the corresponding tested objects to use two files for testing on the verification platform. In the test process, it is necessary to execute the main process in the general test file, and call the macro definitions of different subprocesses and/or parameters in the macro definition file to obtain a complete comprehensive test stimulus, and then test each object under test under the comprehensive test stimulus. .

在一具体实施方式中,首先将通用测试激励文件和宏定义文件加载至对应的各被测对象的编译环境中;在编译环境中,编译通用测试激励文件和宏定义文件,生成目标代码。具体地,在通用测试激励文件中,通过宏名(即宏定义)来表示各被测对象不同的测试激励,为了方便描述和区分,将各被测对象的相同宏名称为通用宏名;宏定义文件包括通用宏名和扩展自通用宏名的字符串,通过扩展自通用宏名的字符串来表示不同的测试激励。基于此,在编译环境中,当编译到通用测试激励文件中的通用宏名时,调用宏定义文件中扩展自通用宏名的字符串,对通用测试激励文件中的通用宏名进行替换,生成目标代码。In a specific embodiment, the general test stimulus file and the macro definition file are first loaded into the compilation environment of each corresponding tested object; in the compilation environment, the general test stimulus file and the macro definition file are compiled to generate object code. Specifically, in the general test stimulus file, the different test stimuli of each tested object are represented by the macro name (that is, the macro definition). For the convenience of description and distinction, the same macro name of each tested object is called the general macro name; The definition file includes a general macro name and a character string expanded from the general macro name, and different test stimuli are represented by the character string expanded from the general macro name. Based on this, in the compilation environment, when compiling to the general macro name in the general test stimulus file, the string expanded from the general macro name in the macro definition file is called to replace the general macro name in the general test stimulus file, and generate object code.

接着,执行所述目标代码,生成综合测试激励;在所述综合测试激励下测试各被测对象,得到各被测对象的测试结果;将各被测对象的测试结果与对应的预期测试结果进行比较,得到测试结论。其中,预期测试结果存储在通用测试激励文件中,用于描述被测对象所希望达到的输出或指标,例如,系统响应时间为2ms。Next, execute the target code to generate a comprehensive test stimulus; test each tested object under the comprehensive test stimulus to obtain the test result of each tested object; compare the test result of each tested object with the corresponding expected test result Compare and get test conclusions. Among them, the expected test result is stored in the general test stimulus file, which is used to describe the desired output or index of the tested object, for example, the system response time is 2ms.

本发明实施例中,通用测试激励文件用于描述各被测对象之间的相同测试激励,并采用通用测试激励文件驱动各被测对象,从而实现在不同测试对象之间复用同一个通用测试激励文件,即实现了测试激励的复用;宏定义文件用于描述各被测对象之间的不同测试激励,采用通用测试激励文件和宏定义文件,分别驱动对应的各被测对象,以在综合测试激励下测试各被测对象,而无需为各被测对象均编写一套完整的测试激励,采用顶层激励描述相同,底层驱动不同的方式,实现了同一测试激励,在不同测试对象之间的复用,减少编码量和编码时间,提高编码效率,几乎不存在重复性描述,便于测试激励的维护;而且,不同的测试激励通过宏定义的方式抽象化描述,整合了多方面类似的抽象的激励描述,使测试激励描述更加简洁方便,且便于人机交互,进一步提高编码效率,有利于高效地完成测试工作。In the embodiment of the present invention, the general test stimulus file is used to describe the same test stimulus among the tested objects, and the general test stimulus file is used to drive the tested objects, thereby realizing the reuse of the same general test among different test objects Stimulus file, which realizes the multiplexing of test stimuli; the macro definition file is used to describe the different test stimuli between the tested objects, and the general test stimulus file and the macro definition file are used to drive the corresponding tested objects respectively, so as to synthesize the different test stimuli. Test each tested object under test stimulus, without having to write a complete set of test stimulus for each tested object, using the same top-level stimulus description and different bottom-level drivers to achieve the same test stimulus, and between different test objects. Multiplexing, reducing the amount of coding and coding time, improving coding efficiency, and almost no repetitive description, which is convenient for the maintenance of test incentives; moreover, different test incentives are abstractly described through macro definitions, integrating similar abstractions in many aspects. The incentive description makes the test incentive description more concise and convenient, and facilitates human-computer interaction, further improves the coding efficiency, and is conducive to efficiently completing the test work.

实施例二Embodiment 2

本实施例在上述实施例的基础上,详细描述宏定义文件的描述,以及在不同描述下,通过编译通用测试激励文件和宏定义文件,生成目标代码的过程。宏定义文件包括下述描述中的至少一条,下面分情况对每条描述,以及相应的目标代码生成过程进行详细描述。On the basis of the above embodiments, this embodiment describes in detail the description of the macro definition file, and the process of generating object code by compiling the general test stimulus file and the macro definition file under different descriptions. The macro definition file includes at least one of the following descriptions. The following describes each description and the corresponding object code generation process in detail.

第一种情况:宏定义文件包括:定义测试激励的通用宏名,以及扩展自所述通用宏名的、定义被测对象的测试激励的字符串。相应地,在编译环境中,当编译到所述通用测试激励文件中的测试激励的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的测试激励的字符串,对所述通用测试激励文件中的测试激励的通用宏名进行替换,生成目标代码。The first case: the macro definition file includes: a general macro name that defines the test stimulus, and a character string that is expanded from the general macro name and defines the test stimulus of the tested object. Correspondingly, in the compilation environment, when compiling into the general macro name of the test stimulus in the general test stimulus file, the test stimulus that defines the object under test, which is expanded from the general macro name in the macro definition file, is called. , replace the general macro name of the test stimulus in the general test stimulus file, and generate the target code.

在此情况中,定义测试激励的通用宏名可认为是测试激励的名称。然而,各被测对象的测试激励并不相同,测试激励的名称应予以区分,因此,采用扩展自通用宏名的、定义被测对象的测试激励的字符串,作为被测对象的测试激励的名称,也可以进一步作为宏定义文件的标识。通过将通用测试激励文件中的通用宏名替换为各被测对象对应的字符串,从而生成目标代码,实现不同宏定义文件的调用。In this case, the generic macro name that defines the test stimulus can be considered the name of the test stimulus. However, the test stimuli of each tested object are not the same, and the names of the test stimuli should be distinguished. Therefore, the character string that defines the test stimuli of the tested object, which is expanded from the general macro name, is used as the test stimuli of the tested object. The name can also be further used as the identifier of the macro definition file. By replacing the general macro name in the general test stimulus file with the string corresponding to each tested object, the target code is generated, and the calling of different macro definition files is realized.

第二种情况:宏定义文件包括:定义描述序列的通用宏名,以及扩展自通用宏名的、定义被测对象的描述序列的字符串;其中,描述序列由预设数量的基本激励单元按照设定顺序排列获得,用于描述各被测对象之间的不同测试流程。相应地,在编译环境中,当编译到所述通用测试激励文件中的描述序列的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的描述序列的字符串,对所述通用测试激励文件中的描述序列的通用宏名进行替换,生成目标代码。The second case: the macro definition file includes: a general macro name that defines the description sequence, and a character string that defines the description sequence of the measured object extended from the general macro name; wherein, the description sequence is defined by a preset number of basic excitation units according to The set order is obtained and used to describe the different test procedures among the tested objects. Correspondingly, in the compilation environment, when compiling into the general macro name of the description sequence in the general test stimulus file, call the description sequence in the macro definition file that is expanded from the general macro name and defines the object under test. , replace the general macro name describing the sequence in the general test stimulus file, and generate the target code.

在此情况中,基本激励单元可以是一个操作步骤,而描述序列是由多个操作步骤按照设定的顺序排列得到的一个操作过程,由于每个被测对象所适用的测试流程不尽相同,因此,各被测对象的宏定义文件中所定义的描述序列的宏具有相同的宏名,即通用宏名;通过扩展自通用宏名的、定义被测对象的描述序列的字符串来具体描述各测试激励之间不同的测试流程,从而在执行目标代码,以对各被测对象进行测试时,通过调用不同宏定义文件中的描述序列的宏实现不同的测试流程。In this case, the basic excitation unit can be an operation step, and the description sequence is an operation process obtained by arranging multiple operation steps in a set order. Therefore, the macros that describe the sequence defined in the macro definition file of each measured object have the same macro name, that is, the general macro name; it is specifically described by the character string that is expanded from the general macro name and defines the description sequence of the measured object. Different test flow between each test stimuli, so when the target code is executed to test each tested object, different test flow is realized by calling the macros describing the sequence in different macro definition files.

第三种情况:宏定义文件包括:定义时间间隙的通用宏名,以及扩展自通用宏名的、定义被测对象的时间间隙的字符串;其中,时间间隙的字符串用于建立与对应的被测对象适配的、发送激励的时间间隙。相应地,在编译环境中,当编译到所述通用测试激励文件中的时间间隙的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的时间间隙的字符串,对所述通用测试激励文件中的时间间隙的通用宏名进行替换,生成目标代码。The third case: the macro definition file includes: the general macro name that defines the time gap, and the character string that expands from the general macro name and defines the time gap of the measured object; wherein, the string of the time gap is used to establish the corresponding The time slot in which the test object is adapted to send the stimulus. Correspondingly, in the compilation environment, when compiling into the general macro name of the time slot in the general test stimulus file, the time slot in the macro definition file that is expanded from the general macro name and defines the measured object is called. , replace the general macro name of the time slot in the general test stimulus file, and generate the target code.

在此情况中,对各被测对象进行测试时,需要将通用激励文件分成多个数据包发送给被测对象,时间间隙是指发送相邻数据包的时间间隔。由于不同被测对象对时间间隙的要求不同,因此,各被测对象的宏定义文件中所定义的时间间隙的宏具有相同的宏名,即通用宏名,通过扩展自通用宏名的、定义被测对象的时间间隙的字符串来描述各不同的发送相邻数据包的时间间隔,从而在执行目标代码,以对各被测对象进行测试时,通过调用不同宏定义文件中的时间间隙的字符串,设置不同的发送相邻数据包的时间间隔。In this case, when testing each measured object, the general stimulus file needs to be divided into multiple data packets and sent to the measured object, and the time gap refers to the time interval for sending adjacent data packets. Since different measured objects have different requirements for time gaps, the macros of the time gaps defined in the macro definition files of each measured object have the same macro name, that is, the general macro name. The string of the time gap of the tested object describes the different time intervals for sending adjacent data packets, so that when the target code is executed to test each tested object, the time gap in the file is defined by calling different macros. String, setting different time intervals for sending adjacent packets.

第四种情况:宏定义文件包括:定义初始化流程的通用宏名,以及扩展自所述通用宏名的、定义被测对象的初始化流程的字符串,其中,所述初始化流程用于初始化被测对象的配置流程。相应地,在编译环境中,当编译到所述通用测试激励文件中的初始化流程的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的初始化流程的字符串,对所述通用测试激励文件中的初始化流程的通用宏名进行替换,生成目标代码;The fourth case: the macro definition file includes: a general macro name that defines the initialization process, and a string that is expanded from the general macro name and defines the initialization process of the object under test, wherein the initialization process is used to initialize the object under test. The configuration process for the object. Correspondingly, in the compilation environment, when compiling into the general macro name of the initialization process in the general test stimulus file, the initialization process that defines the object under test, which is expanded from the general macro name in the macro definition file, is called. character string, replace the general macro name of the initialization process in the general test incentive file, and generate target code;

在此情况中,由于不同被测对象的初始化配置流程不同,因此,各被测对象对应的宏定义文件中所定义的初始化流程的宏具有相同的宏名,即通用宏名;通过扩展自通用宏名的、定义被测对象的初始化流程的字符串来描述各不同被测对象的初始化配置流程,从而在执行目标代码,以对各被测对象进行测试时,通过调用不同宏定义文件中的初始化流程的字符串,实现不同的初始化配置流程。In this case, since the initialization configuration process of different objects under test is different, the macros of the initialization process defined in the macro definition file corresponding to each object under test have the same macro name, that is, the general macro name; The string of the macro name that defines the initialization process of the object under test describes the initialization configuration process of different objects under test, so that when the target code is executed to test each object under test, by calling different macro definition files. The string of the initialization process to implement different initialization configuration processes.

第五种情况:宏定义文件包括:定义被测对象特性的通用宏名,以及扩展自所述通用宏名的、定义被测对象的特性的字符串,其中,所述被测对象特性包括访问深度和/或访问宽度。相应地,在编译环境中,当编译到所述通用测试激励文件中的被测对象特性的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的特性的字符串,对所述通用测试激励文件中的被测对象特性的通用宏名进行替换,生成目标代码;The fifth case: the macro definition file includes: a general macro name that defines the characteristics of the object under test, and a character string that is expanded from the general macro name and defines the characteristics of the object under test, wherein the characteristics of the object under test include access depth and/or access width. Correspondingly, in the compilation environment, when compiling into the general macro name of the measured object characteristic in the general test stimulus file, call the macro definition file that is expanded from the general macro name and defines the measured object. Character string, replace the general macro name of the measured object characteristic in the general test stimulus file, and generate target code;

在此情况中,示例性的,假设被测对象为存储器,存储器可以进行行维度的访问或者列维度的访问,则访问宽度和访问深度可以认为是存储器的可被访问的行数和列数。由于不同被测对象的特性不同,因此,各被测对象对应的宏定义文件中所定义的被测对象特性的宏具有相同的宏名,即通用宏名;通过扩展自通用宏名的、定义被测对象的被测对象特性的字符串来描述各不同被测对象的特性,从而在执行目标代码,以对各被测对象进行测试时,通过调用不同宏定义文件中的被测对象特性的字符串设置不同的特性。In this case, exemplarily, assuming that the measured object is a memory, and the memory can perform row dimension access or column dimension access, the access width and access depth can be regarded as the number of accessible rows and columns of the memory. Because the characteristics of different measured objects are different, the macros of the measured object characteristics defined in the macro definition file corresponding to each measured object have the same macro name, that is, the general macro name; The character string of the tested object's characteristics of the tested object describes the characteristics of different tested objects, so that when the target code is executed to test each tested object, the test object characteristics in different macro definition files are called. Strings set different properties.

下面,以一具体应用场景详细说明宏定义文件的具体描述和测试过程。Below, the specific description and testing process of the macro definition file are described in detail with a specific application scenario.

示例性的,假设有两个被测对象,分别为第一被测对象(Object1)和第二被测对象(Object2),这两个被测对象的指令配置流程以及逻辑查找流程类似,因此,可以从两个被测对象的指令配置激励以及逻辑查找激励中抽象出相同的主流程,并编写对应的通用测试激励文件;再分别根据两个被测对象之间不同的配置激励和逻辑查找激励编写各自的宏定义文件。例如,被测对象Object1的宏定义文件如下所示:Exemplarily, it is assumed that there are two objects under test, namely the first object under test (Object1) and the second object under test (Object2). The instruction configuration process and logical search process of these two objects under test are similar. Therefore, The same main process can be abstracted from the instruction configuration stimulus and logic search stimulus of the two tested objects, and the corresponding general test stimulus file can be written; then according to the different configuration stimulus and logic search stimulus between the two tested objects Write their own macro definition files. For example, the macro definition file of the object under test Object1 is as follows:

Object1_def.sv:Object1_def.sv:

Figure BDA0002079312840000131
Figure BDA0002079312840000131

被测对象Object2的宏定义文件如下所示:The macro definition file of the object under test Object2 is as follows:

Object2_def.sv:Object2_def.sv:

Figure BDA0002079312840000132
Figure BDA0002079312840000132

上述两个宏定义文件中,OBJECT_BASE_TEST表示测试激励的通用宏名,被测对象Object1和Object2各自的测试激励都扩展自TCAM_BASE_TEST,分别为字符串:Object1_base_test和Object2_base_test,以保证该通用测试激励可以在不同验证场景中被驱动。OBJECT_DIFF_FLOW表示描述序列的通用宏名,描述被测对象Object1和Object2的不同测试流程,在通用测试激励中对流程中不同的部分使用宏定义名称相同的描述序列,可以保证测试流程中不同的描述可以在同一通用测试激励中使用。OBJECT_CFG_2_SEND_TIME表示相同的序列(sequence)或者项(item)驱动的时间间隙的通用宏名,其中,一个序列是一个完整的信息流,项是序列中最小组成单位的集合,由于被测对象Object1和Object2对发送激励(即序列或项)的时间间隙的要求是不同的,因此在通用测试激励中使用宏定义名称相同的时间间隙的宏进行不同时间间隙的建立,以适配不同的被测对象;OBJECT_INIT_FLOW表示初始化流程的通用宏名,OBJECT_WIDTH表示被测对象的访问宽度的通用宏名,OBJECT_DEEP表示被测对象的访问深度的通用宏名。In the above two macro definition files, OBJECT_BASE_TEST represents the general macro name of the test stimulus, and the respective test stimulus of the objects under test Object1 and Object2 are extended from TCAM_BASE_TEST, which are strings: Object1_base_test and Object2_base_test, to ensure that the general test stimulus can be used in different Verify that the scene is driven. OBJECT_DIFF_FLOW represents the general macro name that describes the sequence, and describes the different test processes of the objects under test Object1 and Object2. In the general test stimulus, the macro definition sequence with the same name is used for different parts of the process, which can ensure that different descriptions in the test process can be Used in the same generic test stimulus. OBJECT_CFG_2_SEND_TIME represents the general macro name of the same sequence (sequence) or item (item)-driven time gap, where a sequence is a complete information flow, and an item is a collection of the smallest unit in the sequence, because the measured objects Object1 and Object2 The requirements for the time slot for sending the stimulus (ie sequence or item) are different, so in the general test stimulus, macros with the same time slot name are used to establish different time slots to adapt to different measured objects; OBJECT_INIT_FLOW represents the general macro name of the initialization process, OBJECT_WIDTH represents the general macro name of the access width of the tested object, and OBJECT_DEEP represents the general macro name of the access depth of the tested object.

测试设备获取被测对象Object1和Object2对应的通用测试激励文件,被测对象Object1对应的宏定义文件Object1_def.sv,以及被测对象Object2对应的宏定义文件Object2_def.sv,用通用测试激励文件和宏定义文件代替现有技术中各被测对象对应的测试激励文件。The test equipment obtains the general test stimulus file corresponding to the tested objects Object1 and Object2, the macro definition file Object1_def.sv corresponding to the tested object Object1, and the macro definition file Object2_def.sv corresponding to the tested object Object2, and use the general test stimulus file and macro definition file. The file replaces the test stimulus file corresponding to each tested object in the prior art.

接着,测试设备将通用测试激励文件和宏定义文件Object1_def.sv加载至被测对象Object1的编译环境中,以及将通用测试激励文件和宏定义文件Object2_def.sv加载至被测对象Object2的编译环境中,以对通用测试激励文件和宏定义文件进行编译,生成目标代码。Next, the test equipment loads the general test stimulus file and the macro definition file Object1_def.sv into the compilation environment of the object under test Object1, and loads the general test stimulus file and the macro definition file Object2_def.sv into the compilation environment of the object under test Object2, so as to Compile the general test stimulus file and macro definition file to generate object code.

如图2a所示,现有技术中针对被测对象Object1和Object2,相似的测试激励要在两个测试激励中分别定义以及编写,增加了编码时间,并且一旦进行了参数或者子流程的修改,对于测试激励也不好维护,增加了代码维护的工作量。针对上述问题,如图2b所示,本发明实施例根据两个被测对象之间相同的测试激励,编写通用测试激励文件,并针对被测对象Object1和Object2分别编写宏定义文件Object1_def.sv和Object2_def.sv,这两个宏定义文件中分别使用相同的宏名对通用测试激励中不同的子流程以及参数进行了定义,使其可以在同一通用测试激励文件中运行,从而方便了代码的维护,减少了编码时间,提高了测试效率。As shown in Figure 2a, in the prior art, for the objects under test Object1 and Object2, similar test stimuli need to be defined and written in the two test stimuli respectively, which increases the coding time, and once the parameters or sub-processes are modified, It is also difficult to maintain test incentives, which increases the workload of code maintenance. In view of the above problems, as shown in FIG. 2b, the embodiment of the present invention writes a general test stimulus file according to the same test stimulus between two objects under test, and writes the macro definition files Object1_def.sv and Object1_def.sv respectively for the objects Object1 and Object2 under test Object2_def.sv, the two macro definition files use the same macro names to define different sub-processes and parameters in the general test stimulus, so that they can be run in the same general test stimulus file, which facilitates code maintenance , reducing coding time and improving test efficiency.

然后,执行目标代码,生成综合测试激励;并在综合测试激励下测试上述两个被测对象。Then, execute the target code to generate a comprehensive test stimulus; and test the above two tested objects under the comprehensive test stimulus.

可选的,测试设备在综合测试激励下按照设定的测试步骤测试各被测对象,并纪录各被测对象在测试过程中产生的测试数据,通过对测试数据进行分析得到测试结果。将各被测对象的测试结果与对应的预期测试结果进行比较,得到测试结论。其中,测试结论是对测试任务的执行情况以及测试结果进行总结,其可以包括:对测试风险的控制措施和成效、测试目标是否完成、测试是否通过、是否存在遗留问题以及是否可以进入下一阶段的测试等内容。Optionally, the test equipment tests each test object according to the set test steps under the comprehensive test incentive, records the test data generated by each test object during the test, and obtains the test result by analyzing the test data. The test results of each tested object are compared with the corresponding expected test results to obtain a test conclusion. Among them, the test conclusion is a summary of the implementation of the test task and the test results, which may include: control measures and results of the test risk, whether the test goal is completed, whether the test is passed, whether there are remaining problems, and whether the next stage can be entered. tests, etc.

可选的,测试设备将各被测对象的测试结果与对应的预期测试结果进行比较,若测试结果与对应的预期测试结果一致,则该测试目标完成,若所有测试目标都完成,则被测对象通过测试;若测试结果与对应的预期测试结果不一致,则该测试目标没有完成,被测对象未通过测试。Optionally, the test equipment compares the test results of each test object with the corresponding expected test results. If the test results are consistent with the corresponding expected test results, the test target is completed. If all test targets are completed, the test target is completed. The object passes the test; if the test result is inconsistent with the corresponding expected test result, the test target has not been completed, and the tested object has not passed the test.

本实施例中,从定义测试激励、描述序列、时间间隔、初始化流程和被测对象特性多个方面,对测试激励的不同之处进行描述,涵盖面广泛,可应用于多种被测对象的应用场景中;通过定义通用宏名和字符串,并编译通用测试激励文件和宏定义文件,生成目标代码,进而通过执行目标代码实现上述多方面区别的测试激励。In this embodiment, the differences in test stimuli are described from the aspects of defining test stimuli, description sequence, time interval, initialization process and the characteristics of the measured object, which cover a wide range and can be applied to a variety of measured objects. In the application scenario; by defining the general macro name and string, and compiling the general test stimulus file and the macro definition file, the target code is generated, and then the above-mentioned different test stimulus is realized by executing the target code.

实施例三Embodiment 3

图3是本发明实施例三中的测试激励多平台复用装置的结构示意图。本实施例可适用于对测试激励相似的多个被测对象进行测试的情况,相似的测试激励包括多个被测对象之间相同的测试激励和不同的测试激励。如图3所示,该测试激励多平台复用装置应用于提供测试服务的设备,包括:FIG. 3 is a schematic structural diagram of a test excitation multi-platform multiplexing device in Embodiment 3 of the present invention. This embodiment is applicable to the case of testing multiple tested objects with similar test stimuli, and the similar test stimuli include the same test stimuli and different test stimuli among the multiple tested objects. As shown in Figure 3, the test incentive multi-platform multiplexing device is applied to equipment providing test services, including:

获取模块310,用于获取多个被测对象对应的通用测试激励文件,以及各被测对象分别对应的宏定义文件;通用测试激励文件用于描述各被测对象之间的相同测试激励,宏定义文件用于描述各被测对象之间的不同测试激励;The obtaining module 310 is used to obtain the general test stimulus files corresponding to the multiple measured objects, and the macro definition files corresponding to each measured object; the general test stimulus file is used to describe the same test stimulus among the measured objects, and the macro The definition file is used to describe the different test stimuli between the tested objects;

测试模块320,用于采用通用测试激励文件和宏定义文件,分别驱动对应的各被测对象,以在综合测试激励下测试各被测对象;综合测试激励包括各被测对象之间的相同测试激励以及各被测对象与其它被测对象之间的不同测试激励。The test module 320 is used for using the general test stimulus file and the macro definition file to drive the corresponding tested objects respectively, so as to test the tested objects under the comprehensive test stimulus; the comprehensive test stimulus includes the same test stimulus between the tested objects And different test stimuli between each tested object and other tested objects.

本发明实施例中,通用测试激励文件用于描述各被测对象之间的相同测试激励,并采用通用测试激励文件驱动各被测对象,从而实现在不同测试对象之间复用同一个通用测试激励文件,即实现了测试激励的复用;宏定义文件用于描述各被测对象之间的不同测试激励,采用通用测试激励文件和宏定义文件,分别驱动对应的各被测对象,以在综合测试激励下测试各被测对象,而无需为各被测对象均编写一套完整的测试激励,采用顶层激励描述相同,底层驱动不同的方式,实现了同一测试激励,在不同测试对象之间的复用,减少编码量和编码时间,提高编码效率,几乎不存在重复性描述,便于测试激励的维护;而且,不同的测试激励通过宏定义的方式抽象化描述,整合了多方面类似的抽象的激励描述,使测试激励描述更加简洁方便,且便于人机交互,进一步提高编码效率,有利于高效地完成测试工作。In the embodiment of the present invention, the general test stimulus file is used to describe the same test stimulus among the tested objects, and the general test stimulus file is used to drive the tested objects, thereby realizing the reuse of the same general test among different test objects Stimulus file, which realizes the multiplexing of test stimuli; the macro definition file is used to describe the different test stimuli between the tested objects, and the general test stimulus file and the macro definition file are used to drive the corresponding tested objects respectively, so as to synthesize the different test stimuli. Test each tested object under test stimulus, without having to write a complete set of test stimulus for each tested object, using the same top-level stimulus description and different bottom-level drivers to achieve the same test stimulus, and between different test objects. Multiplexing, reducing the amount of coding and coding time, improving coding efficiency, and almost no repetitive description, which is convenient for the maintenance of test incentives; moreover, different test incentives are abstractly described through macro definitions, integrating similar abstractions in many aspects. The incentive description makes the test incentive description more concise and convenient, and facilitates human-computer interaction, further improves the coding efficiency, and is conducive to efficiently completing the test work.

进一步的,测试模块320还包括:加载单元,用于将所述通用测试激励文件和宏定义文件加载至对应的各被测对象的编译环境中;编译单元,用于在编译环境中,编译所述通用测试激励文件和宏定义文件,生成目标代码;测试单元,用于执行所述目标代码,生成综合测试激励,并在所述综合测试激励下测试各被测对象,得到各被测对象的测试结果;比较单元,用于将各被测对象的测试结果与对应的预期测试结果进行比较,得到测试结论。Further, the test module 320 further includes: a loading unit for loading the general test stimulus file and the macro definition file into the corresponding compilation environment of each tested object; a compilation unit for compiling the A general test stimulus file and a macro definition file to generate target code; a test unit is used to execute the target code, generate a comprehensive test stimulus, and test each tested object under the comprehensive test stimulus to obtain the test result of each tested object ; The comparison unit is used to compare the test results of each tested object with the corresponding expected test results to obtain a test conclusion.

进一步的,宏定义文件,包括:定义测试激励的通用宏名,以及扩展自通用宏名的、定义被测对象的测试激励的字符串;Further, the macro definition file includes: a general macro name that defines the test stimulus, and a character string that is expanded from the general macro name and defines the test stimulus of the tested object;

相应地,编译单元可以具体用于:在编译环境中,当编译到所述通用测试激励文件中的测试激励的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的测试激励的字符串,对所述通用测试激励文件中的测试激励的通用宏名进行替换,生成目标代码。Correspondingly, the compiling unit can be specifically used for: in the compiling environment, when compiling the general macro name of the test stimulus in the general test stimulus file, calling the macro definition file extended from the general macro name, Define the character string of the test stimulus of the tested object, replace the general macro name of the test stimulus in the general test stimulus file, and generate the target code.

进一步的,宏定义文件,包括:定义描述序列的通用宏名,以及扩展自通用宏名的、定义被测对象的描述序列的字符串;Further, the macro definition file includes: a general macro name that defines the description sequence, and a character string that is expanded from the general macro name and defines the description sequence of the object under test;

相应地,编译单元还可以用于:在编译环境中,当编译到所述通用测试激励文件中的描述序列的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的描述序列的字符串,对所述通用测试激励文件中的描述序列的通用宏名进行替换,生成目标代码;其中,描述序列由预设数量的基本激励单元按照设定顺序排列获得,用于描述各被测对象的不同测试流程。Correspondingly, the compiling unit can also be used to: in the compiling environment, when compiling into the general macro name of the description sequence in the general test stimulus file, call the macro definition file extended from the general macro name in the macro definition file. Define the character string of the description sequence of the tested object, replace the general macro name of the description sequence in the general test excitation file, and generate the target code; wherein, the description sequence is arranged by a preset number of basic excitation units in a set order Obtained, used to describe the different test procedures of each tested object.

进一步的,宏定义文件,包括:定义时间间隙的通用宏名,以及扩展自通用宏名的、定义被测对象的时间间隙的字符串;Further, the macro definition file includes: a general macro name that defines the time gap, and a character string that is expanded from the general macro name and defines the time gap of the measured object;

相应地,编译单元还可以用于:在编译环境中,当编译到所述通用测试激励文件中的时间间隙的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的时间间隙的字符串,对所述通用测试激励文件中的时间间隙的通用宏名进行替换,生成目标代码;其中,时间间隙的字符串用于建立与对应的被测对象适配的、发送激励的时间间隙。Correspondingly, the compiling unit can also be used to: in the compiling environment, when compiling into the general macro name of the time slot in the general test stimulus file, call the macro definition file extended from the general macro name, The character string that defines the time gap of the measured object, and the general macro name of the time gap in the general test stimulus file is replaced to generate the target code; wherein, the character string of the time gap is used to establish a suitable test object for the corresponding measured object. The configured time slot for sending the stimulus.

进一步的,宏定义文件,包括:定义初始化流程的通用宏名,以及扩展自通用宏名的、定义被测对象的初始化流程的字符串;Further, the macro definition file includes: a general macro name that defines the initialization process, and a string that is expanded from the general macro name and defines the initialization process of the object under test;

相应地,编译单元还可以用于:在编译环境中,当编译到所述通用测试激励文件中的初始化流程的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的初始化流程的字符串,对所述通用测试激励文件中的初始化流程的通用宏名进行替换,生成目标代码;其中,初始化流程用于初始化被测对象的配置流程。Correspondingly, the compiling unit can also be used to: in the compiling environment, when compiling into the general macro name of the initialization process in the general test stimulus file, call the macro definition file extended from the general macro name, A character string that defines the initialization process of the tested object, and the general macro name of the initialization process in the general test stimulus file is replaced to generate the target code; wherein, the initialization process is used to initialize the configuration process of the tested object.

进一步的,宏定义文件,包括:定义被测对象特性的通用宏名,以及扩展自通用宏名的、定义被测对象的特性的字符串;Further, the macro definition file includes: a general macro name that defines the characteristics of the object under test, and a character string that is expanded from the general macro name and defines the characteristics of the object under test;

相应地,编译单元还可以用于:在编译环境中,当编译到所述通用测试激励文件中的被测对象特性的通用宏名时,调用所述宏定义文件中扩展自所述通用宏名的、定义被测对象的特性的字符串,对所述通用测试激励文件中的被测对象特性的通用宏名进行替换,生成目标代码;其中,所述被测对象特性包括访问深度和/或访问宽度。Correspondingly, the compiling unit can also be used to: in the compiling environment, when compiling into the general macro name of the characteristic of the tested object in the general test stimulus file, call the general macro name expanded from the general macro name in the macro definition file. , define the character string of the tested object, replace the common macro name of the tested object feature in the general test stimulus file, and generate the target code; wherein, the tested object feature includes access depth and/or Access width.

本发明实施例所提供的测试激励多平台复用装置可执行本发明任意实施例所提供的应用于提供测试服务的设备的测试激励多平台复用方法,具备执行方法相应的功能模块和有益效果。The test stimulus multi-platform multiplexing apparatus provided by the embodiment of the present invention can execute the test stimulus multi-platform multiplexing method provided by any embodiment of the present invention and applied to a device providing test services, and has corresponding functional modules and beneficial effects of the execution method. .

实施例四Embodiment 4

参照图4,图4是本发明实施例四提供的一种测试设备的结构示意图,如图4所示,该测试设备包括处理器410、存储器420、输入装置430和输出装置440;测试设备中处理器410的数量可以是一个或多个,图4中以一个处理器410为例;测试设备中的处理器410、存储器420、输入装置430和输出装置440可以通过总线或其他方式连接,图4中以通过总线连接为例。Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a test device provided in Embodiment 4 of the present invention. As shown in FIG. 4, the test device includes a processor 410, a memory 420, an input device 430 and an output device 440; The number of processors 410 may be one or more, and one processor 410 is taken as an example in FIG. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the test equipment may be connected by a bus or other means, as shown in FIG. In 4, the connection through the bus is taken as an example.

存储器420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的测试激励多平台复用方法对应的程序指令/模块(例如,测试激励多平台复用装置中的获取模块310和测试模块320)。处理器410通过运行存储在存储器420中的软件程序、指令以及模块,从而执行测试设备的各种功能应用以及数据处理,即实现上述的测试激励多平台复用方法。As a computer-readable storage medium, the memory 420 can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the test stimulus multi-platform multiplexing method in the embodiment of the present invention (for example, test stimulus multi-platform multiplexing). The acquisition module 310 and the test module 320 in the platform multiplexing device). The processor 410 executes various functional applications and data processing of the test equipment by running the software programs, instructions and modules stored in the memory 420 , that is, to implement the above-mentioned test stimulus multi-platform multiplexing method.

存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器420可进一步包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至测试设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 420 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Additionally, memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to the test equipment through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

输入装置430可用于接收输入的数字或字符信息,以及产生与测试设备的用户设置以及功能控制有关的键信号输入。输出装置440可包括显示屏等显示设备。The input device 430 may be used to receive input numerical or character information, and to generate key signal input related to user settings and function control of the test equipment. The output device 440 may include a display device such as a display screen.

实施例五Embodiment 5

本发明实施例五提供了一种计算机可读存储介质,其上存储有计算机指令,该计算机指令被处理器执行时实现一种测试激励多平台复用方法,一种测试激励多平台复用方法包括:Embodiment 5 of the present invention provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, a method for multiplexing multiple platforms of test excitation and a method for multiplexing multiple platforms of test excitation are realized. include:

获取多个被测对象对应的通用测试激励文件,以及各被测对象分别对应的宏定义文件;所述通用测试激励文件用于描述各被测对象之间的相同测试激励,所述宏定义文件用于描述各被测对象之间的不同测试激励;Obtain a general test stimulus file corresponding to a plurality of tested objects, and a macro definition file corresponding to each tested object; the general test stimulus file is used to describe the same test stimulus between the tested objects, and the macro definition file Used to describe the different test stimuli between the tested objects;

采用所述通用测试激励文件和宏定义文件,分别驱动对应的各被测对象,以在综合测试激励下测试各被测对象;所述综合测试激励包括各被测对象之间的相同测试激励以及各被测对象与其它被测对象之间的不同测试激励。The general test stimulus file and the macro definition file are used to drive the corresponding tested objects respectively, so as to test the tested objects under the comprehensive test stimulus; the comprehensive test stimulus includes the same test stimulus among the tested objects and Different test stimuli between the test object and other test objects.

当然,本发明实施例所提供的一种计算机可读存储介质,其计算机指令可执行不限于如上的方法操作,还可以执行本发明任意实施例所提供的测试激励多平台复用方法中的相关操作。Certainly, a computer-readable storage medium provided by the embodiments of the present invention, the computer instructions of which can be executed are not limited to the above method operations, and can also execute the relevant test excitation multi-platform multiplexing methods provided by any embodiment of the present invention. operate.

通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。From the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be realized by software and necessary general-purpose hardware, and of course can also be realized by hardware, but in many cases the former is a better embodiment . Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in a computer-readable storage medium, such as a floppy disk of a computer , read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or CD, etc., including several instructions to make a computer device (which can be a personal computer, A server, or a network device, etc.) executes the methods of the various embodiments of the present invention.

值得注意的是,上述测试激励多平台复用装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above-mentioned embodiment of the multi-platform multiplexing device for test excitation, the units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized. ; In addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present invention.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (10)

1. A test stimulus multi-platform multiplexing method is characterized by comprising the following steps:
acquiring a universal test excitation file corresponding to a plurality of tested objects and a macro definition file corresponding to each tested object; the universal test stimulus file is used for describing the same test stimulus among all tested objects, and the macro definition file is used for describing different test stimuli among all tested objects;
adopting the general test excitation file and the macro definition file to respectively drive the corresponding tested objects so as to test the tested objects under the comprehensive test excitation; the integrated test stimulus includes the same test stimulus between the measurands and different test stimuli between the measurands and other measurands.
2. The method of claim 1, wherein the using the generic test stimulus file and the macro definition file to drive the corresponding objects under test respectively to test the objects under the integrated test stimulus comprises:
loading the general test excitation file and the macro definition file into the corresponding compiling environment of each tested object;
compiling the general test excitation file and the macro definition file in a compiling environment to generate an object code;
executing the target code, generating comprehensive test excitation, and testing each tested object under the comprehensive test excitation to obtain a test result of each tested object;
and comparing the test result of each tested object with the corresponding expected test result to obtain a test conclusion.
3. The method of claim 2, wherein the macro definition file comprises: defining a generic macro name of a test stimulus, and a string of test stimuli defining a tested object extended from the generic macro name;
correspondingly, in the compiling environment, compiling the general test stimulus file and the macro definition file to generate object code, including:
in a compiling environment, when the universal macro name of the test excitation in the universal test excitation file is compiled, calling a character string which is extended from the universal macro name and defines the test excitation of the tested object in the macro definition file, and replacing the universal macro name of the test excitation in the universal test excitation file to generate a target code.
4. The method of claim 2, wherein the macro definition file comprises: defining a universal macro name of a description sequence, and a character string which is extended from the universal macro name and defines the description sequence of the tested object;
correspondingly, in the compiling environment, compiling the general test stimulus file and the macro definition file to generate object code, including:
in a compiling environment, when compiling a general macro name of a description sequence in the general test excitation file, calling a character string which is extended from the general macro name and defines the description sequence of a tested object in the macro definition file, and replacing the general macro name of the description sequence in the general test excitation file to generate a target code;
the description sequence is obtained by arranging a preset number of basic excitation units according to a set sequence and is used for describing different test procedures among all tested objects.
5. The method of claim 2, wherein the macro definition file comprises: the method comprises the steps of defining a universal macro name of a time gap, and a character string which extends from the universal macro name and defines the time gap of a measured object;
correspondingly, in the compiling environment, compiling the general test stimulus file and the macro definition file to generate object code, including:
in a compiling environment, when compiling the universal macro name of the time gap in the universal test excitation file, calling a character string which is expanded from the universal macro name and defines the time gap of the tested object in the macro definition file, and replacing the universal macro name of the time gap in the universal test excitation file to generate a target code;
the character string of the time gap is used for establishing the time gap which is matched with the corresponding measured object and used for sending the excitation.
6. The method of claim 2, wherein the macro definition file comprises: defining a universal macro name of an initialization process, and a character string which is expanded from the universal macro name and defines the initialization process of a tested object;
correspondingly, in the compiling environment, compiling the general test stimulus file and the macro definition file to generate object code, including:
in a compiling environment, when compiling the general macro name of the initialization flow in the general test excitation file, calling a character string which is expanded from the general macro name and defines the initialization flow of the tested object in the macro definition file, and replacing the general macro name of the initialization flow in the general test excitation file to generate a target code;
the initialization process is used for initializing the configuration process of the measured object.
7. The method of claim 2, wherein the macro definition file comprises: the method comprises the steps of defining a universal macro name of the characteristic of a measured object and a character string which extends from the universal macro name and defines the characteristic of the measured object;
correspondingly, in the compiling environment, compiling the general test stimulus file and the macro definition file to generate object code, including:
in a compiling environment, when compiling a general macro name of the characteristic of the tested object in the general test excitation file, calling a character string which is extended from the general macro name and defines the characteristic of the tested object in the macro definition file, and replacing the general macro name of the characteristic of the tested object in the general test excitation file to generate a target code;
wherein the measurand characteristics include an access depth and/or an access width.
8. A test stimulus multi-platform multiplexing device, comprising:
the acquisition module is used for acquiring a universal test excitation file corresponding to a plurality of tested objects and a macro definition file corresponding to each tested object; the universal test stimulus file is used for describing the same test stimulus among all tested objects, and the macro definition file is used for describing different test stimuli among all tested objects;
the testing module is used for respectively driving the corresponding tested objects by adopting the general testing excitation file and the macro definition file so as to test the tested objects under the comprehensive testing excitation; the integrated test stimulus includes the same test stimulus between the measurands and different test stimuli between the measurands and other measurands.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the test stimulus multi-platform multiplexing method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the test stimulus multi-platform multiplexing method according to any one of claims 1 to 7.
CN201910465583.8A 2019-05-30 2019-05-30 Test stimulation multi-platform reuse methods, devices, equipment and storage media Active CN112015633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910465583.8A CN112015633B (en) 2019-05-30 2019-05-30 Test stimulation multi-platform reuse methods, devices, equipment and storage media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910465583.8A CN112015633B (en) 2019-05-30 2019-05-30 Test stimulation multi-platform reuse methods, devices, equipment and storage media

Publications (2)

Publication Number Publication Date
CN112015633A true CN112015633A (en) 2020-12-01
CN112015633B CN112015633B (en) 2023-11-17

Family

ID=73501064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910465583.8A Active CN112015633B (en) 2019-05-30 2019-05-30 Test stimulation multi-platform reuse methods, devices, equipment and storage media

Country Status (1)

Country Link
CN (1) CN112015633B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114580344A (en) * 2022-04-24 2022-06-03 飞腾信息技术有限公司 Test excitation generation method, verification system and related equipment
CN117891719A (en) * 2023-12-13 2024-04-16 上海天数算力电子科技有限公司 Excitation generation method, apparatus, storage medium, and excitation generator

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0081653A2 (en) * 1981-11-30 1983-06-22 International Business Machines Corporation Method of recording and reading optimum density bar code
US20050154550A1 (en) * 2003-02-14 2005-07-14 Advantest America R&D Center, Inc. Method and structure to develop a test program for semiconductor integrated circuits
CN104881396A (en) * 2015-06-05 2015-09-02 南京南瑞继保电气有限公司 Graphical-program compile file forming method
US20170277836A1 (en) * 2016-03-22 2017-09-28 International Business Machines Corporation Identifying Professional Incentive Goal Progress and Contacts for Achieving Goal
CN108845952A (en) * 2018-08-17 2018-11-20 成都成电光信科技股份有限公司 A kind of avionics FC data stimuli method based on test case script

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0081653A2 (en) * 1981-11-30 1983-06-22 International Business Machines Corporation Method of recording and reading optimum density bar code
US20050154550A1 (en) * 2003-02-14 2005-07-14 Advantest America R&D Center, Inc. Method and structure to develop a test program for semiconductor integrated circuits
CN104881396A (en) * 2015-06-05 2015-09-02 南京南瑞继保电气有限公司 Graphical-program compile file forming method
US20170277836A1 (en) * 2016-03-22 2017-09-28 International Business Machines Corporation Identifying Professional Incentive Goal Progress and Contacts for Achieving Goal
CN108845952A (en) * 2018-08-17 2018-11-20 成都成电光信科技股份有限公司 A kind of avionics FC data stimuli method based on test case script

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
田成辉: "基于谐振腔的模式激励研究", 《中国优秀硕士学位论文全文数据库 (信息科技辑)》, no. 03, pages 135 - 90 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114580344A (en) * 2022-04-24 2022-06-03 飞腾信息技术有限公司 Test excitation generation method, verification system and related equipment
CN117891719A (en) * 2023-12-13 2024-04-16 上海天数算力电子科技有限公司 Excitation generation method, apparatus, storage medium, and excitation generator

Also Published As

Publication number Publication date
CN112015633B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN103631720B (en) The generation method and apparatus of test case
KR101132560B1 (en) System and method for automatic interface testing based on simulation for robot software components
US20050177775A1 (en) Data race detection using sequential program analysis
CN109766261B (en) Coverage test method, coverage test device, computer equipment and storage medium
KR20090017598A (en) Method and system for analyzing software
US9223683B1 (en) Tool to analyze dependency injection object graphs for common error patterns
US10853041B2 (en) Extensible instrumentation
US20110055777A1 (en) Verification of Soft Error Resilience
US20100162217A1 (en) Debugging System Using Static Analysis
CN111797006B (en) Method, device and equipment for testing thread and storage medium
Walkinshaw et al. Iterative refinement of reverse-engineered models by model-based testing
Panigrahi et al. An approach to prioritize the regression test cases of object-oriented programs
CN112579475A (en) Code testing method, device, equipment and readable storage medium
CN113190238A (en) Framework deployment method and device, computer equipment and storage medium
CN110419031B (en) Code coverage tracking for microcontroller programs
US8930765B2 (en) Systems and methods for feedback driven regression testing
CN112015633A (en) Test excitation multi-platform multiplexing method, device, equipment and storage medium
CN115809076A (en) ECU software automation integration method and system
CN108897678B (en) Static code detection method, static code detection system, storage device
US20070061641A1 (en) Apparatus and method for generating test driver
CN113204350B (en) Code incremental coverage statistics method, device, electronic device and storage medium
CN114490337A (en) Commissioning method, commissioning platform, equipment and storage medium
Takeda et al. Applying change impact analysis test to migration test case extraction based on IDAU and graph analysis techniques
US10579761B1 (en) Method and system for reconstructing a graph presentation of a previously executed verification test
Herczeg et al. Evaluation and Comparison of Dynamic Call Graph Generators for JavaScript.

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant