首页> 外国专利> Methods to randomly or pseudo-randomly, without bias, select instruction for performance analysis in a microprocessor

Methods to randomly or pseudo-randomly, without bias, select instruction for performance analysis in a microprocessor

机译:无偏差地随机或伪随机地选择指令以在微处理器中进行性能分析的方法

摘要

A method for pseudo-randomly, without bias, selecting instructions for marking in a microprocessor. Responsive to reading an instruction from an instruction cache, an instruction tag associated with the instruction is compared against a pseudo-randomly generated value in a linear feedback shift register (LFSR). If the instruction tag matches the value in the LFSR, a mark bit, indicating the instruction is a marked instruction, is sent with the instruction to an execution unit. Responsive to an indication from the performance monitor, the value in the LFSR is incremented prior to selecting a next instruction to mark. If the value equals a predetermined prime number of increments, the value is reset to all ones to avoid any harmonics with the code stream being executed. Upon receiving the marked instruction, the execution unit combines the marked bit with a selected event and reports the marked event to the performance monitor.
机译:一种在没有偏见的情况下伪随机地选择用于在微处理器中标记的指令的方法。响应于从指令高速缓存中读取指令,将与该指令相关联的指令标签与线性反馈移位寄存器(LFSR)中的伪随机生成的值进行比较。如果指令标签与LFSR中的值匹配,则将指示该指令为标记指令的标记位与该指令一起发送至执行单元。响应来自性能监视器的指示,在选择下一条要标记的指令之前,将LFSR中的值递增。如果该值等于预定的增量素数,则将该值重置为全1,以避免执行代码流时产生任何谐波。在接收到标记的指令时,执行单元将标记的位与所选事件组合,并将标记的事件报告给性能监视器。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号