CN119473253B - Method and device for generating testability design script, electronic equipment and storage medium - Google Patents
Method and device for generating testability design script, electronic equipment and storage mediumInfo
- Publication number
- CN119473253B CN119473253B CN202411691753.1A CN202411691753A CN119473253B CN 119473253 B CN119473253 B CN 119473253B CN 202411691753 A CN202411691753 A CN 202411691753A CN 119473253 B CN119473253 B CN 119473253B
- Authority
- CN
- China
- Prior art keywords
- information
- script
- target
- tested
- test
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/30—Circuit design
- G06F30/32—Circuit design at the digital level
- G06F30/333—Design for testability [DFT], e.g. scan chain or built-in self-test [BIST]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/10—Requirements analysis; Specification techniques
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
技术领域Technical Field
本公开涉及可测试性设计技术领域,尤其涉及一种生成可测性设计脚本的方法、装置、电子设备及存储介质。The present disclosure relates to the technical field of design for testability, and in particular to a method, device, electronic device, and storage medium for generating a design for testability script.
背景技术Background Art
随着芯片规模的不断增大和工艺制程的持续进步,芯片可测性设计(Design ForTest,DFT)对于芯片的制造和质量保证至关重要,该技术通过在芯片设计阶段引入特定的逻辑和结构,以便于在芯片制造后能有效地测试芯片,检查芯片的制造缺陷。With the continuous increase in chip scale and the continuous advancement of process technology, chip testability design (Design For Test, DFT) is crucial to chip manufacturing and quality assurance. This technology introduces specific logic and structure during the chip design stage to facilitate effective chip testing after chip manufacturing and check for manufacturing defects.
现有DFT全流程的实现依赖于自动化测试工具,如电子设计自动化(ElectronicDesign Automation,EDA)工具,而使用这些自动化测试工具需要DFT工程师根据需求逐步去编写定制化的脚本流程,通过这些脚本完成DFT知识产权核(Intellectual Property,IP)的插入、验证、时序收敛以及最终测试。The existing DFT full process relies on automated testing tools, such as Electronic Design Automation (EDA) tools. Using these automated testing tools requires DFT engineers to gradually write customized script processes according to needs. These scripts are used to complete the insertion, verification, timing convergence and final testing of DFT intellectual property (IP) cores.
但手动编写DFT流程中的脚本需要花费大量的时间,降低了开发效率。However, manually writing scripts in the DFT process takes a lot of time and reduces development efficiency.
发明内容Summary of the Invention
本公开提供了一种生成可测性设计脚本的方法、装置、电子设备及存储介质;能够自动生成用于芯片硬件电路的测试脚本。The present disclosure provides a method, device, electronic device and storage medium for generating a design for testability script, which can automatically generate a test script for a chip hardware circuit.
本公开的技术方案是这样实现的:The technical solution of the present disclosure is achieved as follows:
第一方面,本公开提供了一种生成可测性设计脚本的方法,该方法包括:根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术;根据测试目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息;根据脚本设计信息,生成用于测试待测目标的自动化脚本文件。如此,用户仅需给出待测需求参数,根据待测需求参数自动生成用于对待测目标进行测试的自动化脚本文件,相较于手动生成自动化脚本文件,可以减少人为错误,提升准确性的同时,减少手动编写测试脚本的时间,从而提升测试效率。In a first aspect, the present disclosure provides a method for generating a testability design script, the method comprising: determining a test technology for a target to be tested based on test technology indication information in a test requirement parameter; determining script design information based on the test technology of the test target and the target information in the test requirement parameter; and generating an automated script file for testing the target to be tested based on the script design information. In this way, a user only needs to provide the test requirement parameter, and an automated script file for testing the target to be tested is automatically generated based on the test requirement parameter. Compared to manually generating automated script files, this method can reduce human error, improve accuracy, and reduce the time spent on manually writing test scripts, thereby improving testing efficiency.
本公开一些实施例中,根据脚本设计信息,生成用于测试待测目标的自动化脚本文件,包括:从脚本设计信息中解析得到变量信息、导入文件、初始化环境信息、约束设置信息、可测试性设计的规范文件信息、测试向量信息及仿真工具信息;根据变量信息、导入文件、初始化环境信息、约束设置信息、可测试性设计的规范文件信息、测试向量信息及仿真工具信息,生成自动化脚本文件。本实施例中,通过集成变量信息、导入文件、初始化环境信息、约束设置信息、可测试性设计的规范文件信息、测试向量信息及仿真工具信息,在确保自动生成脚本文件的同时,能够综合考虑多种测试因素,确保测试的全面性和准确性。In some embodiments of the present disclosure, an automated script file for testing a target to be tested is generated based on script design information, including: parsing variable information, import files, initialization environment information, constraint setting information, testability design specification file information, test vector information, and simulation tool information from the script design information; and generating an automated script file based on the variable information, import files, initialization environment information, constraint setting information, testability design specification file information, test vector information, and simulation tool information. In this embodiment, by integrating variable information, import files, initialization environment information, constraint setting information, testability design specification file information, test vector information, and simulation tool information, while ensuring the automatic generation of the script file, a variety of test factors can be comprehensively considered to ensure the comprehensiveness and accuracy of the test.
在一些实施例中,根据脚本设计信息,生成用于测试待测目标的自动化脚本文件之前,该方法还包括:从脚本设计信息中解析得到目标自动化测试工具;根据脚本设计信息,生成用于测试待测目标的自动化脚本文件,包括:根据脚本设计信息,生成与目标自动化测试工具匹配的自动化脚本文件。本实施例中,通过解析脚本设计信息以确定目标自动化测试工具,可以生成与特定测试工具兼容的脚本文件,确保测试过程的顺利进行;由于脚本文件是针对特定的测试工具定制的,减少了需要手动调整和适配的工作量,进一步提升了测试效率。In some embodiments, before generating an automated script file for testing a target to be tested based on the script design information, the method further includes: parsing the script design information to obtain a target automated testing tool; and generating an automated script file for testing the target to be tested based on the script design information, including: generating an automated script file that matches the target automated testing tool based on the script design information. In this embodiment, by parsing the script design information to determine the target automated testing tool, a script file compatible with the specific testing tool can be generated, ensuring the smooth progress of the testing process; because the script file is customized for the specific testing tool, the workload required for manual adjustment and adaptation is reduced, further improving testing efficiency.
在一些实施例中,脚本设计信息包括:待测目标的制造信息和测试信息,根据测试目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息,包括:根据待测目标信息,获取待测目标的制造信息;根据测试目标的测试技术和待测目标信息,获取测试信息。本实施例中,获取制造信息和测试信息,不仅可以减少后续解析过程中的数据量,从而提升测试效率,而且待测目标信息中可以根据需要,包括不同的数据,用户可以灵活选择输入的待测目标信息,提升用户体验。In some embodiments, the script design information includes: manufacturing information and test information of the target to be tested. Based on the test technology of the test target and the target information in the test requirement parameters, the script design information is determined, including: obtaining the manufacturing information of the target to be tested based on the target information; and obtaining test information based on the test technology of the test target and the target information. In this embodiment, obtaining manufacturing information and test information not only reduces the amount of data in the subsequent parsing process, thereby improving testing efficiency, but also allows the target information to include different data as needed, allowing users to flexibly select the target information to be input, thereby improving the user experience.
在一些实施例中,根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术,包括:根据测试技术的选中标识,将选中标识的取值为选中取值的测试技术确定为待测目标的测试技术。本实施例中,测试技术指示信息中包括该测试技术是否被选中的选中标识,即对于用户选中的任意测试技术,在待测需求参数中仅需要更改测试技术的选中标识对应的取值,对于待测需求参数的改写更少,且解析逻辑不变,均是将选中标识的取值为选中取值的测试技术确定为待测目标的测试技术,解析过程固定,从而使得整个测试流程更省时。In some embodiments, the test technology of the target to be tested is determined based on the test technology indication information in the requirement parameters to be tested, including: based on the selection identifier of the test technology, determining the test technology whose selection identifier has the selected value as the test technology of the target to be tested. In this embodiment, the test technology indication information includes a selection identifier indicating whether the test technology is selected, that is, for any test technology selected by the user, only the value corresponding to the selection identifier of the test technology needs to be changed in the requirement parameters to be tested, and the rewriting of the requirement parameters to be tested is less, and the parsing logic remains unchanged, and the test technology whose selection identifier has the selected value is determined as the test technology of the target to be tested. The parsing process is fixed, which makes the entire test process more time-saving.
在一些实施例中,根据待测目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息,包括:根据待测目标的测试技术和待测需求参数中的待测目标信息,获取初始脚本设计信息;将初始脚本设计信息转化为键值格式的脚本设计信息。本实施例中将获取到的初始脚本设计信息按照键值格式进行存储,以使得在根据脚本设计信息,生成用于测试待测目标的自动化脚本文件的过程中可以快速检索,数据处理速度快,从而进一步提升生成脚本的效率,缩短测试周期。In some embodiments, determining script design information based on the test technology of the target to be tested and the target information in the test requirement parameters includes: obtaining initial script design information based on the test technology of the target to be tested and the target information in the test requirement parameters; and converting the initial script design information into script design information in a key-value format. In this embodiment, the obtained initial script design information is stored in the key-value format to enable rapid retrieval and data processing during the process of generating an automated script file for testing the target to be tested based on the script design information, thereby further improving the efficiency of script generation and shortening the testing cycle.
本公开一些实施例中,根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术之前,该方法还包括:接收图形用户界面上用户输入的待测需求参数。如此,用户可以通过图形用户界面填写待测需求参数,简化了信息输入过程,根据图形用户界面上的提示信息,非专业人员也能根据指示进行输入操作,简化了生成自动化脚本文件的过程。In some embodiments of the present disclosure, before determining the test technology for the target to be tested based on the test technology indication information in the test requirement parameters, the method further includes: receiving the test requirement parameters input by a user via a graphical user interface. This allows the user to enter the test requirement parameters via the graphical user interface, simplifying the information input process. Furthermore, non-professionals can also perform input operations according to the prompts on the graphical user interface, simplifying the process of generating automated script files.
第二方面,本公开提供了一种生成可测性设计脚本的装置,该装置包括:确定部分和生成部分; 确定部分,被配置为根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术;确定部分,还被配置为根据待测目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息;生成部分,被配置为根据脚本设计信息,生成用于测试待测目标的自动化脚本文件。In a second aspect, the present disclosure provides a device for generating a testability design script, which includes: a determination part and a generation part; the determination part is configured to determine the test technology of the target to be tested based on the test technology indication information in the requirement parameters to be tested; the determination part is also configured to determine the script design information based on the test technology of the target to be tested and the target to be tested information in the requirement parameters to be tested; the generation part is configured to generate an automated script file for testing the target to be tested based on the script design information.
第三方面,本公开提供了一种电子设备,该电子设备包括处理器、存储器及存储在该存储器上并可在该处理器上运行的程序或指令,该程序或指令被该处理器执行时实现如第一方面所述的生成可测性设计脚本的方法的步骤。In a third aspect, the present disclosure provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method for generating a testability design script as described in the first aspect.
第四方面,本公开提供了一种计算机可读存储介质,该计算机可读存储介质上存储程序或指令,该程序或指令被处理器执行时实现如第一方面所述的生成可测性设计脚本的方法的步骤。In a fourth aspect, the present disclosure provides a computer-readable storage medium storing a program or instruction. When the program or instruction is executed by a processor, the steps of the method for generating a testability design script as described in the first aspect are implemented.
第五方面,本公开提供了一种计算机程序产品,其中,该计算机程序产品包括计算机程序或指令,当该计算机程序产品在处理器上运行时,使得处理器执行该计算机程序或指令,实现如第一方面所述的生成可测性设计脚本的方法的步骤。In a fifth aspect, the present disclosure provides a computer program product, wherein the computer program product includes a computer program or instructions. When the computer program product runs on a processor, the processor executes the computer program or instructions to implement the steps of the method for generating a testability design script as described in the first aspect.
第六方面,本公开提供了一种芯片,该芯片包括处理器和通信接口,该通信接口和该处理器耦合,该处理器用于运行程序或指令,实现如第一方面所述的生成可测性设计脚本的方法。In a sixth aspect, the present disclosure provides a chip comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method for generating a design for testability script as described in the first aspect.
本公开提供了一种生成可测性设计脚本的方法,该方法包括:根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术;根据待测目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息;根据脚本设计信息,生成用于测试待测目标的自动化脚本文件。如此,用户仅需给出待测需求参数,根据待测需求参数自动生成用于对待测目标进行测试的自动化脚本文件,相较于手动生成自动化脚本文件,可以减少人为错误,提升准确性的同时,减少手动编写测试脚本的时间,从而提升测试效率。The present disclosure provides a method for generating a testability design script, the method comprising: determining a test technology for a target to be tested based on test technology indication information in a test requirement parameter; determining script design information based on the test technology for the target to be tested and the target information in the test requirement parameter; and generating an automated script file for testing the target to be tested based on the script design information. In this way, a user only needs to provide the test requirement parameter, and an automated script file for testing the target to be tested is automatically generated based on the test requirement parameter. Compared to manually generating an automated script file, this method can reduce human errors, improve accuracy, and reduce the time required to manually write test scripts, thereby improving testing efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本公开提供的一种示例性系统架构的示意图;FIG1 is a schematic diagram of an exemplary system architecture provided by the present disclosure;
图2为本公开提供的生成可测性设计脚本的方法的流程示意图之一;FIG2 is a flow chart of a method for generating a design for testability script provided by the present disclosure;
图3为本公开提供的生成可测性设计脚本的方法的流程示意图之二;FIG3 is a second flow chart of the method for generating a design for testability script provided by the present disclosure;
图4为本公开提供的生成可测性设计脚本的方法的流程示意图之三;FIG4 is a third flow chart of the method for generating a design for testability script provided by the present disclosure;
图5为本公开提供的生成可测性设计脚本的方法的流程示意图之四;FIG5 is a fourth flow chart of the method for generating a design for testability script provided by the present disclosure;
图6为本公开提供的图像用户界面的示意图;FIG6 is a schematic diagram of a graphical user interface provided by the present disclosure;
图7为本公开提供的一种生成可测性设计脚本的装置的结构框图;FIG7 is a structural block diagram of an apparatus for generating a design for testability script provided by the present disclosure;
图8为本公开提供的一种电子设备的硬件结构示意图。FIG8 is a schematic diagram of the hardware structure of an electronic device provided by the present disclosure.
具体实施方式DETAILED DESCRIPTION
下面将结合本公开中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in this disclosure to clearly describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
本公开提供一种生成可测性设计脚本的方法,图1示出了可以实现上述生成可测性设计脚本的方法的系统架构的示意图,该系统架构100可以包括终端110与服务器120。其中,终端110可以是智能手机、平板电脑、台式电脑、笔记本电脑等终端设备,服务器120泛指提供本示例性实施方式中生成可测性设计脚本的后台系统,可以是一台服务器或多台服务器形成的集群。终端110与服务器120之间可以通过有线或无线的通信链路形成连接,以进行数据交互。The present disclosure provides a method for generating a design for testability script. FIG1 illustrates a schematic diagram of a system architecture that can implement the method. System architecture 100 may include a terminal 110 and a server 120. Terminal 110 may be a terminal device such as a smartphone, tablet computer, desktop computer, or laptop computer. Server 120 generally refers to a backend system that generates a design for testability script in this exemplary embodiment and may be a single server or a cluster of multiple servers. Terminal 110 and server 120 may be connected via a wired or wireless communication link to exchange data.
在一种实施方式中,可以由终端110执行上述生成可测性设计脚本的方法。例如,用户使用终端110导入待测需求参数或者用户在终端110的图形用户界面上输入待测需求参数,由终端110根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术;根据待测目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息;根据脚本设计信息,生成用于测试待测目标的自动化脚本文件。In one embodiment, the method for generating a design for testability script can be performed by terminal 110. For example, a user uses terminal 110 to import the requirement parameters to be tested, or the user enters the requirement parameters to be tested on a graphical user interface of terminal 110. Terminal 110 then determines the test technology for the target to be tested based on the test technology indication information in the requirement parameters to be tested; determines script design information based on the test technology for the target to be tested and the target information in the requirement parameters to be tested; and generates an automated script file for testing the target to be tested based on the script design information.
在一种实施方式中,可以由服务器120执行上述生成可测性设计脚本的方法。例如,用户使用终端110导入待测需求参数或者用户在终端110的图形用户界面上输入待测需求参数后,终端110将该待测需求参数上传至服务器120,由服务器120根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术;根据待测目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息;根据脚本设计信息,生成用于测试待测目标的自动化脚本文件,向终端110返回自动化脚本文件。In one embodiment, the method for generating a design for testability script can be executed by server 120. For example, after a user uses terminal 110 to import the test requirement parameters or inputs the test requirement parameters on the graphical user interface of terminal 110, terminal 110 uploads the test requirement parameters to server 120. Server 120 then determines the test technology for the target to be tested based on the test technology indication information in the test requirement parameters; determines script design information based on the test technology for the target to be tested and the target information in the test requirement parameters; generates an automation script file for testing the target to be tested based on the script design information, and returns the automation script file to terminal 110.
由上可知,本示例性实施方式中的生成可测性设计脚本的方法的执行主体可以是上述终端110或服务器120,本公开对此不做限定。As can be seen from the above, the execution entity of the method for generating a design for testability script in this exemplary embodiment may be the terminal 110 or the server 120 , which is not limited in this disclosure.
下面结合附图,通过具体的实施例对本公开提供的生成可测性设计脚本的方法进行详细地说明。The method for generating a design for testability script provided by the present disclosure will be described in detail below through specific embodiments in conjunction with the accompanying drawings.
如图2所示,本公开提供一种生成可测性设计脚本的方法,可以包括下述的步骤S201至步骤S203。As shown in FIG2 , the present disclosure provides a method for generating a design for testability script, which may include the following steps S201 to S203 .
在步骤S201中,根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术。In step S201, the test technology of the target to be tested is determined according to the test technology indication information in the test requirement parameters.
待测需求参数用于指示对待测目标进行DFT测试依赖的需求参数,包括:需要测试的待测目标信息,测试技术等。The requirement parameters to be tested are used to indicate the requirement parameters that the DFT test of the target to be tested depends on, including: the target to be tested information, test technology, etc.
测试技术用于指示芯片设计阶段在芯片中插入的测试逻辑,不同的测试技术在芯片设计阶段添加的测试逻辑不同,测试技术包括:边界扫描(Boundary Scan,BSCAN)、存储器内建自测试(Memory Build in Self Test,MBIST)以及逻辑测试(Logic Test,LTEST)。待测目标信息用于指示待测目标在生产制造过程中的制造信息,以及通过不同测试技术进行测试时依赖的测试信息,待测目标信息可以是待测目标的标识、待测目标对应的制造信息、待测目标对应的制造信息的存储路径、测试信息等。Test technology indicates the test logic inserted into the chip during the chip design phase. Different test technologies add different test logic during the chip design phase. Test technologies include boundary scan (BSCAN), memory built-in self-test (MBIST), and logic test (LTEST). Test target information indicates the manufacturing information of the target during the manufacturing process, as well as the test information relied upon when testing using different test technologies. Test target information can include the target's identifier, the target's corresponding manufacturing information, the storage path for the target's corresponding manufacturing information, and test information.
其中,BSCAN主要针对芯片的输入和输出端口进行测试,其原理是在核心逻辑电路的输入和输出端口都增加一个寄存器,通过将这些输入和输出端口上的寄存器连接起来,可以将数据串行输入被测单元,并从相应端口串行读出,从而实现测试;MBIST主要针对存储器进行测试,其原理是在芯片设计时在存储器中嵌入一些特殊的测试电路,用于自检和测试,这些测试电路可以通过特定的测试模式,将存储器中的所有单元格都测试一遍,以检测其中是否存在故障或缺陷;LTEST主要针对芯片内部的逻辑电路,它通过扫描测试和自动生成测试向量技术来实现对标准单元库中的逻辑单元的测试。Among them, BSCAN mainly tests the input and output ports of the chip. Its principle is to add a register to the input and output ports of the core logic circuit. By connecting the registers on these input and output ports, data can be serially input into the unit under test and serially read out from the corresponding port, thereby realizing testing; MBIST mainly tests the memory. Its principle is to embed some special test circuits in the memory during chip design for self-checking and testing. These test circuits can test all cells in the memory through specific test modes to detect whether there are faults or defects in them; LTEST mainly targets the logic circuits inside the chip. It uses scan testing and automatic generation of test vector technology to realize the testing of logic units in the standard cell library.
测试技术指示信息用于指示通过哪种测试技术对待测目标进行测试,根据待测目标指示信息,确定对待测目标采用的测试技术为BSCAN、MBIST和LTEST中的至少一个。The test technology indication information is used to indicate which test technology is used to test the target to be tested. According to the target to be tested indication information, it is determined that the test technology used for the target to be tested is at least one of BSCAN, MBIST and LTEST.
在步骤S202中,根据待测目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息。In step S202, script design information is determined according to the test technology of the target to be tested and the target to be tested information in the requirement parameters to be tested.
脚本设计信息用于指示通过待测目标的测试技术对待测目标进行DFT测试过程中所需的各种参数和设置,包括:待测目标生产制造过程中的制造信息和与测试技术相关的测试信息。制造信息包括:待测目标从规划到生产过程中的设计信息(如布局、布线信息、规格参数信息等)、库文件(如物理库、时序库等)、时钟信息、引脚约束信息、重定向信息等。测试信息包括:测试采用的描述语言信息、可供DFT使用的端口信息、嵌入式确定性测试(Electronic Design Transformation,EDT)的配置信息、与MBIST 对应的MBIST信息,与BSCAN对应的BSCAN信息、与LTEST对应的LTEST信息等。Script design information specifies the various parameters and settings required for performing DFT testing on the DUT using the DUT's test technology. This includes manufacturing information from the DUT's manufacturing process and test information related to the test technology. Manufacturing information includes DUT design information from planning to production (such as layout, routing, and specification parameters), library files (such as physical libraries and timing libraries), clock information, pin constraints, and redirection information. Test information includes the test description language, DFT-enabled port information, Embedded Deterministic Test (EDT) configuration information, MBIST information, BSCAN information, and LTEST information.
脚本设计信息中的数据按照关键字和信息的对应关系进行存储,如键值格式、字典等。The data in the script design information is stored according to the correspondence between keywords and information, such as key-value format, dictionary, etc.
在步骤S203中,根据脚本设计信息,生成用于测试待测目标的自动化脚本文件。In step S203, an automation script file for testing the target to be tested is generated according to the script design information.
自动化脚本文件是由多个命令组成,按照顺序执行各个命令即可完成对待测目标的测试。根据脚本设计信息,生成用于测试待测目标的自动化脚本文件,即生成一组命令,每个命令执行依赖的信息不同,根据需要生成的命令,从脚本设计信息中按照关键字检索得到对应的信息,再通过编程逻辑根据检索得到的信息生成命令。An automation script file consists of multiple commands, and executing each command in sequence completes the test of the target. Based on the script design information, an automation script file is generated to test the target. This generates a set of commands, each of which relies on different information. The commands are generated based on keyword searches in the script design information, and then generated using programming logic based on the retrieved information.
生成自动化脚本文件后,执行脚本,即控制自动化测试工具按照脚本中的命令进行测试,生成硬件测试电路和测试向量,仿真工具按照脚本中的命令进行仿真,仿真过程即为通过向硬件测试电路中输入测试向量以最终对芯片上的硬件电路进行测试。After the automation script file is generated, the script is executed, which controls the automation test tool to perform tests according to the commands in the script, generates hardware test circuits and test vectors, and the simulation tool performs simulation according to the commands in the script. The simulation process is to input test vectors into the hardware test circuit to ultimately test the hardware circuit on the chip.
如此,用户仅需给出待测需求参数,根据待测需求参数自动生成用于对待测目标进行测试的自动化脚本文件,相较于手动生成自动化脚本文件,可以减少人为错误,提升准确性的同时,减少手动编写测试脚本的时间,从而提升测试效率。In this way, the user only needs to provide the test requirement parameters, and the automation script file for testing the target to be tested will be automatically generated according to the test requirement parameters. Compared with manually generating automation script files, it can reduce human errors, improve accuracy, and reduce the time of manually writing test scripts, thereby improving testing efficiency.
本公开一些实施例中,结合图2,如图3所示,上述步骤S203根据脚本设计信息,生成用于测试待测目标的自动化脚本文件,具体可以通过下述步骤S203a和步骤S203b实现。In some embodiments of the present disclosure, in combination with FIG. 2 , as shown in FIG. 3 , the above-mentioned step S203 generates an automation script file for testing the target to be tested according to the script design information, which can be specifically implemented by the following steps S203a and S203b .
在步骤S203a中,从脚本设计信息中解析得到变量信息、导入文件、初始化环境信息、约束设置信息、可测试性设计的规范文件信息、测试向量信息及仿真工具信息。In step S203a, variable information, import files, initialization environment information, constraint setting information, testability design specification file information, test vector information and simulation tool information are parsed from the script design information.
变量信息指用于存储数据的容器的信息,包括变量的名称、数据类型、作用域、设计的名称、设计身份识别码、库文件的路径等;导入文件指描述和设计数字电路的行为和结构,如逻辑电路的连接方式和行为,寄存器和存储器的声明和行为描述等,导入文件可以采用不同的设计语言(即硬件描述语言),如Verilog、VHDL;初始化环境信息指脚本运行时所处的环境和配置,如脚本运行依赖的操作系统、编程语言、环境变量等;约束设置信息指用于定义测试时序参数和信号属性的信息,如:时钟周期、输入延迟、双向端口延迟、探针时间和探针宽度等;可测试性设计的规范文件信息指在设计阶段为了提高产品的可测试性而制定的一系列标准和指南,如:设计要求、测试方法、测试流程、测试接口定义、测试信号的时序和特性等;测试向量信息指一组特定的输入信号序列,用来激发集成电路中的特定故障模式,以便在测试过程中检测这些故障,测试向量包括了输入激励和预期响应,通常以二进制形式表示,并与电路的逻辑或功能直接相关联;仿真工具信息用于指示采用的仿真工具,如:VCS。Variable information refers to the information of the container used to store data, including the variable name, data type, scope, design name, design identification code, library file path, etc.; import file refers to the description and design of the behavior and structure of digital circuits, such as the connection method and behavior of logic circuits, the declaration and behavior description of registers and memories, etc. Import files can use different design languages (i.e. hardware description languages ) such as Verilog and VHDL; initialization environment information refers to the environment and configuration in which the script is running, such as the operating system, programming language, and environment variables that the script depends on; constraint setting information refers to the information used to define test timing parameters and signal properties, such as: clock Period, input delay, bidirectional port delay, probe time and probe width, etc.; the specification document information of testability design refers to a series of standards and guidelines formulated during the design phase to improve the testability of the product, such as design requirements, test methods, test processes, test interface definitions, test signal timing and characteristics, etc.; test vector information refers to a set of specific input signal sequences used to stimulate specific fault modes in integrated circuits so that these faults can be detected during the test process. The test vector includes input stimulus and expected response, usually expressed in binary form, and is directly related to the logic or function of the circuit; simulation tool information is used to indicate the simulation tool used, such as VCS.
具体地,从设计信息和库文件信息提取待测目标的变量信息;从设计文件提取初始化环境信息;从与测试技术对应的测试技术信息(如BSCAN信息、MBIST信息和LTEST信息)及引脚约束信息中提取约束设置信息;从设计信息提取导入文件;从测试信息提取DFT的规范文件或者创建DFT的规范文件;从与测试技术对应的测试技术信息中提取测试向量信息;从测试信息提取仿真工具信息。Specifically, variable information of the target to be tested is extracted from the design information and library file information; initialization environment information is extracted from the design file; constraint setting information is extracted from the test technology information (such as BSCAN information, MBIST information and LTEST information) and pin constraint information corresponding to the test technology; import files are extracted from the design information; DFT specification files are extracted from the test information or DFT specification files are created; test vector information is extracted from the test technology information corresponding to the test technology; and simulation tool information is extracted from the test information.
在步骤S203b中,根据变量信息、导入文件、初始化环境信息、约束设置信息、可测试性设计的规范文件信息、测试向量信息及仿真工具信息,生成自动化脚本文件。In step S203b, an automation script file is generated according to the variable information, the import file, the initialization environment information, the constraint setting information, the testability design specification file information, the test vector information and the simulation tool information.
自动化脚本文件中包括多条命令,根据使用的自动化测试工具不同,生成的自动化脚本文件中命令的语法规则不同,根据变量信息生成变量设置的命令,根据导入文件生成文件导入命令,根据初始化环境信息生成环境初始化命令,根据约束设置信息生成约束设置命令,根据DFT的规范文件信息生成导入或者创建DFT的规范文件的命令,根据测试向量信息生成测试向量生成命令,根据仿真工具生成仿真命令。The automation script file includes multiple commands. Depending on the automation test tool used, the syntax rules of the commands in the generated automation script file are different. Variable setting commands are generated based on variable information, file import commands are generated based on import files, environment initialization commands are generated based on initialization environment information, constraint setting commands are generated based on constraint setting information, commands for importing or creating DFT specification files are generated based on DFT specification file information, test vector generation commands are generated based on test vector information, and simulation commands are generated based on simulation tools.
在一些实施例中,若用户需要测试过程中的日志数据,以便于从一次测试过程中得到测试出的各种故障的详细信息,测试信息中还可以包括用于记录测试过程的日志需求信息,解析日志需求信息,得到用于指示输出哪些日志(如:时钟信息、DFT信号信息、存储器实例信息等)的日志输出指示信息,根据日志输出指示信息生成对应的自动化测试工具的命令。In some embodiments, if the user needs log data during the test process in order to obtain detailed information on various faults tested during a test process, the test information may also include log requirement information for recording the test process, parse the log requirement information, obtain log output indication information for indicating which logs to output (such as clock information, DFT signal information, memory instance information, etc.), and generate corresponding automated testing tool commands based on the log output indication information.
在一些实施例中,为了复用自动化脚本文件,测试数据中还可以包括自动化脚本文件的输出路径,解析测试数据,得到路径信息,根据路径信息生成将自动化脚本文件存储在该路径下的自动化测试工具的命令。In some embodiments, in order to reuse the automation script file, the test data can also include the output path of the automation script file, parse the test data to obtain the path information, and generate a command for the automation testing tool to store the automation script file in the path according to the path information.
本实施例中,通过集成变量信息、导入文件、初始化环境信息、约束设置信息、可测试性设计的规范文件信息、测试向量信息及仿真工具信息,在确保自动生成脚本文件的同时,能够综合考虑多种测试因素,确保测试的全面性和准确性。In this embodiment, by integrating variable information, import files, initialization environment information, constraint setting information, testability design specification file information, test vector information and simulation tool information, while ensuring the automatic generation of script files, it can comprehensively consider multiple testing factors to ensure the comprehensiveness and accuracy of the test.
本公开一些实施例中,结合图2,如图4所示,上述步骤S203根据脚本设计信息,生成用于测试待测目标的自动化脚本文件之前,该方法还包括下述步骤S204,上述步骤S203具体可以通过下述步骤S203c实现。In some embodiments of the present disclosure, in combination with Figure 2, as shown in Figure 4, before the above-mentioned step S203 generates an automation script file for testing the target to be tested according to the script design information, the method further includes the following step S204. The above-mentioned step S203 can be specifically implemented by the following step S203c.
在步骤S204中,从脚本设计信息中解析得到目标自动化测试工具。In step S204, the target automated testing tool is obtained by parsing the script design information.
在步骤S203c中,根据脚本设计信息,生成与目标自动化测试工具匹配的自动化脚本文件。In step S203c, an automation script file matching the target automation test tool is generated according to the script design information.
由于不同的测试需求采用的自动化测试工具可能不同,而不同的自动化测试工具对于实现同一功能,采用的命令可能不同,生成命令需要的语法规则也不同。因此,本公开中,根据脚本设计信息以及采用的目标自动化测试工具,按照目标自动化测试工具的语法规则生成对应的命令。Because different test requirements may require different automated testing tools, and different automated testing tools may use different commands to implement the same function, and the syntax rules required to generate commands are also different, in this disclosure, based on the script design information and the target automated testing tool used, the corresponding commands are generated according to the syntax rules of the target automated testing tool.
根据脚本设计信息生成与目标自动化测试工具匹配的自动化脚本文件,具体地,对于不同的自动化测试工具设置有不同的脚本生成模板引擎,根据目标自动化测试工具确定出对应的脚本生成模板引擎,再通过该模板引擎,生成自动化脚本文件。Generate an automation script file that matches the target automation testing tool based on the script design information. Specifically, different script generation template engines are set for different automation testing tools. The corresponding script generation template engine is determined according to the target automation testing tool, and then the automation script file is generated through the template engine.
本实施例中,通过解析脚本设计信息以确定目标自动化测试工具,可以生成与特定测试工具兼容的脚本文件,确保测试过程的顺利进行;由于脚本文件是针对特定的测试工具定制的,减少了需要手动调整和适配的工作量,进一步提升了测试效率。In this embodiment, by parsing the script design information to determine the target automated testing tool, a script file compatible with the specific testing tool can be generated to ensure the smooth progress of the testing process; since the script file is customized for a specific testing tool, the workload required for manual adjustment and adaptation is reduced, further improving testing efficiency.
本公开一些实施例中,脚本设计信息包括:待测目标的制造信息和测试信息,上述步骤S202根据待测目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息,包括:根据待测目标信息,获取待测目标的制造信息;根据待测目标的测试技术和待测目标信息,获取测试信息。In some embodiments of the present disclosure, the script design information includes: manufacturing information and test information of the target to be tested. The above step S202 determines the script design information based on the test technology of the target to be tested and the target to be tested information in the test requirement parameters, including: obtaining the manufacturing information of the target to be tested based on the target to be tested information; obtaining the test information based on the test technology of the target to be tested and the target to be tested information.
待测目标信息用于指示待测目标的制造信息,待测目标信息包括以下至少一项:待测目标的标识信息,存储路径,制造信息。例如:一种情况,待测目标信息包括的是待测目标的标识信息,根据待测目标的标识信息,从预先存储的待测目标标识和存储路径的对应关系中确定出待测目标的制造信息的存储路径,从该存储路径下获取对应的制造信息;另一种情况,待测目标信息中包括的是待测目标的制造信息的存储路径,从该存储路径下获取对应的制造信息;又一种情况,待测目标信息中包括的是制造信息,直接获取该制造信息;又一种情况,待测目标信息中包括的是部分制造信息的存储路径和部分制造信息,从存储路径下获取部分制造信息以及从待测目标信息中获取部分制造信息;又一种情况,待测目标信息包括的是待测目标的标识信息和部分制造信息,根据待测目标的标识信息从对应存储路径下获取部分制造信息以及从待测目标信息中获取部分制造信息。The target information to be measured is used to indicate the manufacturing information of the target to be measured. The target information to be measured includes at least one of the following: identification information of the target to be measured, a storage path, and manufacturing information. For example, in one case, the target information to be measured includes the identification information of the target to be measured. Based on the identification information of the target to be measured, the storage path of the manufacturing information of the target to be measured is determined from a pre-stored correspondence between the target identification and the storage path, and the corresponding manufacturing information is obtained from the storage path. In another case, the target information to be measured includes the storage path of the manufacturing information of the target to be measured, and the corresponding manufacturing information is obtained from the storage path. In another case, the target information to be measured includes the manufacturing information, and the manufacturing information is directly obtained. In another case, the target information to be measured includes the storage path and partial manufacturing information of partial manufacturing information. The partial manufacturing information is obtained from the storage path and the partial manufacturing information is obtained from the target information to be measured. In another case, the target information to be measured includes the identification information and partial manufacturing information of the target to be measured. Based on the identification information of the target to be measured, the partial manufacturing information is obtained from the corresponding storage path and the partial manufacturing information is obtained from the target information to be measured.
待测目标信息还用于指示与测试技术相关的测试信息。根据待测目标的测试技术和待测目标信息,获取测试信息,一种情况:待测目标信息中包括各个测试技术对应的测试信息的存储路径,从待测目标信息中确定出与待测目标的测试技术对应的存储路径,从该存储路径下获取测试信息;另一种情况:待测目标信息中包括各个测试技术对应的测试信息,从待测目标信息中获取与待测目标的测试技术对应的测试信息。The target information also indicates test information related to the test technology. Based on the target's test technology and the target information, test information is obtained. In one scenario, if the target information includes the storage path for test information corresponding to each test technology, the storage path corresponding to the target's test technology is determined from the target information and the test information is obtained from that storage path. Alternatively, if the target information includes test information corresponding to each test technology, the test information corresponding to the target's test technology is obtained from the target information.
本实施例中,获取制造信息和测试信息,不仅可以减少后续解析过程中的数据量,从而提升测试效率,而且待测目标信息中可以根据需要,包括不同的数据,用户可以灵活选择待测目标信息,提升用户体验。In this embodiment, obtaining manufacturing information and test information can not only reduce the amount of data in the subsequent analysis process, thereby improving test efficiency, but also the target information to be tested can include different data as needed, and the user can flexibly select the target information to be tested, thereby improving user experience.
本公开一些实施例中,上述步骤S201根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术,包括:根据测试技术的选中标识,将选中标识的取值为选中取值的测试技术确定为待测目标的测试技术。In some embodiments of the present disclosure, the above-mentioned step S201 determines the test technology of the target to be tested based on the test technology indication information in the test requirement parameter to be tested, including: according to the selection identifier of the test technology, determining the test technology with the selected identifier as the selected value as the test technology of the target to be tested.
测试技术指示信息为每个测试技术的选中标识,选中标识的取值为选中取值(如“1”),则确定该测试技术为待测目标的测试技术。The test technology indication information is a selection flag for each test technology. If the value of the selection flag is a selected value (such as "1"), the test technology is determined to be the test technology of the target to be tested.
待测需求参数也是根据用户需求生成的,若用户每次确定了测试技术,对应的都生成一个指示该测试技术的指示信息,则对应的后续解析过程中,解析逻辑需要适应解析不同的测试技术对应的指示信息,解析难度增大。而本实施例中,测试技术指示信息中包括该测试技术是否被选中的选中标识,即对于用户选中的任意测试技术,在待测需求参数中仅需要更改测试技术的选中标识对应的取值,对于待测需求参数的改写更少,且解析逻辑不变,均是将选中标识的取值为选中取值的测试技术确定为待测目标的测试技术,解析过程固定,从而使得整个测试流程更省时。The test requirement parameters are also generated based on user requirements. If each time the user determines a test technology, a corresponding indication information indicating the test technology is generated, then in the subsequent parsing process, the parsing logic needs to adapt to the parsing of the indication information corresponding to different test technologies, increasing the difficulty of parsing. In this embodiment, the test technology indication information includes a selection flag indicating whether the test technology is selected. That is, for any test technology selected by the user, only the value corresponding to the selection flag of the test technology needs to be changed in the test requirement parameters. This reduces the need to rewrite the test requirement parameters, and the parsing logic remains unchanged. The test technology with the selected flag value is determined as the test technology of the target to be tested. The parsing process is fixed, making the entire testing process more time-saving.
在一些实施例中,上述步骤S202根据待测目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息,包括:根据待测目标的测试技术和待测需求参数中的待测目标信息,获取初始脚本设计信息;将初始脚本设计信息转化为键值格式的脚本设计信息。In some embodiments, the above-mentioned step S202 determines the script design information based on the test technology of the target to be tested and the target information to be tested in the test requirement parameters, including: obtaining initial script design information based on the test technology of the target to be tested and the target information to be tested in the test requirement parameters; converting the initial script design information into script design information in a key-value format.
由于键值格式的数据,可以通过键直接进行访问,可以非常快速地进行数据读写操作,实现快速检索,且键值格式允许存储任何类型的值,包括简单的字符串、复杂的对象、二进制数据等。因此,本公开将获取到的初始脚本设计信息按照键值格式进行存储,以使得在根据脚本设计信息,生成用于测试待测目标的自动化脚本文件的过程中可以快速检索,数据处理速度快,从而进一步提升生成脚本的效率,缩短测试周期。Since data in key-value format can be directly accessed through the key, data reading and writing operations can be performed very quickly, enabling fast retrieval. Moreover, the key-value format allows the storage of any type of value, including simple strings, complex objects, binary data, etc. Therefore, the present disclosure stores the acquired initial script design information in key-value format, so that when generating the automated script file for testing the target under test based on the script design information, it can be quickly retrieved and the data processing speed is fast, thereby further improving the efficiency of script generation and shortening the testing cycle.
在一些实施例中,结合图1,如图5所示,上述步骤S201根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术之前,该方法还包括下述步骤S205。In some embodiments, in combination with FIG1 , as shown in FIG5 , before the above step S201 determines the test technology of the target to be tested according to the test technology indication information in the test requirement parameter to be tested, the method further includes the following step S205 .
在步骤S205中,接收图形用户界面上用户输入的待测需求参数。In step S205 , the demand parameters to be tested input by the user on the graphical user interface are received.
使用软件开发工具包实现图形用户界面(Graphical User Interface,GUI),如采用Python的标准GUI库、linux下基于C++的QT的标准GUI库、JavaFX等来设计GUI。GUI控件包括窗口、文本框、下拉菜单、复选框、标签、滑块、列表等,用于收集用户输入。Implement a graphical user interface (GUI) using a software development kit (SDK), such as the standard Python GUI library, the C++-based QT standard GUI library for Linux, or JavaFX. GUI controls include windows, text boxes, drop-down menus, check boxes, labels, sliders, lists, and other components for collecting user input.
示例性地,如图6所示,为本公开提供的一种图形用户界面,以待测需求参数中包括的测试技术和待测目标信息为例,待测目标信息包括:自动化测试工具,库文件,始终信息,约束信息,设计类型(可以选择寄存器传输级(Register Transfer Level,RTL)或者网表(Netlist)),设计语言(可以选择的硬件描述语言包括Verilog或者VDHL(Very HighSpeed Integrated Circuit Hardware Description Language)),设计层级,设计名称和设计信息。用户填写完成待测需求参数后,点击开始按钮即可生成自动化脚本文件并执行脚本文件进行测试,若点击保存按钮,则生成的自动化脚本文件会存储到默认路径下。For example, as shown in FIG6 , a graphical user interface provided by the present disclosure is provided. Taking the test technology and target information included in the test requirement parameters as an example, the target information includes: automated test tools, library files, configuration information, constraint information, design type (register transfer level (RTL) or netlist can be selected), design language (optional hardware description languages include Verilog or VDHL (Very HighSpeed Integrated Circuit Hardware Description Language)), design hierarchy, design name, and design information. After the user completes filling in the test requirement parameters, clicking the Start button generates an automated script file and executes the script file for testing. Clicking the Save button saves the generated automated script file to the default path.
通过图形用户界面,用户可以输入或选择待测需求参数,如测试技术、时钟信息等。如此,用户可以通过图形用户界面填写待测需求参数,简化了信息输入过程,根据图形用户界面上的提示信息,非专业人员也能根据指示进行输入操作,简化了生成自动化脚本文件的过程。Through the graphical user interface, users can enter or select the required parameters to be tested, such as test technology and clock information. This simplifies the information input process by allowing users to fill in the required parameters through the graphical user interface. Furthermore, non-professionals can also follow the prompts on the graphical user interface to input operations, simplifying the process of generating automated script files.
基于与上述生成可测性设计脚本的方法的相同构思,本公开还提供了一种生成可测性设计脚本的装置,图7为本公开示出的一种生成可测性设计脚本的装置的结构框图,如图7所示,该生成可测性设计脚本的装置包括:确定部分701和生成部分702; 确定部分701,被配置为根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术;确定部分701,还被配置为根据待测目标的测试技术和待测需求参数中的待测目标信息,确定脚本设计信息;生成部分702,被配置为根据脚本设计信息,生成用于测试待测目标的自动化脚本文件。Based on the same concept as the above-mentioned method for generating a testability design script, the present disclosure also provides an apparatus for generating a testability design script. FIG7 is a structural block diagram of an apparatus for generating a testability design script shown in the present disclosure. As shown in FIG7 , the apparatus for generating a testability design script includes: a determination part 701 and a generation part 702; the determination part 701 is configured to determine the test technology of the target to be tested according to the test technology indication information in the requirement parameters to be tested; the determination part 701 is also configured to determine script design information according to the test technology of the target to be tested and the target information to be tested in the requirement parameters to be tested; the generation part 702 is configured to generate an automation script file for testing the target to be tested according to the script design information.
本公开一些实施例中,生成部分702,具体被配置为从脚本设计信息中解析得到变量信息、导入文件、初始化环境信息、约束设置信息、可测试性设计的规范文件信息、测试向量信息及仿真工具信息;根据变量信息、导入文件、初始化环境信息、约束设置信息、可测试性设计的规范文件信息、测试向量信息及仿真工具信息,生成自动化脚本文件。In some embodiments of the present disclosure, the generation part 702 is specifically configured to parse the script design information to obtain variable information, import files, initialization environment information, constraint setting information, testability design specification file information, test vector information and simulation tool information; and generate an automated script file based on the variable information, import files, initialization environment information, constraint setting information, testability design specification file information, test vector information and simulation tool information.
本公开一些实施例中,该生成可测性设计脚本的装置还包括:解析部分,该解析部分,被配置为在根据脚本设计信息,生成用于测试待测目标的自动化脚本文件之前,从脚本设计信息中解析得到目标自动化测试工具;该生成部分702,具体被配置为根据脚本设计信息,生成与目标自动化测试工具匹配的自动化脚本文件。In some embodiments of the present disclosure, the device for generating a testability design script also includes: a parsing part, which is configured to parse the script design information to obtain a target automated testing tool before generating an automated script file for testing the target to be tested based on the script design information; the generating part 702 is specifically configured to generate an automated script file that matches the target automated testing tool based on the script design information.
本公开一些实施例中,脚本设计信息包括:待测目标的制造信息和测试信息,该确定部分701,具体被配置为根据待测目标信息,获取待测目标的制造信息;根据待测目标的测试技术和待测目标信息,获取测试信息。In some embodiments of the present disclosure, the script design information includes: manufacturing information and test information of the target to be tested. The determination part 701 is specifically configured to obtain the manufacturing information of the target to be tested based on the target to be tested information; and obtain the test information based on the test technology of the target to be tested and the target to be tested information.
本公开一些实施例中,该确定部分701,具体被配置为根据测试技术的选中标识,将选中标识的取值为选中取值的测试技术确定为待测目标的测试技术。In some embodiments of the present disclosure, the determining portion 701 is specifically configured to determine, based on a selection identifier of the test technology, a test technology whose selection identifier has a selected value as the test technology of the target to be tested.
本公开一些实施例中,该确定部分701,具体被配置为根据测试目标的测试技术和待测需求参数中的待测目标信息,获取初始脚本设计信息;将初始脚本设计信息转化为键值格式的脚本设计信息。In some embodiments of the present disclosure, the determining part 701 is specifically configured to obtain initial script design information based on the test technology of the test target and the target information to be tested in the test requirement parameters; and convert the initial script design information into script design information in a key-value format.
本公开一些实施例中,该生成可测性设计脚本的装置还包括:接收部分,该接收部分,被配置为在根据待测需求参数中的测试技术指示信息,确定待测目标的测试技术之前,接收图形用户界面上用户输入的待测需求参数。In some embodiments of the present disclosure, the device for generating a testability design script also includes: a receiving part, which is configured to receive the test requirement parameters to be tested input by a user on a graphical user interface before determining the test technology of the target to be tested based on the test technology indication information in the test requirement parameters to be tested.
需要说明的是,上述生成可测性设计脚本的装置可以为本申请上述方法实施例中的电子设备,也可以是该电子设备中能够实现该装置实施例功能的功能模块和/或功能实体,本申请实施例不作限定。It should be noted that the above-mentioned device for generating a testability design script can be the electronic device in the above-mentioned method embodiment of this application, or it can be a functional module and/or functional entity in the electronic device that can realize the functions of the device embodiment, and the embodiment of this application is not limited.
本申请实施例中,各模块可以实现上述方法实施例提供的生成可测性设计脚本的装置方法,且能达到相同的技术效果,为避免重复,这里不再赘述。In the embodiment of the present application, each module can implement the device method for generating a testability design script provided by the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
请参考图8,其示出了本公开一个示例性实施例提供的电子设备的硬件结构示意图。在一些示例中,电子设备可以为智能手机、智能手表、台式电脑、手提电脑、虚拟现实终端、增强现实终端、无线终端和膝上型便携计算机等设备中的至少一种。电子设备具有通信功能,可以接入有线网络或无线网络。电子设备可以泛指多个终端中的一个,本领域技术人员可以知晓,上述终端的数量可以更多或更少。可以理解地,电子设备承担本公开技术方案的计算及处理工作,本公开对此不作限定。Please refer to Figure 8, which shows a schematic diagram of the hardware structure of an electronic device provided by an exemplary embodiment of the present disclosure. In some examples, the electronic device can be at least one of a smart phone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop computer. The electronic device has a communication function and can access a wired network or a wireless network. The electronic device can generally refer to one of a plurality of terminals. Those skilled in the art will appreciate that the number of the above-mentioned terminals can be more or less. It can be understood that the electronic device undertakes the calculation and processing work of the technical solution of the present disclosure, and the present disclosure does not limit this.
如图8所示,本公开中的电子设备可以包括一个或多个如下部件:处理器810和存储器820。As shown in FIG. 8 , the electronic device in the present disclosure may include one or more of the following components: a processor 810 and a memory 820 .
可选地,处理器810利用各种接口和线路连接整个电子设备内的各个部分,通过运行或执行存储在存储器820内的指令、程序、代码集或指令集,以及调用存储在存储器820内的数据,执行电子设备的各种功能和处理数据。可选地,处理器810可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-ProgrammableGateArray,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器810可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和基带芯片等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;基带芯片用于处理无线通信。可以理解的是,上述基带芯片也可以不集成到处理器810中,单独通过一块芯片进行实现。Optionally, the processor 810 utilizes various interfaces and circuits to connect various components within the electronic device. It executes instructions, programs, code sets, or instruction sets stored in the memory 820, as well as accesses data stored in the memory 820, to perform various functions and process data within the electronic device. Optionally, the processor 810 can be implemented in at least one hardware form: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 810 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processing unit (NPU), and a baseband chip. The CPU primarily handles the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing content displayed on the touchscreen display; the NPU implements artificial intelligence (AI) functions; and the baseband chip handles wireless communications. It is understandable that the above-mentioned baseband chip may not be integrated into the processor 810, but may be implemented by a separate chip.
存储器820可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器820包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器820可用于存储指令、程序、代码、代码集或指令集。存储器820可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现以上各个方法实施例的指令等;存储数据区可存储根据电子设备的使用所创建的数据等。The memory 820 may include random access memory (RAM) or read-only memory (ROM). Optionally, the memory 820 includes a non-transitory computer-readable storage medium. The memory 820 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 820 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing each of the above method embodiments, and the like. The data storage area may store data generated based on the use of the electronic device, and the like.
除此之外,本领域技术人员可以理解,上述附图所示出的电子设备的结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,电子设备中还包括显示屏、摄像组件、麦克风、扬声器、射频电路、输入单元、传感器(比如加速度传感器、角速度传感器、光线传感器等等)、音频电路、WiFi模块、电源、蓝牙模块等部件,在此不再赘述。In addition, those skilled in the art will understand that the structures of the electronic devices shown in the above figures do not limit the electronic devices. The electronic devices may include more or fewer components than shown, or may combine certain components or arrange the components differently. For example, the electronic devices may also include a display screen, a camera assembly, a microphone, a speaker, a radio frequency circuit, an input unit, sensors (such as an accelerometer, an angular velocity sensor, a light sensor, etc.), an audio circuit, a WiFi module, a power supply, a Bluetooth module, and other components, which will not be described in detail here.
本公开还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如上各个实施例所述的生成可测性设计脚本的方法。The present disclosure also provides a computer-readable storage medium storing at least one instruction, wherein the at least one instruction is configured to be executed by a processor to implement the method for generating a design for testability script as described in the above embodiments.
本公开还提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中;电子设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该电子设备执行以实现上述各个实施例所述的生成可测性设计脚本的方法。The present disclosure also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium; a processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes to implement the method of generating a testability design script described in the above-mentioned embodiments.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述生成可测性设计脚本的方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment for generating a testability design script, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
在本公开所提供的几个实施例中,应该理解到,所揭露的系统,装置,服务器和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其他的形式。In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices, servers and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present disclosure may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本公开所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art will appreciate that in one or more of the above examples, the functions described in this disclosure can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
需要说明的是:本公开所记载的技术方案之间,在不冲突的情况下,可以任意组合。It should be noted that the technical solutions described in this disclosure can be combined arbitrarily without conflict.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。The above description is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411691753.1A CN119473253B (en) | 2024-11-25 | 2024-11-25 | Method and device for generating testability design script, electronic equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411691753.1A CN119473253B (en) | 2024-11-25 | 2024-11-25 | Method and device for generating testability design script, electronic equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN119473253A CN119473253A (en) | 2025-02-18 |
| CN119473253B true CN119473253B (en) | 2025-08-15 |
Family
ID=94572940
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411691753.1A Active CN119473253B (en) | 2024-11-25 | 2024-11-25 | Method and device for generating testability design script, electronic equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN119473253B (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115934575A (en) * | 2023-03-10 | 2023-04-07 | 北京全路通信信号研究设计院集团有限公司 | Product testing method, device, equipment and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109902003B (en) * | 2019-02-19 | 2022-06-14 | 创新先进技术有限公司 | Test script generation method and device |
| CN110413524A (en) * | 2019-07-26 | 2019-11-05 | 中国工商银行股份有限公司 | For generating method and apparatus, the automated testing method of test script |
| CN117009243A (en) * | 2023-08-22 | 2023-11-07 | 东莞忆联信息系统有限公司 | Chip performance automatic test method, device, computer equipment and storage medium |
| CN118536442B (en) * | 2024-07-25 | 2024-11-08 | 上海灵动微电子股份有限公司 | DFT signal data processing method, DFT design method and verification method |
-
2024
- 2024-11-25 CN CN202411691753.1A patent/CN119473253B/en active Active
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115934575A (en) * | 2023-03-10 | 2023-04-07 | 北京全路通信信号研究设计院集团有限公司 | Product testing method, device, equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN119473253A (en) | 2025-02-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112560372B (en) | Chip prototype verification method, device, equipment and medium | |
| CN116227398B (en) | Method and system for automatically generating IP core test stimulus | |
| CN117787155B (en) | A chip testability code dynamic simulation test system and test method | |
| CN112444731A (en) | Chip testing method and device, processor chip and server | |
| CN112558942A (en) | Operator registration method and related product | |
| JP2002368104A (en) | Logic integrated circuit, logic integrated circuit design method, and hardware description generation method for generating hardware operation description of logic integrated circuit | |
| CN110765716A (en) | Method and system for checking simulation signal of digital product | |
| CN111400169A (en) | Method and system for automatically generating netlist file for testing software and hardware | |
| CN112597064B (en) | Method for simulating program, electronic device and storage medium | |
| US20210173994A1 (en) | Method and system for viewing simulation signals of a digital product | |
| CN113868046A (en) | Function verification method and system of PAD control unit and related components | |
| US20070061641A1 (en) | Apparatus and method for generating test driver | |
| CN119150768B (en) | Chip verification method and device, electronic equipment and storage medium | |
| CN119473253B (en) | Method and device for generating testability design script, electronic equipment and storage medium | |
| CN108334313A (en) | Continuous integrating method, apparatus and code management system for large-scale SOC research and development | |
| CN118133742B (en) | Bitstream testing method, device, computer equipment, storage medium and program product | |
| CN119358476A (en) | Register model generation method and device for chip verification platform | |
| CN110765711A (en) | Method and system for checking simulation signal of digital product | |
| CN115292760B (en) | Chip verification system, method and computer readable storage medium | |
| CN119167841A (en) | Simulation logic system design method, electronic device and storage medium | |
| CN119166522A (en) | A UVM verification platform and verification test execution method | |
| CN118069441A (en) | Test vector file conversion method, device, computer equipment and storage medium | |
| US7606692B2 (en) | Gate-level netlist reduction for simulating target modules of a design | |
| CN116663461A (en) | DUT simulation verification platform, verification method thereof, medium and electronic equipment | |
| CN120407024B (en) | Verification method and device for instruction sequence, electronic equipment and storage medium |
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 |