Movatterモバイル変換


[0]ホーム

URL:


CN112685277B - Warning information inspection method, device, electronic device and readable storage medium - Google Patents

Warning information inspection method, device, electronic device and readable storage medium
Download PDF

Info

Publication number
CN112685277B
CN112685277BCN202011643887.8ACN202011643887ACN112685277BCN 112685277 BCN112685277 BCN 112685277BCN 202011643887 ACN202011643887 ACN 202011643887ACN 112685277 BCN112685277 BCN 112685277B
Authority
CN
China
Prior art keywords
warning information
warning
list
target
information list
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
Application number
CN202011643887.8A
Other languages
Chinese (zh)
Other versions
CN112685277A (en
Inventor
沈旭
王芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hygon Information Technology Co Ltd
Original Assignee
Hygon Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hygon Information Technology Co LtdfiledCriticalHygon Information Technology Co Ltd
Priority to CN202011643887.8ApriorityCriticalpatent/CN112685277B/en
Publication of CN112685277ApublicationCriticalpatent/CN112685277A/en
Application grantedgrantedCritical
Publication of CN112685277BpublicationCriticalpatent/CN112685277B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本申请提供一种警告信息检查方法、装置、电子设备和可读存储介质,该方法包括:在当前的验证环境中对目标芯片设计进行仿真,以得到仿真日志文件;遍历该仿真日志文件,以提取该仿真日志文件中的目标警告信息;当该警告信息列表中不存在与该目标警告信息对应的警告信息时,将该目标警告信息写入该警告信息列表中;当该警告信息列表中存在与该目标警告信息对应的警告信息,且该目标警告信息中携带设定标识时,则为警告信息列表中的对应的警告信息添加验证标识,以更新该警告信息列表;重复上述步骤,直到警告信息列表中的所有警告信息均存在验证标识。根据本实施例中的方法,能够提高对警告信息的检查效率,同时也可以提高警告信息的准确性。

Figure 202011643887

The present application provides a warning information checking method, device, electronic equipment and readable storage medium, the method comprising: simulating the target chip design in the current verification environment to obtain a simulation log file; traversing the simulation log file to Extract the target warning information in the simulation log file; when there is no warning information corresponding to the target warning information in the warning information list, write the target warning information into the warning information list; The warning information corresponding to the target warning information, and when the target warning information carries a set logo, add a verification logo to the corresponding warning information in the warning information list to update the warning information list; repeat the above steps until the warning information All warning messages in the message list have verification marks. According to the method in this embodiment, the checking efficiency of the warning information can be improved, and the accuracy of the warning information can also be improved at the same time.

Figure 202011643887

Description

Translated fromChinese
警告信息检查方法、装置、电子设备和可读存储介质Warning information checking method, device, electronic device and readable storage medium

技术领域technical field

本申请涉及芯片设计技术领域,具体而言,涉及一种警告信息检查方法、装置、电子设备和可读存储介质。The present application relates to the technical field of chip design, in particular, to a warning information checking method, device, electronic equipment and readable storage medium.

背景技术Background technique

当今的芯片设计阶段,在制作实体芯片之前会先通过仿真的手段对芯片设计的各个功能进行验证。在芯片的仿真结果中会有一些警告信息,例如,该警告信息可能表示异常情况发生了,但还未达到错误地步;再例如,警告信息也可以是在特定情况下将特定检查器的错误降级成警告。芯片设计的后续阶段,需要对仿真结果中的警告信息进行检阅,确保输出的警告信息的准确性。In today's chip design stage, each function of the chip design will be verified by means of simulation before making a physical chip. There will be some warning information in the simulation results of the chip. For example, the warning information may indicate that an abnormal situation has occurred, but it has not yet reached the point of error; another example, the warning information may also degrade the error of a specific checker under certain circumstances into a warning. In the subsequent stage of chip design, it is necessary to review the warning information in the simulation results to ensure the accuracy of the output warning information.

但是随着芯片设计规模越来越复大,验证环境越来越复杂,测试用例也越来越多的情况下,警告信息的量也就更大,目前现有的警告信息的检阅的方式是通过人工检阅,效率相对低。However, as the scale of chip design becomes larger and larger, the verification environment becomes more and more complex, and there are more and more test cases, the amount of warning information will also increase. The current review method of warning information is Through manual review, the efficiency is relatively low.

发明内容Contents of the invention

本申请的目的在于提供一种警告信息检查方法、装置、电子设备和可读存储介质,能够解决人工检阅警告信息所导致的效率低的问题。The purpose of the present application is to provide a method, device, electronic device and readable storage medium for checking warning information, which can solve the problem of low efficiency caused by manual checking of warning information.

第一方面,本发明提供一种警告信息检查方法,包括:In a first aspect, the present invention provides a method for checking warning information, including:

在当前的验证环境中对目标芯片设计进行仿真,以得到仿真日志文件;Simulate the target chip design in the current verification environment to obtain the simulation log file;

遍历所述仿真日志文件,以提取所述仿真日志文件中的目标警告信息;traverse the simulation log file to extract the target warning information in the simulation log file;

将所述目标警告信息与当前的警告信息列表进行对比;comparing the target warning message with a current list of warning messages;

当所述警告信息列表中不存在与所述目标警告信息对应的警告信息时,将所述目标警告信息写入所述警告信息列表中,以更新所述警告信息列表;When there is no warning information corresponding to the target warning information in the warning information list, writing the target warning information into the warning information list to update the warning information list;

当所述目标警告信息中携带设定标识,且所述警告信息列表中存在与所述目标警告信息对应的警告信息时,则为警告信息列表中的对应的警告信息添加验证标识,以更新所述警告信息列表;When the target warning information carries a setting flag, and there is warning information corresponding to the target warning information in the warning information list, add a verification flag to the corresponding warning information in the warning information list to update the list of the above warning messages;

重复上述步骤,直到所述警告信息列表中的所有警告信息均存在验证标识。The above steps are repeated until all warning messages in the warning message list have verification marks.

在可选的实施方式中,所述将所述目标警告信息与警告信息列表进行对比,包括:In an optional implementation manner, the comparing the target warning information with the warning information list includes:

将所述目标警告信息中的指定字段与所述警告信息列表中的各项警告信息进行对比;comparing the specified field in the target warning information with each warning information in the warning information list;

当所述警告信息列表中存在包含所述指定字段的警告信息,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。When there is warning information including the specified field in the warning information list, it means that there is warning information corresponding to the target warning information in the warning information list.

在上述实施方式中,在对警告信息列表进行更新时,基于不同的需求,可以采用模糊匹配的方式,针对同一类警告信息,例如,包含上述指定字段的警告信息,则进行一次更新即可,从而可以减少警告信息的检查量,提高检查效率。In the above embodiment, when updating the warning information list, based on different requirements, a fuzzy matching method can be used. For the same type of warning information, for example, the warning information containing the above-mentioned specified fields can be updated once. Thereby, the inspection amount of warning information can be reduced, and the inspection efficiency can be improved.

在可选的实施方式中,警告信息中限定字段;所述将所述目标警告信息中的指定字段与所述警告信息列表中的各项警告信息进行对比,包括:In an optional implementation manner, a field is defined in the warning information; the comparing the specified field in the target warning information with each warning information in the warning information list includes:

将所述目标警告信息中除所述限定字段以外的字段与所述警告信息列表中的各项警告信息除所述限定字段以外的字段进行对比;Comparing the fields in the target warning information except for the limited fields with the fields in the warning information list except for the limited fields;

当所述警告信息列表中存在与所述目标警告信息除所述限定字段以外的字段相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。When there is warning information in the warning information list that is the same as the target warning information except for the limited field, it means that there is warning information corresponding to the target warning information in the warning information list.

在可选的实施方式中,每一条警告信息中包括多项信息,多项信息中包括警告实体和路径信息,所述限定字段为所述警告实体的第一字段,或,所述限定字段为所述路径信息的第二字段。In an optional implementation, each piece of warning information includes multiple pieces of information, and the multiple pieces of information include warning entity and path information, and the defined field is the first field of the warning entity, or, the defined field is The second field of the path information.

在上述实施方式中,针对同一测试用例下的警告信息可以认为是同一类警告信息,从而可以针对同一测试用例下的警告信息作为相同的警告信息,进行检查,可以减少需要进一步检查的警告信息的数量,提高检查效率。而警告实体用于承载警告的主要潜在危险信息,基于警告实体对警告信息进行分类,从而针对表示相同潜在危险信息的警告信息不重复检查,从而可以减少重复警告信息的检查,提高检查效率。In the above embodiment, the warning information under the same test case can be considered as the same type of warning information, so that the warning information under the same test case can be checked as the same warning information, and the number of warning information that needs to be further checked can be reduced. Quantity, improve inspection efficiency. The warning entity is used to carry the main potential danger information of the warning, and the warning information is classified based on the warning entity, so that the warning information representing the same potential danger information is not repeatedly checked, so that the inspection of repeated warning information can be reduced and the inspection efficiency can be improved.

在可选的实施方式中,每一条警告信息中包括多项信息,多项信息中包括警告实体、路径信息,所述警告实体包括第一字段,所述路径信息包括第二字段;所述将所述目标警告信息中的指定字段与所述警告信息列表中的各项警告信息进行对比,包括:In an optional implementation manner, each piece of warning information includes a plurality of pieces of information, and the pieces of information include a warning entity and path information, the warning entity includes a first field, and the path information includes a second field; the will The specified field in the target warning information is compared with each warning information in the warning information list, including:

将所述目标警告信息中除所述第一字段和所述第二字段以外的字段与所述警告信息列表中的各项警告信息除所述第一字段和所述第二字段以外的字段进行对比;Comparing the fields in the target warning information except the first field and the second field with the fields in the warning information list except the first field and the second field Compared;

当所述警告信息列表中存在与所述目标警告信息除所述第一字段和所述第二字段以外的字段相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。When there is warning information in the warning information list that is the same as the target warning information except for the first field and the second field, it means that the warning information in the warning information list is the same as the target warning information corresponding warning message.

在可选的实施方式中,所述将所述目标警告信息与警告信息列表进行对比,包括:In an optional implementation manner, the comparing the target warning information with the warning information list includes:

将所述目标警告信息中的所有字段与所述警告信息列表中的各项警告信息进行对比;comparing all the fields in the target warning information with the warning information in the warning information list;

当所述警告信息列表中存在与所述目标警告信息相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。When the same warning information as the target warning information exists in the warning information list, it means that there is warning information corresponding to the target warning information in the warning information list.

在上述实施方式中,在对警告信息列表进行更新时,基于不同的需求,可以采用精确匹配的方式,将更全面的警告信息更新到警告信息列表中,从而可以更全面地覆盖各项警告信息,使检查内容更加全面。In the above embodiment, when updating the warning information list, based on different requirements, an exact matching method can be adopted to update more comprehensive warning information into the warning information list, so that various warning information can be covered more comprehensively , to make the inspection more comprehensive.

在可选的实施方式中,所述方法还包括:当所述警告信息列表中存在警告信息时,根据当前的所述警告信息列表中的警告信息对当前的验证环境中的警告输出字段使用所述设定标识进行更新,以得到当前的验证环境。In an optional implementation manner, the method further includes: when there is warning information in the warning information list, using the set value for the warning output field in the current verification environment according to the current warning information in the warning information list. The above setting flags are updated to get the current authentication environment.

在上述实施方式中,基于得到的警告信息列表对验证环境通过添加设定标的方式进行标记,可以使确定出的当前的验证环境能够适应当前的警告信息的检查状态,以更方便确定出已经检查的警告信息和未检查的警告信息。In the above embodiment, based on the obtained warning information list, the verification environment is marked by adding setting targets, so that the determined current verification environment can adapt to the current inspection status of the warning information, so that it is more convenient to determine warnings and unchecked warnings.

在可选的实施方式中,所述根据当前的所述警告信息列表中的警告信息对当前的验证环境中的警告输出字段使用所述设定标识进行更新,以得到当前的验证环境,包括:In an optional implementation manner, the updating of the warning output field in the current verification environment using the set identifier according to the warning information in the current warning information list to obtain the current verification environment includes:

若当前的所述警告信息列表中的第一警告信息为正确的警告信息,则将当前的验证环境中用于输出所述第一警告信息的代码添加所述设定标识,以更新所述验证环境;If the first warning information in the current warning information list is correct warning information, then add the set identifier to the code used to output the first warning information in the current verification environment to update the verification environment;

若当前的所述警告信息列表中的第二警告信息为错误的警告信息,则将当前的验证环境中用于输出所述第二警告信息的代码进行更改,以更新所述验证环境。If the second warning information in the current warning information list is wrong warning information, the code for outputting the second warning information in the current verification environment is changed to update the verification environment.

在上述实施方式中,针对正确的警告信息,可以通过在输出的警告信息对应的代码处添加设定标识,从而使再次仿真到对应代码时可以输出带有设定标识的警告信息,可以分辨出此处是已经检查过的警告信息,以此避免重复对正确的警告信息进行检查。In the above embodiment, for the correct warning information, a setting mark can be added to the code corresponding to the output warning message, so that when the corresponding code is simulated again, the warning message with the setting mark can be output, and it can be distinguished Here are warnings that have already been checked to avoid double-checking the correct warning.

在可选的实施方式中,所述根据当前的所述警告信息列表中的警告信息对当前的验证环境中的警告输出字段使用所述设定标识进行更新,以得到当前的验证环境,包括:In an optional implementation manner, the updating of the warning output field in the current verification environment using the set identifier according to the warning information in the current warning information list to obtain the current verification environment includes:

若当前的所述警告信息列表中的第三警告信息为动态降级得到的警告信息,则重载确定所述第三警告信息的信息处理函数,将所述信息处理函数的处理逻辑与预设的用户配置表进行对比,当所述用户配置表存在与所述处理逻辑相同的映射关系时,则将所述信息处理函数中的信息字段添加所述设定标识,以更新所述验证环境。If the third warning information in the current warning information list is the warning information obtained by dynamic downgrading, then overload the information processing function for determining the third warning information, and combine the processing logic of the information processing function with the preset The user configuration table is compared, and when the user configuration table has the same mapping relationship as the processing logic, the information field in the information processing function is added with the setting identifier to update the verification environment.

在上述实施方式中,针对由信息处理函数处理的动态降级得到的警告信息采用逻辑匹配的方式进行添加标识,以适应不同的输出警告信息的场景的标记。In the above embodiments, the warning information obtained through the dynamic degradation processed by the information processing function is marked by logical matching, so as to adapt to the labeling of different scenarios of outputting warning information.

在可选的实施方式中,所述将所述目标警告信息写入所述警告信息列表中,以更新所述警告信息列表,包括:In an optional implementation manner, the writing the target warning information into the warning information list to update the warning information list includes:

当所述目标警告信息中未携带设定标识时,则将所述目标警告信息写入警告信息列表;When the target warning information does not carry a set flag, write the target warning information into the warning information list;

当所述目标警告信息中携带设定标识时,则将所述目标警告信息写入警告信息列表,并为警告信息列表中的目标警告信息添加所述验证标识。When the target warning information carries a setting identifier, write the target warning information into a warning information list, and add the verification identifier to the target warning information in the warning information list.

在可选的实施方式中,所述根据当前的所述警告信息列表中的警告信息对当前的验证环境中的警告输出字段使用所述设定标识进行更新,以得到当前的验证环境,包括:In an optional implementation manner, the updating of the warning output field in the current verification environment using the set identifier according to the warning information in the current warning information list to obtain the current verification environment includes:

所述警告信息列表中的第四警告信息包含验证标识,且所述第四警告信息在当前的验证环境中的输出字段不包含所述设定标识时,则对所述当前的验证环境中的第四警告信息输出字段使用所述设定标识进行更新。The fourth warning information in the warning information list includes a verification identifier, and when the output field of the fourth warning information in the current verification environment does not contain the set identifier, then the The fourth warning information output field is updated using the set identifier.

第二方面,本发明提供一种警告信息检查装置,包括:In a second aspect, the present invention provides a device for checking warning information, including:

仿真日志获取模块,用于在当前的验证环境中对目标芯片设计进行仿真,以得到仿真日志文件;The simulation log acquisition module is used to simulate the target chip design in the current verification environment to obtain the simulation log file;

警告信息提取模块,用于遍历所述仿真日志文件,以提取所述仿真日志文件中的目标警告信息;A warning information extraction module, configured to traverse the simulation log file to extract target warning information in the simulation log file;

警告信息对比模块,用于将所述目标警告信息与当前的警告信息列表进行对比;A warning information comparison module, configured to compare the target warning information with the current warning information list;

第一列表更新模块,用于当所述警告信息列表中不存在与所述目标警告信息对应的警告信息时,将所述目标警告信息写入所述警告信息列表中,以更新所述警告信息列表;A first list updating module, configured to write the target warning information into the warning information list when there is no warning information corresponding to the target warning information in the warning information list, so as to update the warning information list;

第二列表更新模块,用于当所述警告信息列表中存在与所述目标警告信息对应的警告信息,且所述目标警告信息中携带设定标识时,则为警告信息列表中的对应的警告信息添加验证标识,以更新所述警告信息列表。The second list updating module is configured to: when there is warning information corresponding to the target warning information in the warning information list, and the target warning information carries a setting flag, then it is the corresponding warning in the warning information list Add a verification flag to the message to update the list of warning messages.

第三方面,本发明提供一种电子设备,包括:处理器、存储器,所述存储器存储有所述处理器可执行的机器可读指令,当电子设备运行时,所述机器可读指令被所述处理器执行时执行如前述实施方式任一所述的方法的步骤。In a third aspect, the present invention provides an electronic device, including: a processor and a memory, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the machine-readable instructions are executed by the The steps of the method described in any one of the foregoing implementation manners are executed when the processor is executed.

第四方面,本发明提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如前述实施方式任一所述的方法的步骤。In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the steps of the method described in any one of the preceding implementation modes are executed.

本申请实施例的有益效果是:通过对仿真日志文件中的警告信息通过遍历的方式自动提取,可以实现较快速获得当前仿真输出的警告信息;基于仿真日志文件中的警告信息对警告信息列表进行更新,从而可以逐步减少警告信息列表中的不带验证标识的警告信息,直到警告信息列表中所有警告信息均携带验证标识,从而实现对警告信息的逐一检查。通过上述流程能够较快速地实现警告信息的检查,既减少了检查警告信息所需的工作量,又能够实现较准确地对警告信息的检查。The beneficial effect of the embodiment of the present application is: by automatically extracting the warning information in the simulation log file through traversal, the warning information of the current simulation output can be obtained relatively quickly; based on the warning information in the simulation log file, the warning information list is processed Update, so that the warning messages without verification marks in the warning message list can be gradually reduced until all the warning messages in the warning message list carry the verification marks, so that the warning messages can be checked one by one. Through the above process, the warning information can be checked more quickly, which not only reduces the workload required for checking the warning information, but also enables more accurate checking of the warning information.

附图说明Description of drawings

为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, so It should be regarded as a limitation on the scope, and those skilled in the art can also obtain other related drawings based on these drawings without creative work.

图1为本申请实施例提供的电子设备的方框示意图。FIG. 1 is a schematic block diagram of an electronic device provided by an embodiment of the present application.

图2为本申请实施例提供的警告信息检查方法的流程图。FIG. 2 is a flow chart of a method for checking warning information provided by an embodiment of the present application.

图3为本申请实施例提供的警告信息检查方法的流程图。FIG. 3 is a flow chart of a method for checking warning information provided by an embodiment of the present application.

图4为本申请实施例提供的警告信息检查装置的功能模块示意图。Fig. 4 is a schematic diagram of functional modules of the warning information inspection device provided by the embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

关于针对芯片仿真阶段的警告信息的检查,一般是通过grep命令搜索测试用例的仿真日志文件,然后通过人力逐行检阅的方式来对警告信息进行筛查,这种检阅方式可能存在以下不足:1)警告信息与测试用例数量相关,测试用例数目越多,需要检阅的警告信息也就越多,因此,检阅的工作量巨大;2)相似警告信息往往会由于在不同位置,不同时间出现难以统一处理,例如,即使是来自于同一检查器的同一警告信息,由于报告的用例不同、实例化的验证组件不同,也会被认为是不同的,需要重复进行人工检阅。基于上述警告信息的检阅所存在的不足,本申请实施例提供了一种警告信息检查方法、装置、电子设备和可读存储介质,能够相对缓解上述问题,下面通过几个实施例进行描述。Regarding the inspection of the warning information in the chip simulation stage, the grep command is generally used to search the simulation log files of the test cases, and then the warning information is screened by manual line-by-line inspection. This inspection method may have the following deficiencies: 1 ) The warning information is related to the number of test cases, the more the number of test cases, the more warning information needs to be reviewed, therefore, the workload of review is huge; 2) Similar warning information is often difficult to unify because it appears in different locations and at different times Processing, for example, even the same warning message from the same checker, due to different use cases reported and different validation components instantiated, will be considered different and need to be repeated for manual review. Based on the shortcomings of the above warning information review, the embodiments of the present application provide a warning information inspection method, device, electronic device, and readable storage medium, which can relatively alleviate the above problems. Several embodiments are described below.

实施例一Embodiment one

为便于对本实施例进行理解,首先对执行本申请实施例所公开的警告信息检查方法的电子设备进行详细介绍。To facilitate the understanding of this embodiment, an electronic device that executes the method for checking warning information disclosed in this embodiment of the present application is firstly introduced in detail.

如图1所示,是电子设备的方框示意图。电子设备100可以包括存储器111、存储控制器112、处理器113、外设接口114、输入输出单元115、显示单元116。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对电子设备100的结构造成限定。例如,电子设备100还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。As shown in FIG. 1 , it is a schematic block diagram of an electronic device. Theelectronic device 100 may include amemory 111 , astorage controller 112 , aprocessor 113 , aperipheral interface 114 , an input andoutput unit 115 , and adisplay unit 116 . Those skilled in the art can understand that the structure shown in FIG. 1 is only for illustration, and does not limit the structure of theelectronic device 100 . For example, theelectronic device 100 may also include more or fewer components than shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .

上述的存储器111、存储控制器112、处理器113、外设接口114、输入输出单元115及显示单元116各元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。上述的处理器113用于执行存储器中存储的可执行模块。Thememory 111 ,storage controller 112 ,processor 113 ,peripheral interface 114 , input/output unit 115 anddisplay unit 116 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. Theaforementioned processor 113 is used to execute the executable modules stored in the memory.

其中,存储器111可以是,但不限于,随机存取存储器(Random Access Memory,简称RAM),只读存储器(Read Only Memory,简称ROM),可编程只读存储器(ProgrammableRead-Only Memory,简称PROM),可擦除只读存储器(Erasable Programmable Read-OnlyMemory,简称EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-OnlyMemory,简称EEPROM)等。其中,存储器111用于存储程序,所述处理器113在接收到执行指令后,执行所述程序,本申请实施例任一实施例揭示的过程定义的电子设备100所执行的方法可以应用于处理器113中,或者由处理器113实现。Wherein, thememory 111 can be, but not limited to, random access memory (Random Access Memory, referred to as RAM), read-only memory (Read Only Memory, referred to as ROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM) , Erasable Programmable Read-Only Memory (EPROM for short), Electric Erasable Programmable Read-Only Memory (EEPROM for short), etc. Wherein, thememory 111 is used to store a program, and theprocessor 113 executes the program after receiving the execution instruction, and the method performed by theelectronic device 100 according to the process definition disclosed in any embodiment of the present application can be applied to processing In thedevice 113, or implemented by theprocessor 113.

上述的处理器113可能是一种集成电路芯片,具有信号的处理能力。上述的处理器113可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(digital signalprocessor,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The above-mentionedprocessor 113 may be an integrated circuit chip, which has a signal processing capability. The above-mentionedprocessor 113 can be a general-purpose processor, including a central processing unit (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (digital signal processor, referred to as DSP) , Application Specific Integrated Circuit (ASIC for short), Field Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.

上述的外设接口114将各种输入/输出装置耦合至处理器113以及存储器111。在一些实施例中,外设接口114,处理器113以及存储控制器112可以在单个芯片中实现。在其他一些实例中,他们可以分别由独立的芯片实现。The aforementionedperipheral interface 114 couples various input/output devices to theprocessor 113 and thememory 111 . In some embodiments,peripheral interface 114,processor 113, andmemory controller 112 may be implemented in a single chip. In some other instances, they can be implemented by independent chips respectively.

上述的输入输出单元115用于提供给用户输入数据。所述输入输出单元115可以是,但不限于,鼠标和键盘等。The aforementioned input andoutput unit 115 is used to provide the user with input data. The input andoutput unit 115 may be, but not limited to, a mouse and a keyboard.

上述的显示单元116在电子设备100与用户之间提供一个交互界面(例如用户操作界面)或用于显示图像数据给用户参考。在本实施例中,所述显示单元可以是液晶显示器或触控显示器。若为触控显示器,其可为支持单点和多点触控操作的电容式触控屏或电阻式触控屏等。支持单点和多点触控操作是指触控显示器能感应到来自该触控显示器上一个或多个位置处同时产生的触控操作,并将该感应到的触控操作交由处理器进行计算和处理。The above-mentioneddisplay unit 116 provides an interactive interface (such as a user operation interface) between theelectronic device 100 and the user or is used to display image data for the user's reference. In this embodiment, the display unit may be a liquid crystal display or a touch display. If it is a touch display, it can be a capacitive touch screen or a resistive touch screen supporting single-point and multi-touch operations. Supporting single-point and multi-touch operations means that the touch display can sense simultaneous touch operations from one or more positions on the touch display, and hand over the sensed touch operations to the processor calculation and processing.

上述显示单元116可以用于显示警告信息检查过程中的产生的数据。例如,可以显示警告信息列表等。The above-mentioneddisplay unit 116 may be used to display data generated during the warning information checking process. For example, a list of warning messages, etc. can be displayed.

本实施例中的电子设备100可以用于执行本申请实施例提供的各个方法中的各个步骤。下面通过几个实施例详细描述警告信息检查方法的实现过程。Theelectronic device 100 in this embodiment may be used to execute each step in each method provided in the embodiment of this application. The implementation process of the warning information checking method is described in detail below through several embodiments.

实施例二Embodiment two

请参阅图2,是本申请实施例提供的警告信息检查方法的流程图。下面将对图2所示的具体流程进行详细阐述。Please refer to FIG. 2 , which is a flow chart of the warning information checking method provided by the embodiment of the present application. The specific process shown in FIG. 2 will be described in detail below.

步骤201,在当前的验证环境中对目标芯片设计进行仿真,以得到仿真日志文件。Step 201: Simulate the target chip design in the current verification environment to obtain a simulation log file.

示例性地,当前验证环境可以包括多个验证组件和多个测试用例。Exemplarily, the current verification environment may include multiple verification components and multiple test cases.

本实施例中,步骤201可以对验证环境中的多项测试用例进行仿真,分别得到仿真日志文件。In this embodiment, step 201 may simulate multiple test cases in the verification environment to obtain simulation log files respectively.

步骤202,遍历所述仿真日志文件,以提取所述仿真日志文件中的目标警告信息。Step 202, traversing the simulation log file to extract target warning information in the simulation log file.

步骤203,将所述目标警告信息与当前的警告信息列表进行对比。Step 203, comparing the target warning information with the current warning information list.

可选地,在步骤203之前,还可以获取预先配置的对比规则。Optionally, beforestep 203, pre-configured comparison rules may also be acquired.

示例性地,该对比规则可以是预先存储在一配置文件中,从该配置文件的存储空间中获得配置文件,以及从该配置文件中获得对比规则。Exemplarily, the comparison rule may be pre-stored in a configuration file, the configuration file is obtained from the storage space of the configuration file, and the comparison rule is obtained from the configuration file.

示例性地,该对比模式也可以是由用户设定的。例如,可以提供一操作界面,根据该操作界面接收用户输入的对比规则。Exemplarily, the comparison mode may also be set by the user. For example, an operation interface may be provided, and the comparison rule input by the user is received according to the operation interface.

在一种实施方式中,步骤203可以:将所述目标警告信息中的指定字段与所述警告信息列表中的各项警告信息进行对比。当所述警告信息列表中存在包含所述指定字段的警告信息,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。In one embodiment, step 203 may: compare the specified field in the target warning information with each item of warning information in the warning information list. When there is warning information including the specified field in the warning information list, it means that there is warning information corresponding to the target warning information in the warning information list.

在上述实施方式中,在进行警告信息的对比时,模糊处理了警告实体中的部分字段,从而可以在匹配时,可以忽略该警告实体中的部分字段。In the above embodiment, when comparing warning information, some fields in the warning entity are blurred, so that some fields in the warning entity can be ignored during matching.

示例性地,警告信息中可以包括限定字段;则可以将所述目标警告信息中除所述限定字段以外的字段与所述警告信息列表中的各项警告信息除所述限定字段以外的字段进行对比;当所述警告信息列表中存在与所述目标警告信息除所述限定字段以外的字段相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。Exemplarily, the warning information may include a limited field; then the fields in the target warning information other than the limited field may be compared with the fields of each warning information in the warning information list except the limited field Comparison; when there is warning information in the warning information list that is the same as the target warning information except for the limited field, it means that there is warning information corresponding to the target warning information in the warning information list.

本实施例中,该对比规则中可以包括判定警告信息相似的标准。例如,判定警告信息相似的标准可以包括:忽略时间的不同;再例如,判定警告信息相似的标准可以包括:忽略测试用例的不同;再例如,判定警告信息相似的标准可以包括:忽略警告实体的不同等。In this embodiment, the comparison rule may include a criterion for judging that the warning information is similar. For example, the criteria for judging the similarity of warning information may include: ignoring the difference in time; for another example, the criteria for judging similarity of warning information may include: ignoring the difference in test cases; for another example, the criteria for judging similarity of warning information may include: ignoring the Not equal.

每一条警告信息中包括多项信息,多项信息中包括警告实体、路径信息、警告时间等信息。Each piece of warning information includes multiple pieces of information, and the pieces of information include warning entity, path information, warning time and other information.

示例性地,上述限定字段可以为警告实体的第一字段。Exemplarily, the above-mentioned limited field may be the first field of the warning entity.

示例性地,上述的限定字段可以为路径信息的第二字段。Exemplarily, the above-mentioned limited field may be the second field of the path information.

示例性地,上述的限定字段可以为警告实体的第一字段和路径信息的第二字段。Exemplarily, the above-mentioned limited fields may be the first field of the warning entity and the second field of the path information.

示例性地,上述指定字段除警告实体包括第一字段以外的字段,在该示例中,则忽略该第一字段的不同。步骤203可以包括:将所述目标警告信息中除所述第一字段以外的字段与所述警告信息列表中的各项警告信息除所述第一字段以外的字段进行对比;当所述警告信息列表中存在与所述目标警告信息除所述第一字段以外的字段相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。Exemplarily, the above specified field includes fields other than the first field except the warning entity, and in this example, the difference of the first field is ignored. Step 203 may include: comparing the fields in the target warning information except the first field with the fields in the warning information list except the first field; when the warning information When there is warning information in the list that is the same as the target warning information except for the first field, it means that there is warning information corresponding to the target warning information in the warning information list.

在一个实例中,若目标警告信息的警告实体为:PIPE data mismatched,expected:BC,received:E1。而预先设置的模糊匹配规则是将警告实体中的具体的警告信息模糊处理。此时,若警告信息列表中的存在一条警告信息的警告实体为:PIPE datamismatched,expected:AA,received:BB。在该实例中,目标警告信息的第一字段为“BC”和“E1”,警告信息列表中的警告信息的第一字段为“AA”和“BB”。由于目标警告信息中的字段“PIPE data mismatched,expected”和“received”与警告信息列表中的对应字段相同,仅仅是“BC”和“E1”不同,则可以确定该警告信息列表中的该项警告信息的警告实体与所述目标警告信息的警告实体匹配成功,若该目标警告信息的其它字段与警告信息列表中的该警告信息的其它字段相同,则表示警告信息列表中存在与该目标警告信息匹配成功的警告信息。In an example, if the warning entity of the target warning information is: PIPE data mismatched, expected: BC, received: E1. And the preset fuzzy matching rule is to fuzzy process the specific warning information in the warning entity. At this time, if there is a warning entity in the warning information list: PIPE datamismatched, expected:AA, received:BB. In this example, the first fields of the target warning information are "BC" and "E1", and the first fields of the warning information in the warning information list are "AA" and "BB". Since the fields "PIPE data mismatched, expected" and "received" in the target warning information are the same as the corresponding fields in the warning information list, and only "BC" and "E1" are different, the item in the warning information list can be determined The warning entity of the warning information matches the warning entity of the target warning information successfully. If other fields of the target warning information are the same as those of the warning information in the warning information list, it means that there is a Warning message for successful information matching.

示例性地,上述指定字段可以是警告信息中的除路径信息的第二字段以外的字段,在该示例中,则忽略路径信息的第二字段的不同。步骤203可以包括:将所述目标警告信息中除所述第二字段以外的字段与所述警告信息列表中的各项警告信息除所述第二字段以外的字段进行对比;当所述警告信息列表中存在与所述目标警告信息除所述第二字段以外的字段相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。Exemplarily, the specified field may be a field in the warning information other than the second field of the path information, and in this example, the difference in the second field of the path information is ignored. Step 203 may include: comparing the fields in the target warning information except the second field with the fields in the warning information list except the second field; when the warning information When there is warning information in the list that is the same as the target warning information except for the second field, it means that there is warning information corresponding to the target warning information in the warning information list.

在一个实例中,若目标警告信息的路径信息为:uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard:,而警告信息列表存在:uvm_test_top.env.pcie_uvc.lane_uvc[2].scoreboard:,其中在上述实例中,目标警告信息第二字段为“[0]”,警告信息列表中的警告信息的第二字段为“[2]”。此时目标警告信息中除了“[0]”与警告信息列表不同,其它信息相同,则可以确定该警告信息列表中存在与所述目标警告信息的路径信息匹配成功,若该目标警告信息的其它字段与警告信息列表中的该警告信息的其它字段相同,则表示警告信息列表中存在与该目标警告信息匹配成功的警告信息。In an example, if the path information of the target warning information is: uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard:, and the warning information list exists: uvm_test_top.env.pcie_uvc.lane_uvc[2].scoreboard:, where In the above example, the second field of the target warning information is "[0]", and the second field of the warning information in the warning information list is "[2]". At this time, the target warning information is the same except "[0]" which is different from the warning information list, and other information is the same. It can be determined that there is a path information in the warning information list that matches the target warning information successfully. If other information in the target warning information If the field is the same as other fields of the warning information in the warning information list, it means that there is a warning information that successfully matches the target warning information in the warning information list.

示例性地,上述指定字段可以是警告信息中除警告实体的第一字段和路径信息的第二字段以外的字段,在该示例中,则忽略第一字段和第二字段的不同。步骤203可以包括:将所述目标警告信息中除所述第一字段和所述第二字段以外的字段与所述警告信息列表中的各项警告信息除所述第一字段和所述第二字段以外的字段进行对比;当所述警告信息列表中存在与所述目标警告信息除所述第一字段和所述第二字段以外的字段相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。Exemplarily, the above specified field may be a field in the warning information other than the first field of the warning entity and the second field of the path information, and in this example, the difference between the first field and the second field is ignored. Step 203 may include: combining the fields in the target warning information except the first field and the second field with the warning information in the warning information list except the first field and the second field. Fields other than the first field and the second field are compared; when there is the same warning information in the warning information list as the target warning information except the first field and the second field, it indicates that the warning information in the warning information list There is warning information corresponding to the target warning information.

可选地,也可以根据具体需求将其它信息进行模糊处理,以适应不同场景对警告信息的检查需求。例如,可以将警告信息的时间进行模糊处理,从而在将目标警告信息与警告信息列表中的警告信息进行对比时,则可以忽略时间的不同。Optionally, other information may also be blurred according to specific requirements, so as to meet the inspection requirements for warning information in different scenarios. For example, the time of the warning information can be blurred, so that when the target warning information is compared with the warning information in the warning information list, the difference in time can be ignored.

在另一种实施方式中,若未设定对应的对比模式,可以默认为精确对比的模式。示例性地,精确对比的模式为当警告信息列表中存在与目标警告信息完全相同的警告信息时,才判断警告信息列表中存在对应的警告信息。In another implementation manner, if no corresponding comparison mode is set, a precise comparison mode may be used by default. Exemplarily, the precise comparison mode is that when the warning information exactly the same as the target warning information exists in the warning information list, it is determined that the corresponding warning information exists in the warning information list.

示例性地,步骤203可以包括:将所述目标警告信息中的所有字段与所述警告信息列表中的各项警告信息进行对比;当所述警告信息列表中存在与所述目标警告信息相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息;当所述警告信息列表中不存在与所述目标警告信息完全相同的警告信息时,则表征所述警告信息列表中不存在与所述目标警告信息对应的警告信息。Exemplarily, step 203 may include: comparing all fields in the target warning information with each item of warning information in the warning information list; warning information, it indicates that there is warning information corresponding to the target warning information in the warning information list; when there is no warning information exactly the same as the target warning information in the warning information list, it indicates that the There is no warning information corresponding to the target warning information in the warning information list.

下面以一些实例描述警告信息中所包含的信息,以及警告信息的对比规则的表达形式。The information contained in the warning information and the expression form of the comparison rules of the warning information are described below with some examples.

在一个实例中,测试用例1的第一项警告信息为:UVM_WARNING@422748.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard:PIPE datamismatched,expected:BC,received:E1。In one instance, the first warning message of test case 1 is: UVM_WARNING@422748.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard:PIPE datamismatched,expected:BC,received:E1.

在测试用例1的第一项警告信息中对应的警告时间为“422748.61”;路径信息为“uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard”;警告实体为“PIPE datamismatched,expected:BC,received:E1”。The corresponding warning time in the first warning message of test case 1 is "422748.61"; the path information is "uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard"; the warning entity is "PIPE datamismatched, expected: BC, received :E1".

测试用例1的第二项警告信息为:UVM_WARNING@422748.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[1].scoreboard:PIPE data mismatched,expected:1C,received:CD。The second warning message of test case 1 is: UVM_WARNING@422748.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[1].scoreboard:PIPE data mismatched,expected:1C,received:CD.

在测试用例1的第二项警告信息中对应的警告时间为“422748.61”;路径信息为“uvm_test_top.env.pcie_uvc.lane_uvc[1].scoreboard”;警告实体为“expected:1C,received:CD”。The corresponding warning time in the second warning message of test case 1 is "422748.61"; the path information is "uvm_test_top.env.pcie_uvc.lane_uvc[1].scoreboard"; the warning entity is "expected: 1C, received: CD" .

测试用例1的第三项警告信息为UVM_WARNING@422750.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard:PIPE data mismatched,expected:1C,received:FE。The third warning message of test case 1 is UVM_WARNING@422750.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard:PIPE data mismatched,expected:1C,received:FE.

在测试用例1的第三项警告信息中对应的警告时间为“422750.61”;路径信息为“uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard”;警告实体为“expected:1C,received:FE”。The corresponding warning time in the third warning information of test case 1 is "422750.61"; the path information is "uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard"; the warning entity is "expected:1C, received:FE" .

测试用例2的第一项警告信息为UVM_WARNING@314152.51[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[2].scoreboard:PIPE data mismatched,expected:BC,received:A8。The first warning message of test case 2 is UVM_WARNING@314152.51[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[2].scoreboard:PIPE data mismatched,expected:BC,received:A8.

在测试用例2的第一项警告信息中对应的警告时间为“314152.51”;路径信息为“uvm_test_top.env.pcie_uvc.lane_uvc[2].scoreboard”;警告实体为“PIPE datamismatched,expected:BC,received:A8”。The corresponding warning time in the first warning message of test case 2 is "314152.51"; the path information is "uvm_test_top.env.pcie_uvc.lane_uvc[2].scoreboard"; the warning entity is "PIPE datamismatched, expected: BC, received :A8".

在上述各个实例中,测试用例1的第一项警告信息和第二项警告信息是属于相同时间点不同通道上的警告,而测试用例1的第一项警告信息和第三项警告信息是属于相同通道不同时间点上的警告信息,测试用例2的第一项警告信息与其它几项警告信息在时间点、通道以及警告实体上均不同。In each of the above examples, the first warning message and the second warning message of test case 1 belong to warnings on different channels at the same time point, while the first warning message and the third warning message of test case 1 belong to Warning information at different time points on the same channel, the first warning information of test case 2 is different from the other several warning information in terms of time points, channels and warning entities.

可选地,使用正则表达式\d+\.\d+来模糊匹配任意时间点;使用正则表达式\[\d+\]来模糊处理任意路径信息,例如,使用正则表达式\[\d+\]模糊处理路径信息uvm_test_top.env.pcie_uvc.lane_uvc[2].scoreboard中的通道信息“[2]”,可得到uvm_test_top.env.pcie_uvc.lane_uvc\[\d+\].scoreboard;使用正则表达式[0-9a-fA-F]+来模糊匹配警告实体,例如,使用正则表达式[0-9a-fA-F]+来模糊处理警告实体中的PIPE datamismatched,expected:BC,received:A8中的“BC”和“A8”,可得到PIPE data mismatched,expected:[0-9a-fA-F]+,received:[0-9a-fA-F]+。Optionally, use the regular expression \d+\.\d+ to fuzzy match any point in time; use the regular expression \[\d+\] to fuzzy arbitrary path information, for example, use the regular expression \[\d+\] Obfuscate the channel information "[2]" in the path information uvm_test_top.env.pcie_uvc.lane_uvc[2].scoreboard, you can get uvm_test_top.env.pcie_uvc.lane_uvc\[\d+\].scoreboard; use the regular expression [0 -9a-fA-F]+ to fuzzy match the warning entity, for example, use the regular expression [0-9a-fA-F]+ to fuzzily process the PIPE datamismatched,expected:BC,received:A8 in the warning entity" BC" and "A8", you can get PIPE data mismatched, expected: [0-9a-fA-F]+, received: [0-9a-fA-F]+.

例如,测试用例3的第一个警告信息为:UVM_WARNING@422748.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard:PIPE data mismatched,expected:BC,received:E1。For example, the first warning message of test case 3 is: UVM_WARNING@422748.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard:PIPE data mismatched,expected:BC,received:E1.

测试用例3第二个警告信息为:UVM_WARNING@422748.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[1].scoreboard:PIPE data mismatched,expected:1C,received:CD。The second warning message of test case 3 is: UVM_WARNING@422748.61[RxData]uvm_test_top.env.pcie_uvc.lane_uvc[1].scoreboard:PIPE data mismatched,expected:1C,received:CD.

其中,UVM_WARNING@为格式化信息;422748.61为时间信息;[RxData]为ID信息;uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard和uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard为路径信息,PIPE data mismatched,expected:BC,received:E1和PIPE data mismatched,expected:1C,received:CD为警告实体。Among them, UVM_WARNING@ is formatting information; 422748.61 is time information; [RxData] is ID information; uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard and uvm_test_top.env.pcie_uvc.lane_uvc[0].scoreboard are path information, PIPE data mismatched,expected:BC,received:E1 and PIPE data mismatched,expected:1C,received:CD are warning entities.

模糊匹配可以如下所示:Fuzzy matching can look like this:

针对警告信息,时间可以通过正则表达式\d+\.\d+来表示,路径信息中的通道信息可以通过正则表达式来表示:uvm_test_top.env.pcie_uvc.lane_uvc[\d+].scoreboard,警告实体可以通过正则表达式PIPE data mismatched,expected:[0-9a-fA-F]+,received:[0-9a-fA-F]+;For the warning information, the time can be expressed by the regular expression \d+\.\d+, the channel information in the path information can be expressed by the regular expression: uvm_test_top.env.pcie_uvc.lane_uvc[\d+].scoreboard, the warning entity can be By regular expression PIPE data mismatched, expected: [0-9a-fA-F]+, received: [0-9a-fA-F]+;

将警告信息与如下所示模糊匹配表达式进行匹配,得到结果:Match the warning information with the fuzzy matching expression shown below to get the result:

UVM_WARNING@\d+\.\d+[RxData]uvm_test_top.env.pcie_uvc.lane_uvc\[\d+\].scoreboard:PIPE data mismatched,expected:[0-9a-fA-F]+,received:[0-9a-fA-F]+。UVM_WARNING@\d+\.\d+[RxData]uvm_test_top.env.pcie_uvc.lane_uvc\[\d+\].scoreboard:PIPE data mismatched,expected:[0-9a-fA-F]+,received:[0-9a -fA-F]+.

可选地,当需要模糊匹配多项信息时,则可以在多项信息所对应的位置处采用包含特定的正则表达式。Optionally, when multiple items of information need to be fuzzy matched, a specific regular expression may be used at the position corresponding to the multiple items of information.

例如,需要模糊匹配任意时间点和任意一条路径信息,则对比规则中可以包括:UVM_WARNING@\d\.\d+\[RxData\]uvm_test_top\.env\.pcie_uvc\.lane_uvc\[\d+\].scoreboard:PIPE data mismatched,expected:BC,received:E1。For example, if you need to fuzzy match any time point and any path information, the comparison rule can include: UVM_WARNING@\d\.\d+\[RxData\]uvm_test_top\.env\.pcie_uvc\.lane_uvc\[\d+\] .scoreboard: PIPE data mismatched, expected: BC, received: E1.

例如,需要模糊匹配任意时间点,则可以对比规则中可以包括:UVM_WARNING@\d\.\d+\[RxData\]uvm_test_top\.env\.pcie_uvc\.lane_uvc\[1].scoreboard:PIPEdata mismatched,expected:1C,received:CD。For example, if you need to fuzzy match any time point, you can include in the comparison rule: UVM_WARNING@\d\.\d+\[RxData\]uvm_test_top\.env\.pcie_uvc\.lane_uvc\[1].scoreboard:PIPEdata mismatched, Expected: 1C, received: CD.

步骤204,当所述警告信息列表中不存在与所述目标警告信息对应的警告信息时,将所述目标警告信息写入所述警告信息列表中,以更新所述警告信息列表。Step 204, when there is no warning information corresponding to the target warning information in the warning information list, write the target warning information into the warning information list, so as to update the warning information list.

本实施例中,警告信息列表的初始状态为空。In this embodiment, the initial state of the warning information list is empty.

当仿真日志文件遍历完成后,可以根据遍历后的警告信息对警告信息列表进行更新。After the traversal of the simulation log file is completed, the warning information list may be updated according to the traversed warning information.

可选地,该警告信息列表中可以包括仿真日志文件的路径、警告信息所在的行号以及警告信息的具体内容。Optionally, the warning information list may include the path of the simulation log file, the line number of the warning information and the specific content of the warning information.

在一个实例中,如表1所示,以log file表示仿真日志文件的路径,line表示警告信息所在的行号,warning表示警告信息的警告实体。In one example, as shown in Table 1, log file represents the path of the simulation log file, line represents the line number of the warning information, and warning represents the warning entity of the warning information.

表1Table 1

log filelog filelinelinewarningwarningfile_0file_0line_0line_0message_0message_0file_Nfile_Nline_Nline_Nmessage_Nmessage_N

例如,表1所示的实例中,第一项警告信息在仿真日志文件file_0中,该第一项警告信息在仿真日志文件的第line_0行,第一项警告信息的警告实体为message_0。For example, in the example shown in Table 1, the first warning information is in the simulation log file file_0, the first warning information is in line_0 of the simulation log file, and the warning entity of the first warning information is message_0.

在一种实施方式中,当所述目标警告信息中未携带设定标识时,则将所述目标警告信息写入警告信息列表。In an implementation manner, when the target warning information does not carry a set flag, the target warning information is written into the warning information list.

在另一种实施方式中,当所述目标警告信息中携带设定标识时,则将所述目标警告信息写入警告信息列表,并为警告信息列表中的目标警告信息添加所述验证标识。In another embodiment, when the target warning information carries a setting identifier, write the target warning information into the warning information list, and add the verification identifier to the target warning information in the warning information list.

步骤205,当所述警告信息列表中存在与所述目标警告信息对应的警告信息,且所述目标警告信息中携带设定标识时,则为警告信息列表中的对应的警告信息添加验证标识,以更新所述警告信息列表。Step 205, when there is warning information corresponding to the target warning information in the warning information list, and the target warning information carries a setting flag, add a verification flag to the corresponding warning information in the warning information list, to update the list of warning messages.

可选地,当警告信息列表中存在与所述目标警告信息对应的警告信息时,且该目标警告信息中携带设定标识,而该警告信息列表中的目标警告信息不存在验证标识,则可以对该警告信息列表中的对应的警告信息添加验证标识,从而使该警告信息列表中的目标警告信息包含验证标识。Optionally, when there is warning information corresponding to the target warning information in the warning information list, and the target warning information carries a setting identifier, and the target warning information in the warning information list does not have a verification identifier, then the A verification identifier is added to the corresponding warning information in the warning information list, so that the target warning information in the warning information list includes the verification identifier.

可选地,当警告信息列表中存在与所述目标警告信息对应的警告信息时,且该目标警告信息中未携带设定标识,而该警告信息列表中的目标警告信息存在验证标识,则可以输出提示信息。该提示信息用于提示用户当前的警告信息的检查可能存在错误。Optionally, when there is warning information corresponding to the target warning information in the warning information list, and the target warning information does not carry a setting identifier, and the target warning information in the warning information list has a verification identifier, then the Output prompt information. The prompt message is used to prompt the user that there may be an error in checking the current warning message.

本实施例中,若当前仅得到一篇仿真日志文件时,则在一轮警告信息列表的生产过程中,重复步骤202-步骤205,直到一篇仿真日志文件中的警告信息遍历完成。In this embodiment, if only one simulation log file is currently obtained, during a round of warning information list production, steps 202 to 205 are repeated until the warning information in one simulation log file is traversed.

本实施例中,若当前得到多篇仿真日志文件时,则在一轮警告信息列表的生产过程中,重复步骤202-步骤205,直到多篇仿真日志文件中的警告信息遍历完成。In this embodiment, if multiple simulation log files are currently obtained,step 202 to step 205 are repeated during a round of warning information list production until the warning information traversal in multiple simulation log files is completed.

可选地,为了实现更全面地警告信息的验证,可以基于警告信息列表中的警告信息的当前状态,对验证环境进行更新。Optionally, in order to realize more comprehensive verification of the warning information, the verification environment may be updated based on the current state of the warning information in the warning information list.

在一种实施方式中,可以根据当前的警告信息列表生成验证环境的更新策略,该更新策略中记录有验证环境中需要更新的字段、该需要更新的字段更新前的内容以及该需要更新的字段更新后的内容。该更新策略用于供用户参考。In one embodiment, an update strategy for the verification environment can be generated according to the current warning information list, and the update strategy records the field that needs to be updated in the verification environment, the content of the field that needs to be updated before the update, and the field that needs to be updated Updated content. This update policy is for user reference.

在另一种实施方式中,可以根据当前的警告信息列表中各项警告信息的内容,对自动验证环境进行更新。如图3所示,本实施例的警告信息检查方法还可以包括:步骤206,当所述警告信息列表中存在警告信息时,根据当前的所述警告信息列表中的警告信息对当前的验证环境中的警告输出字段使用所述设定标识进行更新,以得到当前的验证环境。In another implementation manner, the automatic verification environment may be updated according to the content of each item of warning information in the current warning information list. As shown in FIG. 3 , the method for checking warning information in this embodiment may further include:step 206, when there is warning information in the warning information list, verify the current verification environment according to the warning information in the current warning information list. The warning output field in is updated with the set flag to get the current validation environment.

示例性地,当所述警告信息列表中的第四警告信息包含验证标识,且所述第四警告信息在当前的验证环境中的输出字段不包含所述设定标识时,则当前的验证环境中的第四警告信息输出字段使用所述设定标识进行更新。Exemplarily, when the fourth warning information in the warning information list includes a verification identifier, and the output field of the fourth warning information in the current verification environment does not contain the set identifier, the current verification environment The fourth warning information output field in is updated with the set flag.

其中,该第一警告信息为警告信息列表中的任意一个包含验证标识的警告信息。Wherein, the first warning information is any warning information in the warning information list that includes a verification identifier.

本实施例中,通过步骤201-步骤206的循环,更新警告信息列表,逐渐检查各个警告信息,直到所述警告信息列表中的所有警告信息均存在验证标识。In this embodiment, through the cycle ofsteps 201 to 206, the list of warning messages is updated, and each warning message is gradually checked until all warning messages in the list of warning messages have verification marks.

本实施例中,对当前的验证环境中的警告输出字段使用所述设定标识进行更新可以通过在警告输出字段的指定位置增加设定标识。例如,该指定位置可以是警告输出字段的末尾。In this embodiment, updating the warning output field in the current verification environment using the setting identifier can be done by adding the setting identifier at a specified position of the warning output field. For example, the specified location may be the end of the warning output field.

该警告输出字段可以是警告信息、致命信息、错误信息等。The warning output field may be warning information, fatal information, error information, etc.

示例性地,若该警告信息列表中的一警告信息的原始严重等级为警告,且得到确认无误消息后,则更新验证环境中用于输出该警告信息的原始代码,将验证环境中输出该警告信息的代码中的原始警告信息加入后缀”<<WARNING_HOOK”。Exemplarily, if the original severity level of a warning message in the warning message list is warning, and after the confirmation message is received, the original code for outputting the warning message in the verification environment is updated, and the warning message is output in the verification environment Add the suffix "<<WARNING_HOOK" to the original warning message in the code of the message.

示例性地,该确认无误消息的内容包括:确认该警告信息在预期之内,不会造成真正的问题。可选地,提供一可操作界面,该确认消息为该可操作界面接收到的消息。Exemplarily, the content of the message confirming that there is no error includes: confirming that the warning message is within expectations and will not cause real problems. Optionally, an operable interface is provided, and the confirmation message is a message received by the operable interface.

其中,该<<WARNING_HOOK为其中一项设定标识。当然,该设定标识也可以由其它字符串组成。Among them, the <<WARNING_HOOK sets the flag for one of them. Of course, the setting identifier can also be composed of other character strings.

示例性地,若该警告信息的原始严重等级为致命或者错误,被降级成警告,且得到确认无误消息后,则更新验证环境中用于输出该警告信息的原始代码,将验证环境中输出原始致命信息的代码中的原始致命信息加入后缀”<<FATAL_HOOK”;将验证环境中输出原始错误信息的代码中的原始错误信息加入后缀”<<ERROR_HOOK”。Exemplarily, if the original severity level of the warning message is fatal or error, it is downgraded to a warning, and after the confirmation message is received, the original code used to output the warning message in the verification environment will be updated, and the original code in the verification environment will be output. Add the suffix "<<FATAL_HOOK" to the original fatal information in the fatal information code; add the suffix "<<ERROR_HOOK" to the original error information in the code that outputs the original error information in the verification environment.

在上述实例中,<<FATAL_HOOK和<<ERROR_HOOK为其中两项设定标识。In the above example, <<FATAL_HOOK and <<ERROR_HOOK set flags for two of them.

本实施例中,在将仿真日志得到的警告信息中,如果携带有设定标识(<<WARNING_HOOK,<<ERROR_HOOK和<<FATAL_HOOK),则表示对应的警告信息已经检查过,则可以不再进行检查。此时,当警告信息列表中存在与该带有设定标识(<<WARNING_HOOK,<<ERROR_HOOK和<<FATAL_HOOK)的警告信息对应的警告信息,且该警告信息存在验证标识,则表示该警告信息验证通过。In this embodiment, in the warning information obtained from the simulation log, if it carries the set flags (<<WARNING_HOOK, <<ERROR_HOOK and <<FATAL_HOOK), it means that the corresponding warning information has been checked, and you can no longer examine. At this time, when there is a warning message corresponding to the warning message with the setting flag (<<WARNING_HOOK, <<ERROR_HOOK and <<FATAL_HOOK) in the warning message list, and the warning message has a verification mark, it means that the warning message Verification passed.

在仿真日志得到的目标警告信息中,如果未携带设定标识,则表示对应的警告信息未经过检查,则需要进行检查。此时,当警告信息列表中存在与该目标警告信息对应的警告信息,且该警告信息列表中的警告信息存在验证标识,则表示当前的模糊匹配表达式,将大量的信息给模糊处理从而将不同的警告信息认为是相同的,当前的反标就会存在问题,则可以输出提示信息。该提示信息用于提示用户当前的警告信息的检查可能存在错误。In the target warning information obtained from the simulation log, if the set flag is not carried, it means that the corresponding warning information has not been checked and needs to be checked. At this time, when there is warning information corresponding to the target warning information in the warning information list, and the warning information in the warning information list has a verification mark, it indicates the current fuzzy matching expression, and a large amount of information is given to fuzzy processing so that the If different warning messages are regarded as the same, there will be problems with the current reverse mark, and a prompt message can be output. The prompt message is used to prompt the user that there may be an error in checking the current warning message.

在一个实例中,目标芯片设计的验证环境可以是使用验证方法学来构建。例如,通过通用验证方法学(Universal Verification Methodology,UVM)构建的验证环境。基于通用验证方法学构建的验证环境的错误和警告信息一般由如下的宏来报告:In one example, a verification environment for a target chip design can be constructed using a verification methodology. For example, a verification environment constructed by Universal Verification Methodology (UVM). Errors and warnings for a verification environment built on a common verification methodology are generally reported by the following macros:

`uvm_error(report_id,message);`uvm_error(report_id, message);

`uvm_warning(report_id,message);`uvm_warning(report_id, message);

`uvm_fatal(report_id,message);`uvm_fatal(report_id, message);

其中,report_id表示当前信息的唯一标识,message表示对应的错误信息或警告信息或致命信息。示例性地,上述report_id可以用于区分不同信息,但是由于一个验证组件可能被实例化多次,因此,无法仅仅使用report_id就精确定位到目标验证组件的特定信息,相应的,需要结合使用该验证组件的层次结构信息和report_id一起来定位。Among them, report_id represents the unique identifier of the current information, and message represents the corresponding error message, warning message or fatal message. Exemplarily, the above report_id can be used to distinguish different information, but since a verification component may be instantiated multiple times, it is impossible to accurately locate the specific information of the target verification component only by using the report_id, and accordingly, it needs to be used in conjunction with the verification The hierarchy information of the component is located together with the report_id.

在上述实例中,基于警告信息列表中的警告信息需要对警告输出字段进行更新时,则可以更新message中的值。将原始的message的值上增加设定标识,以得到更新后的message。In the above example, when the warning output field needs to be updated based on the warning information in the warning information list, the value in message can be updated. Add the setting flag to the value of the original message to get the updated message.

在一种实施方式中,警告信息可以是由验证环境中的宏直接输出的警告信息。在此实施方式中,步骤206可以包括:若当前的所述警告信息列表中的第一警告信息为正确的警告信息,则将当前的验证环境中用于输出所述第一警告信息的代码添加所述设定标识,以更新所述验证环境;若当前的所述警告信息列表中的第二警告信息为错误的警告信息,则将当前的验证环境中用于输出所述第二警告信息的代码进行更改,以更新所述验证环境。In one embodiment, the warning information may be the warning information directly output by the macro in the verification environment. In this embodiment, step 206 may include: if the first warning information in the current warning information list is correct warning information, adding the code for outputting the first warning information in the current verification environment The setting flag is to update the verification environment; if the second warning information in the current warning information list is wrong warning information, then use the current verification environment used to output the second warning information Code changes are made to update the validation environment.

可选地,关于警告信息的正确与错误的确定方式可以为:接收用户对警告信息列表中的各项警告信息的标记操作,该标记用于表示各项警告信息是否为正确的警告信息。示例性地,通过对警告信息列表中的各项警告信息中的标记的识别,以识别各项警告信息是否为正确的警告信息。在一个实例中,该警告信息的标记可以分为三类:正确、错误和待定。其中,正确标记表示该警告信息是正确的,且无需再次进行检查;错误标记表示该警告信息是错误的;待定标记表示该警告信息是正确的,但是对于其他测试用例还需要进行检查。Optionally, the method for determining whether the warning information is correct or incorrect may be: receiving a user's marking operation on each warning information in the warning information list, and the marking is used to indicate whether each warning information is correct warning information. Exemplarily, by identifying marks in each item of warning information in the list of warning messages, it is identified whether each item of warning information is correct warning information. In one example, the flags of the warning message can be classified into three categories: correct, false and pending. Among them, the correct mark indicates that the warning information is correct and does not need to be checked again; the wrong mark indicates that the warning information is wrong; the pending mark indicates that the warning information is correct, but other test cases need to be checked.

在一个实例中,若该第一警告信息对应的标记为待定标记,该待定标记表示该第一警告信息当前状态是正确的,但是对于其他测试用例还需要进行检查的,则可以不对当前的验证环境中用于输出所述第一警告信息的代码添加所述设定标识。In one example, if the flag corresponding to the first warning information is a pending flag, the pending flag indicates that the current state of the first warning information is correct, but other test cases need to be checked, then the current verification may not be performed. The code for outputting the first warning message in the environment adds the setting flag.

在另一个实例中,若该第一警告信息对应的标记为正确标记,则当前的验证环境中用于输出该第一警告信息的宏中的message中加入后缀“<<WARNING_HOOK”。In another example, if the tag corresponding to the first warning message is a correct tag, the suffix “<<WARNING_HOOK” is added to the message in the macro used to output the first warning message in the current verification environment.

在另一个实例中,若该第一警告信息对应的标记为错误标记,则当前的验证环境中用于输出该第一警告信息的宏中的message升级为错误或降级为普通信息。In another example, if the flag corresponding to the first warning information is an error flag, the message in the macro used to output the first warning information in the current verification environment is upgraded to an error or downgraded to a normal message.

在一种实施方式中,警告信息可以是由特定情况下将特定检查器的错误降级成警告,从而快速满足当时的验证目标。在此实施方式中,步骤206可以包括:若当前的所述警告信息列表中的第三警告信息为动态降级得到的警告信息,则重载确定所述第三警告信息的信息处理函数,将所述信息处理函数的处理逻辑与预设的用户配置表进行对比,当所述用户配置表存在与所述处理逻辑相同的映射关系时,则将所述信息处理函数中的信息字段添加所述设定标识,以更新所述验证环境。In one embodiment, the warning information can downgrade the error of a specific checker to a warning in a specific situation, so as to quickly meet the verification goal at that time. In this embodiment, step 206 may include: if the third warning information in the current warning information list is the warning information obtained through dynamic downgrading, overloading the information processing function for determining the third warning information, and converting the The processing logic of the information processing function is compared with the preset user configuration table, and when the user configuration table has the same mapping relationship as the processing logic, the information field in the information processing function is added to the setting Determine the identity to update the verification environment.

示例性地,该动态降级可以表示在一验证环境将原始的高级别的警告信息转变成低级别的警告信息。Exemplarily, the dynamic downgrading may mean converting the original high-level warning information into low-level warning information in a verification environment.

在一个实例中,验证环境中的信息处理函数可以生成一个类型为uvm_report_message的类的实体,该类中包括:object、id、severity和message等信息。其中,object可以确定唯一的一个验证组件,id可以确定该验证组件中唯一的一个信息,severity可以确定该信息的原始严重等级,message则代表原始的信息。In an example, the information processing function in the verification environment can generate an entity of a type uvm_report_message, which includes information such as object, id, severity, and message. Among them, object can determine the unique verification component, id can determine the unique information in the verification component, severity can determine the original severity level of the information, and message represents the original information.

示例性地,用户配置表可以是如下表2所示。Exemplarily, the user configuration table may be as shown in Table 2 below.

表2Table 2

objectobjectididold_severityold_severitynew_severitynew_severityobject_0object_0id_0id_0UVM_FATALUVM_FATALUVM_WARNINGUVM_WARNINGobject_Nobject_Nid_Nid_NUVM_ERRORUVM_ERRORUVM_WARNINGUVM_WARNINGnullnullid_Xid_XUVM_ERRORUVM_ERRORUVM_WARNINGUVM_WARNING

其中,在表2所示的实例中,以object表示需要更新的目标验证组件;id表示目标验证组件中目标信息的唯一标识;old_severity表示信息的原始严重等级;new_severity表示指定的新的信息严重等级。Among them, in the example shown in Table 2, object represents the target verification component that needs to be updated; id represents the unique identification of the target information in the target verification component; old_severity represents the original severity level of the information; new_severity represents the specified new information severity level .

例如,在表2中,将object_0中标识为id_0的致命信息,指定将其降级成警告信息;对于object_N中标识为id_N的错误信息,指定将其降级成警告信息;对于所有验证组件中标识为id_X的错误信息,用户指定将其降级成警告信息。For example, in Table 2, the fatal information identified as id_0 in object_0 is specified to be downgraded to a warning message; for the error message identified as id_N in object_N, it is specified to be downgraded to a warning message; for all verification components identified as The error message of id_X, the user specifies to downgrade it to a warning message.

示例性地,重载输出该第二警告信息的信息处理函数,以确定得到该第二警告信息的处理逻辑,将该处理逻辑与用户配置表进行比对,判断是否存在该第二警告信息对应的输出节点,以及该输出节点对应的原始严重等级和新的信息严重等级与信息处理函数得到该第二警告信息的处理逻辑是否相同。若相同,则将类型为uvm_report_message的类的实体中的message中根据用户配置表中的old_severity加入后缀“<<FATAL_HOOK”或“<<ERROR_HOOK”完成反标。若用户配置表中不存在该第二警告信息对应的输出节点,或该输出节点对应的原始严重等级和新的信息严重等级与信息处理函数得到该第二警告信息的处理逻辑不相同,则不改变类型为uvm_report_message的类的实体中的message。Exemplarily, the information processing function that outputs the second warning information is overloaded to determine the processing logic for obtaining the second warning information, compare the processing logic with the user configuration table, and determine whether there is a corresponding output node, and whether the original severity level corresponding to the output node and the new information severity level are the same as the processing logic of the second warning information obtained by the information processing function. If they are the same, add the suffix "<<FATAL_HOOK" or "<<ERROR_HOOK" to the message in the entity of the class of type uvm_report_message according to the old_severity in the user configuration table to complete the reverse mark. If the output node corresponding to the second warning information does not exist in the user configuration table, or the original severity level corresponding to the output node and the new information severity level are not the same as the processing logic of the second warning information obtained by the information processing function, then no Change the message in the entity of the class whose type is uvm_report_message.

示例性地,该输出节点可以由验证组件object和验证组件中目标信息的唯一标识id表示。Exemplarily, the output node may be represented by the verification component object and the unique identifier id of the target information in the verification component.

本实施例中,警告信息列表的最终状态为空。In this embodiment, the final state of the warning information list is empty.

在本申请实施例中,由于通过对仿真日志文件中的警告信息通过遍历的方式自动提取,可以实现较快速获得当前仿真输出的警告信息;基于得到的警告信息列表对验证环境进行标记,从而可以逐步减少警告信息列表中的不带验证标识的警告信息,直到警告信息列表中所有警告信息均携带验证标识,从而实对警告信息的逐一检查。通过上述流程能够较快速地实现警告信息的检查,既减少了检查警告信息所需的工作量,又能够实现较准确地对警告信息的检查。In the embodiment of the present application, since the warning information in the simulation log file is automatically extracted by traversal, the warning information output by the current simulation can be obtained relatively quickly; the verification environment can be marked based on the obtained warning information list, so that Gradually reduce the warning information without the verification mark in the warning message list until all the warning messages in the warning message list carry the verification mark, so as to check the warning messages one by one. Through the above process, the warning information can be checked more quickly, which not only reduces the workload required for checking the warning information, but also enables more accurate checking of the warning information.

进一步地,由于测试用例存在着随机性,有可能该测试用例在一次回归中存在的警告信息,但是在下一次回归中则不存在警告信息。如果仅仅是对每次产生的警告信息表进行标记,则可能会存在重复检查的情况。基于此研究,在本申请实施例中的方法,通过基于警告信息的正确与否,在验证环境中对应输出警告信息的代码进行标记,从而实现警告信息的反标,从而可以再次输出相同的警告信息时,能够有效识别该警告信息为已经检查过的警告信息。此种反标方式,相对于直接将检查状态记录在用于记录被检查事项的表格中,能够实现对警告信息列表中的逐渐缩减,从而最终实现完全检查的结果。Furthermore, due to the randomness of the test case, it is possible that the test case has warning information in one regression, but there is no warning information in the next regression. If only the warning information table generated each time is marked, there may be repeated inspections. Based on this research, the method in the embodiment of this application, based on whether the warning information is correct or not, marks the code corresponding to the output warning information in the verification environment, so as to realize the reverse labeling of the warning information, so that the same warning can be output again When the message is displayed, the warning message can be effectively identified as the checked warning message. Compared with directly recording the inspection status in the form used to record the items to be inspected, this reverse labeling method can gradually reduce the list of warning information, so as to finally achieve the result of a complete inspection.

实施例三Embodiment three

基于同一申请构思,本申请实施例中还提供了与警告信息检查方法对应的警告信息检查装置,由于本申请实施例中的装置解决问题的原理与前述的警告信息检查方法实施例相似,因此本实施例中的装置的实施可以参见上述方法的实施例中的描述,重复之处不再赘述。Based on the same application concept, the embodiment of this application also provides a warning information checking device corresponding to the warning information checking method. For the implementation of the device in the embodiment, reference may be made to the description in the embodiment of the above method, and repeated descriptions will not be repeated.

请参阅图4是本申请实施例提供的警告信息检查装置的功能模块示意图。本实施例中的警告信息检查装置中的各个模块用于执行上述方法实施例中的各个步骤。警告信息检查装置包括仿真日志获取模块301、警告信息提取模块302、警告信息对比模块303、第一列表更新模块304、第二列表更新模块305;其中,Please refer to FIG. 4 , which is a schematic diagram of functional modules of the warning information inspection device provided by the embodiment of the present application. Each module in the warning information inspection device in this embodiment is used to execute each step in the above method embodiment. The warning information inspection device includes a simulationlog acquisition module 301, a warninginformation extraction module 302, a warninginformation comparison module 303, a firstlist update module 304, and a secondlist update module 305; wherein,

仿真日志获取模块301,用于在当前的验证环境中对目标芯片设计进行仿真,以得到仿真日志文件;The simulationlog acquisition module 301 is used to simulate the target chip design in the current verification environment to obtain the simulation log file;

警告信息提取模块302,用于遍历所述仿真日志文件,以提取所述仿真日志文件中的目标警告信息;A warninginformation extraction module 302, configured to traverse the simulation log file to extract target warning information in the simulation log file;

警告信息对比模块303,用于将所述目标警告信息与当前的警告信息列表进行对比;A warninginformation comparison module 303, configured to compare the target warning information with the current warning information list;

第一列表更新模块304,用于当所述警告信息列表中不存在与所述目标警告信息对应的警告信息时,将所述目标警告信息写入所述警告信息列表中,以更新所述警告信息列表;A firstlist updating module 304, configured to write the target warning information into the warning information list when there is no warning information corresponding to the target warning information in the warning information list, so as to update the warning Information List;

第二列表更新模块305,用于当所述警告信息列表中存在与所述目标警告信息对应的警告信息,且所述目标警告信息中携带设定标识时,则为警告信息列表中的对应的警告信息添加验证标识,以更新所述警告信息列表。The secondlist updating module 305 is configured to: when there is warning information corresponding to the target warning information in the warning information list, and the target warning information carries a setting flag, then the corresponding warning information in the warning information list Add a verification flag to the warning information to update the warning information list.

一种可能的实施方式中,本申请实施例提供的警告信息检查装置还可以包括:验证环境更新模块306,用于当所述警告信息列表中存在警告信息时,根据当前的所述警告信息列表中的警告信息对当前的验证环境中的警告输出字段使用所述设定标识进行更新,以得到当前的验证环境。In a possible implementation manner, the device for checking warning information provided in the embodiment of the present application may further include: a verification environment update module 306, configured to, when there is warning information in the warning information list, according to the current warning information list The warning information in is used to update the warning output field in the current verification environment using the set identifier to obtain the current verification environment.

本实施例中,通过重复调用执行模块301-305,实现对警告信息列表的更新,直到所述警告信息列表中的所有警告信息均存在验证标识。In this embodiment, the warning information list is updated by repeatedly calling the execution modules 301-305 until all the warning information in the warning information list has verification marks.

一种可能的实施方式中,警告信息对比模块303,用于:In a possible implementation manner, the warninginformation comparison module 303 is configured to:

将所述目标警告信息中的指定字段与所述警告信息列表中的各项警告信息进行对比;comparing the specified field in the target warning information with each warning information in the warning information list;

当所述警告信息列表中存在包含所述指定字段的警告信息,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。When there is warning information including the specified field in the warning information list, it means that there is warning information corresponding to the target warning information in the warning information list.

一种可能的实施方式中,每一条警告信息中包括限定字段;警告信息对比模块303,用于:In a possible implementation manner, each piece of warning information includes a limited field; the warninginformation comparison module 303 is configured to:

将所述目标警告信息中除所述限定字段以外的字段与所述警告信息列表中的各项警告信息除所述限定字段以外的字段进行对比;Comparing the fields in the target warning information except for the limited fields with the fields in the warning information list except for the limited fields;

当所述警告信息列表中存在与所述目标警告信息除所述限定字段以外的字段相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。When there is warning information in the warning information list that is the same as the target warning information except for the limited field, it means that there is warning information corresponding to the target warning information in the warning information list.

一种可能的实施方式中,每一条警告信息中包括多项信息,多项信息中包括警告实体和路径信息,所述限定字段为所述警告实体的第一字段,或,所述限定字段为所述路径信息的第二字段。In a possible implementation manner, each piece of warning information includes multiple pieces of information, and the multiple pieces of information include warning entity and path information, and the defined field is the first field of the warning entity, or, the defined field is The second field of the path information.

一种可能的实施方式中,每一条警告信息中包括多项信息,多项信息中包括路径信息,所述路径信息包括第二字段;警告信息对比模块303,用于:In a possible implementation manner, each piece of warning information includes multiple pieces of information, and the pieces of information include path information, and the path information includes a second field; the warninginformation comparison module 303 is configured to:

将所述目标警告信息中的路径信息除所述第二字段以外的字段与所述警告信息列表中的各项警告信息除所述第二字段以外的字段进行对比;Comparing the fields of the path information in the target warning information except the second field with the fields of each warning information in the warning information list except the second field;

当所述警告信息列表中存在与所述目标警告信息除所述第二字段以外的字段相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。When there is warning information in the warning information list that is the same as the target warning information except for the second field, it means that there is warning information corresponding to the target warning information in the warning information list.

一种可能的实施方式中,警告信息对比模块303,用于:In a possible implementation manner, the warninginformation comparison module 303 is configured to:

将所述目标警告信息中的所有字段与所述警告信息列表中的各项警告信息进行对比;comparing all the fields in the target warning information with the warning information in the warning information list;

当所述警告信息列表中存在与所述目标警告信息相同的警告信息时,则表征所述警告信息列表中存在与所述目标警告信息对应的警告信息。When the same warning information as the target warning information exists in the warning information list, it means that there is warning information corresponding to the target warning information in the warning information list.

一种可能的实施方式中,验证环境更新模块306,用于:In a possible implementation manner, the verification environment update module 306 is configured to:

若当前的所述警告信息列表中的第一警告信息为正确的警告信息,则将当前的验证环境中用于输出所述第一警告信息的代码添加所述设定标识,以更新所述验证环境;If the first warning information in the current warning information list is correct warning information, then add the set identifier to the code used to output the first warning information in the current verification environment to update the verification environment;

若当前的所述警告信息列表中的第二警告信息为错误的警告信息,则将当前的验证环境中用于输出所述第二警告信息的代码进行更改,以更新所述验证环境。If the second warning information in the current warning information list is wrong warning information, the code for outputting the second warning information in the current verification environment is changed to update the verification environment.

一种可能的实施方式中,验证环境更新模块306,用于:In a possible implementation manner, the verification environment update module 306 is configured to:

若当前的所述警告信息列表中的第三警告信息为动态降级得到的警告信息,则重载确定所述第三警告信息的信息处理函数,将所述信息处理函数的处理逻辑与预设的用户配置表进行对比,当所述用户配置表存在与所述处理逻辑相同的映射关系时,则将所述信息处理函数中的信息字段添加所述设定标识,以更新所述验证环境。If the third warning information in the current warning information list is the warning information obtained by dynamic downgrading, then overload the information processing function for determining the third warning information, and combine the processing logic of the information processing function with the preset The user configuration table is compared, and when the user configuration table has the same mapping relationship as the processing logic, the information field in the information processing function is added with the setting identifier to update the verification environment.

一种可能的实施方式中,第一列表更新模块304,用于:In a possible implementation manner, the firstlist updating module 304 is configured to:

当所述目标警告信息中未携带设定标识时,则将所述目标警告信息写入警告信息列表;When the target warning information does not carry a set flag, write the target warning information into the warning information list;

当所述目标警告信息中携带设定标识时,则将所述目标警告信息写入警告信息列表,并为警告信息列表中的目标警告信息添加所述验证标识。When the target warning information carries a setting identifier, write the target warning information into a warning information list, and add the verification identifier to the target warning information in the warning information list.

一种可能的实施方式中,验证环境更新模块306,用于:In a possible implementation manner, the verification environment update module 306 is configured to:

当所述警告信息列表中的第四警告信息包含验证标识,且所述第四警告信息在当前的验证环境中的输出字段不包含所述设定标识时,则对所述当前的验证环境中的第一警告信息输出字段使用所述设定标识进行更新。When the fourth warning message in the list of warning messages contains a verification flag, and the output field of the fourth warning message in the current verification environment does not contain the set flag, then for the current verification environment The first warning message output field of is updated with the setting flag.

此外,本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行上述方法实施例中所述的警告信息检查方法的步骤。In addition, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the method for checking warning information described in the above-mentioned method embodiments is executed. step.

本申请实施例所提供的警告信息检查方法的计算机程序产品,包括存储了程序代码的计算机可读存储介质,所述程序代码包括的指令可用于执行上述方法实施例中所述的警告信息检查方法的步骤,具体可参见上述方法实施例,在此不再赘述。The computer program product of the warning information inspection method provided by the embodiment of the present application includes a computer-readable storage medium storing program codes, and the instructions included in the program code can be used to execute the warning information inspection method described in the above method embodiments For the steps, please refer to the above method embodiment for details, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and block diagrams in the accompanying drawings show the architecture, functions and possible implementations of devices, methods and computer program products according to multiple embodiments of the present application. operate. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or part of code that includes one or more Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions.

另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form an independent part, each module may exist independently, or two or more modules may be integrated to form an independent part.

所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments 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), magnetic disk or optical disk and other media that can store program codes. . It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the statement "comprising..." does not exclude the presence of additional same elements in the process, method, article or device comprising said element.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application. It should be noted that like numerals and letters denote similar items in the following figures, therefore, once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.

以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims (13)

CN202011643887.8A2020-12-312020-12-31 Warning information inspection method, device, electronic device and readable storage mediumActiveCN112685277B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202011643887.8ACN112685277B (en)2020-12-312020-12-31 Warning information inspection method, device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202011643887.8ACN112685277B (en)2020-12-312020-12-31 Warning information inspection method, device, electronic device and readable storage medium

Publications (2)

Publication NumberPublication Date
CN112685277A CN112685277A (en)2021-04-20
CN112685277Btrue CN112685277B (en)2023-01-24

Family

ID=75456882

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202011643887.8AActiveCN112685277B (en)2020-12-312020-12-31 Warning information inspection method, device, electronic device and readable storage medium

Country Status (1)

CountryLink
CN (1)CN112685277B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116795650B (en)*2023-06-292024-05-03浙江海得智慧能源有限公司Method, system and equipment for monitoring running state of energy storage system

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103595569A (en)*2013-11-152014-02-19南京云川信息技术有限公司Method for handling database storage of alarm information of network management system
CN104216822A (en)*2014-09-242014-12-17北京国双科技有限公司Abnormal information processing method and device
CN105786919A (en)*2014-12-262016-07-20亿阳信通股份有限公司Alarm association rule mining method and device
CN106326107A (en)*2016-07-272017-01-11北京计算机技术及应用研究所Non-intrusion type embedded software abnormity processing verification method based on simulation environment
CN107483268A (en)*2017-09-202017-12-15深圳市中润四方信息技术有限公司A kind of alert processing method and system
CN111178798A (en)*2019-12-242020-05-19北京一撕得物流技术有限公司Data processing method, system, equipment and storage medium
CN111835760A (en)*2020-07-102020-10-27广州博冠信息科技有限公司Alarm information processing method and device, computer storage medium and electronic equipment

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6745383B1 (en)*1999-12-292004-06-01Veritas Operating CorporationEarly warning mechanism for enhancing enterprise availability
TW200634572A (en)*2005-03-172006-10-01Chunghwa Telecom Co LtdCentral abnormality monitoring and warning method used in satellite positioning taxi dispatching service
CN104268064B (en)*2014-09-112018-03-27北京音之邦文化科技有限公司Abnormity diagnosis method and device for product log
CN106126730B (en)*2016-07-012019-10-11百势软件(北京)有限公司A kind of method and device of Mass production warning information
CN106875269B (en)*2016-08-162020-09-01阿里巴巴集团控股有限公司Resource replacement method and device
CN107171825B (en)*2017-04-112020-09-25Tcl移动通信科技(宁波)有限公司Repeated log filtering method for terminal
CN109145679B (en)*2017-06-152020-05-12杭州海康威视数字技术股份有限公司Method, device and system for sending out early warning information
CN107329894B (en)*2017-06-212020-05-12广州华多网络科技有限公司Application program system testing method and device and electronic equipment
CN109391496A (en)*2017-08-102019-02-26大唐移动通信设备有限公司Alarm log method for uploading and device
CN111078513B (en)*2018-10-222024-02-27杭州海康威视数字技术股份有限公司Log processing method, device, equipment, storage medium and log alarm system
CN110278201B (en)*2019-06-122022-08-23深圳市腾讯计算机系统有限公司Security policy evaluation method and device, computer readable medium and electronic device
CN111770085A (en)*2020-06-282020-10-13杭州安恒信息技术股份有限公司Network security system, method, equipment and medium
CN111917740B (en)*2020-07-152022-08-26杭州安恒信息技术股份有限公司Abnormal flow alarm log detection method, device, equipment and medium
CN112131582A (en)*2020-08-282020-12-25达闼机器人有限公司 SELinux rule generation method, device and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103595569A (en)*2013-11-152014-02-19南京云川信息技术有限公司Method for handling database storage of alarm information of network management system
CN104216822A (en)*2014-09-242014-12-17北京国双科技有限公司Abnormal information processing method and device
CN105786919A (en)*2014-12-262016-07-20亿阳信通股份有限公司Alarm association rule mining method and device
CN106326107A (en)*2016-07-272017-01-11北京计算机技术及应用研究所Non-intrusion type embedded software abnormity processing verification method based on simulation environment
CN107483268A (en)*2017-09-202017-12-15深圳市中润四方信息技术有限公司A kind of alert processing method and system
CN111178798A (en)*2019-12-242020-05-19北京一撕得物流技术有限公司Data processing method, system, equipment and storage medium
CN111835760A (en)*2020-07-102020-10-27广州博冠信息科技有限公司Alarm information processing method and device, computer storage medium and electronic equipment

Also Published As

Publication numberPublication date
CN112685277A (en)2021-04-20

Similar Documents

PublicationPublication DateTitle
CN107766236B (en)Test task automatic management method, device, equipment and storage medium
US9317400B2 (en)Code coverage rate determination method and system
CN109783346B (en)Keyword-driven automatic testing method and device and terminal equipment
CN110764993A (en)Automatic testing method and terminal equipment
CN112199293A (en)Software quality evaluation method and device, terminal equipment and storage medium
CN113220594B (en)Automatic test method, device, equipment and storage medium
US10830818B2 (en)Ensuring completeness of interface signal checking in functional verification
CN111694612A (en)Configuration checking method, device, computer system and storage medium
CN113238940A (en)Interface test result comparison method, device, equipment and storage medium
CN114329469A (en) API abnormal call behavior detection method, device, device and storage medium
CN112685277B (en) Warning information inspection method, device, electronic device and readable storage medium
CN116415258A (en)Vulnerability detection method, device, equipment, medium and program product
CN115686961A (en)Processor testing method and device and electronic equipment
CN115292197A (en)Software testing method and device, electronic equipment and storage medium
CN108446213A (en)A kind of static code mass analysis method and device
CN114757166A (en)Evaluation method and device of natural language understanding system and network equipment
CN112631852A (en)Macro checking method, macro checking device, electronic equipment and computer readable storage medium
CN118535448B (en)LLM-based API penetration test method, device, medium and product
CN117762937A (en)SQL sentence optimization method, SQL sentence optimization device, SQL sentence optimization storage medium and SQL sentence optimization computer device
CN114860549B (en)Buried data verification method, buried data verification device, buried data verification equipment and storage medium
CN115619296A (en) A quality detection method, device, terminal equipment and readable storage medium
CN108509347B (en) Equivalent variant identification method and device
CN112559370A (en)Front-end-based React project unit testing method and related equipment
CN110362482A (en)Page defect management method and terminal device
CN114911699B (en) A data processing method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp