The present invention provides a method and a detection device for processing asynchronous events by a detection device. The method includes: obtaining an instruction position of an asynchronous event executed by the measured processor in the course of the target operation; executing the description in the position of the instruction in the position of the target operation in a manner that conforms to the predefined behavior in a manner that is in accordance with the predefined behavior. In the step event, the predefined behavior is the hardware behavior standard of the processor. In an embodiment of the invention, an instruction position of an asynchronous event is executed by the measured processor in the course of the target operation and the asynchronous event is executed in the position of the instruction, which enables the detection device to handle the same asynchronous event in the same instruction position as the measured processor. In this way, the method and device of the present invention can be used to eliminate the influence of the uncertainty factor of the asynchronous event when the security detection of the processor is performed.
【技术实现步骤摘要】
检测装置处理异步事件的方法及检测装置
本专利技术涉及计算机
,尤其涉及一种检测装置处理异步事件的方法及检测装置。
技术介绍
随着集成电路技术的高速发展,数字系统的规模正在急剧增加。复杂数字系统中常常包含多个处理器、大量的硬件IP(IntellectualProperty,知识产权)以及外部设备。为了提高数字系统的效率,系统在工作过程中会使用大量的异步事件。由于异步事件的不确定性,其广泛存在给系统的安全性检测甚至数字系统的验证都带来了巨大的挑战。
技术实现思路
为解决现有技术中的上述技术问题,本专利技术实施例提供了一种检测装置处理异步事件的方法及检测装置,可以将被测处理器执行的异步事件对齐到指令,进而消除了异步事件这一不确定因素的影响。本专利技术实施例一方面提供了一种检测装置处理异步事件的方法,所述方法包括:获取被测处理器在目标运行过程中执行异步事件的指令位置;以符合预定义行为的方式执行所述目标运行过程的任务时,在所述指令位置执行所述异步事件,其中所述预定义的行为是处理器的硬件行为标准。本专利技术实施例另一方面还提供了一种检测装置,所述检测装置包括:获取单元,用于 ...
【技术保护点】
1.一种检测装置处理异步事件的方法,其特征在于,所述方法包括:获取被测处理器在目标运行过程中执行异步事件的指令位置;以符合预定义行为的方式执行所述目标运行过程的任务时,在所述指令位置执行所述异步事件,其中所述预定义的行为是处理器的硬件行为标准。
【技术特征摘要】
1.一种检测装置处理异步事件的方法,其特征在于,所述方法包括:获取被测处理器在目标运行过程中执行异步事件的指令位置;以符合预定义行为的方式执行所述目标运行过程的任务时,在所述指令位置执行所述异步事件,其中所述预定义的行为是处理器的硬件行为标准。2.根据权利要求1所述的方法,其特征在于,在以符合预定义行为的方式执行所述目标运行过程的任务之前,所述方法还包括:记录所述异步事件及所述被测处理器执行所述异步事件的指令位置。3.根据权利要求2所述的方法,其特征在于,所述记录所述异步事件及所述被测处理器执行所述异步事件的指令位置,包括:解析所述异步事件,获取所述异步事件的类型;根据所述异步事件的类型,判断所述异步事件是否为目标异步事件;当所述异步事件为目标异步事件时,请求所述被测处理器处理所述异步事件,以及记录所述异步事件及所述被测处理器执行所述异步事件的指令位置。4.根据权利要求3所述的方法,其特征在于,所述根据所述异步事件的类型,判断所述异步事件是否为目标异步事件,包括:以所述异步事件的类型为关键字查找预设的安全性级别列表,获取所述异步事件的安全性级别,其中所述预设的安全性级别列表包括异步事件的类型及其对应的安全性级别;根据所述检测装置当前设置的安全性级别与所述异步事件的安全性级别,判断所述异步事件是否为目标异步事件。5.根据权利要求2所述的方法,其特征在于,记录所述异步事件包括:记录所述异步事件的标识与所述异步事件的具体内容的存储地址;所述在所述指令位置执行所述异步事件,包括:根据所述存储地址获取所述异步事件的具体内容,以及根据所述异步事件的具体内容在所述指令位置执行所述异步事件。6.根据权利要求2所述的方法,其特征在于,所述记录所述异步事件及所述被测处理器执行所述异步事件的指令位置,还包括:存储所述被测处理器执行所述异步事件的结果。7.根据权利要求6所述的方法,其特征在于,所述方法还包括:根据所述检测装置在所述指令位置执行所述异步事件的结果与所述被测处理器执行所述异步事件的结果,确定所述被测处理器是否安全。8....
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。