CN113986641B - Method, system, equipment and storage medium for verifying chip hardware function - Google Patents
Method, system, equipment and storage medium for verifying chip hardware function Download PDFInfo
- Publication number
- CN113986641B CN113986641B CN202111616402.0A CN202111616402A CN113986641B CN 113986641 B CN113986641 B CN 113986641B CN 202111616402 A CN202111616402 A CN 202111616402A CN 113986641 B CN113986641 B CN 113986641B
- Authority
- CN
- China
- Prior art keywords
- hardware
- command string
- task command
- parameter group
- function
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明涉及芯片测试技术领域,特别是涉及一种芯片硬件功能的验证方法、系统、设备及存储介质。The present invention relates to the technical field of chip testing, in particular to a method, system, device and storage medium for verifying the hardware function of a chip.
背景技术Background technique
应用软件的测试通常只需要关注软件程序代码本身,与应用软件的测试不同的是,进行芯片驱动程序的测试时,还需要关注芯片的硬件问题。The test of application software usually only needs to focus on the software program code itself. Different from the test of application software, when testing the chip driver, it is also necessary to pay attention to the hardware problem of the chip.
目前,在验证芯片硬件功能时,通常是通过仿真层的模拟来验证,例如,在芯片功能测试时发现异常之后,首先是想办法复现这一问题,而复现问题需要构造和用户测试场景一样的用例。在复现芯片问题时,是通过仿真软件模拟用户使用场景实现的,即用户层的业务场景首先需要映射到对应技术场景中,接着拆解到具体的功能点,用户层的一个简单操作从仿真的角度分析是非常复杂的,仿真需要确认的操作路径和功能点非常多。也就是说,目前从仿真层去模拟,实现硬件功能验证的方案,耗时很长,操作复杂,甚至在部分场合中,通过仿真无法构造相关用例来复现问题。因此,单一的问题复现对于硬件仿真而言都是极其耗时耗力的,更不用说在定位芯片具体问题的时候,经常需要尝试多种的测试场景来缩小范围,使得实现上更加困难。At present, when verifying the hardware function of the chip, it is usually verified by the simulation of the emulation layer. For example, after an abnormality is found during the function test of the chip, the first thing to do is to find a way to reproduce the problem, and to reproduce the problem requires the construction and user test scenarios. Same use case. When the chip problem is reproduced, it is realized by simulating user usage scenarios through simulation software, that is, the business scenarios of the user layer need to be mapped to the corresponding technical scenarios first, and then disassembled to specific function points. A simple operation of the user layer starts from the simulation. The angle analysis is very complex, and the simulation needs to confirm a lot of operation paths and function points. That is to say, the current solution of simulating from the simulation layer to realize hardware function verification takes a long time and the operation is complicated. In some cases, it is impossible to construct relevant use cases through simulation to reproduce the problem. Therefore, the reproduction of a single problem is extremely time-consuming and labor-intensive for hardware simulation, not to mention that when locating specific problems of the chip, it is often necessary to try a variety of test scenarios to narrow the scope, making the implementation more difficult.
综上所述,如何方便、有效地验证芯片的硬件功能,是目前本领域技术人员急需解决的技术问题。To sum up, how to conveniently and effectively verify the hardware function of the chip is a technical problem that those skilled in the art need to solve urgently.
发明内容SUMMARY OF THE INVENTION
本发明的目的是提供一种芯片硬件功能的验证方法、系统、设备及存储介质,以方便、有效地验证芯片的硬件功能。The purpose of the present invention is to provide a method, system, device and storage medium for verifying the hardware function of a chip, so as to verify the hardware function of the chip conveniently and effectively.
为解决上述技术问题,本发明提供如下技术方案:In order to solve the above-mentioned technical problems, the present invention provides the following technical solutions:
一种芯片硬件功能的验证方法,包括:A verification method for chip hardware functions, comprising:
按照用户的选择指令从全体参数集合中选取出用于进行本次验证的参数组;According to the user's selection instruction, select the parameter group used for this verification from the entire parameter set;
将所述参数组组装为任务命令串,并基于所述任务命令串确定出对应的测试环境;Assembling the parameter group into a task command string, and determining a corresponding test environment based on the task command string;
将所述任务命令串发送至所述测试环境中,以使所述测试环境按照所述任务命令串以及对应于所述任务命令串的可执行文件验证待测硬件的功能;sending the task command string to the test environment, so that the test environment verifies the function of the hardware under test according to the task command string and the executable file corresponding to the task command string;
接收所述测试环境反馈的验证结果;receiving the verification result fed back by the test environment;
其中,所述全体参数集合为通过将调试程序的各个功能参数化而提取出的全部参数所构成的集合,所述调试程序为基于所述待测硬件的驱动程序得到的用于调试所述待测硬件的调试程序。The set of all parameters is a set composed of all parameters extracted by parameterizing each function of the debugging program, and the debugging program is obtained based on the driver of the hardware to be tested and used to debug the hardware to be tested. Debugger for testing hardware.
优选的,在将所述参数组组装为任务命令串之前,还包括:Preferably, before assembling the parameter group into a task command string, the method further includes:
判断所述参数组是否符合预设的参数组构成规则;judging whether the parameter group conforms to the preset parameter group composition rule;
如果是,则执行所述将所述参数组组装为任务命令串的操作;If so, perform the operation of assembling the parameter group into a task command string;
如果否,则将所述参数组进行滤除。If not, the parameter group is filtered out.
优选的,在将所述参数组进行滤除之后,还包括:Preferably, after filtering out the parameter group, the method further includes:
输出表示所述参数组不符合预设的参数组构成规则的提示信息。A prompt message indicating that the parameter group does not conform to the preset parameter group formation rule is output.
优选的,所述选择指令为通过用户端输入信息而生成的选择指令。Preferably, the selection instruction is a selection instruction generated by inputting information from the user terminal.
优选的,所述可执行文件为自动化测试平台后端基于所述任务命令串,从可执行文件库中调用的对应于所述任务命令串的可执行文件,以将所述可执行文件发送至所述测试环境。Preferably, the executable file is an executable file corresponding to the task command string invoked from the executable file library based on the task command string by the backend of the automated test platform, so as to send the executable file to the the test environment.
优选的,还包括:Preferably, it also includes:
对所述验证结果进行记录。The verification results are recorded.
一种芯片硬件功能的验证系统,应用于自动化测试平台中,包括:A verification system for chip hardware functions, applied to an automated test platform, includes:
自动化测试平台前端,用于按照用户的选择指令从全体参数集合中选取出用于进行本次验证的参数组;The front end of the automated test platform is used to select the parameter group used for this verification from the entire parameter set according to the user's selection instruction;
自动化测试平台后端,用于:Automated test platform backend for:
将所述参数组组装为任务命令串,并基于所述任务命令串确定出对应的测试环境;Assembling the parameter group into a task command string, and determining a corresponding test environment based on the task command string;
将所述任务命令串发送至所述测试环境中,以使所述测试环境按照所述任务命令串以及对应于所述任务命令串的可执行文件验证待测硬件的功能;sending the task command string to the test environment, so that the test environment verifies the function of the hardware under test according to the task command string and the executable file corresponding to the task command string;
接收所述测试环境反馈的验证结果;receiving the verification result fed back by the test environment;
其中,所述全体参数集合为通过将调试程序的各个功能参数化而提取出的全部参数所构成的集合,所述调试程序为基于所述待测硬件的驱动程序得到的用于调试所述待测硬件的调试程序。The set of all parameters is a set composed of all parameters extracted by parameterizing each function of the debugging program, and the debugging program is obtained based on the driver of the hardware to be tested and used to debug the hardware to be tested. Debugger for testing hardware.
优选的,所述自动化测试平台后端,还用于:Preferably, the back end of the automated test platform is also used for:
判断所述参数组是否符合预设的参数组构成规则;judging whether the parameter group conforms to the preset parameter group composition rule;
如果是,则执行所述将所述参数组组装为任务命令串的操作;If so, perform the operation of assembling the parameter group into a task command string;
如果否,则将所述参数组进行滤除。If not, the parameter group is filtered out.
一种芯片硬件功能的验证设备,包括:A verification device for chip hardware functions, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序以实现如上述任一项所述的芯片硬件功能的验证方法的步骤。The processor is configured to execute the computer program to implement the steps of the method for verifying the hardware function of the chip as described in any one of the above.
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述任一项所述的芯片硬件功能的验证方法的步骤。A computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, implements the steps of the method for verifying the hardware function of a chip as described in any one of the above.
应用本发明实施例所提供的技术方案,基于待测硬件的驱动程序得到了用于调试待测硬件的调试程序,并且通过将调试程序的各个功能参数化,可以得到全体参数集合,来实现芯片硬件功能的验证。具体的,可以按照用户的选择指令从全体参数集合中选取出用于进行本次验证的参数组,进而将参数组组装为任务命令串以使测试环境能够识别出需要进行什么样的验证。并且测试环境可以按照任务命令串以及对应于任务命令串的可执行文件验证待测硬件的功能,进而反馈验证结果。可以看出,本申请的方案中,用户只需要通过选择指令从全体参数集合中选取出用于进行本次验证的参数组,便可以实现芯片硬件功能的验证,操作简单方便。并且,由于本申请的方案是通过驱动层来调动硬件,相较于传统的直接在仿真端模拟的方式,验证方式简单,效率也较高。综上所述,本申请的方案可以方便、有效地验证芯片的硬件功能。By applying the technical solutions provided by the embodiments of the present invention, a debugging program for debugging the hardware to be tested is obtained based on the driver program of the hardware to be tested, and by parameterizing each function of the debugging program, a set of all parameters can be obtained to realize the chip Verification of hardware functionality. Specifically, the parameter group used for this verification can be selected from the entire parameter set according to the user's selection instruction, and then the parameter group can be assembled into a task command string so that the test environment can identify what verification needs to be performed. And the test environment can verify the function of the hardware to be tested according to the task command string and the executable file corresponding to the task command string, and then feed back the verification result. It can be seen that, in the solution of the present application, the user only needs to select the parameter group used for this verification from the entire parameter set through the selection instruction, and the verification of the chip hardware function can be realized, and the operation is simple and convenient. Moreover, since the solution of the present application uses the driver layer to mobilize the hardware, the verification method is simple and the efficiency is higher compared to the traditional method of directly simulating at the simulation end. To sum up, the solution of the present application can conveniently and effectively verify the hardware function of the chip.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明中一种芯片硬件功能的验证方法的实施流程图;Fig. 1 is the implementation flow chart of a kind of verification method of chip hardware function in the present invention;
图2为本发明中一种芯片硬件功能的验证系统的结构示意图。FIG. 2 is a schematic structural diagram of a verification system of a chip hardware function in the present invention.
具体实施方式Detailed ways
本发明的核心是提供一种芯片硬件功能的验证方法,可以方便、有效地验证芯片的硬件功能。The core of the invention is to provide a verification method for the hardware function of the chip, which can conveniently and effectively verify the hardware function of the chip.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
请参考图1,图1为本发明中一种芯片硬件功能的验证方法的实施流程图,该芯片硬件功能的验证方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is an implementation flowchart of a method for verifying a hardware function of a chip in the present invention. The method for verifying a hardware function of a chip may include the following steps:
步骤S101:按照用户的选择指令从全体参数集合中选取出用于进行本次验证的参数组。Step S101: According to the user's selection instruction, a parameter group for this verification is selected from the entire parameter set.
具体的,可以由自动化测试平台前端接收用户的选择指令,进而从全体参数集合中选取出用于进行本次验证的参数组。Specifically, the front end of the automated test platform may receive the user's selection instruction, and then select a parameter group for this verification from the entire parameter set.
用户的选择指令可以是用户通过键盘,触摸屏等方式进行输入,而在本发明的一种具体实施方式中,选择指令可以具体为通过用户端输入信息而生成的选择指令。用户端可以采用BS模式browser server模式,也可以采用CS模式,即client server模式,并不影响本发明的实施。The user's selection instruction may be input by the user through a keyboard, a touch screen, etc., and in an embodiment of the present invention, the selection instruction may specifically be a selection instruction generated by inputting information through a user terminal. The user terminal may adopt the BS mode, the browser server mode, or the CS mode, that is, the client server mode, which does not affect the implementation of the present invention.
进一步的,考虑到全体参数集合是预先确定的,因此,用户在浏览器中通过勾选所需要的参数,就可以方便地得到本次所需要的参数组,可以有效地提高用户的使用体验。即在本发明的一种具体实施方式中,选择指令可以具体为用户通过勾选用户端提供的选项而生成的选择指令。Further, considering that the entire parameter set is predetermined, the user can easily obtain the parameter set required this time by checking the required parameters in the browser, which can effectively improve the user experience. That is, in a specific implementation manner of the present invention, the selection instruction may specifically be a selection instruction generated by the user by checking an option provided by the user terminal.
此外,在具体场合中,为了进一步的方便用户的操作和理解,可以将全体参数集合中的参数进行分区,例如根据实际情况划分了环境参数选择区和执行参数选择区,环境参数选择区例如有两个选项,其一是“复位”选择为“是”是,另一个是“复位”选择为“否”。执行参数选择区例如具体可以包括“功能”,具体有功能1,功能2,以及功能3这三个功能选项;包括“校验”,具体有“是”和“否”这两个校验选项;包括“模式”,具体有“动态”和“静态”这两个模式选项,包括“同异步”,具体有“同步”和“异步”这两个选项,等等。In addition, in specific occasions, in order to further facilitate the user's operation and understanding, the parameters in the entire parameter set can be divided into partitions. For example, according to the actual situation, the environment parameter selection area and the execution parameter selection area are divided. For example, the environment parameter selection area has Two options, one is "Reset" selected as "Yes", the other is "Reset" selected as "No". For example, the execution parameter selection area may specifically include "function", specifically three function options of function 1, function 2, and function 3; including "check", specifically, there are two check options of "yes" and "no" ; Including "mode", which has two mode options "dynamic" and "static", including "sync-async", which has two options of "sync" and "async", and so on.
全体参数集合需要预先进行确定,本申请的全体参数集合为通过将调试程序的各个功能参数化而提取出的全部参数所构成的集合,调试程序为基于待测硬件的驱动程序得到的用于调试待测硬件的调试程序。The overall parameter set needs to be determined in advance. The overall parameter set in this application is a set composed of all parameters extracted by parameterizing each function of the debugging program. The debugging program is obtained based on the driver of the hardware to be tested and used for debugging. A debugger for the hardware under test.
待测硬件的驱动程序指的是使用待测硬件的功能所需要的程序,而如果是需要验证待测硬件的功能,则需要对驱动程序进行二次封装,得到可以用来调试待测硬件的调试程序,并且为了方便用户的使用,本申请需要暴露出调试程序的各个功能的所有参数,也就是将调试程序的各个功能参数化,提取出的全部参数所构成的集合便是步骤S101中的全体参数集合。通过这样的参数化,之后在通过编译封装成二进制的可执行文件,便可以利用可执行文件,并且按照所选取的参数的不同,执行相应的验证功能。The driver program of the hardware under test refers to the program required to use the function of the hardware under test. If the function of the hardware under test needs to be verified, the driver needs to be repackaged to obtain a program that can be used to debug the hardware under test. Debug program, and in order to facilitate the use of the user, the application needs to expose all parameters of each function of the debug program, that is, parameterize each function of the debug program, and the set composed of all the extracted parameters is step S101. A collection of overall parameters. Through such parameterization, after compiling and encapsulating the executable file into binary, the executable file can be used, and the corresponding verification function can be performed according to the difference of the selected parameters.
步骤S102:将参数组组装为任务命令串,并基于任务命令串确定出对应的测试环境。Step S102: Assemble the parameter group into a task command string, and determine a corresponding test environment based on the task command string.
选取出了本次需要的参数组之后,可以由自动化测试平台后端中的参数任务生成器将参数组组装为任务命令串,该任务命令串可以包括1个命令行,也可以包括多个命令行,取决于实际的业务场景。After selecting the parameter group needed this time, the parameter task generator in the backend of the automated test platform can assemble the parameter group into a task command string. The task command string can include one command line or multiple commands. OK, depending on the actual business scenario.
例如一种具体场合中,参数组中的复位=“是”,则对应生成的任务命令是job1:systemctl restart <service name> 。而参数组中的功能=“功能1”,校验=“是”,模式=“动态”,同异步=“同步”,则对应生成的任务命令是job2: <功能1可执行文件> 是 动态 同步。也就是说,该种实施方式中任务命令串由job1和job2构成。For example, in a specific situation, reset="yes" in the parameter group, the corresponding generated task command is job1: systemctl restart <service name>. In the parameter group, function = "function 1", check = "yes", mode = "dynamic", synchronous and asynchronous = "synchronous", then the corresponding generated task command is job2: <function 1 executable file> is dynamic Synchronize. That is to say, in this embodiment, the task command string consists of job1 and job2.
得到了任务命令串之后,需要按照任务命令串中用于限定测试环境的内容,确定出对应的测试环境,也就是按照参数组当中用于限定测试环境的参数来决定测试环境。确定出了测试环境之后,便可以将该任务命令串发送至该测试环境中。例如一种场合中,可以由自动化测试平台后端中的Jenkins server通过SSH协议接收参数任务生成器输出的任务命令串,再由Jenkins server将任务命令串发送给相应的测试环境。After obtaining the task command string, it is necessary to determine the corresponding test environment according to the content of the task command string for defining the test environment, that is, to determine the test environment according to the parameters in the parameter group for defining the test environment. After the test environment is determined, the task command string can be sent to the test environment. For example, in one occasion, the Jenkins server in the backend of the automated test platform can receive the task command string output by the parameter task generator through the SSH protocol, and then the Jenkins server can send the task command string to the corresponding test environment.
步骤S103:将任务命令串发送至测试环境中,以使测试环境按照任务命令串以及对应于任务命令串的可执行文件验证待测硬件的功能。Step S103: Send the task command string to the test environment, so that the test environment verifies the function of the hardware under test according to the task command string and the executable file corresponding to the task command string.
测试环境需要按照任务命令串以及对应于任务命令串的可执行文件验证待测硬件的功能。对应于任务命令串的可执行文件可以存储在测试环境中,也可以由自动化测试平台后端给测试环境发送。The test environment needs to verify the function of the hardware under test according to the task command string and the executable file corresponding to the task command string. The executable file corresponding to the task command string may be stored in the test environment, or may be sent to the test environment by the backend of the automated test platform.
在实际应用中,可以通过二次封装得到调试程序,并且暴露出调试程序的各个功能的所有参数,在这之后,可以将二次封装的接口编译成二进制的可执行文件,得到可执行文件库,使得执行本申请的方案时,自动化测试平台后端可以进行可执行文件库的调用。In practical applications, the debugger can be obtained through secondary encapsulation, and all parameters of each function of the debugger can be exposed. After that, the interface of the secondary encapsulation can be compiled into a binary executable file to obtain an executable file library , so that when the solution of the present application is executed, the back end of the automated test platform can call the executable file library.
即在本发明的一种具体实施方式中,可执行文件为自动化测试平台后端基于任务命令串,从可执行文件库中调用的对应于任务命令串的可执行文件,以将可执行文件发送至测试环境。这样的方式使得在进行芯片硬件功能的验证时,可以方便、快捷地得到当前所需要的可执行文件。That is, in a specific embodiment of the present invention, the executable file is the executable file corresponding to the task command string called from the executable file library based on the task command string from the back end of the automated test platform, so as to send the executable file to the test environment. In this way, the currently required executable file can be obtained conveniently and quickly when verifying the function of the chip hardware.
步骤S104:接收测试环境反馈的验证结果。Step S104: Receive the verification result fed back by the test environment.
测试环境进行了芯片硬件功能的验证之后,会反馈本次的验证结果,可以理解的是,自动化测试平台后端可以将该验证结果反馈至自动化测试平台前端,以显示给用户。After the test environment has verified the hardware functions of the chip, it will feed back the verification results. It is understandable that the back end of the automated test platform can feed back the verification results to the front end of the automated test platform for display to the user.
在本发明的一种具体实施方式中,在步骤S102之前,还可以包括:In a specific embodiment of the present invention, before step S102, it may further include:
判断参数组是否符合预设的参数组构成规则;Determine whether the parameter group conforms to the preset parameter group composition rules;
如果是,则执行步骤S102;If yes, execute step S102;
如果否,则将参数组进行滤除。If not, the parameter group is filtered out.
该种实施方式中,考虑到用户通过选择得到参数组时,可能会出现参数组中的部分参数选取不符合参数组构成规则的情况,因此,可以通过过滤器来进行判断。参数组构成规则的具体内容,可以根据实际使用场景以及业务需求来设定和调整。例如一种场合中,当选择的“模式”为“动态”的时候,实际的业务代码并不支持异步,也就是说,“模式”=“动态”和“同异步”=“异步”是不符合用户实际使用场景的,因此可以判断出参数组是无效或非法的,即参数组不符合预设的参数组构成规则,便可以将参数组进行滤除,不必再执行后续的步骤。In this embodiment, considering that when a user obtains a parameter group by selection, some parameters in the parameter group may not be selected in accordance with the parameter group composition rules, so the judgment can be made through a filter. The specific content of the parameter group composition rule can be set and adjusted according to the actual usage scenario and business requirements. For example, in an occasion, when the selected "mode" is "dynamic", the actual business code does not support asynchronous, that is to say, "mode" = "dynamic" and "synchronous-asynchronous" = "asynchronous" are not If it conforms to the actual usage scenario of the user, it can be determined that the parameter group is invalid or illegal, that is, the parameter group does not conform to the preset parameter group composition rules, and the parameter group can be filtered out without performing the subsequent steps.
进一步的,在将参数组进行滤除之后,还可以包括:输出表示参数组不符合预设的参数组构成规则的提示信息,从而可以提醒用户该参数组是无效或非法的,使得用户可以继续修改参数配置,以便再次提交。Further, after filtering out the parameter group, it may also include: outputting prompt information indicating that the parameter group does not conform to the preset parameter group composition rule, so that the user can be reminded that the parameter group is invalid or illegal, so that the user can continue. Modify the parameter configuration to submit again.
在本发明的一种具体实施方式中,还可以包括:对验证结果进行记录,以便在需要时,可以基于历史数据进行相应的分析。In a specific embodiment of the present invention, the method may further include: recording the verification result, so that when necessary, corresponding analysis can be performed based on historical data.
应用本发明实施例所提供的技术方案,基于待测硬件的驱动程序得到了用于调试待测硬件的调试程序,并且通过将调试程序的各个功能参数化,可以得到全体参数集合,来实现芯片硬件功能的验证。具体的,可以按照用户的选择指令从全体参数集合中选取出用于进行本次验证的参数组,进而将参数组组装为任务命令串以使测试环境能够识别出需要进行什么样的验证。并且测试环境可以按照任务命令串以及对应于任务命令串的可执行文件验证待测硬件的功能,进而反馈验证结果。可以看出,本申请的方案中,用户只需要通过选择指令从全体参数集合中选取出用于进行本次验证的参数组,便可以实现芯片硬件功能的验证,操作简单方便。并且,由于本申请的方案是通过驱动层来调动硬件,相较于传统的直接在仿真端模拟的方式,验证方式简单,效率也较高。综上所述,本申请的方案可以方便、有效地验证芯片的硬件功能。By applying the technical solutions provided by the embodiments of the present invention, a debugging program for debugging the hardware to be tested is obtained based on the driver program of the hardware to be tested, and by parameterizing each function of the debugging program, a set of all parameters can be obtained to realize the chip Verification of hardware functionality. Specifically, the parameter group used for this verification can be selected from the entire parameter set according to the user's selection instruction, and then the parameter group can be assembled into a task command string so that the test environment can identify what verification needs to be performed. And the test environment can verify the function of the hardware to be tested according to the task command string and the executable file corresponding to the task command string, and then feed back the verification result. It can be seen that, in the solution of the present application, the user only needs to select the parameter group used for this verification from the entire parameter set through the selection instruction, and the verification of the chip hardware function can be realized, and the operation is simple and convenient. Moreover, since the solution of the present application uses the driver layer to mobilize the hardware, the verification method is simple and the efficiency is higher compared to the traditional method of directly simulating at the simulation end. To sum up, the solution of the present application can conveniently and effectively verify the hardware function of the chip.
相应于上面的方法实施例,本发明实施例还提供了一种芯片硬件功能的验证系统,可与上文相互对应参照。Corresponding to the above method embodiments, the embodiments of the present invention further provide a verification system for chip hardware functions, which can be referred to in correspondence with the above.
该芯片硬件功能的验证系统,可以应用于自动化测试平台中,包括:The verification system of the chip hardware function can be applied to the automated test platform, including:
自动化测试平台前端201,用于按照用户的选择指令从全体参数集合中选取出用于进行本次验证的参数组;The automated test platform
自动化测试平台后端202,用于:Automated
将参数组组装为任务命令串,并基于任务命令串确定出对应的测试环境;Assemble the parameter group into a task command string, and determine the corresponding test environment based on the task command string;
将任务命令串发送至测试环境中,以使测试环境按照任务命令串以及对应于任务命令串的可执行文件验证待测硬件的功能;Send the task command string to the test environment, so that the test environment verifies the function of the hardware under test according to the task command string and the executable file corresponding to the task command string;
接收测试环境反馈的验证结果;Receive verification results from test environment feedback;
其中,全体参数集合为通过将调试程序的各个功能参数化而提取出的全部参数所构成的集合,调试程序为基于待测硬件的驱动程序得到的用于调试待测硬件的调试程序。The whole parameter set is a set composed of all parameters extracted by parameterizing each function of the debugging program, and the debugging program is a debugging program obtained based on the driver of the hardware to be tested and used to debug the hardware to be tested.
在本发明的一种具体实施方式中,自动化测试平台后端202,还用于:In a specific embodiment of the present invention, the automated
判断参数组是否符合预设的参数组构成规则;Determine whether the parameter group conforms to the preset parameter group composition rules;
如果是,则执行将参数组组装为任务命令串的操作;If so, perform the operation of assembling the parameter group into a task command string;
如果否,则将参数组进行滤除。If not, the parameter group is filtered out.
在本发明的一种具体实施方式中,在自动化测试平台后端202将参数组进行滤除之后,自动化测试平台前端201,用于还用于:In a specific embodiment of the present invention, after the automated test platform back-
输出表示参数组不符合预设的参数组构成规则的提示信息。A prompt message indicating that the parameter group does not conform to the preset parameter group composition rule is output.
在本发明的一种具体实施方式中,选择指令为通过用户端输入信息而生成的选择指令。In a specific embodiment of the present invention, the selection instruction is a selection instruction generated by inputting information from the user terminal.
在本发明的一种具体实施方式中,可执行文件为自动化测试平台后端202基于任务命令串,从可执行文件库中调用的对应于任务命令串的可执行文件,以将可执行文件发送至测试环境。In a specific embodiment of the present invention, the executable file is an executable file corresponding to the task command string that the automated
在本发明的一种具体实施方式中,自动化测试平台后端202还用于:In a specific embodiment of the present invention, the automated
对验证结果进行记录。Record the verification results.
相应于上面的方法实施例,本发明实施例还提供了一种芯片硬件功能的验证设备以及一种计算机可读存储介质,可与上文相互对应参照。Corresponding to the above method embodiments, the embodiments of the present invention further provide a verification device of a chip hardware function and a computer-readable storage medium, which can be referred to each other correspondingly to the above.
该芯片硬件功能的验证设备可以包括:The verification equipment for the hardware function of the chip may include:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行计算机程序以实现上述任一项的芯片硬件功能的验证方法的步骤。The processor is configured to execute the computer program to realize the steps of the verification method for any one of the above-mentioned chip hardware functions.
该计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述任一实施例中的芯片硬件功能的验证方法的步骤。这里所说的计算机可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the steps of the verification method for the function of the chip hardware in any of the foregoing embodiments are implemented. The computer readable storage medium mentioned here includes random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, Or any other form of storage medium known in the technical field.
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this document, relational terms such as first and second are used only to distinguish one entity or operation from another, and do not necessarily require or imply those entities or operations There is no such actual relationship or order between them. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals may further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two, in order to clearly illustrate the possibilities of hardware and software. Interchangeability, the above description has generally described the components and steps of each example in terms of functionality. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的技术方案及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The principles and implementations of the present invention are described herein by using specific examples, and the descriptions of the above embodiments are only used to help understand the technical solutions and core ideas of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can also be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111616402.0A CN113986641B (en) | 2021-12-28 | 2021-12-28 | Method, system, equipment and storage medium for verifying chip hardware function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111616402.0A CN113986641B (en) | 2021-12-28 | 2021-12-28 | Method, system, equipment and storage medium for verifying chip hardware function |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113986641A CN113986641A (en) | 2022-01-28 |
| CN113986641B true CN113986641B (en) | 2022-04-22 |
Family
ID=79734631
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111616402.0A Active CN113986641B (en) | 2021-12-28 | 2021-12-28 | Method, system, equipment and storage medium for verifying chip hardware function |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113986641B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113485882A (en) * | 2021-07-21 | 2021-10-08 | 鹏城实验室 | Chip verification method and device and computer readable storage medium |
| CN113535496A (en) * | 2021-07-30 | 2021-10-22 | 北京奕斯伟计算技术有限公司 | Chip verification system and method |
| CN113704043A (en) * | 2021-08-30 | 2021-11-26 | 地平线(上海)人工智能技术有限公司 | Chip function verification method and device, readable storage medium and electronic equipment |
-
2021
- 2021-12-28 CN CN202111616402.0A patent/CN113986641B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113485882A (en) * | 2021-07-21 | 2021-10-08 | 鹏城实验室 | Chip verification method and device and computer readable storage medium |
| CN113535496A (en) * | 2021-07-30 | 2021-10-22 | 北京奕斯伟计算技术有限公司 | Chip verification system and method |
| CN113704043A (en) * | 2021-08-30 | 2021-11-26 | 地平线(上海)人工智能技术有限公司 | Chip function verification method and device, readable storage medium and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113986641A (en) | 2022-01-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102866944B (en) | Pressure testing system and method | |
| CN105005532B (en) | A kind of system and method for automatic test application programming interfaces stability | |
| CN105099811B (en) | Interface testing method and device | |
| CN104360920B (en) | A kind of automatic interface testing method and device | |
| CN102880546B (en) | Software integration testing method and system based on extensible markup language (XML) database | |
| CN111651366A (en) | SDK testing method, device, equipment and storage medium | |
| CN108964993A (en) | Failure simulation method, device, equipment and readable storage medium storing program for executing based on dynamic proxy | |
| CN110955409A (en) | Method and device for creating resources on cloud platform | |
| CN116204438A (en) | Test case generation method, automated test method and related device | |
| CN111274120A (en) | An interface document verification method and device | |
| CN105453033A (en) | Program testing service | |
| WO2023124314A1 (en) | Micro-service test method and system for hybrid cpu architecture device, and related apparatus | |
| CN113064816B (en) | Test device and test method for programmable logic device software | |
| CN113986641B (en) | Method, system, equipment and storage medium for verifying chip hardware function | |
| CN112559335B (en) | Test method, device, equipment and storage medium | |
| CN111400171B (en) | Interface testing method, system and device and readable storage medium | |
| CN118779228A (en) | Vehicle OTA platform testing method, device, electronic equipment and storage medium | |
| CN117724983A (en) | Interface testing method and device, storage medium and electronic equipment | |
| CN114647565A (en) | Android project test method, storage medium and electronic equipment | |
| CN114371866A (en) | Version reconstruction testing method, device and equipment of business system | |
| CN114647548A (en) | A log generation method and device | |
| CN115878467A (en) | Interface automation test method, device, equipment and storage medium | |
| CN114546823A (en) | Method for reproducing debugging scene of logic system design and related equipment | |
| CN114116244A (en) | Data processing method, device and system, electronic equipment and storage medium | |
| CN114490335A (en) | Dynamic library calling method and device |
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 | ||
| CP03 | Change of name, title or address |
Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd. Country or region after: China Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before: China |