首页> 外国专利> Apparatus and method for decoding instructions marked with breakpoint codes to select breakpoint action from plurality of breakpoint actions

Apparatus and method for decoding instructions marked with breakpoint codes to select breakpoint action from plurality of breakpoint actions

机译:用于对标记有断点代码的指令进行解码以从多个断点动作中选择断点动作的装置和方法

摘要

The invention specifies on-chip address matching hardware which is external to the processor core and prefetch queue of a microcontroller, and instruction decoding logic to mark and process breakpointed instructions. The address matching hardware includes a number of equality comparators which observe addresses on an intermodule bus of the microcontroller. This bus is not directly connected to the processor core and handles both instruction and data traffic. In one embodiment, four such matchers are provided. When an instruction address matches one of the breakpoints, a code indicating the breakpoint number is returned along with the instruction fetched. This breakpoint code is entered into the prefetch queue in the processor core, along with the instruction. When that instruction reaches the decode stage, the breakpoint information is decoded along with the instruction. The breakpoint actions associated with an instruction only occur when the instruction is about to be issued for execution. The decode logic of the processor core uses additional signals from the external matching hardware to determine if the breakpoint number associated with the current instruction is enabled to cause a breakpoint event. If the instruction is enabled to cause an event, the decode logic causes the event to happen. Regardless, the decode logic signals the external matching logic that a breakpointed instruction has been detected. When a breakpoint event is not enabled, the external matching logic can take other action such as updating a counter or starting execution monitoring activities.
机译:本发明规定了在处理器核心和微控制器的预取队列外部的片上地址匹配硬件,以及标记和处理断点指令的指令解码逻辑。地址匹配硬件包括多个相等比较器,这些比较器观察微控制器的模块间总线上的地址。该总线未直接连接到处理器内核,而是处理指令和数据流量。在一实施例中,提供了四个这样的匹配器。当指令地址与断点之一匹配时,将指示断点号的代码与提取的指令一起返回。此断点代码与指令一起输入到处理器内核的预取队列中。当该指令到达解码阶段时,断点信息将与指令一起解码。与指令关联的断点动作仅在指令将要发出以执行时发生。处理器内核的解码逻辑使用来自外部匹配硬件的附加信号来确定是否启用了与当前指令关联的断点编号以引起断点事件。如果使能该指令导致事件,则解码逻辑将导致事件发生。无论如何,解码逻辑都会向外部匹配逻辑发信号通知已检测到断点指令。当未启用断点事件时,外部匹配逻辑可以采取其他操作,例如更新计数器或启动执行监视活动。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号